Skip to content

Commit 7c47e28

Browse files
committed
First commit.
1 parent 1976315 commit 7c47e28

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

83 files changed

+137145
-0
lines changed

404.html

+157
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,157 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8">
5+
<title>Page Not Found :(</title>
6+
<style>
7+
::-moz-selection {
8+
background: #b3d4fc;
9+
text-shadow: none;
10+
}
11+
12+
::selection {
13+
background: #b3d4fc;
14+
text-shadow: none;
15+
}
16+
17+
html {
18+
padding: 30px 10px;
19+
font-size: 20px;
20+
line-height: 1.4;
21+
color: #737373;
22+
background: #f0f0f0;
23+
-webkit-text-size-adjust: 100%;
24+
-ms-text-size-adjust: 100%;
25+
}
26+
27+
html,
28+
input {
29+
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
30+
}
31+
32+
body {
33+
max-width: 500px;
34+
_width: 500px;
35+
padding: 30px 20px 50px;
36+
border: 1px solid #b3b3b3;
37+
border-radius: 4px;
38+
margin: 0 auto;
39+
box-shadow: 0 1px 10px #a7a7a7, inset 0 1px 0 #fff;
40+
background: #fcfcfc;
41+
}
42+
43+
h1 {
44+
margin: 0 10px;
45+
font-size: 50px;
46+
text-align: center;
47+
}
48+
49+
h1 span {
50+
color: #bbb;
51+
}
52+
53+
h3 {
54+
margin: 1.5em 0 0.5em;
55+
}
56+
57+
p {
58+
margin: 1em 0;
59+
}
60+
61+
ul {
62+
padding: 0 0 0 40px;
63+
margin: 1em 0;
64+
}
65+
66+
.container {
67+
max-width: 380px;
68+
_width: 380px;
69+
margin: 0 auto;
70+
}
71+
72+
/* google search */
73+
74+
#goog-fixurl ul {
75+
list-style: none;
76+
padding: 0;
77+
margin: 0;
78+
}
79+
80+
#goog-fixurl form {
81+
margin: 0;
82+
}
83+
84+
#goog-wm-qt,
85+
#goog-wm-sb {
86+
border: 1px solid #bbb;
87+
font-size: 16px;
88+
line-height: normal;
89+
vertical-align: top;
90+
color: #444;
91+
border-radius: 2px;
92+
}
93+
94+
#goog-wm-qt {
95+
width: 220px;
96+
height: 20px;
97+
padding: 5px;
98+
margin: 5px 10px 0 0;
99+
box-shadow: inset 0 1px 1px #ccc;
100+
}
101+
102+
#goog-wm-sb {
103+
display: inline-block;
104+
height: 32px;
105+
padding: 0 10px;
106+
margin: 5px 0 0;
107+
white-space: nowrap;
108+
cursor: pointer;
109+
background-color: #f5f5f5;
110+
background-image: -webkit-linear-gradient(rgba(255,255,255,0), #f1f1f1);
111+
background-image: -moz-linear-gradient(rgba(255,255,255,0), #f1f1f1);
112+
background-image: -ms-linear-gradient(rgba(255,255,255,0), #f1f1f1);
113+
background-image: -o-linear-gradient(rgba(255,255,255,0), #f1f1f1);
114+
-webkit-appearance: none;
115+
-moz-appearance: none;
116+
appearance: none;
117+
*overflow: visible;
118+
*display: inline;
119+
*zoom: 1;
120+
}
121+
122+
#goog-wm-sb:hover,
123+
#goog-wm-sb:focus {
124+
border-color: #aaa;
125+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
126+
background-color: #f8f8f8;
127+
}
128+
129+
#goog-wm-qt:hover,
130+
#goog-wm-qt:focus {
131+
border-color: #105cb6;
132+
outline: 0;
133+
color: #222;
134+
}
135+
136+
input::-moz-focus-inner {
137+
padding: 0;
138+
border: 0;
139+
}
140+
</style>
141+
</head>
142+
<body>
143+
<div class="container">
144+
<h1>Not found <span>:(</span></h1>
145+
<p>Sorry, but the page you were trying to view does not exist.</p>
146+
<p>It looks like this was the result of either:</p>
147+
<ul>
148+
<li>a mistyped address</li>
149+
<li>an out-of-date link</li>
150+
</ul>
151+
<script>
152+
var GOOG_FIXURL_LANG = (navigator.language || '').slice(0,2),GOOG_FIXURL_SITE = location.host;
153+
</script>
154+
<script src="//linkhelp.clients.google.com/tbproxy/lh/wm/fixurl.js"></script>
155+
</div>
156+
</body>
157+
</html>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "angular-cookies",
3+
"version": "1.0.8",
4+
"main": "./angular-cookies.js",
5+
"dependencies": {
6+
"angular": "1.0.8"
7+
},
8+
"homepage": "https://github.com/angular/bower-angular-cookies",
9+
"_release": "1.0.8",
10+
"_resolution": {
11+
"type": "version",
12+
"tag": "v1.0.8",
13+
"commit": "656426cc1d2bff688ae8d2dd0761dc165be84014"
14+
},
15+
"_source": "git://github.com/angular/bower-angular-cookies.git",
16+
"_target": "~1.0.7",
17+
"_originalSource": "angular-cookies"
18+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
bower-angular-cookies
2+
=====================
3+
4+
angular-cookies bower repo
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,196 @@
1+
/**
2+
* @license AngularJS v1.0.8
3+
* (c) 2010-2012 Google, Inc. http://angularjs.org
4+
* License: MIT
5+
*/
6+
(function(window, angular, undefined) {
7+
'use strict';
8+
9+
/**
10+
* @ngdoc overview
11+
* @name ngCookies
12+
*/
13+
14+
15+
angular.module('ngCookies', ['ng']).
16+
/**
17+
* @ngdoc object
18+
* @name ngCookies.$cookies
19+
* @requires $browser
20+
*
21+
* @description
22+
* Provides read/write access to browser's cookies.
23+
*
24+
* Only a simple Object is exposed and by adding or removing properties to/from
25+
* this object, new cookies are created/deleted at the end of current $eval.
26+
*
27+
* # Installation
28+
* To use $cookies make sure you have included the `angular-cookies.js` that comes in Angular
29+
* package. You can also find this file on Google CDN, bower as well as at
30+
* {@link http://code.angularjs.org/ code.angularjs.org}.
31+
*
32+
* Finally load the module in your application:
33+
*
34+
* angular.module('app', ['ngCookies']);
35+
*
36+
* and you are ready to get started!
37+
*
38+
* @example
39+
<doc:example>
40+
<doc:source>
41+
<script>
42+
function ExampleController($cookies) {
43+
// Retrieving a cookie
44+
var favoriteCookie = $cookies.myFavorite;
45+
// Setting a cookie
46+
$cookies.myFavorite = 'oatmeal';
47+
}
48+
</script>
49+
</doc:source>
50+
</doc:example>
51+
*/
52+
factory('$cookies', ['$rootScope', '$browser', function ($rootScope, $browser) {
53+
var cookies = {},
54+
lastCookies = {},
55+
lastBrowserCookies,
56+
runEval = false,
57+
copy = angular.copy,
58+
isUndefined = angular.isUndefined;
59+
60+
//creates a poller fn that copies all cookies from the $browser to service & inits the service
61+
$browser.addPollFn(function() {
62+
var currentCookies = $browser.cookies();
63+
if (lastBrowserCookies != currentCookies) { //relies on browser.cookies() impl
64+
lastBrowserCookies = currentCookies;
65+
copy(currentCookies, lastCookies);
66+
copy(currentCookies, cookies);
67+
if (runEval) $rootScope.$apply();
68+
}
69+
})();
70+
71+
runEval = true;
72+
73+
//at the end of each eval, push cookies
74+
//TODO: this should happen before the "delayed" watches fire, because if some cookies are not
75+
// strings or browser refuses to store some cookies, we update the model in the push fn.
76+
$rootScope.$watch(push);
77+
78+
return cookies;
79+
80+
81+
/**
82+
* Pushes all the cookies from the service to the browser and verifies if all cookies were stored.
83+
*/
84+
function push() {
85+
var name,
86+
value,
87+
browserCookies,
88+
updated;
89+
90+
//delete any cookies deleted in $cookies
91+
for (name in lastCookies) {
92+
if (isUndefined(cookies[name])) {
93+
$browser.cookies(name, undefined);
94+
}
95+
}
96+
97+
//update all cookies updated in $cookies
98+
for(name in cookies) {
99+
value = cookies[name];
100+
if (!angular.isString(value)) {
101+
if (angular.isDefined(lastCookies[name])) {
102+
cookies[name] = lastCookies[name];
103+
} else {
104+
delete cookies[name];
105+
}
106+
} else if (value !== lastCookies[name]) {
107+
$browser.cookies(name, value);
108+
updated = true;
109+
}
110+
}
111+
112+
//verify what was actually stored
113+
if (updated){
114+
updated = false;
115+
browserCookies = $browser.cookies();
116+
117+
for (name in cookies) {
118+
if (cookies[name] !== browserCookies[name]) {
119+
//delete or reset all cookies that the browser dropped from $cookies
120+
if (isUndefined(browserCookies[name])) {
121+
delete cookies[name];
122+
} else {
123+
cookies[name] = browserCookies[name];
124+
}
125+
updated = true;
126+
}
127+
}
128+
}
129+
}
130+
}]).
131+
132+
133+
/**
134+
* @ngdoc object
135+
* @name ngCookies.$cookieStore
136+
* @requires $cookies
137+
*
138+
* @description
139+
* Provides a key-value (string-object) storage, that is backed by session cookies.
140+
* Objects put or retrieved from this storage are automatically serialized or
141+
* deserialized by angular's toJson/fromJson.
142+
* @example
143+
*/
144+
factory('$cookieStore', ['$cookies', function($cookies) {
145+
146+
return {
147+
/**
148+
* @ngdoc method
149+
* @name ngCookies.$cookieStore#get
150+
* @methodOf ngCookies.$cookieStore
151+
*
152+
* @description
153+
* Returns the value of given cookie key
154+
*
155+
* @param {string} key Id to use for lookup.
156+
* @returns {Object} Deserialized cookie value.
157+
*/
158+
get: function(key) {
159+
var value = $cookies[key];
160+
return value ? angular.fromJson(value) : value;
161+
},
162+
163+
/**
164+
* @ngdoc method
165+
* @name ngCookies.$cookieStore#put
166+
* @methodOf ngCookies.$cookieStore
167+
*
168+
* @description
169+
* Sets a value for given cookie key
170+
*
171+
* @param {string} key Id for the `value`.
172+
* @param {Object} value Value to be stored.
173+
*/
174+
put: function(key, value) {
175+
$cookies[key] = angular.toJson(value);
176+
},
177+
178+
/**
179+
* @ngdoc method
180+
* @name ngCookies.$cookieStore#remove
181+
* @methodOf ngCookies.$cookieStore
182+
*
183+
* @description
184+
* Remove given cookie
185+
*
186+
* @param {string} key Id of the key-value pair to delete.
187+
*/
188+
remove: function(key) {
189+
delete $cookies[key];
190+
}
191+
};
192+
193+
}]);
194+
195+
196+
})(window, window.angular);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/*
2+
AngularJS v1.0.8
3+
(c) 2010-2012 Google, Inc. http://angularjs.org
4+
License: MIT
5+
*/
6+
(function(m,f,l){'use strict';f.module("ngCookies",["ng"]).factory("$cookies",["$rootScope","$browser",function(d,b){var c={},g={},h,i=!1,j=f.copy,k=f.isUndefined;b.addPollFn(function(){var a=b.cookies();h!=a&&(h=a,j(a,g),j(a,c),i&&d.$apply())})();i=!0;d.$watch(function(){var a,e,d;for(a in g)k(c[a])&&b.cookies(a,l);for(a in c)e=c[a],f.isString(e)?e!==g[a]&&(b.cookies(a,e),d=!0):f.isDefined(g[a])?c[a]=g[a]:delete c[a];if(d)for(a in e=b.cookies(),c)c[a]!==e[a]&&(k(e[a])?delete c[a]:c[a]=e[a])});return c}]).factory("$cookieStore",
7+
["$cookies",function(d){return{get:function(b){return(b=d[b])?f.fromJson(b):b},put:function(b,c){d[b]=f.toJson(c)},remove:function(b){delete d[b]}}}])})(window,window.angular);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "angular-cookies",
3+
"version": "1.0.8",
4+
"main": "./angular-cookies.js",
5+
"dependencies": {
6+
"angular": "1.0.8"
7+
}
8+
}

0 commit comments

Comments
 (0)