Programming

Pre-Populating Social Sharing Messages

Pre-Populating Social Sharing Messages Sharing buttons on a site can be configured to pre-populate content through various sharing channels such as email, Facebook and Twitter, though unfortunately this doesn’t seem to be that well documented. The below examples show how to pre-compose a message to be sent by Outlook.com, Yahoo, Read more…

Programming

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…

Programming

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…

Programming

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…