Skip to content

Instantly share code, notes, and snippets.

View fsimmons's full-sized avatar

Fred Simmons fsimmons

View GitHub Profile
@fsimmons
fsimmons / gist:e9e64dc2f6f375dbe446c9994022299b
Created March 9, 2020 15:07
Fluid typography SASS mixin
$screen_min: 320px;
$screen_max: 1330px;
@mixin fluid-type($properties, $min-vw, $max-vw, $min-value, $max-value) {
@each $property in $properties {
#{$property}: $min-value;
}
@media (min-width: $min-vw) {
@each $property in $properties {
<html>
<head>
<title>Homepage</title>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="swup.js"></script>
<script type="text/javascript">
$(function() {
var swup = new Swup();
});
</script>
!function(t){function e(i){if(o[i])return o[i].exports;var r=o[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var o={};e.m=t,e.c=o,e.d=function(t,o,i){e.o(t,o)||Object.defineProperty(t,o,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(o,"a",o),o},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(t,e){t.exports=jQuery},function(t,e,o){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),s=o(0),a=i(s),f=o(2),l=i(f),d=function(){function t(e,o){function i(t,e,i){var r=parseInt(o[t]);isNaN(r)?o[t
@fsimmons
fsimmons / Shopify-image-sizes.txt
Last active May 19, 2017 15:01
Shopify image sizes
Because this is so infuriatingly difficult to find on Shopify website!
//
pico: 6 × 16
icon: 32 × 32
thumb: 50 × 50
small: 100 × 100
@fsimmons
fsimmons / gist:113e294c7eea9de38073
Last active August 29, 2015 14:10
WordPress read more loads full page/post
$(function() {
/* Quick and dirty way to get 'Read More' link from the_content('Read More') to load rest of post */
$.ajaxSetup({cache:false});
$(".more-link").click(function() {
var link = $(this).attr("href");
var p = $(this).closest('p');
$.get(link, function(data) {
var html = '';
var $response = $(data);
derp