Skip to content

Instantly share code, notes, and snippets.

@wpn
wpn / hs-nav-js
Created December 9, 2014 04:52
Helpscout Navigation JS
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<script type="text/javascript">
jQuery( document ).ready( function( $ ) {
var html = '<li id="nf_docs"><a href="/">Docs</a></li><li id="nf_features"><a href="https://ninjaforms.com/features/">Features</a></li><li id="nf_addons"><a href="https://ninjaforms.com/extensions/">Add-Ons</a></li><li id="nf_help"><a href="https://ninjaforms.com/contact/">Ask a Question?</a></li>';
$( '.nav-collapse ul.nav' ).empty().append( html );
} );
</script>
@wpn
wpn / 0_reuse_code.js
Created August 19, 2014 15:21
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console