Skip to content

Commit

Permalink
use local js file instead of CDN ones
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastien Windal committed Mar 28, 2013
1 parent 66ebeec commit 8516f55
Show file tree
Hide file tree
Showing 6 changed files with 183 additions and 13 deletions.
6 changes: 0 additions & 6 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,5 @@
<body ng:app="JScribbleApp" ng-controller="MainCtrl">





<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.5/angular.min.js"></script>


</body>
</html>
4 changes: 2 additions & 2 deletions public/js/DrawCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function DrawCtrl($scope, JScribbleService) {
$scope.changeColor = function(color) {

$scope.selectedColor = color;

for (c in $scope.scribble.possibleColors) {
if ($scope.scribble.possibleColors[c] != $scope.selectedColor) {
$scope.scribble.possibleColors[c].isSelected = false;
Expand Down Expand Up @@ -72,7 +72,7 @@ app.directive('drawingBoard', function() {
};

scope.handleMouseMove = function() {

if (!scope.strokeSize)
scope.strokeSize = 5;
if (!scope.penColor)
Expand Down
7 changes: 7 additions & 0 deletions public/js/angular-cookies.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*
AngularJS v1.1.3
(c) 2010-2012 Google, Inc. http://angularjs.org
License: MIT
*/
(function(m,f,l){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,c){var b={},g={},h,i=!1,j=f.copy,k=f.isUndefined;c.addPollFn(function(){var a=c.cookies();h!=a&&(h=a,j(a,g),j(a,b),i&&d.$apply())})();i=!0;d.$watch(function(){var a,e,d;for(a in g)k(b[a])&&c.cookies(a,l);for(a in b)e=b[a],f.isString(e)?e!==g[a]&&(c.cookies(a,e),d=!0):f.isDefined(g[a])?b[a]=g[a]:delete b[a];if(d)for(a in e=c.cookies(),b)b[a]!==e[a]&&(k(e[a])?delete b[a]:b[a]=e[a])});return b}]).factory("$cookieStore",
["$cookies",function(d){return{get:function(c){return f.fromJson(d[c])},put:function(c,b){d[c]=f.toJson(b)},remove:function(c){delete d[c]}}}])})(window,window.angular);
Loading

0 comments on commit 8516f55

Please sign in to comment.