From 609f6cc11acb522bec6a3f7c0a6c4559f5583062 Mon Sep 17 00:00:00 2001 From: Stephen Sawchuk Date: Sat, 25 May 2013 16:58:42 -0400 Subject: [PATCH] updated todomvc-common to 0.1.7. --- .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../public/components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../client/code/libs/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ .../bower_components/todomvc-common/base.js | 25 +------------------ 58 files changed, 58 insertions(+), 1392 deletions(-) diff --git a/architecture-examples/agilityjs/bower_components/todomvc-common/base.js b/architecture-examples/agilityjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/agilityjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/agilityjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js b/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js +++ b/architecture-examples/angularjs-perf/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/angularjs/bower_components/todomvc-common/base.js b/architecture-examples/angularjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/angularjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/angularjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/backbone/bower_components/todomvc-common/base.js b/architecture-examples/backbone/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/backbone/bower_components/todomvc-common/base.js +++ b/architecture-examples/backbone/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/canjs/bower_components/todomvc-common/base.js b/architecture-examples/canjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/canjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/canjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/closure/bower_components/todomvc-common/base.js b/architecture-examples/closure/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/closure/bower_components/todomvc-common/base.js +++ b/architecture-examples/closure/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/dart/web/bower_components/todomvc-common/base.js b/architecture-examples/dart/web/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/dart/web/bower_components/todomvc-common/base.js +++ b/architecture-examples/dart/web/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/dojo/bower_components/todomvc-common/base.js b/architecture-examples/dojo/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/dojo/bower_components/todomvc-common/base.js +++ b/architecture-examples/dojo/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/emberjs/bower_components/todomvc-common/base.js b/architecture-examples/emberjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/emberjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/emberjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/gwt/bower_components/todomvc-common/base.js b/architecture-examples/gwt/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/gwt/bower_components/todomvc-common/base.js +++ b/architecture-examples/gwt/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/jquery/bower_components/todomvc-common/base.js b/architecture-examples/jquery/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/jquery/bower_components/todomvc-common/base.js +++ b/architecture-examples/jquery/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/knockback/bower_components/todomvc-common/base.js b/architecture-examples/knockback/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/knockback/bower_components/todomvc-common/base.js +++ b/architecture-examples/knockback/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js b/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js +++ b/architecture-examples/knockoutjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/maria/bower_components/todomvc-common/base.js b/architecture-examples/maria/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/maria/bower_components/todomvc-common/base.js +++ b/architecture-examples/maria/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/spine/bower_components/todomvc-common/base.js b/architecture-examples/spine/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/spine/bower_components/todomvc-common/base.js +++ b/architecture-examples/spine/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/architecture-examples/yui/bower_components/todomvc-common/base.js b/architecture-examples/yui/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/architecture-examples/yui/bower_components/todomvc-common/base.js +++ b/architecture-examples/yui/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/dependency-examples/backbone_require/bower_components/todomvc-common/base.js b/dependency-examples/backbone_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/dependency-examples/backbone_require/bower_components/todomvc-common/base.js +++ b/dependency-examples/backbone_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/dependency-examples/flight/bower_components/todomvc-common/base.js b/dependency-examples/flight/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/dependency-examples/flight/bower_components/todomvc-common/base.js +++ b/dependency-examples/flight/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js b/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/ariatemplates/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js b/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/backbone.xmpp/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js b/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/backbone_marionette/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/batman/bower_components/todomvc-common/base.js b/labs/architecture-examples/batman/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/batman/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/batman/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js b/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/cujo/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/derby/public/components/todomvc-common/base.js b/labs/architecture-examples/derby/public/components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/derby/public/components/todomvc-common/base.js +++ b/labs/architecture-examples/derby/public/components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js b/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/dermis/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js b/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/dijon/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js b/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/duel/src/main/webapp/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js b/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/epitome/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/extjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/extjs_deftjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js b/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/kendo/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js b/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/knockoutjs_classBindingProvider/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js b/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/meteor/client/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/montage/bower_components/todomvc-common/base.js b/labs/architecture-examples/montage/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/montage/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/montage/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js b/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/o_O/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/olives/bower_components/todomvc-common/base.js b/labs/architecture-examples/olives/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/olives/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/olives/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/plastronjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js b/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/puremvc/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/rappidjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js b/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/sammyjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js b/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/serenadejs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js b/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js +++ b/labs/architecture-examples/socketstream/client/code/libs/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/somajs/bower_components/todomvc-common/base.js b/labs/architecture-examples/somajs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/somajs/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/somajs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js b/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/stapes/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js b/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/thorax/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js b/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/typescript-angular/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js b/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js +++ b/labs/architecture-examples/typescript-backbone/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/angularjs_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/backbone_marionette_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/canjs_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js b/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/chaplin-brunch/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js b/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/enyo_backbone/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/knockoutjs_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js b/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/stapes_require/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js b/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/thorax_lumbar/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/labs/dependency-examples/troopjs/bower_components/todomvc-common/base.js b/labs/dependency-examples/troopjs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/labs/dependency-examples/troopjs/bower_components/todomvc-common/base.js +++ b/labs/dependency-examples/troopjs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/template/bower_components/todomvc-common/base.js b/template/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/template/bower_components/todomvc-common/base.js +++ b/template/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })(); diff --git a/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js b/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js index 56f3b7f8c4..1288980675 100644 --- a/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js +++ b/vanilla-examples/vanillajs/bower_components/todomvc-common/base.js @@ -115,28 +115,6 @@ window._gaq = [['_setAccount','UA-31081062-1'],['_trackPageview']];(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];g.src='//www.google-analytics.com/ga.js';s.parentNode.insertBefore(g,s)}(document,'script')); } - function getSourcePath() { - // If accessed via tastejs.github.io/todomvc/, strip the project path. - if (location.hostname.indexOf('github.io') > 0) { - return location.pathname.replace(/todomvc\//, ''); - } - return location.pathname; - } - - function appendSourceLink() { - var sourceLink = document.createElement('a'); - var paragraph = document.createElement('p'); - var footer = document.getElementById('info'); - var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages'; - - if (footer) { - sourceLink.href = urlBase + getSourcePath(); - sourceLink.appendChild(document.createTextNode('Check out the source')); - paragraph.appendChild(sourceLink); - footer.appendChild(paragraph); - } - } - function redirect() { if (location.hostname === 'tastejs.github.io') { location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com'); @@ -219,10 +197,9 @@ }); document.body.className = (document.body.className + ' learn-bar').trim(); - document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); + document.body.insertAdjacentHTML('afterBegin', aside.outerHTML); }; - appendSourceLink(); redirect(); getFile('learn.json', Learn); })();