Skip to content
This repository has been archived by the owner on Dec 29, 2020. It is now read-only.

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
gre committed Jul 28, 2011
1 parent eb43000 commit c52dd3c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
27 changes: 27 additions & 0 deletions bookmarklet.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*!
* Flexible nav bookmarklet
* by @greweb
*/

(function(){
var base = window.flexibleNavBase || 'https://github.com/gre/flexible-nav/raw/master/';
fullFunc({
css : [ base + "lib/flexible-nav.min.css"],
js : [ base + "lib/flexible-nav.min.js" ],
ready : function() {
$('nav.flexible-nav').empty();
new FlexibleNav( new FlexibleNavMaker().make().prependTo('body') );
}
});
}());

// jQuery bookmarklet magic...
// ... by Brett Barros (& Paul Irish)
// ... http://www.latentmotion.com/downloads/blank-bookmarklet-v1.js
function fullFunc(a){function d(b){if(b.length===0){a.ready();return false}
$.getScript(b[0],function(){d(b.slice(1))})}function e(b){$.each(b,function(c,f){$("<link>")
.attr({href:f,rel:"stylesheet"}).appendTo("head")})}a.jqpath=a.
jqpath||"http://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js";
(function(b){var c=document.createElement("script");c.type="text/javascript";c.src=b;
c.onload=function(){e(a.css);d(a.js)};document.body.appendChild(c)})(a.jqpath)};

2 changes: 1 addition & 1 deletion lib/bookmarklet.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit c52dd3c

Please sign in to comment.