├── favicon.png ├── images ├── email.png ├── noise.png ├── rss.png ├── code_bg.png ├── search.png ├── line-tile.png ├── bird_32_gray.png ├── dotted-border.png ├── bird_32_gray_fail.png └── goodreader-unhighlight.jpg ├── robots.txt ├── assets └── jwplayer │ ├── player.swf │ └── glow │ ├── dock │ └── button.png │ ├── playlist │ ├── item.png │ ├── itemOver.png │ ├── sliderCapTop.png │ ├── sliderRail.png │ ├── sliderThumb.png │ └── sliderCapBottom.png │ ├── display │ ├── muteIcon.png │ ├── playIcon.png │ ├── background.png │ └── bufferIcon.png │ ├── controlbar │ ├── divider.png │ ├── background.png │ ├── muteButton.png │ ├── playButton.png │ ├── blankButton.png │ ├── pauseButton.png │ ├── unmuteButton.png │ ├── muteButtonOver.png │ ├── pauseButtonOver.png │ ├── playButtonOver.png │ ├── timeSliderRail.png │ ├── fullscreenButton.png │ ├── timeSliderBuffer.png │ ├── timeSliderCapLeft.png │ ├── unmuteButtonOver.png │ ├── fullscreenButtonOver.png │ ├── normalscreenButton.png │ ├── timeSliderCapRight.png │ ├── timeSliderProgress.png │ └── normalscreenButtonOver.png │ ├── sharing │ ├── embedIcon.png │ ├── shareIcon.png │ ├── embedScreen.png │ └── shareScreen.png │ └── glow.xml ├── sitemap.xml ├── javascripts ├── github.js ├── pinboard.js ├── libs │ ├── jXHR.js │ ├── swfobject-dynamic.js │ └── jquery.min.js ├── twitter.js ├── modernizr-2.0.js └── octopress.js ├── atom.xml ├── blog ├── 2013 │ └── 06 │ │ └── 25 │ │ └── how-to-unhighlight-text-in-goodreader │ │ └── index.html ├── categories │ ├── annotation │ │ ├── atom.xml │ │ └── index.html │ ├── goodreader │ │ ├── atom.xml │ │ └── index.html │ └── unhighlight │ │ ├── atom.xml │ │ └── index.html └── archives │ └── index.html ├── index.html └── stylesheets └── screen.css /favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/favicon.png -------------------------------------------------------------------------------- /images/email.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/email.png -------------------------------------------------------------------------------- /images/noise.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/noise.png -------------------------------------------------------------------------------- /images/rss.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/rss.png -------------------------------------------------------------------------------- /robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: 3 | 4 | Sitemap: http://simple.github.io/sitemap.xml -------------------------------------------------------------------------------- /images/code_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/code_bg.png -------------------------------------------------------------------------------- /images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/search.png -------------------------------------------------------------------------------- /images/line-tile.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/line-tile.png -------------------------------------------------------------------------------- /images/bird_32_gray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/bird_32_gray.png -------------------------------------------------------------------------------- /assets/jwplayer/player.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/player.swf -------------------------------------------------------------------------------- /images/dotted-border.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/dotted-border.png -------------------------------------------------------------------------------- /images/bird_32_gray_fail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/bird_32_gray_fail.png -------------------------------------------------------------------------------- /images/goodreader-unhighlight.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/images/goodreader-unhighlight.jpg -------------------------------------------------------------------------------- /assets/jwplayer/glow/dock/button.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/dock/button.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/item.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/item.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/display/muteIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/display/muteIcon.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/display/playIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/display/playIcon.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/divider.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/divider.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/display/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/display/background.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/display/bufferIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/display/bufferIcon.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/itemOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/itemOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/sharing/embedIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/sharing/embedIcon.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/sharing/shareIcon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/sharing/shareIcon.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/background.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/background.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/muteButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/muteButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/playButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/playButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/sliderCapTop.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/sliderCapTop.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/sliderRail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/sliderRail.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/sliderThumb.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/sliderThumb.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/sharing/embedScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/sharing/embedScreen.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/sharing/shareScreen.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/sharing/shareScreen.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/blankButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/blankButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/pauseButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/pauseButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/unmuteButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/unmuteButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/muteButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/muteButtonOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/pauseButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/pauseButtonOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/playButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/playButtonOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/timeSliderRail.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/timeSliderRail.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/playlist/sliderCapBottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/playlist/sliderCapBottom.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/fullscreenButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/fullscreenButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/timeSliderBuffer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/timeSliderBuffer.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/timeSliderCapLeft.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/unmuteButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/unmuteButtonOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/fullscreenButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/normalscreenButton.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/normalscreenButton.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/timeSliderCapRight.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/timeSliderCapRight.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/timeSliderProgress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/timeSliderProgress.png -------------------------------------------------------------------------------- /assets/jwplayer/glow/controlbar/normalscreenButtonOver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/simple/simple.github.io/master/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png -------------------------------------------------------------------------------- /sitemap.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | http://simple.github.io/blog/2013/06/25/how-to-unhighlight-text-in-goodreader/ 5 | 2013-08-14T14:54:47+09:00 6 | 7 | 8 | http://simple.github.io/blog/archives/ 9 | 2013-08-14T14:54:47+09:00 10 | 11 | 12 | http://simple.github.io/ 13 | 2013-08-14T14:54:47+09:00 14 | 15 | 16 | http://simple.github.io/robots.txt 17 | 2013-08-13T21:29:44+09:00 18 | 19 | -------------------------------------------------------------------------------- /javascripts/github.js: -------------------------------------------------------------------------------- 1 | var github = (function(){ 2 | function escapeHtml(str) { 3 | return $('
').text(str).html(); 4 | } 5 | function render(target, repos){ 6 | var i = 0, fragment = '', t = $(target)[0]; 7 | 8 | for(i = 0; i < repos.length; i++) { 9 | fragment += '
  • '+repos[i].name+'

    '+escapeHtml(repos[i].description||'')+'

  • '; 10 | } 11 | t.innerHTML = fragment; 12 | } 13 | return { 14 | showRepos: function(options){ 15 | $.ajax({ 16 | url: "https://api.github.com/users/"+options.user+"/repos?sort=pushed&callback=?" 17 | , dataType: 'jsonp' 18 | , error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); } 19 | , success: function(data) { 20 | var repos = []; 21 | if (!data || !data.data) { return; } 22 | for (var i = 0; i < data.data.length; i++) { 23 | if (options.skip_forks && data.data[i].fork) { continue; } 24 | repos.push(data.data[i]); 25 | } 26 | if (options.count) { repos.splice(options.count); } 27 | render(options.target, repos); 28 | } 29 | }); 30 | } 31 | }; 32 | })(); 33 | -------------------------------------------------------------------------------- /atom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <![CDATA[Beanyard]]> 5 | 6 | 7 | 2013-08-14T15:29:58+09:00 8 | http://simple.github.io/ 9 | 10 | 11 | 12 | 13 | Octopress 14 | 15 | 16 | 17 | <![CDATA[How to unhighlight text in GoodReader]]> 18 | 19 | 2013-06-25T03:51:00+09:00 20 | http://simple.github.io/blog/2013/06/25/how-to-unhighlight-text-in-goodreader 21 | It was not easy to figure out how to unhilghight text in GoodReader.

    22 | 23 |

    After trying every item of context menu on selected text, long touch and swipe on Annotations list, I consulted the Google. 24 | I found a Question but that didn’t help me a lot.

    25 | 26 |

    It turned out that I just needed a single touch on the highlighted text. GoodReader finally showed me the context menu below. 27 | GoodReader Context menu

    28 | 29 |

    That’s it. It jsut did what’s expected.

    30 | ]]>
    31 |
    32 | 33 |
    34 | -------------------------------------------------------------------------------- /blog/categories/annotation/atom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <![CDATA[Category: Annotation | Beanyard]]> 5 | 6 | 7 | 2013-08-14T15:29:58+09:00 8 | http://simple.github.io/ 9 | 10 | 11 | 12 | 13 | Octopress 14 | 15 | 16 | 17 | <![CDATA[How to unhighlight text in GoodReader]]> 18 | 19 | 2013-06-25T03:51:00+09:00 20 | http://simple.github.io/blog/2013/06/25/how-to-unhighlight-text-in-goodreader 21 | It was not easy to figure out how to unhilghight text in GoodReader.

    22 | 23 |

    After trying every item of context menu on selected text, long touch and swipe on Annotations list, I consulted the Google. 24 | I found a Question but that didn’t help me a lot.

    25 | 26 |

    It turned out that I just needed a single touch on the highlighted text. GoodReader finally showed me the context menu below. 27 | GoodReader Context menu

    28 | 29 |

    That’s it. It jsut did what’s expected.

    30 | ]]>
    31 |
    32 | 33 |
    34 | -------------------------------------------------------------------------------- /blog/categories/goodreader/atom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <![CDATA[Category: GoodReader | Beanyard]]> 5 | 6 | 7 | 2013-08-14T15:29:58+09:00 8 | http://simple.github.io/ 9 | 10 | 11 | 12 | 13 | Octopress 14 | 15 | 16 | 17 | <![CDATA[How to unhighlight text in GoodReader]]> 18 | 19 | 2013-06-25T03:51:00+09:00 20 | http://simple.github.io/blog/2013/06/25/how-to-unhighlight-text-in-goodreader 21 | It was not easy to figure out how to unhilghight text in GoodReader.

    22 | 23 |

    After trying every item of context menu on selected text, long touch and swipe on Annotations list, I consulted the Google. 24 | I found a Question but that didn’t help me a lot.

    25 | 26 |

    It turned out that I just needed a single touch on the highlighted text. GoodReader finally showed me the context menu below. 27 | GoodReader Context menu

    28 | 29 |

    That’s it. It jsut did what’s expected.

    30 | ]]>
    31 |
    32 | 33 |
    34 | -------------------------------------------------------------------------------- /blog/categories/unhighlight/atom.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | <![CDATA[Category: Unhighlight | Beanyard]]> 5 | 6 | 7 | 2013-08-14T15:29:58+09:00 8 | http://simple.github.io/ 9 | 10 | 11 | 12 | 13 | Octopress 14 | 15 | 16 | 17 | <![CDATA[How to unhighlight text in GoodReader]]> 18 | 19 | 2013-06-25T03:51:00+09:00 20 | http://simple.github.io/blog/2013/06/25/how-to-unhighlight-text-in-goodreader 21 | It was not easy to figure out how to unhilghight text in GoodReader.

    22 | 23 |

    After trying every item of context menu on selected text, long touch and swipe on Annotations list, I consulted the Google. 24 | I found a Question but that didn’t help me a lot.

    25 | 26 |

    It turned out that I just needed a single touch on the highlighted text. GoodReader finally showed me the context menu below. 27 | GoodReader Context menu

    28 | 29 |

    That’s it. It jsut did what’s expected.

    30 | ]]>
    31 |
    32 | 33 |
    34 | -------------------------------------------------------------------------------- /javascripts/pinboard.js: -------------------------------------------------------------------------------- 1 | function pinboardNS_fetch_script(url) { 2 | //document.writeln(''); 3 | (function(){ 4 | var pinboardLinkroll = document.createElement('script'); 5 | pinboardLinkroll.type = 'text/javascript'; 6 | pinboardLinkroll.async = true; 7 | pinboardLinkroll.src = url; 8 | document.getElementsByTagName('head')[0].appendChild(pinboardLinkroll); 9 | })(); 10 | } 11 | 12 | function pinboardNS_show_bmarks(r) { 13 | var lr = new Pinboard_Linkroll(); 14 | lr.set_items(r); 15 | lr.show_bmarks(); 16 | } 17 | 18 | function Pinboard_Linkroll() { 19 | var items; 20 | 21 | this.set_items = function(i) { 22 | this.items = i; 23 | } 24 | this.show_bmarks = function() { 25 | var lines = []; 26 | for (var i = 0; i < this.items.length; i++) { 27 | var item = this.items[i]; 28 | var str = this.format_item(item); 29 | lines.push(str); 30 | } 31 | document.getElementById(linkroll).innerHTML = lines.join("\n"); 32 | } 33 | this.cook = function(v) { 34 | return v.replace('<', '<').replace('>', '>>'); 35 | } 36 | 37 | this.format_item = function(it) { 38 | var str = "
  • "; 39 | if (!it.d) { return; } 40 | str += "

    " + this.cook(it.d) + ""; 41 | if (it.n) { 42 | str += "" + this.cook(it.n) + "\n"; 43 | } 44 | if (it.t.length > 0) { 45 | for (var i = 0; i < it.t.length; i++) { 46 | var tag = it.t[i]; 47 | str += " " + this.cook(tag).replace(/^\s+|\s+$/g, '') + " "; 48 | } 49 | } 50 | str += "

  • \n"; 51 | return str; 52 | } 53 | } 54 | Pinboard_Linkroll.prototype = new Pinboard_Linkroll(); 55 | pinboardNS_fetch_script("https://feeds.pinboard.in/json/v1/u:"+pinboard_user+"/?cb=pinboardNS_show_bmarks\&count="+pinboard_count); 56 | 57 | -------------------------------------------------------------------------------- /javascripts/libs/jXHR.js: -------------------------------------------------------------------------------- 1 | // jXHR.js (JSON-P XHR) 2 | // v0.1 (c) Kyle Simpson 3 | // MIT License 4 | 5 | (function(global){ 6 | var SETTIMEOUT = global.setTimeout, // for better compression 7 | doc = global.document, 8 | callback_counter = 0; 9 | 10 | global.jXHR = function() { 11 | var script_url, 12 | script_loaded, 13 | jsonp_callback, 14 | scriptElem, 15 | publicAPI = null; 16 | 17 | function removeScript() { try { scriptElem.parentNode.removeChild(scriptElem); } catch (err) { } } 18 | 19 | function reset() { 20 | script_loaded = false; 21 | script_url = ""; 22 | removeScript(); 23 | scriptElem = null; 24 | fireReadyStateChange(0); 25 | } 26 | 27 | function ThrowError(msg) { 28 | try { publicAPI.onerror.call(publicAPI,msg,script_url); } catch (err) { throw new Error(msg); } 29 | } 30 | 31 | function handleScriptLoad() { 32 | if ((this.readyState && this.readyState!=="complete" && this.readyState!=="loaded") || script_loaded) { return; } 33 | this.onload = this.onreadystatechange = null; // prevent memory leak 34 | script_loaded = true; 35 | if (publicAPI.readyState !== 4) ThrowError("Script failed to load ["+script_url+"]."); 36 | removeScript(); 37 | } 38 | 39 | function fireReadyStateChange(rs,args) { 40 | args = args || []; 41 | publicAPI.readyState = rs; 42 | if (typeof publicAPI.onreadystatechange === "function") publicAPI.onreadystatechange.apply(publicAPI,args); 43 | } 44 | 45 | publicAPI = { 46 | onerror:null, 47 | onreadystatechange:null, 48 | readyState:0, 49 | open:function(method,url){ 50 | reset(); 51 | internal_callback = "cb"+(callback_counter++); 52 | (function(icb){ 53 | global.jXHR[icb] = function() { 54 | try { fireReadyStateChange.call(publicAPI,4,arguments); } 55 | catch(err) { 56 | publicAPI.readyState = -1; 57 | ThrowError("Script failed to run ["+script_url+"]."); 58 | } 59 | global.jXHR[icb] = null; 60 | }; 61 | })(internal_callback); 62 | script_url = url.replace(/=\?/,"=jXHR."+internal_callback); 63 | fireReadyStateChange(1); 64 | }, 65 | send:function(){ 66 | SETTIMEOUT(function(){ 67 | scriptElem = doc.createElement("script"); 68 | scriptElem.setAttribute("type","text/javascript"); 69 | scriptElem.onload = scriptElem.onreadystatechange = function(){handleScriptLoad.call(scriptElem);}; 70 | scriptElem.setAttribute("src",script_url); 71 | doc.getElementsByTagName("head")[0].appendChild(scriptElem); 72 | },0); 73 | fireReadyStateChange(2); 74 | }, 75 | setRequestHeader:function(){}, // noop 76 | getResponseHeader:function(){return "";}, // basically noop 77 | getAllResponseHeaders:function(){return [];} // ditto 78 | }; 79 | 80 | reset(); 81 | 82 | return publicAPI; 83 | }; 84 | })(window); 85 | 86 | -------------------------------------------------------------------------------- /javascripts/twitter.js: -------------------------------------------------------------------------------- 1 | // JSON-P Twitter fetcher for Octopress 2 | // (c) Brandon Mathis // MIT License 3 | 4 | /* Sky Slavin, Ludopoli. MIT license. * based on JavaScript Pretty Date * Copyright (c) 2008 John Resig (jquery.com) * Licensed under the MIT license. */ 5 | function prettyDate(time) { 6 | if (navigator.appName === 'Microsoft Internet Explorer') { 7 | return ""; // because IE date parsing isn't fun. 8 | } 9 | var say = { 10 | just_now: " now", 11 | minute_ago: "1m", 12 | minutes_ago: "m", 13 | hour_ago: "1h", 14 | hours_ago: "h", 15 | yesterday: "1d", 16 | days_ago: "d", 17 | last_week: "1w", 18 | weeks_ago: "w" 19 | }; 20 | 21 | var current_date = new Date(), 22 | current_date_time = current_date.getTime(), 23 | current_date_full = current_date_time + (1 * 60000), 24 | date = new Date(time), 25 | diff = ((current_date_full - date.getTime()) / 1000), 26 | day_diff = Math.floor(diff / 86400); 27 | 28 | if (isNaN(day_diff) || day_diff < 0) { return ""; } 29 | 30 | return day_diff === 0 && ( 31 | diff < 60 && say.just_now || 32 | diff < 120 && say.minute_ago || 33 | diff < 3600 && Math.floor(diff / 60) + say.minutes_ago || 34 | diff < 7200 && say.hour_ago || 35 | diff < 86400 && Math.floor(diff / 3600) + say.hours_ago) || 36 | day_diff === 1 && say.yesterday || 37 | day_diff < 7 && day_diff + say.days_ago || 38 | day_diff === 7 && say.last_week || 39 | day_diff > 7 && Math.ceil(day_diff / 7) + say.weeks_ago; 40 | } 41 | 42 | function linkifyTweet(text, url) { 43 | // Linkify urls, usernames, hashtags 44 | text = text.replace(/(https?:\/\/)([\w\-:;?&=+.%#\/]+)/gi, '$2') 45 | .replace(/(^|\W)@(\w+)/g, '$1@$2') 46 | .replace(/(^|\W)#(\w+)/g, '$1#$2'); 47 | 48 | // Use twitter's api to replace t.co shortened urls with expanded ones. 49 | for (var u in url) { 50 | if(url[u].expanded_url != null){ 51 | var shortUrl = new RegExp(url[u].url, 'g'); 52 | text = text.replace(shortUrl, url[u].expanded_url); 53 | var shortUrl = new RegExp(">"+(url[u].url.replace(/https?:\/\//, '')), 'g'); 54 | text = text.replace(shortUrl, ">"+url[u].display_url); 55 | } 56 | } 57 | return text 58 | } 59 | 60 | function showTwitterFeed(tweets, twitter_user) { 61 | var timeline = document.getElementById('tweets'), 62 | content = ''; 63 | 64 | for (var t in tweets) { 65 | content += '
  • '+'

    '+''+prettyDate(tweets[t].created_at)+''+linkifyTweet(tweets[t].text.replace(/\n/g, '
    '), tweets[t].entities.urls)+'

    '+'
  • '; 66 | } 67 | timeline.innerHTML = content; 68 | } 69 | 70 | function getTwitterFeed(user, count, replies) { 71 | count = parseInt(count, 10); 72 | $.ajax({ 73 | url: "https://api.twitter.com/1/statuses/user_timeline/" + user + ".json?trim_user=true&count=" + (count + 20) + "&include_entities=1&exclude_replies=" + (replies ? "0" : "1") + "&callback=?" 74 | , type: 'jsonp' 75 | , error: function (err) { $('#tweets li.loading').addClass('error').text("Twitter's busted"); } 76 | , success: function(data) { showTwitterFeed(data.slice(0, count), user); } 77 | }) 78 | } 79 | -------------------------------------------------------------------------------- /assets/jwplayer/glow/glow.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 |