Cleaning up and improveing the bookmarklet

This commit is contained in:
Isaac Bythewood
2013-02-27 01:58:00 +00:00
parent fa7e8c3b83
commit e0362a0298
6 changed files with 90 additions and 67 deletions

View File

@@ -1,12 +1,4 @@
$(window).load(function() {
/**
* Setup our bookmarklet href
*/
var bookmarkletUrl = 'http://'+document.location.hostname+'/static/js/bookmarklet.js';
var bookmarklet = "javascript:void((function(d){var s=d.createElement('script');s.src='"+bookmarkletUrl+"?'+Math.random()*9001;d.body.appendChild(s)})(document));";
$('.bookmarklet-link').attr('href', bookmarklet);
/**
* tileLayout will simply tile/retile the block/pin container when run. This
* was put into a function in order to adjust frequently on screen size