Skip to content

Instantly share code, notes, and snippets.

View Factored-Dan's full-sized avatar

Daniel Wallace Factored-Dan

View GitHub Profile
// clearfix
@mixin clearfix {
&::after {
content: "";
display: block;
clear: both;
}
}
// edit font rendering -> tip: use for light text on dark backgrounds
@jpederson
jpederson / gmaps.smooth.js
Last active October 17, 2019 21:09
Google maps smooth scroll to anchor outside map when clicking on anchor link inside the map marker info window. Not tested...
// This line is different
// it attaches a google maps listener that fires when an info window is opened and populated.
google.maps.event.addListener(referenceToInfoWindow, 'domready', function(){
// scroll handler
var scrollToAnchor = function( id ) {
// grab the element to scroll to based on the name
var elem = $("a[name='"+ id +"']");
@jpederson
jpederson / creep.html
Last active January 8, 2018 10:42
A basic example to get started with Creep.js.
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="jquery.creep.min.js"></script>
<script>
$(document).ready(function(){
$("a").creep();
});
</script>
@jpederson
jpederson / squirrel.basic.html
Created April 14, 2014 15:12
A basic example of the use of Squirrel.js.
<form action="/blah" method="post" class="squirrel">
<!-- any form fields you like :) -->
</form>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script src="jquery.squirrel.min.js"></script>