HTML Checkbox Switches

HTML checkbox switches I’ve been using Switchery in various sites to make nice looking checkboxes, however whilst browsing the projects GitHub issues I spotted one post that said it was possible to replicate it’s functionality using pure CSS (though possibly at the cost of browser compatibility). This seems to work Read more…

jQuery Date Picker

Although there’s a date picker present in HTML5 this won’t always work in older browsers and doesn’t look that great anyway so it’s generally better to do this via jQuery. First off add the following script tags to the head section of your page. <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js” type=”text/javascript”></script> <script src=”https://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js” type=”text/javascript”></script> Read more…

Basic HTML Code Snippets

This is essentially just based on Google prettify which can be found here. Just stick the following code in the head of the page to load the javascript. <script src=”https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js”></script> And then put the code you’d like to prettify in the following tags. <pre class=”prettyprint lang-html”></pre> If using this for Read more…