From d8b796acb9275e74324c3ea04324314ecbe1b664 Mon Sep 17 00:00:00 2001 From: Brandon Mathis Date: Tue, 7 Jun 2011 10:45:01 -0400 Subject: Another massive commit: 1. Major improvements to the responsive styling. 2. Toggleable sidebar 3. Upgraded to modernizr 2.0 which includes Respond.js 4. IE7-9 testing and fixes 5. New theming system which should make forkers happy 6. New rake task for installing Octopress themes 7. Magic --- source/javascripts/pinboard.js | 48 ------------------------------------------ 1 file changed, 48 deletions(-) delete mode 100644 source/javascripts/pinboard.js (limited to 'source/javascripts/pinboard.js') diff --git a/source/javascripts/pinboard.js b/source/javascripts/pinboard.js deleted file mode 100644 index cff7ccc4..00000000 --- a/source/javascripts/pinboard.js +++ /dev/null @@ -1,48 +0,0 @@ -function pinboardNS_fetch_script(url) { - console.log(url); - document.writeln(''); -} - -function pinboardNS_show_bmarks(r) { - var lr = new Pinboard_Linkroll(); - lr.set_items(r); - lr.show_bmarks(); -} - -function Pinboard_Linkroll() { - var items; - - this.set_items = function(i) { - this.items = i; - } - this.show_bmarks = function() { - var lines = []; - for (var i = 0; i < this.items.length; i++) { - var item = this.items[i]; - var str = this.format_item(item); - lines.push(str); - } - document.getElementById(linkroll).innerHTML = lines.join("\n"); - } - this.cook = function(v) { - return v.replace('<', '<').replace('>', '>>'); - } - - this.format_item = function(it) { - var str = "
  • "; - if (!it.d) { return; } - str += "

    " + this.cook(it.d) + ""; - if (it.n) { - str += "" + this.cook(it.n) + "\n"; - } - if (it.t.length > 0) { - for (var i = 0; i < it.t.length; i++) { - var tag = it.t[i]; - str += " " + this.cook(tag).replace(/^\s+|\s+$/g, '') + " "; - } - } - str += "

  • \n"; - return str; - } -} -Pinboard_Linkroll.prototype = new Pinboard_Linkroll(); -- cgit v1.2.1