Permalink
Browse files

CanJS: Partly moved to Bower components

Refs #475
  • Loading branch information...
1 parent 37bf12f commit 1afd8183a2d256272a3e9f7696cfa16e1dc2fbe2 @passy passy committed Mar 13, 2013

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,23 @@
+(function () {
+ 'use strict';
+
+ if (location.hostname === 'todomvc.com') {
+ var _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 appendSourceLink() {
+ 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';
+
+ if (footer) {
+ sourceLink.href = urlBase + location.pathname;
+ sourceLink.appendChild(document.createTextNode('Check out the source'));
+ paragraph.appendChild(sourceLink);
+ footer.appendChild(paragraph);
+ }
+ }
+
+ appendSourceLink();
+})();
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,12 @@
+{
+ "name": "todomvc-common",
+ "version": "0.1.1",
+ "gitHead": "639b3e310c9fd6970e8ccda893ad564915e715f5",
+ "_id": "todomvc-common@0.1.1",
+ "readme": "ERROR: No README.md file found!",
+ "description": "ERROR: No README.md file found!",
+ "repository": {
+ "type": "git",
+ "url": "git://github.com/tastejs/todomvc-common.git"
+ }
+}
@@ -4,24 +4,21 @@
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>CanJS • TodoMVC</title>
- <link rel="stylesheet" href="../../assets/base.css">
- <!--[if IE]>
- <script src="../../assets/ie.js"></script>
- <![endif]-->
+ <link rel="stylesheet" href="components/todomvc-common/base.css">
</head>
<body>
<section id="todoapp">
</section>
- <div id="info">
+ <footer id="info">
<p>Double-click to edit a todo</p>
<p>Written by <a href="http://bitovi.com">Bitovi</a></p>
<p>Part of <a href="http://todomvc.com">TodoMVC</a></p>
- </div>
+ </footer>
- <script src="../../assets/jquery.min.js"></script>
- <script src="../../assets/base.js"></script>
+ <script src="components/jquery/jquery.js"></script>
+ <script src="components/todomvc-common/base.js"></script>
- <script src="js/lib/can.jquery-1.1.0.min.js"></script>
+ <script src="components/canjs/can.jquery.min.js"></script>
<script src="js/lib/can.mustache.min.js"></script>
<script src="js/lib/can.localstorage.min.js"></script>
<script src="js/models/todo.js"></script>

Large diffs are not rendered by default.

Oops, something went wrong.

0 comments on commit 1afd818

Please sign in to comment.