Skip to content

Commit

Permalink
Update paths to tastejs/todomvc repo
Browse files Browse the repository at this point in the history
  • Loading branch information
sindresorhus committed May 11, 2013
1 parent e38f482 commit 4ad2192
Show file tree
Hide file tree
Showing 33 changed files with 137 additions and 145 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
14 changes: 6 additions & 8 deletions architecture-examples/dart/web/assets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
'use strict';

if (location.hostname === 'todomvc.com') {
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'));
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 addyosmani.github.com/todomvc/, strip the project
// path.
if (location.hostname.indexOf('github.com') > 0) {
// 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;
Expand All @@ -18,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -29,9 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.com') {
location.href = location.href.replace('addyosmani.github.com/todomvc',
'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

function getSourcePath() {
// If accessed via addyosmani.github.io/todomvc/, strip the project path.
// If accessed via tastejs.github.io/todomvc/, strip the project path.
if (location.hostname.indexOf('github.io') > 0) {
return location.pathname.replace(/todomvc\//, '');
}
Expand All @@ -17,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -28,8 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.io') {
location.href = location.href.replace('addyosmani.github.io/todomvc', 'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
14 changes: 6 additions & 8 deletions assets/base.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
'use strict';

if (location.hostname === 'todomvc.com') {
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'));
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 addyosmani.github.com/todomvc/, strip the project
// path.
if (location.hostname.indexOf('github.com') > 0) {
// 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;
Expand All @@ -18,7 +17,7 @@
var sourceLink = document.createElement('a');
var paragraph = document.createElement('p');
var footer = document.getElementById('info');
var urlBase = 'https://github.com/addyosmani/todomvc/tree/gh-pages';
var urlBase = 'https://github.com/tastejs/todomvc/tree/gh-pages';

if (footer) {
sourceLink.href = urlBase + getSourcePath();
Expand All @@ -29,9 +28,8 @@
}

function redirect() {
if (location.hostname === 'addyosmani.github.com') {
location.href = location.href.replace('addyosmani.github.com/todomvc',
'todomvc.com');
if (location.hostname === 'tastejs.github.io') {
location.href = location.href.replace('tastejs.github.io/todomvc', 'todomvc.com');
}
}

Expand Down
Loading

0 comments on commit 4ad2192

Please sign in to comment.