286 files changed, 22011 insertions, 5821 deletions
diff --git a/frontend/gamma/css/mobile.css b/frontend/gamma/css/mobile.css index 8c4c1bf..36b2b21 100644 --- a/frontend/gamma/css/mobile.css +++ b/frontend/gamma/css/mobile.css | |||
@@ -1,2571 +1,6191 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
26 | /* | 24 | article, |
27 | 25 | aside, | |
28 | Color list: | 26 | details, |
29 | - login box: | 27 | figcaption, |
30 | light#ff9955 | 28 | figure, |
31 | dark#ff6622 | 29 | footer, |
32 | - login button: | 30 | header, |
33 | regular#dd5500 | 31 | hgroup, |
34 | hover#773311 | 32 | nav, |
35 | - login translations: | 33 | section { |
36 | box: #cc6622; | 34 | display: block; |
37 | not-selected: | 35 | } |
38 | color: #ddaa99 | 36 | audio, |
39 | background:#994422 | 37 | canvas, |
40 | selected: #772211; | 38 | video { |
41 | */ | 39 | display: inline-block; |
40 | *display: inline; | ||
41 | *zoom: 1; | ||
42 | } | ||
43 | audio:not([controls]) { | ||
44 | display: none; | ||
45 | } | ||
42 | html { | 46 | html { |
43 | height: 100%; | 47 | font-size: 100%; |
44 | -webkit-text-size-adjust: none; | 48 | -webkit-text-size-adjust: 100%; |
45 | -ms-text-size-adjust: none; | 49 | -ms-text-size-adjust: 100%; |
46 | } | 50 | } |
47 | body { | 51 | a:focus { |
48 | font-family: Helvetica-Neue, Helvetica, Arial, Geneva, sans-serif; | 52 | outline: thin dotted #333; |
49 | margin: 0px; | 53 | outline: 5px auto -webkit-focus-ring-color; |
54 | outline-offset: -2px; | ||
50 | } | 55 | } |
51 | .ellipsis { | 56 | a:hover, |
52 | text-overflow: ellipsis; | 57 | a:active { |
53 | overflow: hidden; | 58 | outline: 0; |
54 | white-space: nowrap; | ||
55 | } | 59 | } |
56 | /** | 60 | sub, |
57 | * Background noise recipe | 61 | sup { |
58 | * | 62 | position: relative; |
59 | * This recipe use a sass function to generate a .png file | 63 | font-size: 75%; |
60 | * | 64 | line-height: 0; |
61 | * Inspired by a jQuery plugin "Noisy" by Daniel Rapp @DanielRapp | 65 | vertical-align: baseline; |
62 | * @link https://github.com/DanielRapp/Noisy | 66 | } |
63 | * | 67 | sup { |
64 | * Converted using Sass by Aaron Russell @aaronrussell & Philipp Bosch @philippbosch | 68 | top: -0.5em; |
65 | * @link https://gist.github.com/1021332 | 69 | } |
66 | * | 70 | sub { |
67 | * Ported to a sass gem by Antti Salonen @antsa | 71 | bottom: -0.25em; |
68 | * @link https://github.com/antsa/sassy_noise | 72 | } |
69 | * | 73 | img { |
70 | * Mixin: background-noise | 74 | /* Responsive images (ensure images don't scale beyond their parents) */ |
71 | * Function: background_noise | ||
72 | * | ||
73 | * @author Daniel Rapp @DanielRapp | ||
74 | * @author Aaron Russell @aaronrussell | ||
75 | * @author Philipp Bosch @philippbosch | ||
76 | * @author Antti Salonen @antsa | ||
77 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
78 | */ | ||
79 | /** | ||
80 | * | ||
81 | * @class Gradients | ||
82 | * @author David Kaneda http://www.davidkaneda.com/ | ||
83 | * | ||
84 | */ | ||
85 | /** | ||
86 | * Adds a background gradient into a specified selector. | ||
87 | * | ||
88 | * @include background-gradient(#444, 'glossy'); | ||
89 | * | ||
90 | * You can also use color-stops if you want full control of the gradient: | ||
91 | * | ||
92 | * @include background-gradient(#444, color-stops(#333, #222, #111)); | ||
93 | * | ||
94 | * @param {color} $bg-color | ||
95 | * The base color of the gradient. | ||
96 | * | ||
97 | * @param {string/list} $type | ||
98 | * The style of the gradient, one of five pre-defined options: matte, bevel, glossy, recessed, or linear: | ||
99 | * | ||
100 | * @include background-gradient(red, 'glossy'); | ||
101 | * | ||
102 | * It can also accept a list of color-stop values:; | ||
103 | * | ||
104 | * @include background-gradient(black, color-stops(#333, #111, #000)); | ||
105 | * | ||
106 | * @param {string} $direction | ||
107 | * The direction of the gradient. | ||
108 | */ | ||
109 | /** | ||
110 | * Blueprint grid background pattern | ||
111 | * | ||
112 | * @link http://lea.verou.me/css3patterns/#blueprint-grid | ||
113 | * | ||
114 | * @author Lea Verou http://lea.verou.me/ for the original pattern | ||
115 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx for the sass mixin | ||
116 | */ | ||
117 | /** | ||
118 | * Background overlay inspired by Google Chrome modal overlay | ||
119 | * | ||
120 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | ||
121 | */ | ||
122 | /** | ||
123 | * Striped background pattern | ||
124 | * | ||
125 | * @link http://lea.verou.me/css3patterns/ | ||
126 | * | ||
127 | * @author Lea Verou http://lea.verou.me/ for the original pattern | ||
128 | * @author David Kaneda http://www.davidkaneda.com @davidkaneda for the sass mixin | ||
129 | */ | ||
130 | /** | ||
131 | * | ||
132 | * Before compass 0.11.5, you need to add | ||
133 | * Compass::BrowserSupport.add_support("repeating-linear-gradient", "webkit", "moz", "o", "ms") | ||
134 | * To your configuration (config.rb) | ||
135 | * @see https://github.com/chriseppstein/compass/issues/401 | ||
136 | * | ||
137 | * @link http://lea.verou.me/css3patterns/#tartan | ||
138 | * | ||
139 | * @author Marta Armada http://swwweet.com/ for the original pattern | ||
140 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx for the sass mixin | ||
141 | */ | ||
142 | /** | ||
143 | * Carbon Fiber background pattern | ||
144 | * | ||
145 | * @author Lea Verou http://lea.verou.me/ for the original pattern | ||
146 | * @author David Kaneda http://www.davidkaneda.com/ for the Sass mixin | ||
147 | * | ||
148 | * @link http://lea.verou.me/css3patterns/ | ||
149 | * | ||
150 | */ | ||
151 | /** | ||
152 | * Normalize.css | ||
153 | * Opposite approche from CSS reset | ||
154 | * | ||
155 | * Based on normalize.css commit 9576d48fc234c5224b1fc4dccba2f5965243843d | ||
156 | * | ||
157 | * @link http://github.com/necolas/normalize.css | ||
158 | */ | ||
159 | /* normalize.css 2011-07-12T10:51 UTC · http://github.com/necolas/normalize.css */ | ||
160 | /* ============================================================================= | ||
161 | HTML5 element display | ||
162 | ========================================================================== */ | ||
163 | /* ============================================================================= | ||
164 | Base | ||
165 | ========================================================================== */ | ||
166 | /* ============================================================================= | ||
167 | Links | ||
168 | ========================================================================== */ | ||
169 | /* ============================================================================= | ||
170 | Typography | ||
171 | ========================================================================== */ | ||
172 | /* ============================================================================= | ||
173 | Lists | ||
174 | ========================================================================== */ | ||
175 | /* ============================================================================= | ||
176 | Embedded content | ||
177 | ========================================================================== */ | ||
178 | /* ============================================================================= | ||
179 | Figures | ||
180 | ========================================================================== */ | ||
181 | /* ============================================================================= | ||
182 | Forms | ||
183 | ========================================================================== */ | ||
184 | /* ============================================================================= | ||
185 | Tables | ||
186 | ========================================================================== */ | ||
187 | /** | ||
188 | * | ||
189 | * @author David Kaneda - http://www.davidkaneda.com | ||
190 | * | ||
191 | */ | ||
192 | /** | ||
193 | * @class Color | ||
194 | */ | ||
195 | /** | ||
196 | * Returns the brightness (out of 100) of a specified color. | ||
197 | * @todo explain why this is useful | ||
198 | * @param {color} $color The color you want the brightness value of | ||
199 | * @return {measurement} | ||
200 | */ | ||
201 | /** | ||
202 | * Returns the luminosity for a specified color | ||
203 | * @todo explain why this is useful | ||
204 | * @param {color} The color to check | ||
205 | * @return {measurement} | ||
206 | */ | ||
207 | /** | ||
208 | * Glass effect | ||
209 | * Use this on image for better effect render | ||
210 | * | ||
211 | * Inspired from Simurai's IMDB redisign | ||
212 | * | ||
213 | * @link http://lab.simurai.com/redesign/imdb | ||
214 | * @thanks Simurai @simurai | ||
215 | */ | ||
216 | /** | ||
217 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
218 | * IE8 need to have :before and not ::before | ||
219 | * So use only : and not :: if you want to support IE8 | ||
220 | * IE9 Webkit Firefox Opera understand :: | ||
221 | */ | ||
222 | /** | ||
223 | * Scotch tape effect with pure CSS | ||
224 | * | ||
225 | * @thanks Nick La @nickla for original concept | ||
226 | * @link http://webdesignerwall.com/tutorials/css3-image-styles | ||
227 | * | ||
228 | * @author David Kaneda http://www.davidkaneda.com | ||
229 | * | ||
230 | */ | ||
231 | /** | ||
232 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
233 | * IE8 need to have :before and not ::before | ||
234 | * So use only : and not :: if you want to support IE8 | ||
235 | * IE9 Webkit Firefox Opera understand :: | ||
236 | */ | ||
237 | /** | ||
238 | * Corner folded with pure CSS | ||
239 | * | ||
240 | * Known support: Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 9+. | ||
241 | * IE8 is not supported because it not render properly box-shadow and | ||
242 | * pseudo element should be selected with ::element and not :element | ||
243 | * | ||
244 | * @thanks Nicolas Gallagher @necolas | ||
245 | * @link http://nicolasgallagher.com/pure-css-folded-corner-effect/demo/ | ||
246 | * @todo Nix in .4 | ||
247 | */ | ||
248 | /** | ||
249 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
250 | * IE8 need to have :before and not ::before | ||
251 | * So use only : and not :: if you want to support IE8 | ||
252 | * IE9 Webkit Firefox Opera understand :: | ||
253 | */ | ||
254 | /** | ||
255 | * Corner folded with pure CSS | ||
256 | * | ||
257 | * Known support: Firefox 3.5+, Chrome 4+, Safari 4+, Opera 10+, IE 9+. | ||
258 | * IE8 is not supported because it not render properly box-shadow and | ||
259 | * pseudo element should be selected with ::element and not :element | ||
260 | * | ||
261 | * @thanks Nicolas Gallagher @necolas | ||
262 | * @link http://nicolasgallagher.com/pure-css-folded-corner-effect/demo/ | ||
263 | */ | ||
264 | /** | ||
265 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
266 | * IE8 need to have :before and not ::before | ||
267 | * So use only : and not :: if you want to support IE8 | ||
268 | * IE9 Webkit Firefox Opera understand :: | ||
269 | */ | ||
270 | /** | ||
271 | * Form element inline mixin | ||
272 | * This mixin allow you to have a label inline with your input | ||
273 | * It's simply based on inline-block behavior | ||
274 | * | ||
275 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
276 | */ | ||
277 | /** | ||
278 | * Vertical alignement for page | ||
279 | * Inspired by http://css-tricks.com/snippets/css/center-div-with-dynamic-height/ | ||
280 | * | ||
281 | * Usage: | ||
282 | * | ||
283 | * SCSS | ||
284 | * @include vertical-align-requirement; | ||
285 | * .v-align-container { @include vertical-align-container } | ||
286 | * .v-align-content-container { @include vertical-align-content-container } | ||
287 | * .v-align-content { @include vertical-align-content } | ||
288 | * | ||
289 | * HTML | ||
290 | * <body> | ||
291 | * <div class="v-align-container"> | ||
292 | * <div class="v-align-content-container"> | ||
293 | * <div class="v-align-content"> | ||
294 | * Your content ! | ||
295 | * </div> | ||
296 | * </div> | ||
297 | * </div> | ||
298 | * </body> | ||
299 | * | ||
300 | * @thanks Chris Coyier @chriscoyier | ||
301 | * @autor Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
302 | */ | ||
303 | /** | ||
304 | * Media Queries Mixins | ||
305 | * | ||
306 | * @todo Do we have to take care of print ? | ||
307 | * | ||
308 | * @require sass-3.2 (you need eventually to do "sudo gem install sass --pre") | ||
309 | * @author Maxime Thirouin <maxime.thirouin@gmail.com> | ||
310 | */ | ||
311 | /* | ||
312 | $media-query-width-big: 1280px; | ||
313 | $media-query-width-medium: 960px; | ||
314 | $media-query-width-small: 480px; | ||
315 | */ | ||
316 | /** | ||
317 | * Drop shadow mixins from Nicolas Gallagher demo | ||
318 | * | ||
319 | * @thanks Nicolas Gallagher @necolas, @simurai, @cameronmoll, @matthamm | ||
320 | * | ||
321 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
322 | */ | ||
323 | /** | ||
324 | * Drop shadow curled | ||
325 | * | ||
326 | * @thanks Nicolas Gallagher @necolas | ||
327 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
328 | */ | ||
329 | /** | ||
330 | * Drop shadow curved | ||
331 | * | ||
332 | * @thanks Nicolas Gallagher @necolas | ||
333 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
334 | */ | ||
335 | /** | ||
336 | * Drop shadow flying | ||
337 | * | ||
338 | * @thanks Geoffrey Crofte @geoffrey_crofte | ||
339 | * @link http://www.creativejuiz.fr/trytotry/css3-box-shadow-after-before/ | ||
340 | */ | ||
341 | /** | ||
342 | * Drop shadow w/ lifted corners | ||
343 | * | ||
344 | * @thanks Nicolas Gallagher @necolas | ||
345 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
346 | */ | ||
347 | /** | ||
348 | * Drop shadow w/ perspective | ||
349 | * | ||
350 | * @thanks Nicolas Gallagher @necolas | ||
351 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
352 | */ | ||
353 | /** | ||
354 | * Drop shadow raised | ||
355 | * | ||
356 | * @thanks Nicolas Gallagher @necolas | ||
357 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
358 | */ | ||
359 | /** | ||
360 | * Drop shadow rules required for transform on drop shadow | ||
361 | * | ||
362 | * /!\ This is required if you want to apply some transform on the element using drop shadow | ||
363 | * | ||
364 | * @thanks Nicolas Gallagher @necolas | ||
365 | * @link http://nicolasgallagher.com/css-drop-shadows-without-images/demo/ | ||
366 | */ | ||
367 | /** | ||
368 | * Shadow along the top edge of the browser viewport | ||
369 | * | ||
370 | * @link http://playground.genelocklin.com/depth/ | ||
371 | */ | ||
372 | /** | ||
373 | * Shapes ! | ||
374 | * Polygons, ellipses and symbols | ||
375 | * | ||
376 | * @thanks Chris Coyier @chriscoyier | ||
377 | * @link http://css-tricks.com/examples/ShapesOfCSS/ | ||
378 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
379 | */ | ||
380 | /** | ||
381 | * Shape/Ellipse | ||
382 | * | ||
383 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
384 | */ | ||
385 | /** | ||
386 | * Shape/Polygon | ||
387 | * | ||
388 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
389 | */ | ||
390 | /** | ||
391 | * Shape/Polygon/Hexagon | ||
392 | * | ||
393 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
394 | */ | ||
395 | /** | ||
396 | * Shape/Polygon/Octagon | ||
397 | * | ||
398 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
399 | */ | ||
400 | /** | ||
401 | * Shape/Polygon/Parallelogram | ||
402 | * | ||
403 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
404 | */ | ||
405 | /** | ||
406 | * Shape/Polygon/Pentagon | ||
407 | * | ||
408 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
409 | */ | ||
410 | /** | ||
411 | * Shape/Polygon/Rectangle | ||
412 | * | ||
413 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
414 | */ | ||
415 | /** | ||
416 | * Shape/Polygon/Rhombus | ||
417 | * | ||
418 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
419 | */ | ||
420 | /** | ||
421 | * Shape/Polygon/Square | ||
422 | * | ||
423 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
424 | */ | ||
425 | /** | ||
426 | * Shape/Polygon/Star | ||
427 | * | ||
428 | * @todo check if setting a z-index by default is a good thing | ||
429 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
430 | */ | ||
431 | /** | ||
432 | * Shape/Polygon/Trapezoid | ||
433 | * | ||
434 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
435 | */ | ||
436 | /** | ||
437 | * Shape/Polygon/Triangle | ||
438 | * | ||
439 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
440 | */ | ||
441 | /** | ||
442 | * Shape/Symbol | ||
443 | * | ||
444 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
445 | */ | ||
446 | /** | ||
447 | * Shape/Symbol/Diamond | ||
448 | * | ||
449 | * @todo add height support | ||
450 | * | ||
451 | * @author Alexander Futekov | ||
452 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
453 | */ | ||
454 | /** | ||
455 | * Shape/Symbol/Egg | ||
456 | * | ||
457 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
458 | */ | ||
459 | /** | ||
460 | * Shape/Symbol/Heart | ||
461 | * | ||
462 | * @author Nicolas Gallagher @necolas | ||
463 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
464 | */ | ||
465 | /** | ||
466 | * Shape/Symbol/Infinity | ||
467 | * | ||
468 | * @author Nicolas Gallagher @necolas | ||
469 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
470 | */ | ||
471 | /** | ||
472 | * Shape/Symbol/Pacman | ||
473 | * | ||
474 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
475 | */ | ||
476 | /** | ||
477 | * Shape/Symbol/Yin-yang | ||
478 | * | ||
479 | * @author Alexander Futekov | ||
480 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
481 | */ | ||
482 | /** | ||
483 | * Micro clearfix hack | ||
484 | * | ||
485 | * The clearfix hack is a popular way to clear floats without resorting to using presentational markup. This article presents an update to the clearfix method that further reduces the amount of CSS required. | ||
486 | * Known support: Firefox 2+, Safari 2+, Chrome, Opera 9.27+, IE 6+, IE Mac. | ||
487 | * | ||
488 | * @thanks Nicolas Gallagher @necolas | ||
489 | * @link http://nicolasgallagher.com/micro-clearfix-hack/ | ||
490 | */ | ||
491 | /** | ||
492 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
493 | * IE8 need to have :before and not ::before | ||
494 | * So use only : and not :: if you want to support IE8 | ||
495 | * IE9 Webkit Firefox Opera understand :: | ||
496 | */ | ||
497 | /** | ||
498 | * UI convex effect from one color | ||
499 | * | ||
500 | * @todo merge with ui-button ? | ||
501 | * | ||
502 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
503 | */ | ||
504 | /** | ||
505 | * UI Glossy helper | ||
506 | * | ||
507 | * @deprecated | ||
508 | * @todo Remove in 0.4 | ||
509 | * @see background/gradients | ||
510 | * | ||
511 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
512 | */ | ||
513 | /** | ||
514 | * UI simple gradient from one color | ||
515 | * | ||
516 | * @todo merge with ui-button ? | ||
517 | * | ||
518 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
519 | */ | ||
520 | /** | ||
521 | * Shape/Polygon/Triangle | ||
522 | * | ||
523 | * @author Maxime Thirouin maxime.thirouin@gmail.com @MoOx | ||
524 | */ | ||
525 | /** | ||
526 | * Keyboard key touch | ||
527 | * A simple stylesheet for rendering beautiful keyboard-style elements. | ||
528 | 75 | ||
529 | * @author Michael Hüneburg http://michaelhue.com/keyscss | 76 | max-width: 100%; |
530 | * @link https://github.com/michaelhue/keyscss (commit 76bb603e921d0145362e0f60eabb79d4f69cbda0) | 77 | /* Part 1: Set a maxium relative to the parent */ |
531 | * | 78 | |
532 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | 79 | width: auto\9; |
533 | */ | 80 | /* IE7-8 need help adjusting responsive images */ |
534 | /** | 81 | |
535 | * Menu dropdown helper | 82 | height: auto; |
536 | * | 83 | /* Part 2: Scale the height according to the width, otherwise you get stretching */ |
537 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | 84 | |
538 | */ | 85 | vertical-align: middle; |
539 | /** | 86 | border: 0; |
540 | * Ui background overlay inspired by Google Chrome modal overlay | 87 | -ms-interpolation-mode: bicubic; |
541 | * | 88 | } |
542 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | 89 | #map_canvas img, |
543 | */ | 90 | .google-maps img { |
544 | /** | 91 | max-width: none; |
545 | * Background overlay inspired by Google Chrome modal overlay | 92 | } |
546 | * | 93 | button, |
547 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | 94 | input, |
548 | */ | 95 | select, |
549 | /** | 96 | textarea { |
550 | * <hr /> separator style | ||
551 | * | ||
552 | * @author Chris Coyier @chriscoyier | ||
553 | * @link http://jsfiddle.net/chriscoyier/GaEzp/35/ | ||
554 | * | ||
555 | * @author Maxime Thirouin @MoOx maxime.thirouin@gmail.com | ||
556 | */ | ||
557 | /** | ||
558 | * Micro clearfix hack | ||
559 | * | ||
560 | * The clearfix hack is a popular way to clear floats without resorting to using presentational markup. This article presents an update to the clearfix method that further reduces the amount of CSS required. | ||
561 | * Known support: Firefox 2+, Safari 2+, Chrome, Opera 9.27+, IE 6+, IE Mac. | ||
562 | * | ||
563 | * @thanks Nicolas Gallagher @necolas | ||
564 | * @link http://nicolasgallagher.com/micro-clearfix-hack/ | ||
565 | */ | ||
566 | /** | ||
567 | * Note IE7/6 doesn't understand pseudo element as ::before and ::after | ||
568 | * IE8 need to have :before and not ::before | ||
569 | * So use only : and not :: if you want to support IE8 | ||
570 | * IE9 Webkit Firefox Opera understand :: | ||
571 | */ | ||
572 | /** | ||
573 | * | ||
574 | * @class Gradients | ||
575 | * @author David Kaneda http://www.davidkaneda.com/ | ||
576 | * | ||
577 | */ | ||
578 | /** | ||
579 | * Adds a background gradient into a specified selector. | ||
580 | * | ||
581 | * @include background-gradient(#444, 'glossy'); | ||
582 | * | ||
583 | * You can also use color-stops if you want full control of the gradient: | ||
584 | * | ||
585 | * @include background-gradient(#444, color-stops(#333, #222, #111)); | ||
586 | * | ||
587 | * @param {color} $bg-color | ||
588 | * The base color of the gradient. | ||
589 | * | ||
590 | * @param {string/list} $type | ||
591 | * The style of the gradient, one of five pre-defined options: matte, bevel, glossy, recessed, or linear: | ||
592 | * | ||
593 | * @include background-gradient(red, 'glossy'); | ||
594 | * | ||
595 | * It can also accept a list of color-stop values:; | ||
596 | * | ||
597 | * @include background-gradient(black, color-stops(#333, #111, #000)); | ||
598 | * | ||
599 | * @param {string} $direction | ||
600 | * The direction of the gradient. | ||
601 | */ | ||
602 | /** | ||
603 | * @class Webfont Icon | ||
604 | * Great to use with the [Pictos font](http://pictos.drewwilson.com/) | ||
605 | * | ||
606 | */ | ||
607 | /** | ||
608 | * @cfg {color} $webfont-icon-base-color | ||
609 | * The default color of icons when using the {@link #webfont-icon} mixin. | ||
610 | * | ||
611 | * Defaults to `white`. | ||
612 | */ | ||
613 | /** | ||
614 | * @cfg {color} $webfont-icon-default-stroke | ||
615 | * The default color to use on the border of icons, when using the {@link #webfont-icon} mixin. | ||
616 | * | ||
617 | * Defaults to `null`. | ||
618 | */ | ||
619 | /** | ||
620 | * @cfg {string} $webfont-icon-default-gradient | ||
621 | * The default gradient to use when using the {@link #webfont-icon} mixin. | ||
622 | * | ||
623 | * Defaults to `matte`. | ||
624 | */ | ||
625 | /* line 41, ../compass-recipes/stylesheets/recipes/_webfont-icon.scss */ | ||
626 | .webfont-icon-base { | ||
627 | color: transparent; | ||
628 | -webkit-background-clip: text; | ||
629 | background-clip: text; | ||
630 | position: absolute; | ||
631 | top: 0; | ||
632 | left: 0; | ||
633 | text-indent: 0; | ||
634 | text-shadow: none; | ||
635 | -webkit-user-select: none; | ||
636 | user-select: none; | ||
637 | } | ||
638 | /** | ||
639 | * Includes a character into the specified selector, styled as an icon. | ||
640 | * | ||
641 | * @include webfont-icon('a'); | ||
642 | * | ||
643 | * @param {color} $color | ||
644 | * The color of the icon. Defaults to {@link #$webfont-icon-default-background $webfont-icon-default-background}. | ||
645 | * | ||
646 | * @param {measurement} $size | ||
647 | * The size of the icon | ||
648 | * | ||
649 | * @param {color} $stroke | ||
650 | * The color of the border. Defautls to {@link #$webfont-icon-default-border $webfont-icon-default-border}. | ||
651 | * | ||
652 | * @param {boolean} $include-staes | ||
653 | * True to include states for hover and active. Defaults to `true`. | ||
654 | */ | ||
655 | /* line 1, ../scss/include/_base.scss */ | ||
656 | * { | ||
657 | margin: 0; | 97 | margin: 0; |
98 | font-size: 100%; | ||
99 | vertical-align: middle; | ||
100 | } | ||
101 | button, | ||
102 | input { | ||
103 | *overflow: visible; | ||
104 | line-height: normal; | ||
105 | } | ||
106 | button::-moz-focus-inner, | ||
107 | input::-moz-focus-inner { | ||
658 | padding: 0; | 108 | padding: 0; |
109 | border: 0; | ||
659 | } | 110 | } |
660 | /* line 6, ../scss/include/_base.scss */ | 111 | button, |
661 | body { | 112 | html input[type="button"], |
662 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | 113 | input[type="reset"], |
663 | -webkit-touch-callout: none; | 114 | input[type="submit"] { |
664 | } | 115 | -webkit-appearance: button; |
665 | /* line 11, ../scss/include/_base.scss */ | 116 | cursor: pointer; |
666 | #jqt { | 117 | } |
667 | -webkit-text-size-adjust: none; | 118 | label, |
668 | -webkit-user-select: none; | 119 | select, |
669 | user-select: none; | 120 | button, |
670 | font-family: "Helvetica Neue", Helvetica; | 121 | input[type="button"], |
671 | position: absolute; | 122 | input[type="reset"], |
672 | right: 0; | 123 | input[type="submit"], |
673 | top: 0; | 124 | input[type="radio"], |
674 | left: 0; | 125 | input[type="checkbox"] { |
675 | bottom: 0; | 126 | cursor: pointer; |
127 | } | ||
128 | input[type="search"] { | ||
129 | -webkit-box-sizing: content-box; | ||
130 | -moz-box-sizing: content-box; | ||
131 | box-sizing: content-box; | ||
132 | -webkit-appearance: textfield; | ||
133 | } | ||
134 | input[type="search"]::-webkit-search-decoration, | ||
135 | input[type="search"]::-webkit-search-cancel-button { | ||
136 | -webkit-appearance: none; | ||
137 | } | ||
138 | textarea { | ||
139 | overflow: auto; | ||
140 | vertical-align: top; | ||
141 | } | ||
142 | @media print { | ||
143 | * { | ||
144 | text-shadow: none !important; | ||
145 | color: #000 !important; | ||
146 | background: transparent !important; | ||
147 | box-shadow: none !important; | ||
676 | } | 148 | } |
677 | /* line 21, ../scss/include/_base.scss */ | 149 | a, |
678 | #jqt a { | 150 | a:visited { |
679 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | 151 | text-decoration: underline; |
680 | -webkit-user-drag: none; | ||
681 | } | 152 | } |
682 | /* line 26, ../scss/include/_base.scss */ | 153 | a[href]:after { |
683 | #jqt .selectable, | 154 | content: " (" attr(href) ")"; |
684 | #jqt input, | ||
685 | #jqt textarea { | ||
686 | -webkit-user-select: auto; | ||
687 | } | 155 | } |
688 | /* line 30, ../scss/include/_base.scss */ | 156 | abbr[title]:after { |
689 | #jqt.notransform { | 157 | content: " (" attr(title) ")"; |
690 | -webkit-transform: none !important; | ||
691 | } | 158 | } |
692 | /* line 35, ../scss/include/_base.scss */ | 159 | .ir a:after, |
693 | #jqt > * { | 160 | a[href^="javascript:"]:after, |
694 | display: block; | 161 | a[href^="#"]:after { |
695 | left: 0; | 162 | content: ""; |
696 | top: 0; | ||
697 | min-height: 100%; | ||
698 | width: 100%; | ||
699 | overflow-x: hidden; | ||
700 | position: absolute; | ||
701 | z-index: 0; | ||
702 | display: -webkit-box; | ||
703 | display: box; | ||
704 | -webkit-box-orient: vertical; | ||
705 | box-orient: vertical; | ||
706 | -webkit-box-flex: 1; | ||
707 | box-flex: 1; | ||
708 | } | ||
709 | /* line 49, ../scss/include/_base.scss */ | ||
710 | #jqt > .current { | ||
711 | z-index: 10; | ||
712 | } | ||
713 | /* line 53, ../scss/include/_base.scss */ | ||
714 | #jqt > :not(.current) { | ||
715 | display: none; | ||
716 | } | 163 | } |
717 | /* line 57, ../scss/include/_base.scss */ | 164 | pre, |
718 | #jqt.touchscroll:not(.animating3d) { | 165 | blockquote { |
719 | overflow-y: auto; | 166 | border: 1px solid #999; |
720 | -webkit-overflow-scrolling: touch; | 167 | page-break-inside: avoid; |
721 | } | 168 | } |
722 | /* line 61, ../scss/include/_base.scss */ | 169 | thead { |
723 | #jqt.touchscroll:not(.animating3d) > * { | 170 | display: table-header-group; |
724 | height: 100%; | ||
725 | } | 171 | } |
726 | /* line 64, ../scss/include/_base.scss */ | 172 | tr, |
727 | #jqt.touchscroll:not(.animating3d) .scroll { | 173 | img { |
728 | position: relative; | 174 | page-break-inside: avoid; |
729 | -webkit-box-flex: 1; | ||
730 | box-flex: 1; | ||
731 | overflow-y: auto; | ||
732 | -webkit-overflow-scrolling: touch; | ||
733 | } | 175 | } |
734 | /* line 72, ../scss/include/_base.scss */ | 176 | img { |
735 | #jqt .scroll { | 177 | max-width: 100% !important; |
736 | -webkit-margin-collapse: separate; | ||
737 | } | 178 | } |
738 | /* line 76, ../scss/include/_base.scss */ | 179 | @page { |
739 | #jqt .in, | 180 | margin: 0.5cm; |
740 | #jqt .out { | ||
741 | -webkit-animation-duration: 250ms; | ||
742 | -webkit-animation-fill-mode: both; | ||
743 | -webkit-animation-timing-function: ease-in-out; | ||
744 | } | 181 | } |
745 | /* line 82, ../scss/include/_base.scss */ | 182 | p, |
746 | #jqt .in { | 183 | h2, |
747 | z-index: 10; | 184 | h3 { |
185 | orphans: 3; | ||
186 | widows: 3; | ||
748 | } | 187 | } |
749 | /* line 85, ../scss/include/_base.scss */ | 188 | h2, |
750 | #jqt .in:after { | 189 | h3 { |
190 | page-break-after: avoid; | ||
191 | } | ||
192 | } | ||
193 | .clearfix { | ||
194 | *zoom: 1; | ||
195 | } | ||
196 | .clearfix:before, | ||
197 | .clearfix:after { | ||
198 | display: table; | ||
751 | content: ""; | 199 | content: ""; |
752 | position: absolute; | 200 | line-height: 0; |
753 | display: block; | ||
754 | top: 0; | ||
755 | left: 0; | ||
756 | bottom: 0; | ||
757 | right: 0; | ||
758 | } | 201 | } |
759 | /* line 94, ../scss/include/_base.scss */ | 202 | .clearfix:after { |
760 | #jqt .out { | 203 | clear: both; |
761 | z-index: 0 !important; | ||
762 | } | 204 | } |
763 | /* line 98, ../scss/include/_base.scss */ | 205 | .hide-text { |
764 | #jqt.supports3d { | 206 | font: 0/0 a; |
765 | -webkit-perspective: 1000; | 207 | color: transparent; |
208 | text-shadow: none; | ||
209 | background-color: transparent; | ||
210 | border: 0; | ||
766 | } | 211 | } |
767 | /* line 101, ../scss/include/_base.scss */ | 212 | .input-block-level { |
768 | #jqt.supports3d > * { | 213 | display: block; |
769 | -webkit-transform: translate3d(0, 0, 0) rotate(0) scale(1); | 214 | width: 100%; |
215 | min-height: 30px; | ||
216 | -webkit-box-sizing: border-box; | ||
217 | -moz-box-sizing: border-box; | ||
218 | box-sizing: border-box; | ||
770 | } | 219 | } |
771 | /* Fade */ | 220 | body { |
772 | /* line 3, ../scss/include/_animations.scss */ | 221 | margin: 0; |
773 | #jqt .fade.in { | 222 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; |
774 | -webkit-animation-name: fadeIn; | 223 | font-size: 14px; |
224 | line-height: 20px; | ||
225 | color: #333333; | ||
226 | background-color: #ffffff; | ||
775 | } | 227 | } |
776 | /* line 7, ../scss/include/_animations.scss */ | 228 | a { |
777 | #jqt .fade.out { | 229 | color: #0088cc; |
778 | z-index: 10; | 230 | text-decoration: none; |
779 | -webkit-animation-name: fadeOut; | ||
780 | } | 231 | } |
781 | @-webkit-keyframes fadeIn { | 232 | a:hover { |
782 | /* line 13, ../scss/include/_animations.scss */ | 233 | color: #005580; |
783 | 0% { | 234 | text-decoration: underline; |
784 | opacity: 0; | 235 | } |
236 | .img-rounded { | ||
237 | -webkit-border-radius: 6px; | ||
238 | -moz-border-radius: 6px; | ||
239 | border-radius: 6px; | ||
240 | } | ||
241 | .img-polaroid { | ||
242 | padding: 4px; | ||
243 | background-color: #fff; | ||
244 | border: 1px solid #ccc; | ||
245 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
246 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | ||
247 | -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | ||
248 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); | ||
249 | } | ||
250 | .img-circle { | ||
251 | -webkit-border-radius: 500px; | ||
252 | -moz-border-radius: 500px; | ||
253 | border-radius: 500px; | ||
785 | } | 254 | } |
786 | /* line 16, ../scss/include/_animations.scss */ | 255 | .row { |
787 | 100% { | 256 | margin-left: -20px; |
788 | opacity: 1; | 257 | *zoom: 1; |
789 | } | 258 | } |
259 | .row:before, | ||
260 | .row:after { | ||
261 | display: table; | ||
262 | content: ""; | ||
263 | line-height: 0; | ||
790 | } | 264 | } |
791 | @-webkit-keyframes fadeOut { | 265 | .row:after { |
792 | /* line 22, ../scss/include/_animations.scss */ | 266 | clear: both; |
793 | 0% { | ||
794 | opacity: 1; | ||
795 | } | 267 | } |
796 | /* line 25, ../scss/include/_animations.scss */ | 268 | [class*="span"] { |
797 | 100% { | 269 | float: left; |
798 | opacity: 1; | 270 | min-height: 1px; |
271 | margin-left: 20px; | ||
799 | } | 272 | } |
273 | .container, | ||
274 | .navbar-static-top .container, | ||
275 | .navbar-fixed-top .container, | ||
276 | .navbar-fixed-bottom .container { | ||
277 | width: 940px; | ||
800 | } | 278 | } |
801 | /* Disolve */ | 279 | .span12 { |
802 | /* line 34, ../scss/include/_animations.scss */ | 280 | width: 940px; |
803 | #jqt .dissolve.in { | ||
804 | -webkit-animation-name: dissolveIn; | ||
805 | } | 281 | } |
806 | /* line 38, ../scss/include/_animations.scss */ | 282 | .span11 { |
807 | #jqt .dissolve.out { | 283 | width: 860px; |
808 | -webkit-animation-name: dissolveOut; | ||
809 | } | 284 | } |
810 | @-webkit-keyframes dissolveIn { | 285 | .span10 { |
811 | /* line 43, ../scss/include/_animations.scss */ | 286 | width: 780px; |
812 | 0% { | ||
813 | opacity: 0; | ||
814 | } | 287 | } |
815 | /* line 46, ../scss/include/_animations.scss */ | 288 | .span9 { |
816 | 100% { | 289 | width: 700px; |
817 | opacity: 1; | ||
818 | } | 290 | } |
291 | .span8 { | ||
292 | width: 620px; | ||
819 | } | 293 | } |
820 | @-webkit-keyframes dissolveOut { | 294 | .span7 { |
821 | /* line 52, ../scss/include/_animations.scss */ | 295 | width: 540px; |
822 | 0% { | ||
823 | opacity: 1; | ||
824 | } | 296 | } |
825 | /* line 55, ../scss/include/_animations.scss */ | 297 | .span6 { |
826 | 100% { | 298 | width: 460px; |
827 | opacity: 0; | ||
828 | } | 299 | } |
300 | .span5 { | ||
301 | width: 380px; | ||
829 | } | 302 | } |
830 | /* #Popin' */ | 303 | .span4 { |
831 | /* line 64, ../scss/include/_animations.scss */ | 304 | width: 300px; |
832 | #jqt .pop.in { | ||
833 | -webkit-animation-name: popIn; | ||
834 | } | 305 | } |
835 | /* line 68, ../scss/include/_animations.scss */ | 306 | .span3 { |
836 | #jqt .pop.out { | 307 | width: 220px; |
837 | -webkit-animation-name: popOut; | ||
838 | } | 308 | } |
839 | @-webkit-keyframes popIn { | 309 | .span2 { |
840 | /* line 73, ../scss/include/_animations.scss */ | 310 | width: 140px; |
841 | 0% { | ||
842 | -webkit-transform: scale(0.2); | ||
843 | opacity: 0; | ||
844 | } | 311 | } |
845 | /* line 77, ../scss/include/_animations.scss */ | 312 | .span1 { |
846 | 100% { | 313 | width: 60px; |
847 | -webkit-transform: scale(1); | ||
848 | opacity: 1; | ||
849 | } | 314 | } |
315 | .offset12 { | ||
316 | margin-left: 980px; | ||
850 | } | 317 | } |
851 | @-webkit-keyframes popOut { | 318 | .offset11 { |
852 | /* line 84, ../scss/include/_animations.scss */ | 319 | margin-left: 900px; |
853 | 0% { | ||
854 | -webkit-transform: scale(1); | ||
855 | opacity: 1; | ||
856 | } | 320 | } |
857 | /* line 88, ../scss/include/_animations.scss */ | 321 | .offset10 { |
858 | 100% { | 322 | margin-left: 820px; |
859 | -webkit-transform: scale(0.2); | ||
860 | opacity: 0; | ||
861 | } | 323 | } |
324 | .offset9 { | ||
325 | margin-left: 740px; | ||
862 | } | 326 | } |
863 | /* Slide Left */ | 327 | .offset8 { |
864 | /* line 98, ../scss/include/_animations.scss */ | 328 | margin-left: 660px; |
865 | #jqt .slideleft.in { | ||
866 | -webkit-animation-name: slideLeftIn; | ||
867 | } | 329 | } |
868 | /* line 102, ../scss/include/_animations.scss */ | 330 | .offset7 { |
869 | #jqt .slideleft.out { | 331 | margin-left: 580px; |
870 | -webkit-animation-name: slideLeftOut; | ||
871 | } | 332 | } |
872 | @-webkit-keyframes slideLeftIn { | 333 | .offset6 { |
873 | /* line 107, ../scss/include/_animations.scss */ | 334 | margin-left: 500px; |
874 | 0% { | ||
875 | -webkit-transform: translateX(100%); | ||
876 | } | 335 | } |
877 | /* line 110, ../scss/include/_animations.scss */ | 336 | .offset5 { |
878 | 100% { | 337 | margin-left: 420px; |
879 | -webkit-transform: translateX(0); | ||
880 | } | 338 | } |
339 | .offset4 { | ||
340 | margin-left: 340px; | ||
881 | } | 341 | } |
882 | @-webkit-keyframes slideLeftOut { | 342 | .offset3 { |
883 | /* line 116, ../scss/include/_animations.scss */ | 343 | margin-left: 260px; |
884 | 0% { | ||
885 | -webkit-transform: translateX(0px); | ||
886 | } | 344 | } |
887 | /* line 119, ../scss/include/_animations.scss */ | 345 | .offset2 { |
888 | 100% { | 346 | margin-left: 180px; |
889 | -webkit-transform: translateX(-100%); | ||
890 | } | 347 | } |
348 | .offset1 { | ||
349 | margin-left: 100px; | ||
891 | } | 350 | } |
892 | /* Slide Right */ | 351 | .row-fluid { |
893 | /* line 128, ../scss/include/_animations.scss */ | 352 | width: 100%; |
894 | #jqt .slideright.in { | 353 | *zoom: 1; |
895 | -webkit-animation-name: slideRightIn; | ||
896 | } | 354 | } |
897 | /* line 132, ../scss/include/_animations.scss */ | 355 | .row-fluid:before, |
898 | #jqt .slideright.out { | 356 | .row-fluid:after { |
899 | -webkit-animation-name: slideRightOut; | 357 | display: table; |
358 | content: ""; | ||
359 | line-height: 0; | ||
900 | } | 360 | } |
901 | @-webkit-keyframes slideRightIn { | 361 | .row-fluid:after { |
902 | /* line 137, ../scss/include/_animations.scss */ | 362 | clear: both; |
903 | 0% { | ||
904 | -webkit-transform: translateX(-100%); | ||
905 | } | 363 | } |
906 | /* line 140, ../scss/include/_animations.scss */ | 364 | .row-fluid [class*="span"] { |
907 | 100% { | 365 | display: block; |
908 | -webkit-transform: translateX(0); | 366 | width: 100%; |
367 | min-height: 30px; | ||
368 | -webkit-box-sizing: border-box; | ||
369 | -moz-box-sizing: border-box; | ||
370 | box-sizing: border-box; | ||
371 | float: left; | ||
372 | margin-left: 2.127659574468085%; | ||
373 | *margin-left: 2.074468085106383%; | ||
909 | } | 374 | } |
375 | .row-fluid [class*="span"]:first-child { | ||
376 | margin-left: 0; | ||
910 | } | 377 | } |
911 | @-webkit-keyframes slideRightOut { | 378 | .row-fluid .controls-row [class*="span"] + [class*="span"] { |
912 | /* line 146, ../scss/include/_animations.scss */ | 379 | margin-left: 2.127659574468085%; |
913 | 0% { | ||
914 | -webkit-transform: translateX(0); | ||
915 | } | 380 | } |
916 | /* line 149, ../scss/include/_animations.scss */ | 381 | .row-fluid .span12 { |
917 | 100% { | 382 | width: 100%; |
918 | -webkit-transform: translateX(100%); | 383 | *width: 99.94680851063829%; |
919 | } | 384 | } |
385 | .row-fluid .span11 { | ||
386 | width: 91.48936170212765%; | ||
387 | *width: 91.43617021276594%; | ||
920 | } | 388 | } |
921 | /* Slide Up */ | 389 | .row-fluid .span10 { |
922 | /* line 158, ../scss/include/_animations.scss */ | 390 | width: 82.97872340425532%; |
923 | #jqt .slideup.in { | 391 | *width: 82.92553191489361%; |
924 | z-index: 10; | ||
925 | -webkit-animation-name: slideUpIn; | ||
926 | } | 392 | } |
927 | /* line 162, ../scss/include/_animations.scss */ | 393 | .row-fluid .span9 { |
928 | #jqt .slideup.out { | 394 | width: 74.46808510638297%; |
929 | z-index: 0; | 395 | *width: 74.41489361702126%; |
930 | -webkit-animation-name: slideUpOut; | ||
931 | } | 396 | } |
932 | @-webkit-keyframes slideUpIn { | 397 | .row-fluid .span8 { |
933 | /* line 168, ../scss/include/_animations.scss */ | 398 | width: 65.95744680851064%; |
934 | 0% { | 399 | *width: 65.90425531914893%; |
935 | -webkit-transform: translateY(100%); | ||
936 | } | 400 | } |
937 | /* line 171, ../scss/include/_animations.scss */ | 401 | .row-fluid .span7 { |
938 | 100% { | 402 | width: 57.44680851063829%; |
939 | -webkit-transform: translateY(0); | 403 | *width: 57.39361702127659%; |
940 | } | 404 | } |
405 | .row-fluid .span6 { | ||
406 | width: 48.93617021276595%; | ||
407 | *width: 48.88297872340425%; | ||
941 | } | 408 | } |
942 | @-webkit-keyframes slideUpOut { | 409 | .row-fluid .span5 { |
943 | /* line 177, ../scss/include/_animations.scss */ | 410 | width: 40.42553191489362%; |
944 | 0% { | 411 | *width: 40.37234042553192%; |
945 | -webkit-transform: translateY(0); | ||
946 | } | 412 | } |
947 | /* line 180, ../scss/include/_animations.scss */ | 413 | .row-fluid .span4 { |
948 | 100% { | 414 | width: 31.914893617021278%; |
949 | -webkit-transform: translateY(0); | 415 | *width: 31.861702127659576%; |
950 | } | 416 | } |
417 | .row-fluid .span3 { | ||
418 | width: 23.404255319148934%; | ||
419 | *width: 23.351063829787233%; | ||
951 | } | 420 | } |
952 | /* Slide Down */ | 421 | .row-fluid .span2 { |
953 | /* line 189, ../scss/include/_animations.scss */ | 422 | width: 14.893617021276595%; |
954 | #jqt .slidedown.in { | 423 | *width: 14.840425531914894%; |
955 | z-index: 0; | ||
956 | -webkit-animation-name: slideDownIn; | ||
957 | } | 424 | } |
958 | /* line 193, ../scss/include/_animations.scss */ | 425 | .row-fluid .span1 { |
959 | #jqt .slidedown.out { | 426 | width: 6.382978723404255%; |
960 | z-index: 10; | 427 | *width: 6.329787234042553%; |
961 | -webkit-animation-name: slideDownOut; | ||
962 | } | 428 | } |
963 | @-webkit-keyframes slideDownIn { | 429 | .row-fluid .offset12 { |
964 | /* line 199, ../scss/include/_animations.scss */ | 430 | margin-left: 104.25531914893617%; |
965 | 0% { | 431 | *margin-left: 104.14893617021275%; |
966 | -webkit-transform: translateY(0); | ||
967 | } | 432 | } |
968 | /* line 202, ../scss/include/_animations.scss */ | 433 | .row-fluid .offset12:first-child { |
969 | 100% { | 434 | margin-left: 102.12765957446808%; |
970 | -webkit-transform: translateY(0); | 435 | *margin-left: 102.02127659574467%; |
971 | } | 436 | } |
437 | .row-fluid .offset11 { | ||
438 | margin-left: 95.74468085106382%; | ||
439 | *margin-left: 95.6382978723404%; | ||
972 | } | 440 | } |
973 | @-webkit-keyframes slideDownOut { | 441 | .row-fluid .offset11:first-child { |
974 | /* line 208, ../scss/include/_animations.scss */ | 442 | margin-left: 93.61702127659574%; |
975 | 0% { | 443 | *margin-left: 93.51063829787232%; |
976 | -webkit-transform: translateY(0); | ||
977 | } | 444 | } |
978 | /* line 211, ../scss/include/_animations.scss */ | 445 | .row-fluid .offset10 { |
979 | 100% { | 446 | margin-left: 87.23404255319149%; |
980 | -webkit-transform: translateY(100%); | 447 | *margin-left: 87.12765957446807%; |
981 | } | 448 | } |
449 | .row-fluid .offset10:first-child { | ||
450 | margin-left: 85.1063829787234%; | ||
451 | *margin-left: 84.99999999999999%; | ||
982 | } | 452 | } |
983 | /* Flip Left */ | 453 | .row-fluid .offset9 { |
984 | /* line 220, ../scss/include/_animations.scss */ | 454 | margin-left: 78.72340425531914%; |
985 | #jqt .flipleft { | 455 | *margin-left: 78.61702127659572%; |
986 | -webkit-backface-visibility: hidden; | ||
987 | } | 456 | } |
988 | /* line 224, ../scss/include/_animations.scss */ | 457 | .row-fluid .offset9:first-child { |
989 | #jqt .flipleft.in { | 458 | margin-left: 76.59574468085106%; |
990 | -webkit-animation-name: flipLeftIn; | 459 | *margin-left: 76.48936170212764%; |
991 | } | 460 | } |
992 | /* line 228, ../scss/include/_animations.scss */ | 461 | .row-fluid .offset8 { |
993 | #jqt .flipleft.out { | 462 | margin-left: 70.2127659574468%; |
994 | -webkit-animation-name: flipLeftOut; | 463 | *margin-left: 70.10638297872339%; |
995 | } | 464 | } |
996 | @-webkit-keyframes flipLeftIn { | 465 | .row-fluid .offset8:first-child { |
997 | /* line 233, ../scss/include/_animations.scss */ | 466 | margin-left: 68.08510638297872%; |
998 | 0% { | 467 | *margin-left: 67.9787234042553%; |
999 | -webkit-transform: rotateY(180deg) scale(0.8); | ||
1000 | } | 468 | } |
1001 | /* line 236, ../scss/include/_animations.scss */ | 469 | .row-fluid .offset7 { |
1002 | 100% { | 470 | margin-left: 61.70212765957446%; |
1003 | -webkit-transform: rotateY(0deg) scale(1); | 471 | *margin-left: 61.59574468085106%; |
1004 | } | 472 | } |
473 | .row-fluid .offset7:first-child { | ||
474 | margin-left: 59.574468085106375%; | ||
475 | *margin-left: 59.46808510638297%; | ||
1005 | } | 476 | } |
1006 | @-webkit-keyframes flipLeftOut { | 477 | .row-fluid .offset6 { |
1007 | /* line 242, ../scss/include/_animations.scss */ | 478 | margin-left: 53.191489361702125%; |
1008 | 0% { | 479 | *margin-left: 53.085106382978715%; |
1009 | -webkit-transform: rotateY(0deg) scale(1); | ||
1010 | } | 480 | } |
1011 | /* line 245, ../scss/include/_animations.scss */ | 481 | .row-fluid .offset6:first-child { |
1012 | 100% { | 482 | margin-left: 51.063829787234035%; |
1013 | -webkit-transform: rotateY(-180deg) scale(0.8); | 483 | *margin-left: 50.95744680851063%; |
1014 | } | 484 | } |
485 | .row-fluid .offset5 { | ||
486 | margin-left: 44.68085106382979%; | ||
487 | *margin-left: 44.57446808510638%; | ||
1015 | } | 488 | } |
1016 | /* Flip Right */ | 489 | .row-fluid .offset5:first-child { |
1017 | /* line 254, ../scss/include/_animations.scss */ | 490 | margin-left: 42.5531914893617%; |
1018 | #jqt .flipright { | 491 | *margin-left: 42.4468085106383%; |
1019 | -webkit-backface-visibility: hidden; | ||
1020 | } | 492 | } |
1021 | /* line 258, ../scss/include/_animations.scss */ | 493 | .row-fluid .offset4 { |
1022 | #jqt .flipright.in { | 494 | margin-left: 36.170212765957444%; |
1023 | -webkit-animation-name: flipRightIn; | 495 | *margin-left: 36.06382978723405%; |
1024 | } | 496 | } |
1025 | /* line 262, ../scss/include/_animations.scss */ | 497 | .row-fluid .offset4:first-child { |
1026 | #jqt .flipright.out { | 498 | margin-left: 34.04255319148936%; |
1027 | -webkit-animation-name: flipRightOut; | 499 | *margin-left: 33.93617021276596%; |
1028 | } | 500 | } |
1029 | @-webkit-keyframes flipRightIn { | 501 | .row-fluid .offset3 { |
1030 | /* line 267, ../scss/include/_animations.scss */ | 502 | margin-left: 27.659574468085104%; |
1031 | 0% { | 503 | *margin-left: 27.5531914893617%; |
1032 | -webkit-transform: rotateY(-180deg) scale(0.8); | ||
1033 | } | 504 | } |
1034 | /* line 270, ../scss/include/_animations.scss */ | 505 | .row-fluid .offset3:first-child { |
1035 | 100% { | 506 | margin-left: 25.53191489361702%; |
1036 | -webkit-transform: rotateY(0deg) scale(1); | 507 | *margin-left: 25.425531914893618%; |
1037 | } | 508 | } |
509 | .row-fluid .offset2 { | ||
510 | margin-left: 19.148936170212764%; | ||
511 | *margin-left: 19.04255319148936%; | ||
1038 | } | 512 | } |
1039 | @-webkit-keyframes flipRightOut { | 513 | .row-fluid .offset2:first-child { |
1040 | /* line 276, ../scss/include/_animations.scss */ | 514 | margin-left: 17.02127659574468%; |
1041 | 0% { | 515 | *margin-left: 16.914893617021278%; |
1042 | -webkit-transform: rotateY(0deg) scale(1); | ||
1043 | } | 516 | } |
1044 | /* line 279, ../scss/include/_animations.scss */ | 517 | .row-fluid .offset1 { |
1045 | 100% { | 518 | margin-left: 10.638297872340425%; |
1046 | -webkit-transform: rotateY(180deg) scale(0.8); | 519 | *margin-left: 10.53191489361702%; |
1047 | } | 520 | } |
521 | .row-fluid .offset1:first-child { | ||
522 | margin-left: 8.51063829787234%; | ||
523 | *margin-left: 8.404255319148938%; | ||
1048 | } | 524 | } |
1049 | /* Swap Right */ | 525 | [class*="span"].hide, |
1050 | /* line 288, ../scss/include/_animations.scss */ | 526 | .row-fluid [class*="span"].hide { |
1051 | #jqt .swapright { | 527 | display: none; |
1052 | -webkit-animation-duration: .7s; | ||
1053 | -webkit-transform: perspective(800); | ||
1054 | -webkit-animation-timing-function: ease-out; | ||
1055 | } | 528 | } |
1056 | /* line 293, ../scss/include/_animations.scss */ | 529 | [class*="span"].pull-right, |
1057 | #jqt .swapright.in { | 530 | .row-fluid [class*="span"].pull-right { |
1058 | -webkit-animation-name: swapRightIn; | 531 | float: right; |
1059 | } | 532 | } |
1060 | /* line 296, ../scss/include/_animations.scss */ | 533 | .container { |
1061 | #jqt .swapright.out { | 534 | margin-right: auto; |
1062 | -webkit-animation-name: swapRightOut; | 535 | margin-left: auto; |
536 | *zoom: 1; | ||
1063 | } | 537 | } |
1064 | @-webkit-keyframes swapRightIn { | 538 | .container:before, |
1065 | /* line 301, ../scss/include/_animations.scss */ | 539 | .container:after { |
1066 | 0% { | 540 | display: table; |
1067 | -webkit-transform: translate3d(0px, 0px, -800px) rotateY(70deg); | 541 | content: ""; |
1068 | opacity: 0; | 542 | line-height: 0; |
1069 | } | 543 | } |
1070 | /* line 305, ../scss/include/_animations.scss */ | 544 | .container:after { |
1071 | 35% { | 545 | clear: both; |
1072 | -webkit-transform: translate3d(-180px, 0px, -400px) rotateY(20deg); | ||
1073 | opacity: 1; | ||
1074 | } | 546 | } |
1075 | /* line 309, ../scss/include/_animations.scss */ | 547 | .container-fluid { |
1076 | 100% { | 548 | padding-right: 20px; |
1077 | -webkit-transform: translate3d(0px, 0px, 0px) rotateY(0deg); | 549 | padding-left: 20px; |
1078 | opacity: 1; | 550 | *zoom: 1; |
1079 | } | 551 | } |
552 | .container-fluid:before, | ||
553 | .container-fluid:after { | ||
554 | display: table; | ||
555 | content: ""; | ||
556 | line-height: 0; | ||
1080 | } | 557 | } |
1081 | @-webkit-keyframes swapRightOut { | 558 | .container-fluid:after { |
1082 | /* line 316, ../scss/include/_animations.scss */ | 559 | clear: both; |
1083 | 0% { | ||
1084 | -webkit-transform: translate3d(0px, 0px, 0px) rotateY(0deg); | ||
1085 | opacity: 1; | ||
1086 | } | 560 | } |
1087 | /* line 320, ../scss/include/_animations.scss */ | 561 | p { |
1088 | 35% { | 562 | margin: 0 0 10px; |
1089 | -webkit-transform: translate3d(180px, 0px, -400px) rotateY(-20deg); | ||
1090 | opacity: .5; | ||
1091 | } | 563 | } |
1092 | /* line 324, ../scss/include/_animations.scss */ | 564 | .lead { |
1093 | 100% { | 565 | margin-bottom: 20px; |
1094 | -webkit-transform: translate3d(0px, 0px, -800px) rotateY(-70deg); | 566 | font-size: 21px; |
1095 | opacity: 0; | 567 | font-weight: 200; |
568 | line-height: 30px; | ||
1096 | } | 569 | } |
570 | small { | ||
571 | font-size: 85%; | ||
1097 | } | 572 | } |
1098 | /* Swap Left */ | 573 | strong { |
1099 | /* line 332, ../scss/include/_animations.scss */ | 574 | font-weight: bold; |
1100 | #jqt .swapleft { | ||
1101 | -webkit-animation-duration: .7s; | ||
1102 | -webkit-transform: perspective(800); | ||
1103 | -webkit-animation-timing-function: ease-out; | ||
1104 | } | 575 | } |
1105 | /* line 337, ../scss/include/_animations.scss */ | 576 | em { |
1106 | #jqt .swapleft.in { | 577 | font-style: italic; |
1107 | -webkit-animation-name: swapLeftIn; | ||
1108 | } | 578 | } |
1109 | /* line 340, ../scss/include/_animations.scss */ | 579 | cite { |
1110 | #jqt .swapleft.out { | 580 | font-style: normal; |
1111 | -webkit-animation-name: swapLeftOut; | ||
1112 | } | 581 | } |
1113 | @-webkit-keyframes swapLeftIn { | 582 | .muted { |
1114 | /* line 345, ../scss/include/_animations.scss */ | 583 | color: #999999; |
1115 | 0% { | ||
1116 | -webkit-transform: translate3d(0px, 0px, -800px) rotateY(-70deg); | ||
1117 | opacity: 0; | ||
1118 | } | 584 | } |
1119 | /* line 349, ../scss/include/_animations.scss */ | 585 | a.muted:hover { |
1120 | 35% { | 586 | color: #808080; |
1121 | -webkit-transform: translate3d(180px, 0px, -400px) rotateY(-20deg); | ||
1122 | opacity: 1; | ||
1123 | } | 587 | } |
1124 | /* line 353, ../scss/include/_animations.scss */ | 588 | .text-warning { |
1125 | 100% { | 589 | color: #c09853; |
1126 | opacity: 1; | ||
1127 | -webkit-transform: translate3d(0px, 0px, 0px) rotateY(0deg); | ||
1128 | } | 590 | } |
591 | a.text-warning:hover { | ||
592 | color: #a47e3c; | ||
1129 | } | 593 | } |
1130 | @-webkit-keyframes swapLeftOut { | 594 | .text-error { |
1131 | /* line 360, ../scss/include/_animations.scss */ | 595 | color: #b94a48; |
1132 | 0% { | ||
1133 | -webkit-transform: translate3d(0px, 0px, 0px) rotateY(0deg); | ||
1134 | opacity: 1; | ||
1135 | } | 596 | } |
1136 | /* line 364, ../scss/include/_animations.scss */ | 597 | a.text-error:hover { |
1137 | 35% { | 598 | color: #953b39; |
1138 | -webkit-transform: translate3d(-180px, 0px, -400px) rotateY(20deg); | ||
1139 | opacity: .5; | ||
1140 | } | 599 | } |
1141 | /* line 368, ../scss/include/_animations.scss */ | 600 | .text-info { |
1142 | 100% { | 601 | color: #3a87ad; |
1143 | -webkit-transform: translate3d(0px, 0px, -800px) rotateY(70deg); | ||
1144 | opacity: 0; | ||
1145 | } | 602 | } |
603 | a.text-info:hover { | ||
604 | color: #2d6987; | ||
1146 | } | 605 | } |
1147 | /* Cube Left */ | 606 | .text-success { |
1148 | /* line 382, ../scss/include/_animations.scss */ | 607 | color: #468847; |
1149 | #jqt .cubeleft.in, | ||
1150 | #jqt .cubeleft.out, | ||
1151 | #jqt .cuberight.in, | ||
1152 | #jqt .cuberight.out { | ||
1153 | -webkit-animation-duration: .6s; | ||
1154 | -webkit-transform: perspective(800); | ||
1155 | } | ||
1156 | /* line 389, ../scss/include/_animations.scss */ | ||
1157 | #jqt .cubeleft.in { | ||
1158 | -webkit-transform-origin: 0% 50%; | ||
1159 | -webkit-animation-name: cubeLeftIn; | ||
1160 | } | ||
1161 | /* line 394, ../scss/include/_animations.scss */ | ||
1162 | #jqt .cubeleft.out { | ||
1163 | -webkit-transform-origin: 100% 50%; | ||
1164 | -webkit-animation-name: cubeLeftOut; | ||
1165 | } | ||
1166 | @-webkit-keyframes cubeLeftIn { | ||
1167 | /* line 400, ../scss/include/_animations.scss */ | ||
1168 | 0% { | ||
1169 | -webkit-transform: rotateY(90deg) translateZ(320px); | ||
1170 | opacity: .5; | ||
1171 | } | ||
1172 | /* line 404, ../scss/include/_animations.scss */ | ||
1173 | 100% { | ||
1174 | -webkit-transform: rotateY(0deg) translateZ(0) translateX(0); | ||
1175 | opacity: 1; | ||
1176 | } | 608 | } |
609 | a.text-success:hover { | ||
610 | color: #356635; | ||
1177 | } | 611 | } |
1178 | @-webkit-keyframes cubeLeftOut { | 612 | h1, |
1179 | /* line 411, ../scss/include/_animations.scss */ | 613 | h2, |
1180 | 0% { | 614 | h3, |
1181 | -webkit-transform: rotateY(0deg) translateZ(0) translateX(0); | 615 | h4, |
1182 | opacity: 1; | 616 | h5, |
617 | h6 { | ||
618 | margin: 10px 0; | ||
619 | font-family: inherit; | ||
620 | font-weight: bold; | ||
621 | line-height: 20px; | ||
622 | color: inherit; | ||
623 | text-rendering: optimizelegibility; | ||
624 | } | ||
625 | h1 small, | ||
626 | h2 small, | ||
627 | h3 small, | ||
628 | h4 small, | ||
629 | h5 small, | ||
630 | h6 small { | ||
631 | font-weight: normal; | ||
632 | line-height: 1; | ||
633 | color: #999999; | ||
1183 | } | 634 | } |
1184 | /* line 415, ../scss/include/_animations.scss */ | 635 | h1, |
1185 | 100% { | 636 | h2, |
1186 | -webkit-transform: rotateY(-90deg) translateZ(320px); | 637 | h3 { |
1187 | opacity: .5; | 638 | line-height: 40px; |
1188 | } | 639 | } |
640 | h1 { | ||
641 | font-size: 38.5px; | ||
1189 | } | 642 | } |
1190 | /* Cube Right */ | 643 | h2 { |
1191 | /* line 423, ../scss/include/_animations.scss */ | 644 | font-size: 31.5px; |
1192 | #jqt .cuberight.in { | ||
1193 | -webkit-transform-origin: 100% 50%; | ||
1194 | -webkit-animation-name: cubeRightIn; | ||
1195 | } | 645 | } |
1196 | /* line 428, ../scss/include/_animations.scss */ | 646 | h3 { |
1197 | #jqt .cuberight.out { | 647 | font-size: 24.5px; |
1198 | -webkit-transform-origin: 0% 50%; | ||
1199 | -webkit-animation-name: cubeRightOut; | ||
1200 | } | 648 | } |
1201 | @-webkit-keyframes cubeRightIn { | 649 | h4 { |
1202 | /* line 434, ../scss/include/_animations.scss */ | 650 | font-size: 17.5px; |
1203 | 0% { | ||
1204 | -webkit-transform: rotateY(-90deg) translateZ(320px); | ||
1205 | opacity: .5; | ||
1206 | } | 651 | } |
1207 | /* line 438, ../scss/include/_animations.scss */ | 652 | h5 { |
1208 | 100% { | 653 | font-size: 14px; |
1209 | -webkit-transform: rotateY(0deg) translateZ(0) translateX(0); | ||
1210 | opacity: 1; | ||
1211 | } | 654 | } |
655 | h6 { | ||
656 | font-size: 11.9px; | ||
1212 | } | 657 | } |
1213 | @-webkit-keyframes cubeRightOut { | 658 | h1 small { |
1214 | /* line 445, ../scss/include/_animations.scss */ | 659 | font-size: 24.5px; |
1215 | 0% { | ||
1216 | -webkit-transform: rotateY(0deg) translateZ(0) translateX(0); | ||
1217 | opacity: 1; | ||
1218 | } | 660 | } |
1219 | /* line 449, ../scss/include/_animations.scss */ | 661 | h2 small { |
1220 | 100% { | 662 | font-size: 17.5px; |
1221 | -webkit-transform: rotateY(90deg) translateZ(320px); | ||
1222 | opacity: .5; | ||
1223 | } | 663 | } |
664 | h3 small { | ||
665 | font-size: 14px; | ||
1224 | } | 666 | } |
1225 | /* line 5, ../scss/include/_skeleton.scss */ | 667 | h4 small { |
1226 | body { | 668 | font-size: 14px; |
1227 | background: black; | 669 | } |
1228 | } | 670 | .page-header { |
1229 | /* line 9, ../scss/include/_skeleton.scss */ | 671 | padding-bottom: 9px; |
1230 | .base-chevron, | 672 | margin: 20px 0 30px; |
1231 | #jqt ul li.arrow:after, | 673 | border-bottom: 1px solid #eeeeee; |
1232 | #jqt ul li.forward:after { | 674 | } |
1233 | content: '›'; | 675 | ul, |
1234 | width: 22px; | 676 | ol { |
1235 | height: 100%; | ||
1236 | vertical-align: middle; | ||
1237 | font-size: 30px; | ||
1238 | line-height: 38px; | ||
1239 | font-family: Futura, "Futura Condensed", Helvetica, Arial, sans-serif; | ||
1240 | font-weight: bold; | ||
1241 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=60); | ||
1242 | opacity: 0.6; | ||
1243 | position: absolute; | ||
1244 | right: 0; | ||
1245 | top: 0; | ||
1246 | pointer-events: none; | ||
1247 | z-index: 10; | ||
1248 | } | ||
1249 | /* line 26, ../scss/include/_skeleton.scss */ | ||
1250 | .base-flatlists, | ||
1251 | #jqt ul.metal, | ||
1252 | #jqt ul.edgetoedge, | ||
1253 | #jqt ul.plastic { | ||
1254 | margin: 0; | ||
1255 | padding: 0; | 677 | padding: 0; |
1256 | border-width: 0 0 0 1px; | 678 | margin: 0 0 10px 25px; |
1257 | -webkit-border-radius: 0; | ||
1258 | border-radius: 0; | ||
1259 | } | 679 | } |
1260 | /* line 35, ../scss/include/_skeleton.scss */ | 680 | ul ul, |
1261 | #jqt h1, | 681 | ul ol, |
1262 | #jqt h2 { | 682 | ol ol, |
1263 | font: bold 18px "Helvetica Neue", Helvetica; | 683 | ol ul { |
1264 | margin: 10px 20px 6px; | 684 | margin-bottom: 0; |
1265 | color: #bbbcbe; | ||
1266 | text-shadow: #3c3d3e 0 -1px 0; | ||
1267 | } | 685 | } |
1268 | /* line 41, ../scss/include/_skeleton.scss */ | 686 | li { |
1269 | #jqt .toolbar { | 687 | line-height: 20px; |
1270 | -webkit-box-sizing: border-box; | ||
1271 | box-sizing: border-box; | ||
1272 | -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0 1px 6px; | ||
1273 | box-shadow: rgba(0, 0, 0, 0.4) 0 1px 6px; | ||
1274 | border-bottom: 1px solid black; | ||
1275 | z-index: 10; | ||
1276 | position: relative; | ||
1277 | padding: 10px; | ||
1278 | height: 44px; | ||
1279 | } | 688 | } |
1280 | /* line 52, ../scss/include/_skeleton.scss */ | 689 | ul.unstyled, |
1281 | #jqt .toolbar > h1 { | 690 | ol.unstyled { |
1282 | position: absolute; | 691 | margin-left: 0; |
1283 | overflow: hidden; | 692 | list-style: none; |
1284 | left: 50%; | 693 | } |
1285 | bottom: 9px; | 694 | ul.inline, |
1286 | margin: 1px 0 0 -75px; | 695 | ol.inline { |
1287 | width: 150px; | 696 | margin-left: 0; |
1288 | font-size: 20px; | 697 | list-style: none; |
1289 | font-weight: bold; | 698 | } |
1290 | line-height: 1.3em; | 699 | ul.inline > li, |
1291 | text-align: center; | 700 | ol.inline > li { |
1292 | text-overflow: ellipsis; | 701 | display: inline-block; |
1293 | white-space: nowrap; | ||
1294 | color: white; | ||
1295 | text-shadow: #161717 0 -1px 0; | ||
1296 | } | ||
1297 | /* line 71, ../scss/include/_skeleton.scss */ | ||
1298 | #jqt.black-translucent .toolbar { | ||
1299 | padding-top: 30px; | ||
1300 | height: 64px; | ||
1301 | } | ||
1302 | /* line 75, ../scss/include/_skeleton.scss */ | ||
1303 | #jqt.landscape .toolbar > h1 { | ||
1304 | margin-left: -125px; | ||
1305 | width: 250px; | ||
1306 | } | ||
1307 | /* line 80, ../scss/include/_skeleton.scss */ | ||
1308 | #jqt .button, | ||
1309 | #jqt .back, | ||
1310 | #jqt .cancel, | ||
1311 | #jqt .add { | ||
1312 | position: absolute; | ||
1313 | overflow: hidden; | ||
1314 | width: auto; | ||
1315 | height: 30px; | ||
1316 | font-family: inherit; | ||
1317 | font-size: 12px; | ||
1318 | font-weight: bold; | ||
1319 | line-height: 30px; | ||
1320 | text-overflow: ellipsis; | ||
1321 | text-decoration: none; | ||
1322 | white-space: nowrap; | ||
1323 | background: none; | ||
1324 | bottom: 6px; | ||
1325 | right: 10px; | ||
1326 | margin: 0; | ||
1327 | padding: 0 10px; | ||
1328 | color: #e2e3e3; | ||
1329 | text-shadow: #000000 0 -1px 0; | ||
1330 | -webkit-box-shadow: rgba(255, 255, 255, 0.2) 0 1px 0, rgba(0, 0, 0, 0.2) 0 1px 2px inset; | ||
1331 | box-shadow: rgba(255, 255, 255, 0.2) 0 1px 0, rgba(0, 0, 0, 0.2) 0 1px 2px inset; | ||
1332 | border: 1px solid black; | ||
1333 | -webkit-border-radius: 5px; | ||
1334 | border-radius: 5px; | ||
1335 | background-image: none; | ||
1336 | background-color: #0a0a0a; | ||
1337 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #2f3031), color-stop(50%, #161717), color-stop(51%, #0a0a0a), color-stop(100%, #000000)); | ||
1338 | background-image: -webkit-linear-gradient(top, #2f3031, #161717 50%, #0a0a0a 51%, #000000); | ||
1339 | background-image: linear-gradient(top, #2f3031, #161717 50%, #0a0a0a 51%, #000000); | ||
1340 | } | ||
1341 | /* line 107, ../scss/include/_skeleton.scss */ | ||
1342 | #jqt .button.active, | ||
1343 | #jqt .back.active, | ||
1344 | #jqt .cancel.active, | ||
1345 | #jqt .add.active { | ||
1346 | border-color: black; | ||
1347 | background-image: none; | ||
1348 | background-color: black; | ||
1349 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #262627), color-stop(50%, #0d0d0d), color-stop(51%, #000000), color-stop(100%, #000000)); | ||
1350 | background-image: -webkit-linear-gradient(top, #262627, #0d0d0d 50%, #000000 51%, #000000); | ||
1351 | background-image: linear-gradient(top, #262627, #0d0d0d 50%, #000000 51%, #000000); | ||
1352 | color: #d8d9d9; | ||
1353 | text-shadow: #000000 0 -1px 0; | ||
1354 | } | ||
1355 | /* line 114, ../scss/include/_skeleton.scss */ | ||
1356 | #jqt .back { | ||
1357 | max-width: 60px; | ||
1358 | margin-left: 15px; | ||
1359 | overflow: visible; | ||
1360 | padding-left: 5px; | 702 | padding-left: 5px; |
703 | padding-right: 5px; | ||
1361 | } | 704 | } |
1362 | /* line 121, ../scss/include/_skeleton.scss */ | 705 | dl { |
1363 | #jqt .back:after, | 706 | margin-bottom: 20px; |
1364 | #jqt .back:before { | ||
1365 | content: ''; | ||
1366 | position: absolute; | ||
1367 | width: 20px; | ||
1368 | height: 20px; | ||
1369 | top: 1px; | ||
1370 | left: 1px; | ||
1371 | -webkit-transform: rotate(45deg) translate3d(0.2px, 0, 0); | ||
1372 | transform: rotate(45deg) translate3d(0.2px, 0, 0); | ||
1373 | -webkit-transform-origin: 0 0; | ||
1374 | transform-origin: 0 0; | ||
1375 | background-image: none; | ||
1376 | background-color: #0a0a0a; | ||
1377 | background-image: -webkit-gradient(linear, 0% 0%, 100% 100%, color-stop(0%, #2f3031), color-stop(50%, #161717), color-stop(51%, #0a0a0a), color-stop(100%, #000000)); | ||
1378 | background-image: -webkit-linear-gradient(top left, #2f3031, #161717 50%, #0a0a0a 51%, #000000); | ||
1379 | background-image: linear-gradient(top left, #2f3031, #161717 50%, #0a0a0a 51%, #000000); | ||
1380 | background-size: 100% 98%; | ||
1381 | -webkit-border-radius: 0 0 0 2px; | ||
1382 | border-radius: 0 0 0 2px; | ||
1383 | -webkit-mask-image: -webkit-linear-gradient(45deg, #000000, #000000 15px, rgba(0, 0, 0, 0) 15px); | ||
1384 | -webkit-mask-image: -webkit-gradient(linear, left bottom, right top, from(#000000), color-stop(50%, #000000), color-stop(50%, rgba(0, 0, 0, 0)), to(rgba(0, 0, 0, 0))); | ||
1385 | -webkit-mask-clip: border-box; | ||
1386 | -webkit-background-clip: content-box; | ||
1387 | } | ||
1388 | /* line 149, ../scss/include/_skeleton.scss */ | ||
1389 | #jqt .back:after { | ||
1390 | -webkit-box-shadow: rgba(0, 0, 0, 0.2) 1px 0 0 inset, rgba(0, 0, 0, 0.2) 0 -1px 0 inset; | ||
1391 | box-shadow: rgba(0, 0, 0, 0.2) 1px 0 0 inset, rgba(0, 0, 0, 0.2) 0 -1px 0 inset; | ||
1392 | } | ||
1393 | /* line 152, ../scss/include/_skeleton.scss */ | ||
1394 | #jqt .back:before { | ||
1395 | margin-left: -1px; | ||
1396 | background: black none; | ||
1397 | } | 707 | } |
1398 | /* line 157, ../scss/include/_skeleton.scss */ | 708 | dt, |
1399 | #jqt .back.active:after { | 709 | dd { |
1400 | background-image: none; | 710 | line-height: 20px; |
1401 | background-color: black; | 711 | } |
1402 | background-image: -webkit-gradient(linear, 0% 0%, 100% 100%, color-stop(0%, #262627), color-stop(50%, #0d0d0d), color-stop(51%, #000000), color-stop(100%, #000000)); | 712 | dt { |
1403 | background-image: -webkit-linear-gradient(left top, #262627, #0d0d0d 50%, #000000 51%, #000000); | ||
1404 | background-image: linear-gradient(left top, #262627, #0d0d0d 50%, #000000 51%, #000000); | ||
1405 | } | ||
1406 | /* line 160, ../scss/include/_skeleton.scss */ | ||
1407 | #jqt .back.active:before { | ||
1408 | background-color: black; | ||
1409 | } | ||
1410 | /* line 166, ../scss/include/_skeleton.scss */ | ||
1411 | #jqt .blueButton { | ||
1412 | background-image: #2f7ce3, glossy; | ||
1413 | color: white; | ||
1414 | text-shadow: #1a63c5 0 -1px 0; | ||
1415 | } | ||
1416 | /* line 170, ../scss/include/_skeleton.scss */ | ||
1417 | #jqt .whiteButton, | ||
1418 | #jqt .grayButton, | ||
1419 | #jqt .redButton, | ||
1420 | #jqt .blueButton, | ||
1421 | #jqt .greenButton { | ||
1422 | display: block; | ||
1423 | font-size: 20px; | ||
1424 | font-weight: bold; | ||
1425 | margin: 10px 20px; | ||
1426 | padding: 10px; | ||
1427 | text-align: center; | ||
1428 | text-decoration: inherit; | ||
1429 | -webkit-border-radius: 8px; | ||
1430 | border-radius: 8px; | ||
1431 | -webkit-box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px, rgba(0, 0, 0, 0.4) 0 0 0 5px, rgba(255, 255, 255, 0.3) 0 1px 0 5px; | ||
1432 | box-shadow: rgba(0, 0, 0, 0.4) 0 1px 3px, rgba(0, 0, 0, 0.4) 0 0 0 5px, rgba(255, 255, 255, 0.3) 0 1px 0 5px; | ||
1433 | } | ||
1434 | /* line 185, ../scss/include/_skeleton.scss */ | ||
1435 | #jqt .whiteButton.active, | ||
1436 | #jqt .whiteButton:active, | ||
1437 | #jqt .grayButton.active, | ||
1438 | #jqt .grayButton:active, | ||
1439 | #jqt .redButton.active, | ||
1440 | #jqt .redButton:active, | ||
1441 | #jqt .blueButton.active, | ||
1442 | #jqt .blueButton:active, | ||
1443 | #jqt .greenButton.active, | ||
1444 | #jqt .greenButton:active { | ||
1445 | background-image: none; | ||
1446 | background-color: #3c8101; | ||
1447 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #5fcd01), color-stop(50%, #479b01), color-stop(51%, #3c8101), color-stop(100%, #306801)); | ||
1448 | background-image: -webkit-linear-gradient(top, #5fcd01, #479b01 50%, #3c8101 51%, #306801); | ||
1449 | background-image: linear-gradient(top, #5fcd01, #479b01 50%, #3c8101 51%, #306801); | ||
1450 | color: white; | ||
1451 | text-shadow: #244f00 0 -1px 0; | ||
1452 | } | ||
1453 | /* line 191, ../scss/include/_skeleton.scss */ | ||
1454 | #jqt .whiteButton { | ||
1455 | background-image: none; | ||
1456 | background-color: #eeeeee; | ||
1457 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(50%, #fbfbfb), color-stop(51%, #eeeeee), color-stop(100%, #e1e1e1)); | ||
1458 | background-image: -webkit-linear-gradient(top, #ffffff, #fbfbfb 50%, #eeeeee 51%, #e1e1e1); | ||
1459 | background-image: linear-gradient(top, #ffffff, #fbfbfb 50%, #eeeeee 51%, #e1e1e1); | ||
1460 | color: #151515; | ||
1461 | text-shadow: white 0 1px 0; | ||
1462 | } | ||
1463 | /* line 195, ../scss/include/_skeleton.scss */ | ||
1464 | #jqt .grayButton { | ||
1465 | background-image: none; | ||
1466 | background-color: #444444; | ||
1467 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #6a6a6a), color-stop(50%, #515151), color-stop(51%, #444444), color-stop(100%, #373737)); | ||
1468 | background-image: -webkit-linear-gradient(top, #6a6a6a, #515151 50%, #444444 51%, #373737); | ||
1469 | background-image: linear-gradient(top, #6a6a6a, #515151 50%, #444444 51%, #373737); | ||
1470 | color: white; | ||
1471 | text-shadow: #2b2b2b 0 -1px 0; | ||
1472 | } | ||
1473 | /* line 200, ../scss/include/_skeleton.scss */ | ||
1474 | #jqt .redButton { | ||
1475 | background-image: none; | ||
1476 | background-color: #d83b38; | ||
1477 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #e57a78), color-stop(50%, #dc504d), color-stop(51%, #d83b38), color-stop(100%, #ce2c28)); | ||
1478 | background-image: -webkit-linear-gradient(top, #e57a78, #dc504d 50%, #d83b38 51%, #ce2c28); | ||
1479 | background-image: linear-gradient(top, #e57a78, #dc504d 50%, #d83b38 51%, #ce2c28); | ||
1480 | color: white; | ||
1481 | text-shadow: #b92724 0 -1px 0; | ||
1482 | } | ||
1483 | /* line 204, ../scss/include/_skeleton.scss */ | ||
1484 | #jqt .redButton.active, | ||
1485 | #jqt .redButton:active { | ||
1486 | background-image: none; | ||
1487 | background-color: #c12926; | ||
1488 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #de5856), color-stop(50%, #d52e2b), color-stop(51%, #c12926), color-stop(100%, #ac2422)); | ||
1489 | background-image: -webkit-linear-gradient(top, #de5856, #d52e2b 50%, #c12926 51%, #ac2422); | ||
1490 | background-image: linear-gradient(top, #de5856, #d52e2b 50%, #c12926 51%, #ac2422); | ||
1491 | color: white; | ||
1492 | text-shadow: #97201e 0 -1px 0; | ||
1493 | } | ||
1494 | /* line 211, ../scss/include/_skeleton.scss */ | ||
1495 | #jqt .greenButton { | ||
1496 | background-image: none; | ||
1497 | background-color: #53b401; | ||
1498 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76fe04), color-stop(50%, #5fcd01), color-stop(51%, #53b401), color-stop(100%, #479b01)); | ||
1499 | background-image: -webkit-linear-gradient(top, #76fe04, #5fcd01 50%, #53b401 51%, #479b01); | ||
1500 | background-image: linear-gradient(top, #76fe04, #5fcd01 50%, #53b401 51%, #479b01); | ||
1501 | color: white; | ||
1502 | text-shadow: #3c8101 0 -1px 0; | ||
1503 | } | ||
1504 | /* line 216, ../scss/include/_skeleton.scss */ | ||
1505 | #jqt .leftButton, | ||
1506 | #jqt .cancel, | ||
1507 | #jqt .back { | ||
1508 | left: 6px; | ||
1509 | right: auto; | ||
1510 | } | ||
1511 | /* line 221, ../scss/include/_skeleton.scss */ | ||
1512 | #jqt .add { | ||
1513 | font-size: 24px; | ||
1514 | line-height: 24px; | ||
1515 | font-weight: bold; | 713 | font-weight: bold; |
1516 | } | 714 | } |
1517 | /* line 229, ../scss/include/_skeleton.scss */ | 715 | dd { |
1518 | #jqt ul { | 716 | margin-left: 10px; |
1519 | padding: 0; | ||
1520 | margin: 5px 10px 10px 10px; | ||
1521 | -webkit-margin-collapse: separate; | ||
1522 | } | ||
1523 | /* line 231, ../scss/include/_skeleton.scss */ | ||
1524 | #jqt ul, | ||
1525 | #jqt ul.individual li { | ||
1526 | background-color: #555658; | ||
1527 | color: #d5d6d7; | ||
1528 | text-shadow: #3c3d3e 0 -1px 0; | ||
1529 | border: 1px solid #2f3031; | ||
1530 | font: bold 18px "Helvetica Neue", Helvetica; | ||
1531 | } | ||
1532 | /* line 240, ../scss/include/_skeleton.scss */ | ||
1533 | #jqt ul:first-child { | ||
1534 | margin-top: 15px; | ||
1535 | } | 717 | } |
1536 | /* line 246, ../scss/include/_skeleton.scss */ | 718 | .dl-horizontal { |
1537 | #jqt ul li { | 719 | *zoom: 1; |
1538 | border-top: 1px solid #48494b; | ||
1539 | list-style-type: none; | ||
1540 | overflow: hidden; | ||
1541 | padding: 10px; | ||
1542 | -webkit-transform: translate3d(0, 0, 0); | ||
1543 | /* expensive way to avoid flickr */ | ||
1544 | |||
1545 | } | 720 | } |
1546 | /* line 253, ../scss/include/_skeleton.scss */ | 721 | .dl-horizontal:before, |
1547 | #jqt ul li a { | 722 | .dl-horizontal:after { |
1548 | text-decoration: none; | 723 | display: table; |
1549 | text-overflow: ellipsis; | 724 | content: ""; |
1550 | white-space: nowrap; | 725 | line-height: 0; |
1551 | overflow: hidden; | ||
1552 | display: block; | ||
1553 | padding: 10px; | ||
1554 | margin: -10px; | ||
1555 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
1556 | -webkit-transform: translateZ(0); | ||
1557 | color: white; | ||
1558 | text-shadow: #3c3d3e 0 -1px 0; | ||
1559 | } | 726 | } |
1560 | /* line 265, ../scss/include/_skeleton.scss */ | 727 | .dl-horizontal:after { |
1561 | #jqt ul li a.active { | 728 | clear: both; |
1562 | background-image: none; | 729 | } |
1563 | background-color: #53b401; | 730 | .dl-horizontal dt { |
1564 | -webkit-box-shadow: #5cc801 0 1px 0px inset; | 731 | float: left; |
1565 | box-shadow: #5cc801 0 1px 0px inset; | 732 | width: 160px; |
1566 | color: white; | 733 | clear: left; |
1567 | text-shadow: #3c8101 0 -1px 0; | ||
1568 | } | ||
1569 | /* line 270, ../scss/include/_skeleton.scss */ | ||
1570 | #jqt ul li a.active small { | ||
1571 | color: #a0fe50; | ||
1572 | text-shadow: #000000 0 -1px 0; | ||
1573 | } | ||
1574 | /* line 271, ../scss/include/_skeleton.scss */ | ||
1575 | #jqt ul li a.active small.counter { | ||
1576 | background-color: #306801; | ||
1577 | } | ||
1578 | /* line 280, ../scss/include/_skeleton.scss */ | ||
1579 | #jqt ul li small { | ||
1580 | color: #53b401; | ||
1581 | font: 16px "Helvetica Neue", Helvetica; | ||
1582 | text-align: right; | 734 | text-align: right; |
735 | overflow: hidden; | ||
1583 | text-overflow: ellipsis; | 736 | text-overflow: ellipsis; |
1584 | white-space: nowrap; | 737 | white-space: nowrap; |
1585 | overflow: hidden; | 738 | } |
739 | .dl-horizontal dd { | ||
740 | margin-left: 180px; | ||
741 | } | ||
742 | hr { | ||
743 | margin: 20px 0; | ||
744 | border: 0; | ||
745 | border-top: 1px solid #eeeeee; | ||
746 | border-bottom: 1px solid #ffffff; | ||
747 | } | ||
748 | abbr[title], | ||
749 | abbr[data-original-title] { | ||
750 | cursor: help; | ||
751 | border-bottom: 1px dotted #999999; | ||
752 | } | ||
753 | abbr.initialism { | ||
754 | font-size: 90%; | ||
755 | text-transform: uppercase; | ||
756 | } | ||
757 | blockquote { | ||
758 | padding: 0 0 0 15px; | ||
759 | margin: 0 0 20px; | ||
760 | border-left: 5px solid #eeeeee; | ||
761 | } | ||
762 | blockquote p { | ||
763 | margin-bottom: 0; | ||
764 | font-size: 16px; | ||
765 | font-weight: 300; | ||
766 | line-height: 25px; | ||
767 | } | ||
768 | blockquote small { | ||
1586 | display: block; | 769 | display: block; |
1587 | width: 23%; | 770 | line-height: 20px; |
1588 | position: relative; | 771 | color: #999999; |
1589 | z-index: 20; | 772 | } |
773 | blockquote small:before { | ||
774 | content: '\2014 \00A0'; | ||
775 | } | ||
776 | blockquote.pull-right { | ||
1590 | float: right; | 777 | float: right; |
1591 | line-height: 16px; | 778 | padding-right: 15px; |
1592 | padding: 2px 8px 4px 8px; | 779 | padding-left: 0; |
1593 | } | 780 | border-right: 5px solid #eeeeee; |
1594 | /* line 295, ../scss/include/_skeleton.scss */ | 781 | border-left: 0; |
1595 | #jqt ul li small.counter { | 782 | } |
1596 | background: #2f3031; | 783 | blockquote.pull-right p, |
1597 | color: #949698; | 784 | blockquote.pull-right small { |
1598 | text-shadow: #0a0a0a 0 -1px 0; | 785 | text-align: right; |
1599 | z-index: 10; | 786 | } |
1600 | font-size: 16px; | 787 | blockquote.pull-right small:before { |
1601 | font-weight: bold; | 788 | content: ''; |
789 | } | ||
790 | blockquote.pull-right small:after { | ||
791 | content: '\00A0 \2014'; | ||
792 | } | ||
793 | q:before, | ||
794 | q:after, | ||
795 | blockquote:before, | ||
796 | blockquote:after { | ||
797 | content: ""; | ||
798 | } | ||
799 | address { | ||
800 | display: block; | ||
801 | margin-bottom: 20px; | ||
802 | font-style: normal; | ||
803 | line-height: 20px; | ||
804 | } | ||
805 | code, | ||
806 | pre { | ||
807 | padding: 0 3px 2px; | ||
808 | font-family: Monaco, Menlo, Consolas, "Courier New", monospace; | ||
809 | font-size: 12px; | ||
810 | color: #333333; | ||
1602 | -webkit-border-radius: 3px; | 811 | -webkit-border-radius: 3px; |
812 | -moz-border-radius: 3px; | ||
1603 | border-radius: 3px; | 813 | border-radius: 3px; |
814 | } | ||
815 | code { | ||
816 | padding: 2px 4px; | ||
817 | color: #d14; | ||
818 | background-color: #f7f7f9; | ||
819 | border: 1px solid #e1e1e8; | ||
820 | white-space: nowrap; | ||
821 | } | ||
822 | pre { | ||
1604 | display: block; | 823 | display: block; |
1605 | width: auto; | 824 | padding: 9.5px; |
825 | margin: 0 0 10px; | ||
826 | font-size: 13px; | ||
827 | line-height: 20px; | ||
828 | word-break: break-all; | ||
829 | word-wrap: break-word; | ||
830 | white-space: pre; | ||
831 | white-space: pre-wrap; | ||
832 | background-color: #f5f5f5; | ||
833 | border: 1px solid #ccc; | ||
834 | border: 1px solid rgba(0, 0, 0, 0.15); | ||
835 | -webkit-border-radius: 4px; | ||
836 | -moz-border-radius: 4px; | ||
837 | border-radius: 4px; | ||
838 | } | ||
839 | pre.prettyprint { | ||
840 | margin-bottom: 20px; | ||
1606 | } | 841 | } |
1607 | /* line 311, ../scss/include/_skeleton.scss */ | 842 | pre code { |
1608 | #jqt ul li ::-webkit-input-placeholder { | 843 | padding: 0; |
1609 | color: #949698; | 844 | color: inherit; |
1610 | text-shadow: #3c3d3e 0 -1px 0; | 845 | white-space: pre; |
1611 | } | 846 | white-space: pre-wrap; |
1612 | /* line 322, ../scss/include/_skeleton.scss */ | 847 | background-color: transparent; |
1613 | #jqt ul li input[type="text"], | ||
1614 | #jqt ul li input[type="password"], | ||
1615 | #jqt ul li input[type="tel"], | ||
1616 | #jqt ul li input[type="number"], | ||
1617 | #jqt ul li input[type="search"], | ||
1618 | #jqt ul li input[type="email"], | ||
1619 | #jqt ul li input[type="url"], | ||
1620 | #jqt ul li textarea, | ||
1621 | #jqt ul li select { | ||
1622 | color: white; | ||
1623 | text-shadow: #3c3d3e 0 -1px 0; | ||
1624 | background: transparent url("data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="); | ||
1625 | border: 0; | 848 | border: 0; |
1626 | font: normal 17px "Helvetica Neue", Helvetica; | 849 | } |
850 | .pre-scrollable { | ||
851 | max-height: 340px; | ||
852 | overflow-y: scroll; | ||
853 | } | ||
854 | form { | ||
855 | margin: 0 0 20px; | ||
856 | } | ||
857 | fieldset { | ||
1627 | padding: 0; | 858 | padding: 0; |
1628 | display: inline-block; | 859 | margin: 0; |
1629 | margin-left: 0px; | 860 | border: 0; |
1630 | width: 100%; | ||
1631 | -webkit-appearance: textarea; | ||
1632 | } | 861 | } |
1633 | /* line 333, ../scss/include/_skeleton.scss */ | 862 | legend { |
1634 | #jqt ul li textarea { | 863 | display: block; |
1635 | height: 120px; | 864 | width: 100%; |
1636 | padding: 0; | 865 | padding: 0; |
1637 | text-indent: -2px; | 866 | margin-bottom: 20px; |
867 | font-size: 21px; | ||
868 | line-height: 40px; | ||
869 | color: #333333; | ||
870 | border: 0; | ||
871 | border-bottom: 1px solid #e5e5e5; | ||
1638 | } | 872 | } |
1639 | /* line 338, ../scss/include/_skeleton.scss */ | 873 | legend small { |
1640 | #jqt ul li input[type="checkbox"], | 874 | font-size: 15px; |
1641 | #jqt ul li input[type="radio"] { | 875 | color: #999999; |
1642 | margin: 0; | ||
1643 | padding: 10px; | ||
1644 | } | 876 | } |
1645 | /* line 342, ../scss/include/_skeleton.scss */ | 877 | label, |
1646 | #jqt ul li input[type="checkbox"]:after, | 878 | input, |
1647 | #jqt ul li input[type="radio"]:after { | 879 | button, |
1648 | content: attr(title); | 880 | select, |
1649 | position: absolute; | 881 | textarea { |
882 | font-size: 14px; | ||
883 | font-weight: normal; | ||
884 | line-height: 20px; | ||
885 | } | ||
886 | input, | ||
887 | button, | ||
888 | select, | ||
889 | textarea { | ||
890 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
891 | } | ||
892 | label { | ||
1650 | display: block; | 893 | display: block; |
1651 | width: 0; | 894 | margin-bottom: 5px; |
1652 | left: 21px; | 895 | } |
1653 | top: 12px; | 896 | select, |
1654 | font-family: "Helvetica Neue", Helvetica; | 897 | textarea, |
1655 | font-size: 17px; | 898 | input[type="text"], |
1656 | line-height: 21px; | 899 | input[type="password"], |
1657 | width: 246px; | 900 | input[type="datetime"], |
1658 | margin: 0 0 0 17px; | 901 | input[type="datetime-local"], |
1659 | color: white; | 902 | input[type="date"], |
1660 | text-shadow: #3c3d3e 0 -1px 0; | 903 | input[type="month"], |
1661 | } | 904 | input[type="time"], |
1662 | /* line 355, ../scss/include/_skeleton.scss */ | 905 | input[type="week"], |
1663 | #jqt ul li input[type='submit'] { | 906 | input[type="number"], |
907 | input[type="email"], | ||
908 | input[type="url"], | ||
909 | input[type="search"], | ||
910 | input[type="tel"], | ||
911 | input[type="color"], | ||
912 | .uneditable-input { | ||
913 | display: inline-block; | ||
914 | height: 20px; | ||
915 | padding: 4px 6px; | ||
916 | margin-bottom: 10px; | ||
917 | font-size: 14px; | ||
918 | line-height: 20px; | ||
919 | color: #555555; | ||
1664 | -webkit-border-radius: 4px; | 920 | -webkit-border-radius: 4px; |
921 | -moz-border-radius: 4px; | ||
1665 | border-radius: 4px; | 922 | border-radius: 4px; |
1666 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eeeeee), to(#9c9ea0)); | 923 | vertical-align: middle; |
1667 | border: 1px outset #aaa; | 924 | } |
1668 | display: block; | 925 | input, |
1669 | font-size: inherit; | 926 | textarea, |
1670 | font-weight: inherit; | 927 | .uneditable-input { |
1671 | padding: 10px; | 928 | width: 206px; |
929 | } | ||
930 | textarea { | ||
931 | height: auto; | ||
932 | } | ||
933 | textarea, | ||
934 | input[type="text"], | ||
935 | input[type="password"], | ||
936 | input[type="datetime"], | ||
937 | input[type="datetime-local"], | ||
938 | input[type="date"], | ||
939 | input[type="month"], | ||
940 | input[type="time"], | ||
941 | input[type="week"], | ||
942 | input[type="number"], | ||
943 | input[type="email"], | ||
944 | input[type="url"], | ||
945 | input[type="search"], | ||
946 | input[type="tel"], | ||
947 | input[type="color"], | ||
948 | .uneditable-input { | ||
949 | background-color: #ffffff; | ||
950 | border: 1px solid #cccccc; | ||
951 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
952 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
953 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
954 | -webkit-transition: border linear .2s, box-shadow linear .2s; | ||
955 | -moz-transition: border linear .2s, box-shadow linear .2s; | ||
956 | -o-transition: border linear .2s, box-shadow linear .2s; | ||
957 | transition: border linear .2s, box-shadow linear .2s; | ||
958 | } | ||
959 | textarea:focus, | ||
960 | input[type="text"]:focus, | ||
961 | input[type="password"]:focus, | ||
962 | input[type="datetime"]:focus, | ||
963 | input[type="datetime-local"]:focus, | ||
964 | input[type="date"]:focus, | ||
965 | input[type="month"]:focus, | ||
966 | input[type="time"]:focus, | ||
967 | input[type="week"]:focus, | ||
968 | input[type="number"]:focus, | ||
969 | input[type="email"]:focus, | ||
970 | input[type="url"]:focus, | ||
971 | input[type="search"]:focus, | ||
972 | input[type="tel"]:focus, | ||
973 | input[type="color"]:focus, | ||
974 | .uneditable-input:focus { | ||
975 | border-color: rgba(82, 168, 236, 0.8); | ||
976 | outline: 0; | ||
977 | outline: thin dotted \9; | ||
978 | /* IE6-9 */ | ||
979 | |||
980 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); | ||
981 | -moz-box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); | ||
982 | box-shadow: inset 0 1px 1px rgba(0,0,0,.075), 0 0 8px rgba(82,168,236,.6); | ||
983 | } | ||
984 | input[type="radio"], | ||
985 | input[type="checkbox"] { | ||
986 | margin: 4px 0 0; | ||
987 | *margin-top: 0; | ||
988 | /* IE7 */ | ||
989 | |||
990 | margin-top: 1px \9; | ||
991 | /* IE8-9 */ | ||
992 | |||
993 | line-height: normal; | ||
994 | } | ||
995 | input[type="file"], | ||
996 | input[type="image"], | ||
997 | input[type="submit"], | ||
998 | input[type="reset"], | ||
999 | input[type="button"], | ||
1000 | input[type="radio"], | ||
1001 | input[type="checkbox"] { | ||
1002 | width: auto; | ||
1003 | } | ||
1004 | select, | ||
1005 | input[type="file"] { | ||
1006 | height: 30px; | ||
1007 | /* In IE7, the height of the select element cannot be changed by height, only font-size */ | ||
1008 | |||
1009 | *margin-top: 4px; | ||
1010 | /* For IE7, add top margin to align select with labels */ | ||
1011 | |||
1012 | line-height: 30px; | ||
1013 | } | ||
1014 | select { | ||
1015 | width: 220px; | ||
1016 | border: 1px solid #cccccc; | ||
1017 | background-color: #ffffff; | ||
1018 | } | ||
1019 | select[multiple], | ||
1020 | select[size] { | ||
1021 | height: auto; | ||
1022 | } | ||
1023 | select:focus, | ||
1024 | input[type="file"]:focus, | ||
1025 | input[type="radio"]:focus, | ||
1026 | input[type="checkbox"]:focus { | ||
1027 | outline: thin dotted #333; | ||
1028 | outline: 5px auto -webkit-focus-ring-color; | ||
1029 | outline-offset: -2px; | ||
1030 | } | ||
1031 | .uneditable-input, | ||
1032 | .uneditable-textarea { | ||
1033 | color: #999999; | ||
1034 | background-color: #fcfcfc; | ||
1035 | border-color: #cccccc; | ||
1036 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); | ||
1037 | -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); | ||
1038 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.025); | ||
1039 | cursor: not-allowed; | ||
1040 | } | ||
1041 | .uneditable-input { | ||
1042 | overflow: hidden; | ||
1043 | white-space: nowrap; | ||
1044 | } | ||
1045 | .uneditable-textarea { | ||
1046 | width: auto; | ||
1047 | height: auto; | ||
1048 | } | ||
1049 | input:-moz-placeholder, | ||
1050 | textarea:-moz-placeholder { | ||
1051 | color: #999999; | ||
1052 | } | ||
1053 | input:-ms-input-placeholder, | ||
1054 | textarea:-ms-input-placeholder { | ||
1055 | color: #999999; | ||
1056 | } | ||
1057 | input::-webkit-input-placeholder, | ||
1058 | textarea::-webkit-input-placeholder { | ||
1059 | color: #999999; | ||
1060 | } | ||
1061 | .radio, | ||
1062 | .checkbox { | ||
1063 | min-height: 20px; | ||
1064 | padding-left: 20px; | ||
1065 | } | ||
1066 | .radio input[type="radio"], | ||
1067 | .checkbox input[type="checkbox"] { | ||
1068 | float: left; | ||
1069 | margin-left: -20px; | ||
1070 | } | ||
1071 | .controls > .radio:first-child, | ||
1072 | .controls > .checkbox:first-child { | ||
1073 | padding-top: 5px; | ||
1074 | } | ||
1075 | .radio.inline, | ||
1076 | .checkbox.inline { | ||
1077 | display: inline-block; | ||
1078 | padding-top: 5px; | ||
1079 | margin-bottom: 0; | ||
1080 | vertical-align: middle; | ||
1081 | } | ||
1082 | .radio.inline + .radio.inline, | ||
1083 | .checkbox.inline + .checkbox.inline { | ||
1084 | margin-left: 10px; | ||
1085 | } | ||
1086 | .input-mini { | ||
1087 | width: 60px; | ||
1088 | } | ||
1089 | .input-small { | ||
1090 | width: 90px; | ||
1091 | } | ||
1092 | .input-medium { | ||
1093 | width: 150px; | ||
1094 | } | ||
1095 | .input-large { | ||
1096 | width: 210px; | ||
1097 | } | ||
1098 | .input-xlarge { | ||
1099 | width: 270px; | ||
1100 | } | ||
1101 | .input-xxlarge { | ||
1102 | width: 530px; | ||
1103 | } | ||
1104 | input[class*="span"], | ||
1105 | select[class*="span"], | ||
1106 | textarea[class*="span"], | ||
1107 | .uneditable-input[class*="span"], | ||
1108 | .row-fluid input[class*="span"], | ||
1109 | .row-fluid select[class*="span"], | ||
1110 | .row-fluid textarea[class*="span"], | ||
1111 | .row-fluid .uneditable-input[class*="span"] { | ||
1112 | float: none; | ||
1113 | margin-left: 0; | ||
1114 | } | ||
1115 | .input-append input[class*="span"], | ||
1116 | .input-append .uneditable-input[class*="span"], | ||
1117 | .input-prepend input[class*="span"], | ||
1118 | .input-prepend .uneditable-input[class*="span"], | ||
1119 | .row-fluid input[class*="span"], | ||
1120 | .row-fluid select[class*="span"], | ||
1121 | .row-fluid textarea[class*="span"], | ||
1122 | .row-fluid .uneditable-input[class*="span"], | ||
1123 | .row-fluid .input-prepend [class*="span"], | ||
1124 | .row-fluid .input-append [class*="span"] { | ||
1125 | display: inline-block; | ||
1672 | } | 1126 | } |
1673 | /* line 368, ../scss/include/_skeleton.scss */ | 1127 | input, |
1674 | #jqt ul li.arrow small, | 1128 | textarea, |
1675 | #jqt ul li.forward small { | 1129 | .uneditable-input { |
1676 | margin-right: 24px; | 1130 | margin-left: 0; |
1677 | } | 1131 | } |
1678 | /* line 380, ../scss/include/_skeleton.scss */ | 1132 | .controls-row [class*="span"] + [class*="span"] { |
1679 | #jqt ul li.forward:before { | 1133 | margin-left: 20px; |
1134 | } | ||
1135 | input.span12, textarea.span12, .uneditable-input.span12 { | ||
1136 | width: 926px; | ||
1137 | } | ||
1138 | input.span11, textarea.span11, .uneditable-input.span11 { | ||
1139 | width: 846px; | ||
1140 | } | ||
1141 | input.span10, textarea.span10, .uneditable-input.span10 { | ||
1142 | width: 766px; | ||
1143 | } | ||
1144 | input.span9, textarea.span9, .uneditable-input.span9 { | ||
1145 | width: 686px; | ||
1146 | } | ||
1147 | input.span8, textarea.span8, .uneditable-input.span8 { | ||
1148 | width: 606px; | ||
1149 | } | ||
1150 | input.span7, textarea.span7, .uneditable-input.span7 { | ||
1151 | width: 526px; | ||
1152 | } | ||
1153 | input.span6, textarea.span6, .uneditable-input.span6 { | ||
1154 | width: 446px; | ||
1155 | } | ||
1156 | input.span5, textarea.span5, .uneditable-input.span5 { | ||
1157 | width: 366px; | ||
1158 | } | ||
1159 | input.span4, textarea.span4, .uneditable-input.span4 { | ||
1160 | width: 286px; | ||
1161 | } | ||
1162 | input.span3, textarea.span3, .uneditable-input.span3 { | ||
1163 | width: 206px; | ||
1164 | } | ||
1165 | input.span2, textarea.span2, .uneditable-input.span2 { | ||
1166 | width: 126px; | ||
1167 | } | ||
1168 | input.span1, textarea.span1, .uneditable-input.span1 { | ||
1169 | width: 46px; | ||
1170 | } | ||
1171 | .controls-row { | ||
1172 | *zoom: 1; | ||
1173 | } | ||
1174 | .controls-row:before, | ||
1175 | .controls-row:after { | ||
1176 | display: table; | ||
1680 | content: ""; | 1177 | content: ""; |
1681 | position: absolute; | ||
1682 | display: block; | ||
1683 | top: 50%; | ||
1684 | right: 6px; | ||
1685 | margin-top: -12px; | ||
1686 | width: 24px; | ||
1687 | height: 24px; | ||
1688 | -webkit-border-radius: 12px; | ||
1689 | border-radius: 12px; | ||
1690 | background-image: none; | ||
1691 | background-color: #53b401; | ||
1692 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #76fe04), color-stop(50%, #5fcd01), color-stop(51%, #53b401), color-stop(100%, #479b01)); | ||
1693 | background-image: -webkit-linear-gradient(top, #76fe04, #5fcd01 50%, #53b401 51%, #479b01); | ||
1694 | background-image: linear-gradient(top, #76fe04, #5fcd01 50%, #53b401 51%, #479b01); | ||
1695 | border: 2px solid #fff; | ||
1696 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | ||
1697 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); | ||
1698 | -webkit-box-sizing: border-box; | ||
1699 | padding: 0; | ||
1700 | z-index: 10; | ||
1701 | line-height: 0; | 1178 | line-height: 0; |
1702 | pointer-events: none; | ||
1703 | } | 1179 | } |
1704 | /* line 395, ../scss/include/_skeleton.scss */ | 1180 | .controls-row:after { |
1705 | #jqt ul li.forward:after { | 1181 | clear: both; |
1706 | color: white; | ||
1707 | text-shadow: #3c8101 0 -1px 0; | ||
1708 | filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=100); | ||
1709 | opacity: 1; | ||
1710 | font-size: 24px; | ||
1711 | } | ||
1712 | /* line 404, ../scss/include/_skeleton.scss */ | ||
1713 | #jqt ul.rounded, | ||
1714 | #jqt ul.individual li { | ||
1715 | -webkit-box-shadow: rgba(255, 255, 255, 0.15) 0 1px 0; | ||
1716 | box-shadow: rgba(255, 255, 255, 0.15) 0 1px 0; | ||
1717 | border: 1px solid #2f3031; | ||
1718 | } | ||
1719 | /* line 409, ../scss/include/_skeleton.scss */ | ||
1720 | #jqt ul.rounded { | ||
1721 | -webkit-border-radius: 8px; | ||
1722 | border-radius: 8px; | ||
1723 | } | ||
1724 | /* line 412, ../scss/include/_skeleton.scss */ | ||
1725 | #jqt ul.rounded li:first-child, | ||
1726 | #jqt ul.rounded li:first-child a { | ||
1727 | border-top: 0; | ||
1728 | -webkit-border-top-left-radius: 8px; | ||
1729 | border-top-left-radius: 8px; | ||
1730 | -webkit-border-top-right-radius: 8px; | ||
1731 | border-top-right-radius: 8px; | ||
1732 | } | ||
1733 | /* line 416, ../scss/include/_skeleton.scss */ | ||
1734 | #jqt ul.rounded li:last-child, | ||
1735 | #jqt ul.rounded li:last-child a { | ||
1736 | -webkit-border-bottom-left-radius: 8px; | ||
1737 | border-bottom-left-radius: 8px; | ||
1738 | -webkit-border-bottom-right-radius: 8px; | ||
1739 | border-bottom-right-radius: 8px; | ||
1740 | } | ||
1741 | /* line 422, ../scss/include/_skeleton.scss */ | ||
1742 | #jqt ul.form li { | ||
1743 | padding: 7px 10px; | ||
1744 | } | 1182 | } |
1745 | /* line 425, ../scss/include/_skeleton.scss */ | 1183 | .controls-row [class*="span"], |
1746 | #jqt ul.form li.error { | 1184 | .row-fluid .controls-row [class*="span"] { |
1747 | border: 2px solid red; | 1185 | float: left; |
1748 | } | 1186 | } |
1749 | /* line 428, ../scss/include/_skeleton.scss */ | 1187 | .controls-row .checkbox[class*="span"], |
1750 | #jqt ul.form li.error + #jqt ul.form li.error { | 1188 | .controls-row .radio[class*="span"] { |
1751 | border-top: 0; | 1189 | padding-top: 5px; |
1190 | } | ||
1191 | input[disabled], | ||
1192 | select[disabled], | ||
1193 | textarea[disabled], | ||
1194 | input[readonly], | ||
1195 | select[readonly], | ||
1196 | textarea[readonly] { | ||
1197 | cursor: not-allowed; | ||
1198 | background-color: #eeeeee; | ||
1752 | } | 1199 | } |
1753 | /* line 438, ../scss/include/_skeleton.scss */ | 1200 | input[type="radio"][disabled], |
1754 | #jqt ul.metal li { | 1201 | input[type="checkbox"][disabled], |
1755 | background-image: none; | 1202 | input[type="radio"][readonly], |
1756 | border-top: 1px solid #fff; | 1203 | input[type="checkbox"][readonly] { |
1757 | border-bottom: 1px solid #666; | 1204 | background-color: transparent; |
1758 | font-size: 26px; | 1205 | } |
1206 | .control-group.warning .control-label, | ||
1207 | .control-group.warning .help-block, | ||
1208 | .control-group.warning .help-inline { | ||
1209 | color: #c09853; | ||
1210 | } | ||
1211 | .control-group.warning .checkbox, | ||
1212 | .control-group.warning .radio, | ||
1213 | .control-group.warning input, | ||
1214 | .control-group.warning select, | ||
1215 | .control-group.warning textarea { | ||
1216 | color: #c09853; | ||
1217 | } | ||
1218 | .control-group.warning input, | ||
1219 | .control-group.warning select, | ||
1220 | .control-group.warning textarea { | ||
1221 | border-color: #c09853; | ||
1222 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1223 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1224 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1225 | } | ||
1226 | .control-group.warning input:focus, | ||
1227 | .control-group.warning select:focus, | ||
1228 | .control-group.warning textarea:focus { | ||
1229 | border-color: #a47e3c; | ||
1230 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; | ||
1231 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; | ||
1232 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #dbc59e; | ||
1233 | } | ||
1234 | .control-group.warning .input-prepend .add-on, | ||
1235 | .control-group.warning .input-append .add-on { | ||
1236 | color: #c09853; | ||
1237 | background-color: #fcf8e3; | ||
1238 | border-color: #c09853; | ||
1239 | } | ||
1240 | .control-group.error .control-label, | ||
1241 | .control-group.error .help-block, | ||
1242 | .control-group.error .help-inline { | ||
1243 | color: #b94a48; | ||
1244 | } | ||
1245 | .control-group.error .checkbox, | ||
1246 | .control-group.error .radio, | ||
1247 | .control-group.error input, | ||
1248 | .control-group.error select, | ||
1249 | .control-group.error textarea { | ||
1250 | color: #b94a48; | ||
1251 | } | ||
1252 | .control-group.error input, | ||
1253 | .control-group.error select, | ||
1254 | .control-group.error textarea { | ||
1255 | border-color: #b94a48; | ||
1256 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1257 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1258 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1259 | } | ||
1260 | .control-group.error input:focus, | ||
1261 | .control-group.error select:focus, | ||
1262 | .control-group.error textarea:focus { | ||
1263 | border-color: #953b39; | ||
1264 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; | ||
1265 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; | ||
1266 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #d59392; | ||
1267 | } | ||
1268 | .control-group.error .input-prepend .add-on, | ||
1269 | .control-group.error .input-append .add-on { | ||
1270 | color: #b94a48; | ||
1271 | background-color: #f2dede; | ||
1272 | border-color: #b94a48; | ||
1273 | } | ||
1274 | .control-group.success .control-label, | ||
1275 | .control-group.success .help-block, | ||
1276 | .control-group.success .help-inline { | ||
1277 | color: #468847; | ||
1278 | } | ||
1279 | .control-group.success .checkbox, | ||
1280 | .control-group.success .radio, | ||
1281 | .control-group.success input, | ||
1282 | .control-group.success select, | ||
1283 | .control-group.success textarea { | ||
1284 | color: #468847; | ||
1285 | } | ||
1286 | .control-group.success input, | ||
1287 | .control-group.success select, | ||
1288 | .control-group.success textarea { | ||
1289 | border-color: #468847; | ||
1290 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1291 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1292 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1293 | } | ||
1294 | .control-group.success input:focus, | ||
1295 | .control-group.success select:focus, | ||
1296 | .control-group.success textarea:focus { | ||
1297 | border-color: #356635; | ||
1298 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; | ||
1299 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; | ||
1300 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7aba7b; | ||
1301 | } | ||
1302 | .control-group.success .input-prepend .add-on, | ||
1303 | .control-group.success .input-append .add-on { | ||
1304 | color: #468847; | ||
1305 | background-color: #dff0d8; | ||
1306 | border-color: #468847; | ||
1307 | } | ||
1308 | .control-group.info .control-label, | ||
1309 | .control-group.info .help-block, | ||
1310 | .control-group.info .help-inline { | ||
1311 | color: #3a87ad; | ||
1312 | } | ||
1313 | .control-group.info .checkbox, | ||
1314 | .control-group.info .radio, | ||
1315 | .control-group.info input, | ||
1316 | .control-group.info select, | ||
1317 | .control-group.info textarea { | ||
1318 | color: #3a87ad; | ||
1319 | } | ||
1320 | .control-group.info input, | ||
1321 | .control-group.info select, | ||
1322 | .control-group.info textarea { | ||
1323 | border-color: #3a87ad; | ||
1324 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1325 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1326 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075); | ||
1327 | } | ||
1328 | .control-group.info input:focus, | ||
1329 | .control-group.info select:focus, | ||
1330 | .control-group.info textarea:focus { | ||
1331 | border-color: #2d6987; | ||
1332 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; | ||
1333 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; | ||
1334 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 6px #7ab5d3; | ||
1335 | } | ||
1336 | .control-group.info .input-prepend .add-on, | ||
1337 | .control-group.info .input-append .add-on { | ||
1338 | color: #3a87ad; | ||
1339 | background-color: #d9edf7; | ||
1340 | border-color: #3a87ad; | ||
1341 | } | ||
1342 | input:focus:invalid, | ||
1343 | textarea:focus:invalid, | ||
1344 | select:focus:invalid { | ||
1345 | color: #b94a48; | ||
1346 | border-color: #ee5f5b; | ||
1347 | } | ||
1348 | input:focus:invalid:focus, | ||
1349 | textarea:focus:invalid:focus, | ||
1350 | select:focus:invalid:focus { | ||
1351 | border-color: #e9322d; | ||
1352 | -webkit-box-shadow: 0 0 6px #f8b9b7; | ||
1353 | -moz-box-shadow: 0 0 6px #f8b9b7; | ||
1354 | box-shadow: 0 0 6px #f8b9b7; | ||
1355 | } | ||
1356 | .form-actions { | ||
1357 | padding: 19px 20px 20px; | ||
1358 | margin-top: 20px; | ||
1359 | margin-bottom: 20px; | ||
1360 | background-color: #f5f5f5; | ||
1361 | border-top: 1px solid #e5e5e5; | ||
1362 | *zoom: 1; | ||
1363 | } | ||
1364 | .form-actions:before, | ||
1365 | .form-actions:after { | ||
1366 | display: table; | ||
1367 | content: ""; | ||
1368 | line-height: 0; | ||
1759 | } | 1369 | } |
1760 | /* line 445, ../scss/include/_skeleton.scss */ | 1370 | .form-actions:after { |
1761 | #jqt ul.metal li a { | 1371 | clear: both; |
1762 | line-height: 26px; | ||
1763 | margin: 0; | ||
1764 | padding: 13px 0; | ||
1765 | } | 1372 | } |
1766 | /* line 451, ../scss/include/_skeleton.scss */ | 1373 | .help-block, |
1767 | #jqt ul.metal li em { | 1374 | .help-inline { |
1375 | color: #595959; | ||
1376 | } | ||
1377 | .help-block { | ||
1768 | display: block; | 1378 | display: block; |
1379 | margin-bottom: 10px; | ||
1380 | } | ||
1381 | .help-inline { | ||
1382 | display: inline-block; | ||
1383 | *display: inline; | ||
1384 | /* IE7 inline-block hack */ | ||
1385 | |||
1386 | *zoom: 1; | ||
1387 | vertical-align: middle; | ||
1388 | padding-left: 5px; | ||
1389 | } | ||
1390 | .input-append, | ||
1391 | .input-prepend { | ||
1392 | margin-bottom: 5px; | ||
1393 | font-size: 0; | ||
1394 | white-space: nowrap; | ||
1395 | } | ||
1396 | .input-append input, | ||
1397 | .input-prepend input, | ||
1398 | .input-append select, | ||
1399 | .input-prepend select, | ||
1400 | .input-append .uneditable-input, | ||
1401 | .input-prepend .uneditable-input, | ||
1402 | .input-append .dropdown-menu, | ||
1403 | .input-prepend .dropdown-menu { | ||
1769 | font-size: 14px; | 1404 | font-size: 14px; |
1770 | font-style: normal; | ||
1771 | width: 50%; | ||
1772 | line-height: 14px; | ||
1773 | } | 1405 | } |
1774 | /* line 459, ../scss/include/_skeleton.scss */ | 1406 | .input-append input, |
1775 | #jqt ul.metal li small { | 1407 | .input-prepend input, |
1776 | float: right; | 1408 | .input-append select, |
1409 | .input-prepend select, | ||
1410 | .input-append .uneditable-input, | ||
1411 | .input-prepend .uneditable-input { | ||
1777 | position: relative; | 1412 | position: relative; |
1413 | margin-bottom: 0; | ||
1414 | *margin-left: 0; | ||
1415 | vertical-align: top; | ||
1416 | -webkit-border-radius: 0 4px 4px 0; | ||
1417 | -moz-border-radius: 0 4px 4px 0; | ||
1418 | border-radius: 0 4px 4px 0; | ||
1419 | } | ||
1420 | .input-append input:focus, | ||
1421 | .input-prepend input:focus, | ||
1422 | .input-append select:focus, | ||
1423 | .input-prepend select:focus, | ||
1424 | .input-append .uneditable-input:focus, | ||
1425 | .input-prepend .uneditable-input:focus { | ||
1426 | z-index: 2; | ||
1427 | } | ||
1428 | .input-append .add-on, | ||
1429 | .input-prepend .add-on { | ||
1430 | display: inline-block; | ||
1431 | width: auto; | ||
1432 | height: 20px; | ||
1433 | min-width: 16px; | ||
1434 | padding: 4px 5px; | ||
1435 | font-size: 14px; | ||
1436 | font-weight: normal; | ||
1437 | line-height: 20px; | ||
1438 | text-align: center; | ||
1439 | text-shadow: 0 1px 0 #ffffff; | ||
1440 | background-color: #eeeeee; | ||
1441 | border: 1px solid #ccc; | ||
1442 | } | ||
1443 | .input-append .add-on, | ||
1444 | .input-prepend .add-on, | ||
1445 | .input-append .btn, | ||
1446 | .input-prepend .btn, | ||
1447 | .input-append .btn-group > .dropdown-toggle, | ||
1448 | .input-prepend .btn-group > .dropdown-toggle { | ||
1449 | vertical-align: top; | ||
1450 | -webkit-border-radius: 0; | ||
1451 | -moz-border-radius: 0; | ||
1452 | border-radius: 0; | ||
1453 | } | ||
1454 | .input-append .active, | ||
1455 | .input-prepend .active { | ||
1456 | background-color: #a9dba9; | ||
1457 | border-color: #46a546; | ||
1458 | } | ||
1459 | .input-prepend .add-on, | ||
1460 | .input-prepend .btn { | ||
1461 | margin-right: -1px; | ||
1462 | } | ||
1463 | .input-prepend .add-on:first-child, | ||
1464 | .input-prepend .btn:first-child { | ||
1465 | -webkit-border-radius: 4px 0 0 4px; | ||
1466 | -moz-border-radius: 4px 0 0 4px; | ||
1467 | border-radius: 4px 0 0 4px; | ||
1468 | } | ||
1469 | .input-append input, | ||
1470 | .input-append select, | ||
1471 | .input-append .uneditable-input { | ||
1472 | -webkit-border-radius: 4px 0 0 4px; | ||
1473 | -moz-border-radius: 4px 0 0 4px; | ||
1474 | border-radius: 4px 0 0 4px; | ||
1475 | } | ||
1476 | .input-append input + .btn-group .btn:last-child, | ||
1477 | .input-append select + .btn-group .btn:last-child, | ||
1478 | .input-append .uneditable-input + .btn-group .btn:last-child { | ||
1479 | -webkit-border-radius: 0 4px 4px 0; | ||
1480 | -moz-border-radius: 0 4px 4px 0; | ||
1481 | border-radius: 0 4px 4px 0; | ||
1482 | } | ||
1483 | .input-append .add-on, | ||
1484 | .input-append .btn, | ||
1485 | .input-append .btn-group { | ||
1486 | margin-left: -1px; | ||
1487 | } | ||
1488 | .input-append .add-on:last-child, | ||
1489 | .input-append .btn:last-child, | ||
1490 | .input-append .btn-group:last-child > .dropdown-toggle { | ||
1491 | -webkit-border-radius: 0 4px 4px 0; | ||
1492 | -moz-border-radius: 0 4px 4px 0; | ||
1493 | border-radius: 0 4px 4px 0; | ||
1494 | } | ||
1495 | .input-prepend.input-append input, | ||
1496 | .input-prepend.input-append select, | ||
1497 | .input-prepend.input-append .uneditable-input { | ||
1498 | -webkit-border-radius: 0; | ||
1499 | -moz-border-radius: 0; | ||
1500 | border-radius: 0; | ||
1501 | } | ||
1502 | .input-prepend.input-append input + .btn-group .btn, | ||
1503 | .input-prepend.input-append select + .btn-group .btn, | ||
1504 | .input-prepend.input-append .uneditable-input + .btn-group .btn { | ||
1505 | -webkit-border-radius: 0 4px 4px 0; | ||
1506 | -moz-border-radius: 0 4px 4px 0; | ||
1507 | border-radius: 0 4px 4px 0; | ||
1508 | } | ||
1509 | .input-prepend.input-append .add-on:first-child, | ||
1510 | .input-prepend.input-append .btn:first-child { | ||
1511 | margin-right: -1px; | ||
1512 | -webkit-border-radius: 4px 0 0 4px; | ||
1513 | -moz-border-radius: 4px 0 0 4px; | ||
1514 | border-radius: 4px 0 0 4px; | ||
1515 | } | ||
1516 | .input-prepend.input-append .add-on:last-child, | ||
1517 | .input-prepend.input-append .btn:last-child { | ||
1518 | margin-left: -1px; | ||
1519 | -webkit-border-radius: 0 4px 4px 0; | ||
1520 | -moz-border-radius: 0 4px 4px 0; | ||
1521 | border-radius: 0 4px 4px 0; | ||
1522 | } | ||
1523 | .input-prepend.input-append .btn-group:first-child { | ||
1524 | margin-left: 0; | ||
1525 | } | ||
1526 | input.search-query { | ||
1527 | padding-right: 14px; | ||
1528 | padding-right: 4px \9; | ||
1529 | padding-left: 14px; | ||
1530 | padding-left: 4px \9; | ||
1531 | /* IE7-8 doesn't have border-radius, so don't indent the padding */ | ||
1532 | |||
1533 | margin-bottom: 0; | ||
1534 | -webkit-border-radius: 15px; | ||
1535 | -moz-border-radius: 15px; | ||
1536 | border-radius: 15px; | ||
1537 | } | ||
1538 | /* Allow for input prepend/append in search forms */ | ||
1539 | .form-search .input-append .search-query, | ||
1540 | .form-search .input-prepend .search-query { | ||
1541 | -webkit-border-radius: 0; | ||
1542 | -moz-border-radius: 0; | ||
1543 | border-radius: 0; | ||
1544 | } | ||
1545 | .form-search .input-append .search-query { | ||
1546 | -webkit-border-radius: 14px 0 0 14px; | ||
1547 | -moz-border-radius: 14px 0 0 14px; | ||
1548 | border-radius: 14px 0 0 14px; | ||
1549 | } | ||
1550 | .form-search .input-append .btn { | ||
1551 | -webkit-border-radius: 0 14px 14px 0; | ||
1552 | -moz-border-radius: 0 14px 14px 0; | ||
1553 | border-radius: 0 14px 14px 0; | ||
1554 | } | ||
1555 | .form-search .input-prepend .search-query { | ||
1556 | -webkit-border-radius: 0 14px 14px 0; | ||
1557 | -moz-border-radius: 0 14px 14px 0; | ||
1558 | border-radius: 0 14px 14px 0; | ||
1559 | } | ||
1560 | .form-search .input-prepend .btn { | ||
1561 | -webkit-border-radius: 14px 0 0 14px; | ||
1562 | -moz-border-radius: 14px 0 0 14px; | ||
1563 | border-radius: 14px 0 0 14px; | ||
1564 | } | ||
1565 | .form-search input, | ||
1566 | .form-inline input, | ||
1567 | .form-horizontal input, | ||
1568 | .form-search textarea, | ||
1569 | .form-inline textarea, | ||
1570 | .form-horizontal textarea, | ||
1571 | .form-search select, | ||
1572 | .form-inline select, | ||
1573 | .form-horizontal select, | ||
1574 | .form-search .help-inline, | ||
1575 | .form-inline .help-inline, | ||
1576 | .form-horizontal .help-inline, | ||
1577 | .form-search .uneditable-input, | ||
1578 | .form-inline .uneditable-input, | ||
1579 | .form-horizontal .uneditable-input, | ||
1580 | .form-search .input-prepend, | ||
1581 | .form-inline .input-prepend, | ||
1582 | .form-horizontal .input-prepend, | ||
1583 | .form-search .input-append, | ||
1584 | .form-inline .input-append, | ||
1585 | .form-horizontal .input-append { | ||
1586 | display: inline-block; | ||
1587 | *display: inline; | ||
1588 | /* IE7 inline-block hack */ | ||
1589 | |||
1590 | *zoom: 1; | ||
1591 | margin-bottom: 0; | ||
1592 | vertical-align: middle; | ||
1593 | } | ||
1594 | .form-search .hide, | ||
1595 | .form-inline .hide, | ||
1596 | .form-horizontal .hide { | ||
1597 | display: none; | ||
1598 | } | ||
1599 | .form-search label, | ||
1600 | .form-inline label, | ||
1601 | .form-search .btn-group, | ||
1602 | .form-inline .btn-group { | ||
1603 | display: inline-block; | ||
1604 | } | ||
1605 | .form-search .input-append, | ||
1606 | .form-inline .input-append, | ||
1607 | .form-search .input-prepend, | ||
1608 | .form-inline .input-prepend { | ||
1609 | margin-bottom: 0; | ||
1610 | } | ||
1611 | .form-search .radio, | ||
1612 | .form-search .checkbox, | ||
1613 | .form-inline .radio, | ||
1614 | .form-inline .checkbox { | ||
1615 | padding-left: 0; | ||
1616 | margin-bottom: 0; | ||
1617 | vertical-align: middle; | ||
1618 | } | ||
1619 | .form-search .radio input[type="radio"], | ||
1620 | .form-search .checkbox input[type="checkbox"], | ||
1621 | .form-inline .radio input[type="radio"], | ||
1622 | .form-inline .checkbox input[type="checkbox"] { | ||
1623 | float: left; | ||
1624 | margin-right: 3px; | ||
1625 | margin-left: 0; | ||
1626 | } | ||
1627 | .control-group { | ||
1628 | margin-bottom: 10px; | ||
1629 | } | ||
1630 | legend + .control-group { | ||
1631 | margin-top: 20px; | ||
1632 | -webkit-margin-top-collapse: separate; | ||
1633 | } | ||
1634 | .form-horizontal .control-group { | ||
1635 | margin-bottom: 20px; | ||
1636 | *zoom: 1; | ||
1637 | } | ||
1638 | .form-horizontal .control-group:before, | ||
1639 | .form-horizontal .control-group:after { | ||
1640 | display: table; | ||
1641 | content: ""; | ||
1642 | line-height: 0; | ||
1643 | } | ||
1644 | .form-horizontal .control-group:after { | ||
1645 | clear: both; | ||
1646 | } | ||
1647 | .form-horizontal .control-label { | ||
1648 | float: left; | ||
1649 | width: 160px; | ||
1650 | padding-top: 5px; | ||
1651 | text-align: right; | ||
1652 | } | ||
1653 | .form-horizontal .controls { | ||
1654 | *display: inline-block; | ||
1655 | *padding-left: 20px; | ||
1656 | margin-left: 180px; | ||
1657 | *margin-left: 0; | ||
1658 | } | ||
1659 | .form-horizontal .controls:first-child { | ||
1660 | *padding-left: 180px; | ||
1661 | } | ||
1662 | .form-horizontal .help-block { | ||
1663 | margin-bottom: 0; | ||
1664 | } | ||
1665 | .form-horizontal input + .help-block, | ||
1666 | .form-horizontal select + .help-block, | ||
1667 | .form-horizontal textarea + .help-block, | ||
1668 | .form-horizontal .uneditable-input + .help-block, | ||
1669 | .form-horizontal .input-prepend + .help-block, | ||
1670 | .form-horizontal .input-append + .help-block { | ||
1778 | margin-top: 10px; | 1671 | margin-top: 10px; |
1672 | } | ||
1673 | .form-horizontal .form-actions { | ||
1674 | padding-left: 180px; | ||
1675 | } | ||
1676 | table { | ||
1677 | max-width: 100%; | ||
1678 | background-color: transparent; | ||
1679 | border-collapse: collapse; | ||
1680 | border-spacing: 0; | ||
1681 | } | ||
1682 | .table { | ||
1683 | width: 100%; | ||
1684 | margin-bottom: 20px; | ||
1685 | } | ||
1686 | .table th, | ||
1687 | .table td { | ||
1688 | padding: 8px; | ||
1689 | line-height: 20px; | ||
1690 | text-align: left; | ||
1691 | vertical-align: top; | ||
1692 | border-top: 1px solid #dddddd; | ||
1693 | } | ||
1694 | .table th { | ||
1779 | font-weight: bold; | 1695 | font-weight: bold; |
1780 | } | 1696 | } |
1781 | /* line 473, ../scss/include/_skeleton.scss */ | 1697 | .table thead th { |
1782 | #jqt ul.edgetoedge li { | 1698 | vertical-align: bottom; |
1783 | font-size: 20px; | ||
1784 | } | 1699 | } |
1785 | /* line 476, ../scss/include/_skeleton.scss */ | 1700 | .table caption + thead tr:first-child th, |
1786 | #jqt ul.edgetoedge li:first-child { | 1701 | .table caption + thead tr:first-child td, |
1702 | .table colgroup + thead tr:first-child th, | ||
1703 | .table colgroup + thead tr:first-child td, | ||
1704 | .table thead:first-child tr:first-child th, | ||
1705 | .table thead:first-child tr:first-child td { | ||
1787 | border-top: 0; | 1706 | border-top: 0; |
1788 | } | 1707 | } |
1789 | /* line 480, ../scss/include/_skeleton.scss */ | 1708 | .table tbody + tbody { |
1790 | #jqt ul.edgetoedge li.sep { | 1709 | border-top: 2px solid #dddddd; |
1791 | font-size: 16px; | ||
1792 | padding: 2px 10px; | ||
1793 | } | 1710 | } |
1794 | /* line 485, ../scss/include/_skeleton.scss */ | 1711 | .table .table { |
1795 | #jqt ul.edgetoedge li em { | 1712 | background-color: #ffffff; |
1796 | font-weight: normal; | ||
1797 | font-style: normal; | ||
1798 | } | 1713 | } |
1799 | /* line 494, ../scss/include/_skeleton.scss */ | 1714 | .table-condensed th, |
1800 | #jqt ul.plastic { | 1715 | .table-condensed td { |
1801 | font-size: 18px; | 1716 | padding: 4px 5px; |
1802 | } | 1717 | } |
1803 | /* line 498, ../scss/include/_skeleton.scss */ | 1718 | .table-bordered { |
1804 | #jqt ul.plastic li { | 1719 | border: 1px solid #dddddd; |
1805 | border-width: 1px 0; | 1720 | border-collapse: separate; |
1806 | border-style: solid; | 1721 | *border-collapse: collapse; |
1807 | background-image: none; | 1722 | border-left: 0; |
1808 | background-color: #2a2b2c; | 1723 | -webkit-border-radius: 4px; |
1809 | border-top-color: #2f3031; | 1724 | -moz-border-radius: 4px; |
1810 | border-bottom-color: #232324; | 1725 | border-radius: 4px; |
1811 | } | 1726 | } |
1812 | /* line 506, ../scss/include/_skeleton.scss */ | 1727 | .table-bordered th, |
1813 | #jqt ul.plastic li:nth-child(odd) { | 1728 | .table-bordered td { |
1814 | background-image: none; | 1729 | border-left: 1px solid #dddddd; |
1815 | background-color: #2f3031; | 1730 | } |
1731 | .table-bordered caption + thead tr:first-child th, | ||
1732 | .table-bordered caption + tbody tr:first-child th, | ||
1733 | .table-bordered caption + tbody tr:first-child td, | ||
1734 | .table-bordered colgroup + thead tr:first-child th, | ||
1735 | .table-bordered colgroup + tbody tr:first-child th, | ||
1736 | .table-bordered colgroup + tbody tr:first-child td, | ||
1737 | .table-bordered thead:first-child tr:first-child th, | ||
1738 | .table-bordered tbody:first-child tr:first-child th, | ||
1739 | .table-bordered tbody:first-child tr:first-child td { | ||
1740 | border-top: 0; | ||
1816 | } | 1741 | } |
1817 | /* line 510, ../scss/include/_skeleton.scss */ | 1742 | .table-bordered thead:first-child tr:first-child > th:first-child, |
1818 | #jqt ul.plastic li a.active.loading { | 1743 | .table-bordered tbody:first-child tr:first-child > td:first-child { |
1819 | background-image: url(img/loading.gif); | 1744 | -webkit-border-top-left-radius: 4px; |
1820 | background-position: 95% center; | 1745 | -moz-border-radius-topleft: 4px; |
1746 | border-top-left-radius: 4px; | ||
1747 | } | ||
1748 | .table-bordered thead:first-child tr:first-child > th:last-child, | ||
1749 | .table-bordered tbody:first-child tr:first-child > td:last-child { | ||
1750 | -webkit-border-top-right-radius: 4px; | ||
1751 | -moz-border-radius-topright: 4px; | ||
1752 | border-top-right-radius: 4px; | ||
1753 | } | ||
1754 | .table-bordered thead:last-child tr:last-child > th:first-child, | ||
1755 | .table-bordered tbody:last-child tr:last-child > td:first-child, | ||
1756 | .table-bordered tfoot:last-child tr:last-child > td:first-child { | ||
1757 | -webkit-border-bottom-left-radius: 4px; | ||
1758 | -moz-border-radius-bottomleft: 4px; | ||
1759 | border-bottom-left-radius: 4px; | ||
1760 | } | ||
1761 | .table-bordered thead:last-child tr:last-child > th:last-child, | ||
1762 | .table-bordered tbody:last-child tr:last-child > td:last-child, | ||
1763 | .table-bordered tfoot:last-child tr:last-child > td:last-child { | ||
1764 | -webkit-border-bottom-right-radius: 4px; | ||
1765 | -moz-border-radius-bottomright: 4px; | ||
1766 | border-bottom-right-radius: 4px; | ||
1767 | } | ||
1768 | .table-bordered tfoot + tbody:last-child tr:last-child td:first-child { | ||
1769 | -webkit-border-bottom-left-radius: 0; | ||
1770 | -moz-border-radius-bottomleft: 0; | ||
1771 | border-bottom-left-radius: 0; | ||
1772 | } | ||
1773 | .table-bordered tfoot + tbody:last-child tr:last-child td:last-child { | ||
1774 | -webkit-border-bottom-right-radius: 0; | ||
1775 | -moz-border-radius-bottomright: 0; | ||
1776 | border-bottom-right-radius: 0; | ||
1777 | } | ||
1778 | .table-bordered caption + thead tr:first-child th:first-child, | ||
1779 | .table-bordered caption + tbody tr:first-child td:first-child, | ||
1780 | .table-bordered colgroup + thead tr:first-child th:first-child, | ||
1781 | .table-bordered colgroup + tbody tr:first-child td:first-child { | ||
1782 | -webkit-border-top-left-radius: 4px; | ||
1783 | -moz-border-radius-topleft: 4px; | ||
1784 | border-top-left-radius: 4px; | ||
1785 | } | ||
1786 | .table-bordered caption + thead tr:first-child th:last-child, | ||
1787 | .table-bordered caption + tbody tr:first-child td:last-child, | ||
1788 | .table-bordered colgroup + thead tr:first-child th:last-child, | ||
1789 | .table-bordered colgroup + tbody tr:first-child td:last-child { | ||
1790 | -webkit-border-top-right-radius: 4px; | ||
1791 | -moz-border-radius-topright: 4px; | ||
1792 | border-top-right-radius: 4px; | ||
1793 | } | ||
1794 | .table-striped tbody > tr:nth-child(odd) > td, | ||
1795 | .table-striped tbody > tr:nth-child(odd) > th { | ||
1796 | background-color: #f9f9f9; | ||
1797 | } | ||
1798 | .table-hover tbody tr:hover td, | ||
1799 | .table-hover tbody tr:hover th { | ||
1800 | background-color: #f5f5f5; | ||
1801 | } | ||
1802 | table td[class*="span"], | ||
1803 | table th[class*="span"], | ||
1804 | .row-fluid table td[class*="span"], | ||
1805 | .row-fluid table th[class*="span"] { | ||
1806 | display: table-cell; | ||
1807 | float: none; | ||
1808 | margin-left: 0; | ||
1809 | } | ||
1810 | .table td.span1, | ||
1811 | .table th.span1 { | ||
1812 | float: none; | ||
1813 | width: 44px; | ||
1814 | margin-left: 0; | ||
1815 | } | ||
1816 | .table td.span2, | ||
1817 | .table th.span2 { | ||
1818 | float: none; | ||
1819 | width: 124px; | ||
1820 | margin-left: 0; | ||
1821 | } | ||
1822 | .table td.span3, | ||
1823 | .table th.span3 { | ||
1824 | float: none; | ||
1825 | width: 204px; | ||
1826 | margin-left: 0; | ||
1827 | } | ||
1828 | .table td.span4, | ||
1829 | .table th.span4 { | ||
1830 | float: none; | ||
1831 | width: 284px; | ||
1832 | margin-left: 0; | ||
1833 | } | ||
1834 | .table td.span5, | ||
1835 | .table th.span5 { | ||
1836 | float: none; | ||
1837 | width: 364px; | ||
1838 | margin-left: 0; | ||
1839 | } | ||
1840 | .table td.span6, | ||
1841 | .table th.span6 { | ||
1842 | float: none; | ||
1843 | width: 444px; | ||
1844 | margin-left: 0; | ||
1845 | } | ||
1846 | .table td.span7, | ||
1847 | .table th.span7 { | ||
1848 | float: none; | ||
1849 | width: 524px; | ||
1850 | margin-left: 0; | ||
1851 | } | ||
1852 | .table td.span8, | ||
1853 | .table th.span8 { | ||
1854 | float: none; | ||
1855 | width: 604px; | ||
1856 | margin-left: 0; | ||
1857 | } | ||
1858 | .table td.span9, | ||
1859 | .table th.span9 { | ||
1860 | float: none; | ||
1861 | width: 684px; | ||
1862 | margin-left: 0; | ||
1863 | } | ||
1864 | .table td.span10, | ||
1865 | .table th.span10 { | ||
1866 | float: none; | ||
1867 | width: 764px; | ||
1868 | margin-left: 0; | ||
1869 | } | ||
1870 | .table td.span11, | ||
1871 | .table th.span11 { | ||
1872 | float: none; | ||
1873 | width: 844px; | ||
1874 | margin-left: 0; | ||
1875 | } | ||
1876 | .table td.span12, | ||
1877 | .table th.span12 { | ||
1878 | float: none; | ||
1879 | width: 924px; | ||
1880 | margin-left: 0; | ||
1881 | } | ||
1882 | .table tbody tr.success td { | ||
1883 | background-color: #dff0d8; | ||
1884 | } | ||
1885 | .table tbody tr.error td { | ||
1886 | background-color: #f2dede; | ||
1887 | } | ||
1888 | .table tbody tr.warning td { | ||
1889 | background-color: #fcf8e3; | ||
1890 | } | ||
1891 | .table tbody tr.info td { | ||
1892 | background-color: #d9edf7; | ||
1893 | } | ||
1894 | .table-hover tbody tr.success:hover td { | ||
1895 | background-color: #d0e9c6; | ||
1896 | } | ||
1897 | .table-hover tbody tr.error:hover td { | ||
1898 | background-color: #ebcccc; | ||
1899 | } | ||
1900 | .table-hover tbody tr.warning:hover td { | ||
1901 | background-color: #faf2cc; | ||
1902 | } | ||
1903 | .table-hover tbody tr.info:hover td { | ||
1904 | background-color: #c4e3f3; | ||
1905 | } | ||
1906 | [class^="icon-"], | ||
1907 | [class*=" icon-"] { | ||
1908 | display: inline-block; | ||
1909 | width: 14px; | ||
1910 | height: 14px; | ||
1911 | *margin-right: .3em; | ||
1912 | line-height: 14px; | ||
1913 | vertical-align: text-top; | ||
1914 | background-image: url("../img/glyphicons-halflings.png"); | ||
1915 | background-position: 14px 14px; | ||
1821 | background-repeat: no-repeat; | 1916 | background-repeat: no-repeat; |
1917 | margin-top: 1px; | ||
1822 | } | 1918 | } |
1823 | /* line 515, ../scss/include/_skeleton.scss */ | 1919 | /* White icons with optional class, or on hover/active states of certain elements */ |
1824 | #jqt ul.plastic li small { | 1920 | .icon-white, |
1825 | color: #949698; | 1921 | .nav-pills > .active > a > [class^="icon-"], |
1826 | font-size: 13px; | 1922 | .nav-pills > .active > a > [class*=" icon-"], |
1827 | font-weight: bold; | 1923 | .nav-list > .active > a > [class^="icon-"], |
1828 | text-transform: uppercase; | 1924 | .nav-list > .active > a > [class*=" icon-"], |
1925 | .navbar-inverse .nav > .active > a > [class^="icon-"], | ||
1926 | .navbar-inverse .nav > .active > a > [class*=" icon-"], | ||
1927 | .dropdown-menu > li > a:hover > [class^="icon-"], | ||
1928 | .dropdown-menu > li > a:hover > [class*=" icon-"], | ||
1929 | .dropdown-menu > .active > a > [class^="icon-"], | ||
1930 | .dropdown-menu > .active > a > [class*=" icon-"], | ||
1931 | .dropdown-submenu:hover > a > [class^="icon-"], | ||
1932 | .dropdown-submenu:hover > a > [class*=" icon-"] { | ||
1933 | background-image: url("../img/glyphicons-halflings-white.png"); | ||
1829 | } | 1934 | } |
1830 | /* line 525, ../scss/include/_skeleton.scss */ | 1935 | .icon-glass { |
1831 | #jqt ul.individual { | 1936 | background-position: 0 0; |
1832 | border: 0; | ||
1833 | background: none; | ||
1834 | clear: both; | ||
1835 | overflow: hidden; | ||
1836 | } | 1937 | } |
1837 | /* line 531, ../scss/include/_skeleton.scss */ | 1938 | .icon-music { |
1838 | #jqt ul.individual li { | 1939 | background-position: -24px 0; |
1839 | font-size: 14px; | 1940 | } |
1840 | text-align: center; | 1941 | .icon-search { |
1841 | -webkit-border-radius: 8px; | 1942 | background-position: -48px 0; |
1842 | border-radius: 8px; | 1943 | } |
1843 | -webkit-box-sizing: border-box; | 1944 | .icon-envelope { |
1844 | box-sizing: border-box; | 1945 | background-position: -72px 0; |
1845 | width: 48%; | 1946 | } |
1947 | .icon-heart { | ||
1948 | background-position: -96px 0; | ||
1949 | } | ||
1950 | .icon-star { | ||
1951 | background-position: -120px 0; | ||
1952 | } | ||
1953 | .icon-star-empty { | ||
1954 | background-position: -144px 0; | ||
1955 | } | ||
1956 | .icon-user { | ||
1957 | background-position: -168px 0; | ||
1958 | } | ||
1959 | .icon-film { | ||
1960 | background-position: -192px 0; | ||
1961 | } | ||
1962 | .icon-th-large { | ||
1963 | background-position: -216px 0; | ||
1964 | } | ||
1965 | .icon-th { | ||
1966 | background-position: -240px 0; | ||
1967 | } | ||
1968 | .icon-th-list { | ||
1969 | background-position: -264px 0; | ||
1970 | } | ||
1971 | .icon-ok { | ||
1972 | background-position: -288px 0; | ||
1973 | } | ||
1974 | .icon-remove { | ||
1975 | background-position: -312px 0; | ||
1976 | } | ||
1977 | .icon-zoom-in { | ||
1978 | background-position: -336px 0; | ||
1979 | } | ||
1980 | .icon-zoom-out { | ||
1981 | background-position: -360px 0; | ||
1982 | } | ||
1983 | .icon-off { | ||
1984 | background-position: -384px 0; | ||
1985 | } | ||
1986 | .icon-signal { | ||
1987 | background-position: -408px 0; | ||
1988 | } | ||
1989 | .icon-cog { | ||
1990 | background-position: -432px 0; | ||
1991 | } | ||
1992 | .icon-trash { | ||
1993 | background-position: -456px 0; | ||
1994 | } | ||
1995 | .icon-home { | ||
1996 | background-position: 0 -24px; | ||
1997 | } | ||
1998 | .icon-file { | ||
1999 | background-position: -24px -24px; | ||
2000 | } | ||
2001 | .icon-time { | ||
2002 | background-position: -48px -24px; | ||
2003 | } | ||
2004 | .icon-road { | ||
2005 | background-position: -72px -24px; | ||
2006 | } | ||
2007 | .icon-download-alt { | ||
2008 | background-position: -96px -24px; | ||
2009 | } | ||
2010 | .icon-download { | ||
2011 | background-position: -120px -24px; | ||
2012 | } | ||
2013 | .icon-upload { | ||
2014 | background-position: -144px -24px; | ||
2015 | } | ||
2016 | .icon-inbox { | ||
2017 | background-position: -168px -24px; | ||
2018 | } | ||
2019 | .icon-play-circle { | ||
2020 | background-position: -192px -24px; | ||
2021 | } | ||
2022 | .icon-repeat { | ||
2023 | background-position: -216px -24px; | ||
2024 | } | ||
2025 | .icon-refresh { | ||
2026 | background-position: -240px -24px; | ||
2027 | } | ||
2028 | .icon-list-alt { | ||
2029 | background-position: -264px -24px; | ||
2030 | } | ||
2031 | .icon-lock { | ||
2032 | background-position: -287px -24px; | ||
2033 | } | ||
2034 | .icon-flag { | ||
2035 | background-position: -312px -24px; | ||
2036 | } | ||
2037 | .icon-headphones { | ||
2038 | background-position: -336px -24px; | ||
2039 | } | ||
2040 | .icon-volume-off { | ||
2041 | background-position: -360px -24px; | ||
2042 | } | ||
2043 | .icon-volume-down { | ||
2044 | background-position: -384px -24px; | ||
2045 | } | ||
2046 | .icon-volume-up { | ||
2047 | background-position: -408px -24px; | ||
2048 | } | ||
2049 | .icon-qrcode { | ||
2050 | background-position: -432px -24px; | ||
2051 | } | ||
2052 | .icon-barcode { | ||
2053 | background-position: -456px -24px; | ||
2054 | } | ||
2055 | .icon-tag { | ||
2056 | background-position: 0 -48px; | ||
2057 | } | ||
2058 | .icon-tags { | ||
2059 | background-position: -25px -48px; | ||
2060 | } | ||
2061 | .icon-book { | ||
2062 | background-position: -48px -48px; | ||
2063 | } | ||
2064 | .icon-bookmark { | ||
2065 | background-position: -72px -48px; | ||
2066 | } | ||
2067 | .icon-print { | ||
2068 | background-position: -96px -48px; | ||
2069 | } | ||
2070 | .icon-camera { | ||
2071 | background-position: -120px -48px; | ||
2072 | } | ||
2073 | .icon-font { | ||
2074 | background-position: -144px -48px; | ||
2075 | } | ||
2076 | .icon-bold { | ||
2077 | background-position: -167px -48px; | ||
2078 | } | ||
2079 | .icon-italic { | ||
2080 | background-position: -192px -48px; | ||
2081 | } | ||
2082 | .icon-text-height { | ||
2083 | background-position: -216px -48px; | ||
2084 | } | ||
2085 | .icon-text-width { | ||
2086 | background-position: -240px -48px; | ||
2087 | } | ||
2088 | .icon-align-left { | ||
2089 | background-position: -264px -48px; | ||
2090 | } | ||
2091 | .icon-align-center { | ||
2092 | background-position: -288px -48px; | ||
2093 | } | ||
2094 | .icon-align-right { | ||
2095 | background-position: -312px -48px; | ||
2096 | } | ||
2097 | .icon-align-justify { | ||
2098 | background-position: -336px -48px; | ||
2099 | } | ||
2100 | .icon-list { | ||
2101 | background-position: -360px -48px; | ||
2102 | } | ||
2103 | .icon-indent-left { | ||
2104 | background-position: -384px -48px; | ||
2105 | } | ||
2106 | .icon-indent-right { | ||
2107 | background-position: -408px -48px; | ||
2108 | } | ||
2109 | .icon-facetime-video { | ||
2110 | background-position: -432px -48px; | ||
2111 | } | ||
2112 | .icon-picture { | ||
2113 | background-position: -456px -48px; | ||
2114 | } | ||
2115 | .icon-pencil { | ||
2116 | background-position: 0 -72px; | ||
2117 | } | ||
2118 | .icon-map-marker { | ||
2119 | background-position: -24px -72px; | ||
2120 | } | ||
2121 | .icon-adjust { | ||
2122 | background-position: -48px -72px; | ||
2123 | } | ||
2124 | .icon-tint { | ||
2125 | background-position: -72px -72px; | ||
2126 | } | ||
2127 | .icon-edit { | ||
2128 | background-position: -96px -72px; | ||
2129 | } | ||
2130 | .icon-share { | ||
2131 | background-position: -120px -72px; | ||
2132 | } | ||
2133 | .icon-check { | ||
2134 | background-position: -144px -72px; | ||
2135 | } | ||
2136 | .icon-move { | ||
2137 | background-position: -168px -72px; | ||
2138 | } | ||
2139 | .icon-step-backward { | ||
2140 | background-position: -192px -72px; | ||
2141 | } | ||
2142 | .icon-fast-backward { | ||
2143 | background-position: -216px -72px; | ||
2144 | } | ||
2145 | .icon-backward { | ||
2146 | background-position: -240px -72px; | ||
2147 | } | ||
2148 | .icon-play { | ||
2149 | background-position: -264px -72px; | ||
2150 | } | ||
2151 | .icon-pause { | ||
2152 | background-position: -288px -72px; | ||
2153 | } | ||
2154 | .icon-stop { | ||
2155 | background-position: -312px -72px; | ||
2156 | } | ||
2157 | .icon-forward { | ||
2158 | background-position: -336px -72px; | ||
2159 | } | ||
2160 | .icon-fast-forward { | ||
2161 | background-position: -360px -72px; | ||
2162 | } | ||
2163 | .icon-step-forward { | ||
2164 | background-position: -384px -72px; | ||
2165 | } | ||
2166 | .icon-eject { | ||
2167 | background-position: -408px -72px; | ||
2168 | } | ||
2169 | .icon-chevron-left { | ||
2170 | background-position: -432px -72px; | ||
2171 | } | ||
2172 | .icon-chevron-right { | ||
2173 | background-position: -456px -72px; | ||
2174 | } | ||
2175 | .icon-plus-sign { | ||
2176 | background-position: 0 -96px; | ||
2177 | } | ||
2178 | .icon-minus-sign { | ||
2179 | background-position: -24px -96px; | ||
2180 | } | ||
2181 | .icon-remove-sign { | ||
2182 | background-position: -48px -96px; | ||
2183 | } | ||
2184 | .icon-ok-sign { | ||
2185 | background-position: -72px -96px; | ||
2186 | } | ||
2187 | .icon-question-sign { | ||
2188 | background-position: -96px -96px; | ||
2189 | } | ||
2190 | .icon-info-sign { | ||
2191 | background-position: -120px -96px; | ||
2192 | } | ||
2193 | .icon-screenshot { | ||
2194 | background-position: -144px -96px; | ||
2195 | } | ||
2196 | .icon-remove-circle { | ||
2197 | background-position: -168px -96px; | ||
2198 | } | ||
2199 | .icon-ok-circle { | ||
2200 | background-position: -192px -96px; | ||
2201 | } | ||
2202 | .icon-ban-circle { | ||
2203 | background-position: -216px -96px; | ||
2204 | } | ||
2205 | .icon-arrow-left { | ||
2206 | background-position: -240px -96px; | ||
2207 | } | ||
2208 | .icon-arrow-right { | ||
2209 | background-position: -264px -96px; | ||
2210 | } | ||
2211 | .icon-arrow-up { | ||
2212 | background-position: -289px -96px; | ||
2213 | } | ||
2214 | .icon-arrow-down { | ||
2215 | background-position: -312px -96px; | ||
2216 | } | ||
2217 | .icon-share-alt { | ||
2218 | background-position: -336px -96px; | ||
2219 | } | ||
2220 | .icon-resize-full { | ||
2221 | background-position: -360px -96px; | ||
2222 | } | ||
2223 | .icon-resize-small { | ||
2224 | background-position: -384px -96px; | ||
2225 | } | ||
2226 | .icon-plus { | ||
2227 | background-position: -408px -96px; | ||
2228 | } | ||
2229 | .icon-minus { | ||
2230 | background-position: -433px -96px; | ||
2231 | } | ||
2232 | .icon-asterisk { | ||
2233 | background-position: -456px -96px; | ||
2234 | } | ||
2235 | .icon-exclamation-sign { | ||
2236 | background-position: 0 -120px; | ||
2237 | } | ||
2238 | .icon-gift { | ||
2239 | background-position: -24px -120px; | ||
2240 | } | ||
2241 | .icon-leaf { | ||
2242 | background-position: -48px -120px; | ||
2243 | } | ||
2244 | .icon-fire { | ||
2245 | background-position: -72px -120px; | ||
2246 | } | ||
2247 | .icon-eye-open { | ||
2248 | background-position: -96px -120px; | ||
2249 | } | ||
2250 | .icon-eye-close { | ||
2251 | background-position: -120px -120px; | ||
2252 | } | ||
2253 | .icon-warning-sign { | ||
2254 | background-position: -144px -120px; | ||
2255 | } | ||
2256 | .icon-plane { | ||
2257 | background-position: -168px -120px; | ||
2258 | } | ||
2259 | .icon-calendar { | ||
2260 | background-position: -192px -120px; | ||
2261 | } | ||
2262 | .icon-random { | ||
2263 | background-position: -216px -120px; | ||
2264 | width: 16px; | ||
2265 | } | ||
2266 | .icon-comment { | ||
2267 | background-position: -240px -120px; | ||
2268 | } | ||
2269 | .icon-magnet { | ||
2270 | background-position: -264px -120px; | ||
2271 | } | ||
2272 | .icon-chevron-up { | ||
2273 | background-position: -288px -120px; | ||
2274 | } | ||
2275 | .icon-chevron-down { | ||
2276 | background-position: -313px -119px; | ||
2277 | } | ||
2278 | .icon-retweet { | ||
2279 | background-position: -336px -120px; | ||
2280 | } | ||
2281 | .icon-shopping-cart { | ||
2282 | background-position: -360px -120px; | ||
2283 | } | ||
2284 | .icon-folder-close { | ||
2285 | background-position: -384px -120px; | ||
2286 | } | ||
2287 | .icon-folder-open { | ||
2288 | background-position: -408px -120px; | ||
2289 | width: 16px; | ||
2290 | } | ||
2291 | .icon-resize-vertical { | ||
2292 | background-position: -432px -119px; | ||
2293 | } | ||
2294 | .icon-resize-horizontal { | ||
2295 | background-position: -456px -118px; | ||
2296 | } | ||
2297 | .icon-hdd { | ||
2298 | background-position: 0 -144px; | ||
2299 | } | ||
2300 | .icon-bullhorn { | ||
2301 | background-position: -24px -144px; | ||
2302 | } | ||
2303 | .icon-bell { | ||
2304 | background-position: -48px -144px; | ||
2305 | } | ||
2306 | .icon-certificate { | ||
2307 | background-position: -72px -144px; | ||
2308 | } | ||
2309 | .icon-thumbs-up { | ||
2310 | background-position: -96px -144px; | ||
2311 | } | ||
2312 | .icon-thumbs-down { | ||
2313 | background-position: -120px -144px; | ||
2314 | } | ||
2315 | .icon-hand-right { | ||
2316 | background-position: -144px -144px; | ||
2317 | } | ||
2318 | .icon-hand-left { | ||
2319 | background-position: -168px -144px; | ||
2320 | } | ||
2321 | .icon-hand-up { | ||
2322 | background-position: -192px -144px; | ||
2323 | } | ||
2324 | .icon-hand-down { | ||
2325 | background-position: -216px -144px; | ||
2326 | } | ||
2327 | .icon-circle-arrow-right { | ||
2328 | background-position: -240px -144px; | ||
2329 | } | ||
2330 | .icon-circle-arrow-left { | ||
2331 | background-position: -264px -144px; | ||
2332 | } | ||
2333 | .icon-circle-arrow-up { | ||
2334 | background-position: -288px -144px; | ||
2335 | } | ||
2336 | .icon-circle-arrow-down { | ||
2337 | background-position: -312px -144px; | ||
2338 | } | ||
2339 | .icon-globe { | ||
2340 | background-position: -336px -144px; | ||
2341 | } | ||
2342 | .icon-wrench { | ||
2343 | background-position: -360px -144px; | ||
2344 | } | ||
2345 | .icon-tasks { | ||
2346 | background-position: -384px -144px; | ||
2347 | } | ||
2348 | .icon-filter { | ||
2349 | background-position: -408px -144px; | ||
2350 | } | ||
2351 | .icon-briefcase { | ||
2352 | background-position: -432px -144px; | ||
2353 | } | ||
2354 | .icon-fullscreen { | ||
2355 | background-position: -456px -144px; | ||
2356 | } | ||
2357 | .dropup, | ||
2358 | .dropdown { | ||
2359 | position: relative; | ||
2360 | } | ||
2361 | .dropdown-toggle { | ||
2362 | *margin-bottom: -3px; | ||
2363 | } | ||
2364 | .dropdown-toggle:active, | ||
2365 | .open .dropdown-toggle { | ||
2366 | outline: 0; | ||
2367 | } | ||
2368 | .caret { | ||
2369 | display: inline-block; | ||
2370 | width: 0; | ||
2371 | height: 0; | ||
2372 | vertical-align: top; | ||
2373 | border-top: 4px solid #000000; | ||
2374 | border-right: 4px solid transparent; | ||
2375 | border-left: 4px solid transparent; | ||
2376 | content: ""; | ||
2377 | } | ||
2378 | .dropdown .caret { | ||
2379 | margin-top: 8px; | ||
2380 | margin-left: 2px; | ||
2381 | } | ||
2382 | .dropdown-menu { | ||
2383 | position: absolute; | ||
2384 | top: 100%; | ||
2385 | left: 0; | ||
2386 | z-index: 1000; | ||
2387 | display: none; | ||
1846 | float: left; | 2388 | float: left; |
2389 | min-width: 160px; | ||
2390 | padding: 5px 0; | ||
2391 | margin: 2px 0 0; | ||
2392 | list-style: none; | ||
2393 | background-color: #ffffff; | ||
2394 | border: 1px solid #ccc; | ||
2395 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
2396 | *border-right-width: 2px; | ||
2397 | *border-bottom-width: 2px; | ||
2398 | -webkit-border-radius: 6px; | ||
2399 | -moz-border-radius: 6px; | ||
2400 | border-radius: 6px; | ||
2401 | -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
2402 | -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
2403 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
2404 | -webkit-background-clip: padding-box; | ||
2405 | -moz-background-clip: padding; | ||
2406 | background-clip: padding-box; | ||
2407 | } | ||
2408 | .dropdown-menu.pull-right { | ||
2409 | right: 0; | ||
2410 | left: auto; | ||
2411 | } | ||
2412 | .dropdown-menu .divider { | ||
2413 | *width: 100%; | ||
2414 | height: 1px; | ||
2415 | margin: 9px 1px; | ||
2416 | *margin: -5px 0 5px; | ||
2417 | overflow: hidden; | ||
2418 | background-color: #e5e5e5; | ||
2419 | border-bottom: 1px solid #ffffff; | ||
2420 | } | ||
2421 | .dropdown-menu li > a { | ||
1847 | display: block; | 2422 | display: block; |
1848 | padding: 11px 10px 14px 10px; | 2423 | padding: 3px 20px; |
2424 | clear: both; | ||
2425 | font-weight: normal; | ||
2426 | line-height: 20px; | ||
2427 | color: #333333; | ||
2428 | white-space: nowrap; | ||
1849 | } | 2429 | } |
1850 | /* line 541, ../scss/include/_skeleton.scss */ | 2430 | .dropdown-menu li > a:hover, |
1851 | #jqt ul.individual li + li { | 2431 | .dropdown-menu li > a:focus, |
1852 | float: right; | 2432 | .dropdown-submenu:hover > a { |
2433 | text-decoration: none; | ||
2434 | color: #ffffff; | ||
2435 | background-color: #0081c2; | ||
2436 | background-image: -moz-linear-gradient(top, #0088cc, #0077b3); | ||
2437 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); | ||
2438 | background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); | ||
2439 | background-image: -o-linear-gradient(top, #0088cc, #0077b3); | ||
2440 | background-image: linear-gradient(to bottom, #0088cc, #0077b3); | ||
2441 | background-repeat: repeat-x; | ||
2442 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); | ||
2443 | } | ||
2444 | .dropdown-menu .active > a, | ||
2445 | .dropdown-menu .active > a:hover { | ||
2446 | color: #ffffff; | ||
2447 | text-decoration: none; | ||
2448 | outline: 0; | ||
2449 | background-color: #0081c2; | ||
2450 | background-image: -moz-linear-gradient(top, #0088cc, #0077b3); | ||
2451 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3)); | ||
2452 | background-image: -webkit-linear-gradient(top, #0088cc, #0077b3); | ||
2453 | background-image: -o-linear-gradient(top, #0088cc, #0077b3); | ||
2454 | background-image: linear-gradient(to bottom, #0088cc, #0077b3); | ||
2455 | background-repeat: repeat-x; | ||
2456 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0); | ||
2457 | } | ||
2458 | .dropdown-menu .disabled > a, | ||
2459 | .dropdown-menu .disabled > a:hover { | ||
2460 | color: #999999; | ||
2461 | } | ||
2462 | .dropdown-menu .disabled > a:hover { | ||
2463 | text-decoration: none; | ||
2464 | background-color: transparent; | ||
2465 | background-image: none; | ||
2466 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2467 | cursor: default; | ||
1853 | } | 2468 | } |
1854 | /* line 546, ../scss/include/_skeleton.scss */ | 2469 | .open { |
1855 | #jqt ul.individual a { | 2470 | *z-index: 1000; |
1856 | line-height: 16px; | 2471 | } |
1857 | margin: -11px -10px -14px -10px; | 2472 | .open > .dropdown-menu { |
1858 | padding: 11px 10px 14px 10px; | 2473 | display: block; |
1859 | -webkit-border-radius: 8px; | 2474 | } |
1860 | border-radius: 8px; | 2475 | .pull-right > .dropdown-menu { |
1861 | } | 2476 | right: 0; |
1862 | /* line 555, ../scss/include/_skeleton.scss */ | 2477 | left: auto; |
1863 | #jqt .toggle { | 2478 | } |
1864 | width: 94px; | 2479 | .dropup .caret, |
2480 | .navbar-fixed-bottom .dropdown .caret { | ||
2481 | border-top: 0; | ||
2482 | border-bottom: 4px solid #000000; | ||
2483 | content: ""; | ||
2484 | } | ||
2485 | .dropup .dropdown-menu, | ||
2486 | .navbar-fixed-bottom .dropdown .dropdown-menu { | ||
2487 | top: auto; | ||
2488 | bottom: 100%; | ||
2489 | margin-bottom: 1px; | ||
2490 | } | ||
2491 | .dropdown-submenu { | ||
1865 | position: relative; | 2492 | position: relative; |
1866 | height: 27px; | 2493 | } |
2494 | .dropdown-submenu > .dropdown-menu { | ||
2495 | top: 0; | ||
2496 | left: 100%; | ||
2497 | margin-top: -6px; | ||
2498 | margin-left: -1px; | ||
2499 | -webkit-border-radius: 0 6px 6px 6px; | ||
2500 | -moz-border-radius: 0 6px 6px 6px; | ||
2501 | border-radius: 0 6px 6px 6px; | ||
2502 | } | ||
2503 | .dropdown-submenu:hover > .dropdown-menu { | ||
1867 | display: block; | 2504 | display: block; |
1868 | overflow: hidden; | 2505 | } |
2506 | .dropup .dropdown-submenu > .dropdown-menu { | ||
2507 | top: auto; | ||
2508 | bottom: 0; | ||
2509 | margin-top: 0; | ||
2510 | margin-bottom: -2px; | ||
2511 | -webkit-border-radius: 5px 5px 5px 0; | ||
2512 | -moz-border-radius: 5px 5px 5px 0; | ||
2513 | border-radius: 5px 5px 5px 0; | ||
2514 | } | ||
2515 | .dropdown-submenu > a:after { | ||
2516 | display: block; | ||
2517 | content: " "; | ||
1869 | float: right; | 2518 | float: right; |
2519 | width: 0; | ||
2520 | height: 0; | ||
2521 | border-color: transparent; | ||
2522 | border-style: solid; | ||
2523 | border-width: 5px 0 5px 5px; | ||
2524 | border-left-color: #cccccc; | ||
2525 | margin-top: 5px; | ||
2526 | margin-right: -10px; | ||
2527 | } | ||
2528 | .dropdown-submenu:hover > a:after { | ||
2529 | border-left-color: #ffffff; | ||
2530 | } | ||
2531 | .dropdown-submenu.pull-left { | ||
2532 | float: none; | ||
2533 | } | ||
2534 | .dropdown-submenu.pull-left > .dropdown-menu { | ||
2535 | left: -100%; | ||
2536 | margin-left: 10px; | ||
2537 | -webkit-border-radius: 6px 0 6px 6px; | ||
2538 | -moz-border-radius: 6px 0 6px 6px; | ||
2539 | border-radius: 6px 0 6px 6px; | ||
2540 | } | ||
2541 | .dropdown .dropdown-menu .nav-header { | ||
2542 | padding-left: 20px; | ||
2543 | padding-right: 20px; | ||
2544 | } | ||
2545 | .typeahead { | ||
2546 | z-index: 1051; | ||
2547 | margin-top: 2px; | ||
2548 | -webkit-border-radius: 4px; | ||
2549 | -moz-border-radius: 4px; | ||
2550 | border-radius: 4px; | ||
1870 | } | 2551 | } |
1871 | /* line 563, ../scss/include/_skeleton.scss */ | 2552 | .well { |
1872 | #jqt .toggle input[type="checkbox"] { | 2553 | min-height: 20px; |
1873 | margin: 0; | 2554 | padding: 19px; |
1874 | -webkit-border-radius: 5px; | 2555 | margin-bottom: 20px; |
1875 | border-radius: 5px; | 2556 | background-color: #f5f5f5; |
1876 | height: 27px; | 2557 | border: 1px solid #e3e3e3; |
2558 | -webkit-border-radius: 4px; | ||
2559 | -moz-border-radius: 4px; | ||
2560 | border-radius: 4px; | ||
2561 | -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); | ||
2562 | -moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); | ||
2563 | box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.05); | ||
2564 | } | ||
2565 | .well blockquote { | ||
2566 | border-color: #ddd; | ||
2567 | border-color: rgba(0, 0, 0, 0.15); | ||
2568 | } | ||
2569 | .well-large { | ||
2570 | padding: 24px; | ||
2571 | -webkit-border-radius: 6px; | ||
2572 | -moz-border-radius: 6px; | ||
2573 | border-radius: 6px; | ||
2574 | } | ||
2575 | .well-small { | ||
2576 | padding: 9px; | ||
2577 | -webkit-border-radius: 3px; | ||
2578 | -moz-border-radius: 3px; | ||
2579 | border-radius: 3px; | ||
2580 | } | ||
2581 | .fade { | ||
2582 | opacity: 0; | ||
2583 | -webkit-transition: opacity 0.15s linear; | ||
2584 | -moz-transition: opacity 0.15s linear; | ||
2585 | -o-transition: opacity 0.15s linear; | ||
2586 | transition: opacity 0.15s linear; | ||
2587 | } | ||
2588 | .fade.in { | ||
2589 | opacity: 1; | ||
2590 | } | ||
2591 | .collapse { | ||
2592 | position: relative; | ||
2593 | height: 0; | ||
1877 | overflow: hidden; | 2594 | overflow: hidden; |
1878 | width: 149px; | 2595 | -webkit-transition: height 0.35s ease; |
1879 | border: 0; | 2596 | -moz-transition: height 0.35s ease; |
1880 | -webkit-transition: left 0.15s ease-in-out; | 2597 | -o-transition: height 0.35s ease; |
1881 | transition: left 0.15s ease-in-out; | 2598 | transition: height 0.35s ease; |
1882 | position: absolute; | ||
1883 | top: 0; | ||
1884 | left: -55px; | ||
1885 | -webkit-appearance: textarea; | ||
1886 | -webkit-tap-highlight-color: rgba(0, 0, 0, 0); | ||
1887 | } | 2599 | } |
1888 | /* line 577, ../scss/include/_skeleton.scss */ | 2600 | .collapse.in { |
1889 | #jqt .toggle input[type="checkbox"]:checked { | 2601 | height: auto; |
1890 | left: 0px; | ||
1891 | } | 2602 | } |
1892 | /* line 583, ../scss/include/_skeleton.scss */ | 2603 | .close { |
1893 | #jqt .info { | 2604 | float: right; |
1894 | font-size: 12px; | 2605 | font-size: 20px; |
1895 | line-height: 16px; | ||
1896 | text-align: center; | ||
1897 | color: #444; | ||
1898 | padding: 15px; | ||
1899 | font-weight: bold; | 2606 | font-weight: bold; |
2607 | line-height: 20px; | ||
2608 | color: #000000; | ||
2609 | text-shadow: 0 1px 0 #ffffff; | ||
2610 | opacity: 0.2; | ||
2611 | filter: alpha(opacity=20); | ||
1900 | } | 2612 | } |
1901 | /* line 12, ../scss/jqtouch.scss */ | 2613 | .close:hover { |
1902 | #jqt { | 2614 | color: #000000; |
1903 | /* Lists */ | 2615 | text-decoration: none; |
1904 | 2616 | cursor: pointer; | |
2617 | opacity: 0.4; | ||
2618 | filter: alpha(opacity=40); | ||
1905 | } | 2619 | } |
1906 | /* line 13, ../scss/jqtouch.scss */ | 2620 | button.close { |
1907 | #jqt > * { | 2621 | padding: 0; |
1908 | background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAUyUlEQVR4nFVZB5jU5Nb+ksxkkpnMZCgXpIuiIL1IURCW3ouAV5ByryCIFJUuTUQp0uXSlqqAuiILy9IEBOlVOlylCawgIFImM5lJMpkk9823w/r/8zw7Sb5yynvec76TWZYQQSBE8pL053Of+x1k3e9G4VVyc5L0R5jF/nYeUvD5RZT9hGR4/x7Jk/Kvy8OEDA61oU+7OUKahfPHm3sb0dU1mKc7WEHW9WZENQn5iWkenOdtliJkhLyFKj4cqc3oHj4RdoYkqjt/q6msDTKq+/ebE72tgu7z+6E9ZiPuLEQPjBDSLZlQ74UIOQLjmpgKVbXXnAeHLntuCcHw6/wRMt7P6koTrphMyJ1AM2dvbIRZzyJkiPGs310+OqQkjqTylfWG2DNUzVDctbYvJAiZau6OEcKT/0SH2oetWuZ93z3JJiX0g+QYmxmYgrmD2sQ0Fr9ifX1L0WIR4m9Ipifg2QHruE5I6XgaAow8r5ePlvLJgcVWRtIdGw7QbuHuUaoz+Zg9IHbzNnNui1hHzfswQIhmunfPGCXU43Jl3A0zB1F5e20We9vB2614UihqW6grFNJbRl/+KYxd09c/DCWewGYPvKyLzZlY0VKrTz61L0Y3mkK4jEbIb/DiM2YWVbFbboKV3f2vKnR3/DLAbguTFkQy2B1G80C2/VSDpWaxacWidy31bAeeni54E8oeYONk7jr/FmZ3UjvHk1OyzC3yfp+O+KbAJHq3SlyRPBA75MmGKW7gCKkUJeQaxWG/rbOKtjjkwfhDpjq872mf87Ad2Y1khi9fTDv7MeyUmUNgsAmuF4MvkyIVoPaIN5WO9cvKUOEl0kk5C5iV4A2Yl4CnYX4DEBDomgdK/spb5Hoy/64Mf8qeZp62E1I17oKxDdJrptitdjeyjusL317jp7IVYbFMXksNEStQNvahiMyUx5LC9O51WN1Waw5PtoEXcuyZlIsC7tRl7CNSF3eDCrj/LP0+ACr2hgF3tRoxv3oO6zvgLxGg4lYk/QD4UHKi/VeqLnMSI4u1WSqyjl2H8Q6escpEXwUqJgdMbUSDMck+4opMzAh/gbHD4rt2ETISePWHC92C17DiEljRS25i9vV+AyLm+UrKU4TiGD/C8p5fXFafZGtrmVq+lasDa3zjCoh2nqq44j8p5ajnPT8Ki/lBTmPp6ex6wf0eF6kJ0IdbXwTbMXuAQl2EZ2PsBcxURxi+UW5zWVZnsokpZ9xV/kmLyEtcMjXXz7bw1bOHQ9jLVF2/eHPhS4OQb0PN/BlsvoJr0fL6MmIkW+pDkpnOIa0w3d5f/gDGdoKPrZD5FZjTxg7nfHKerwBpchZ/ElvGmsk/sorxw+F1Jkba+wojUHkcuwdq5gPWU0k7UA4+3Iu0ghnfGz8l9hckwK+I9z5puXeavMnnWLN941AIVykHAWoV9VVhljE1/FdiHSXSCCN/R1+oqQHDVMhoYW4QGhnz3fTTfuG30xVHo+w+dqGwjVYkNp6nz4GwQUaNYCVjFbaOBf92AInGZlTsoy5lJyhHPV8H+qszIrUxmgfLm5Ml7O7QxMhKjhKJKt3lywl2oHcHgc3hYHWLi3wRuAzjt6UqU/MmizNZtqk9TO8Qcx+/CL3rHRXvQbqatfX9wTue2r7vvRbfji4NaU+ks7B1Trx3/BFCsAp/nyADWtg1EwtiTX1PaLy/416GAa2N12Mj9BPiaKax+RK3GOa1YHmzEs13idFgzBRtrA0BQ7FpYuC4/GH0RXhZGVHSvMdjk2NnjJsaR9UuwHgc4ahHU6wI4LvkKQEVPbF2kbjd2WeMBqW6sEutU4j3KoTqjtPPN9sZxrzPZrlpRwYne9DTbassmhXkLsxbfihehKmp8QZI+8K2HPgYfn2XGMj2DFRid0PwY3ZyoDiUHMf9yYITqo/aECpMn80NTedDL2ZzmhOZFPb/4pw6xb1nvhmuEdqImSbuqKcpRq8rm51vE5S5a9jxuPYXtiQUWnf3hJfbb5PLditD4QvbU+I91FUMa+WL7Sn2gQn1PdmkU4CLuqMGeDEleD+YP39F+hkuZIPtecHKfM/Q+sj5qDv+njFOJCgda3mVrqOK/2VPh02r9BzbrTNz/F/hKZxwZ+R00WsX+BAwrwkekLO0dUYJ6QREbImvx4zK+uKjRYvdS8W3JxXVTUJR7rFdL1QutiqRRUenIFSDpcveLQhC36REZopWmO2Phzo+N4nd8tjEFMXj9hvack8L6kEPkXoRKKFuFPr5/hVronzly/XdU//OVsme45utfUrr83fSduKRd1ov+geqn+H5MGSbiO1khCOYyol2wr7j8keBfj4uwp7F4GkjSTJF0ddbeIUss7L16amBqWj0R2z5TjvpKe6bg/iUiNUzqvJVxH8b+0HGnh6W+68/X/UosOKGWAWIHNb5YEpZbh5FlrSGr43Ua+Si9walFU+J+bGngSKQ6fENHvZKOjaDtOXa1/ox8gPAPkFJ1JKeNfVSfxorKGBh/rH1K67z4V1WyraqJIoI+XufZ5/TKjPXvDsDVc1+6drVmGK1Odxdfw5ySvg/oyQ8Axc+id/mD1hsPLKaewrbeViVBXr5UZlyvdPYq1w29zX7MG1aj+Rdy9Y+COQ/dfIPlB/pWtiPWc4+FchlvjevK2f01fC/Euc2Pc0xMzpiODUDG7h7ifxd22jdyo4vclj3PJ2I7y4ArobDeLaTPaEESN/ZnGC/aH0l9baLxkpAxM50f7ggPs27FtctiTbJ27IYScRi4lUy1U5aE+h8e9DlshWFxL0xE98jwtftu95M5hOhZIGDr+COvRYaGskSd3GbYdOl4G9Oe9KCAruOHhrXaRIxsSD7T6cQRqbChAmmGnJHu2plAPpP/DGSJW/WshGiHCC1Pdmaa+AN2QkYeo59gR8ZUbUP9EFOGe/CdJ4vDObijn0Ban6Lt7Ze5VWpauw5qmgNBKiIUYy5TPl7l8TsKHmC1JoI2gQCheKDKPzjJVXyeXezPWFAd/PXQGVzW2gOs8tqAcEyzKybupZ86mX/WHPKiHfZYbFiTjqP3c+zSTVdg74WJsD795S6bNDpTBW0ofz9iGnrnt5cL72nlRlbDBJNV1s4DePx+KJQCTy9FK8Yn2GNgtCp1jHJNHK906n0d+DGz7gLU/nL0n7TqZfE8+FvyTPw9kUs6q3fSXIeW/wZS3LhYWFxZ6IJ1n3u/ICRnWQ5RWWIsQCAHwcVl5Kh0XsgTRHQ7ki8KZCqJ70CpGbxj2girQRj6tqq0BEeLxGfOkoV/6qtVmZKZbHsasR9Li1aKRb2FaKxfKzNFA/Y36Sp8bG1hO5ZJ3wQzR+Zi31jIPARLbf7tNnSSRqgy9bcZNECRLsaD4DFYK1A8af5XHWu4cztnB6843aMUPQkWiF4G36MxfPJgree/O6rD44Wj7cMatMseFLbM4sGRYKpo9WZfte4R1jx0C6GMD3yuz3XiXSTUDLsIsGuARsroXf81BeJ5ZLe6WqkCLrlRud6rAz8uIiFC1KnMF4KodiTNqAfO9i5AOF/wr8esfeoLypQuMGMTQy2H3ldiP7iHiRWBIokqglGwUvf3UgRlBT2fdzmJp8RS2KLL5inu1N55HksayqtjJygSfUTjWp5EGgHzJiFSLukW22/bBNa3e7Dv3UBG+aPwN1G7KnDFzHdTR35YcxuMPuifks1vYtpq/8G657YOG0Jqajdh70ZfiOWBYV1wqWlAXot4tce+naI1/0/evKtvQiFNcwZ1BSXdDOFvnYh4sf+1gB4sMIiqdxSM9o4L59OPqAt4XHto8AG+j4RkbzmEGUjuLDBPpbcKbN9Y1MobWr4R0J56eQeobB+kPvauSFtt/qlpigVEi1TY+jWDHNY0I2aJP/X/0+3I6PouO9X7YDWEHixMlQNxg1kS8DZx/47XPfQGblU+iQLq02lsb6K3t+xc2WyjcIa3GQK5PlER+ddbK7qtZ2mShXxJXO172hBD+1+tgY+gZBxjKpUSXwPIxvA4DF05iAAXqz+W55OKttXmf7MOa4DU0kpbWVHayt5BV36PrWMXTVaVnuZHiNsdnJDOreyuGUQ/G9rL9i3Uz1uFLIf0lP2nfAMWnNWJ4sgIU4w4/iQ+0InHrckQQp3liJC/jt0z+iNaNn4i059q5VyA+omQW4LYau1HoTdHp7kdnfmfZDzFGU36+ffoHxczt0N7uGWSB8Yr5Ek4pPBlU7XmJWRcRTUHLO4p5ncPnktFXWhxBpV/ziSq4bp7AC2tXM63JrumOf5xbjscQ/C2aZXfDPxdihsf+bWZ7YdZvfT6sDKafEDrZGRFlZuvK2128sjpvutujQEXuTv72mwviI/Kfkvsgu4SlHy/z77AjKpE9kV/JjjmSrSIl8hSshs6zfIcqIOsFxOov4zKFAZdCd7CTBtpGds6XBX1hIbCZvTbV1tbL3t7RLsTsoSwVMJI21T7vviL0iKD7BmtudQ+G/F12NuXP5wXrGSjmRneIpTHLqLeUimo8xVxHUgkdTN/gGAPItPl8wA5fWdyCZ7T+Kw3pNicJKcgZoy5r14NlnM6KnLpAViVpHJUSpDw0x2Sei457XICuYkmH4EprjW9g+UUtviOi5VNf3DRi2tubNKuuoU4n7G7ldIl8QKSO+ZpIpriL3w0Dxdi3/h6lNjnqQZvRdPQ5wV8hvSHsTsCm2K1oYa+PPIRr03N8Cph4xuqHRw+UZWQd16eHMwsbTg5S3L31+1mLhWF7uP4blxeoZV2PPaX+p1uXS6f4qQEwBqstBafSd0HmD7zL7hXuEBygb199A7MKZ9cLHQN9pEdX+eKORchJqing6hbYhbPOz+HvTA/NnrdtF3YUkdGL0vsZnnnN4ApI5kShkhm98CfBrJlFwsyYmviZeFLWUDY60uof2pKfqnHInVoGmyNvINPbPKRn9k9/q2x1xUCwVq6KWFjYFqyVahh6lt0VYwoAxZZG5lBjp1zX0wuCRWnaZB60WPl9Xe02oTe0wsqnZCqA4r6WPrc9i3FjC29B5CS+COjBLnUvB3UeK1BB4xElGbGxnSJUTrCUC9o9+NrSC7KUdrQNXjSC2po+MjY0JNU+7r2U+0dEwMxQ3bfZtyM4Vt51yAlkS4up8qLul5ZOzzu3m7KuIa4TahfpWn7M7ScvD9o/6nN0gUrNivbk4Tp5dnpTAA18dukMwJINlROn6WNAkflFQnyXfzXPQJTJ8Ai2T6GDPu24sXWeyPXEiwpWDrXVh4i+trT5O2Q4gQr01Vis4/EI0d3tfJHf4xX9zMV3c0cM86SWtdD+kdmjKFdbdQTIsV9ayg0NY3Qup+jA22a1oLyQCyLv6UaCVQw8zo8+Fcl1x/0DjeCTcwPw8OttvrS8kITx4VHPDGUNweGG8EXmALFzRt3UCderTW8ele+QENxnzhYep9OvLQ+lxwj9MbiUnOcqO4UpMbTIM20XMvsVNYJ/0WcRsOtqKnPIJfOpLkGyuF3CaPzEuVo4Ib+XXdTYcr1sj062nD8BHSW73D+MSLKG6tqTFJwf01LOjrApSmSF8hdJmpY4ntkDQK/v0e/jJwzioFYx+Tqakechu9T/q0Yq+kqtPMqgGSeGjufiMclc4iYrvoEdEzsYg0Ey9RohyJNCSzU/9hDK0ayvlWeR0zlvD6UNSvmOH+ujtZ1aRqvoP+qvAw7JuTmCZlGm/DrAlwoDA54f0OEq/JacW8L1fPv60lp9Q8aSDppb+qnrFHFZSAxnqzSDtfGx/jHQX1v8uz0tW9o9LHmUk+5BbRZCtK4eSTF43GiQbm7mBLt6Vwpmuf43qMmQmf7wunhO/YF5TNtGKwSaO9P0kbtbPKXLmcupwKvenMSbdmA7Ex0/97bKcxOzAH4JZVugpPTaoOYL+wLgKnBsJNoyE874zVZ8JHhFaxDfC0Tfz98Efg0CvOWFCzc6yi3QNGd6GOuo22zcfyBY2k4B6A7VMT50CwLfxiT9Ca4xlESfP0jOrOZ8gcU0nYHK5ATajmvvXqbiBASHtSqHZkjucJdWW0bFLzLTzNduPMNkrXjfkiu1X4Ri+U9qEFqQmLV+Kvr/ekUTTUKTkktTowKjWT3cfUJP+JVKQ96FvR/YrlXNabRTcl/kF3dkVY1sLcK6KY+AxcyVELUVdmK4fh7wCOw1NFkK+cfhgej3Z/CdTYTHD6XuqhUBbxe046l2rNr4OV3Ulj/0NakzLYKeJYu6lTEYBeSTwF+V/YHIKQv3T3kNyEHffAjorpdn0MGQ8zFoUOCRcB8RnKlk622+g9Iz7wrKZEZbdrF3khVVQvZXUPl9Tr87uSD0O1pU5mJQBYAUtzopO1ed7h3Bh6sIdQd+Zj45qE3zOCwuYekix7ITBWyZR/9r4BQN/1XGTqkbeZ3ORrNJpD2XryJYx3tp8V72vFUo8irNvQL2Sr0XzcLmZHWlpLsaBodAEAWsLN56+nPRhhzrfqIILl5ShQGI71b4YSqXn2gOBh2grYtuMeNUpd021ll6V+cLpYXzo/Qm0tFJe31dZaVYx7jFtaBrzPYWy3oR9mrxfm+paFC8PDhk5tcLF3UMeywdZVGtFsCtRqz1uI5k3leW6+5yYzgF8fvQw0VsQawZz7NDkQqID7Q9R46cD/+bdQWWN64DXyGXVtDoxckhopbUTG3+TZov439ZHGGFo4l9MC4o0dgtDhgaU0P7sjflnSF/y3sH8Y95s1PFXeWeH+Y6Qgz59xmQ3q3IivM6b771tNzIHcPhqGfuHc1Pj4IdKIhmkAKLbSmat2BMfLJ9mT+mKoUeCvSgbScvYlOWzU8s6npf1NaSGW9VQvJASsWmj97UtDmKWkG+O2bDsxv2GZZq9GeJZb3YHWHmYtTc9v2aNwa7V8GPfz7BTbGsRb52efs4dgaTGpm/9p914mnBO4Ca7/4XObmWGxH6h4veAFs5PbJ4srmD8lGWPlEMUf7B2aSl4Xr4bilE53mQ2A83tnG0AfF3rL/tRlvtneyg23kwNiOHLcu0wHJKXYLHGtZyNNlapg7e1INy0CMEVEWoKAbda2Alh5yf3ZBQ2QNsApTvHJAzIPghthTI72YvRPmiolnWZxt51VAfGM6ITwRHi+LfER1zmyQzEw09RfMvQ/bwW2EDwFbhEAAAAASUVORK5CYII='), -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #7b7c7f), color-stop(30%, #696a6d), color-stop(65%, #555658), color-stop(100%, #464748)); | 2622 | cursor: pointer; |
1909 | background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAUyUlEQVR4nFVZB5jU5Nb+ksxkkpnMZCgXpIuiIL1IURCW3ouAV5ByryCIFJUuTUQp0uXSlqqAuiILy9IEBOlVOlylCawgIFImM5lJMpkk9823w/r/8zw7Sb5yynvec76TWZYQQSBE8pL053Of+x1k3e9G4VVyc5L0R5jF/nYeUvD5RZT9hGR4/x7Jk/Kvy8OEDA61oU+7OUKahfPHm3sb0dU1mKc7WEHW9WZENQn5iWkenOdtliJkhLyFKj4cqc3oHj4RdoYkqjt/q6msDTKq+/ebE72tgu7z+6E9ZiPuLEQPjBDSLZlQ74UIOQLjmpgKVbXXnAeHLntuCcHw6/wRMt7P6koTrphMyJ1AM2dvbIRZzyJkiPGs310+OqQkjqTylfWG2DNUzVDctbYvJAiZau6OEcKT/0SH2oetWuZ93z3JJiX0g+QYmxmYgrmD2sQ0Fr9ifX1L0WIR4m9Ipifg2QHruE5I6XgaAow8r5ePlvLJgcVWRtIdGw7QbuHuUaoz+Zg9IHbzNnNui1hHzfswQIhmunfPGCXU43Jl3A0zB1F5e20We9vB2614UihqW6grFNJbRl/+KYxd09c/DCWewGYPvKyLzZlY0VKrTz61L0Y3mkK4jEbIb/DiM2YWVbFbboKV3f2vKnR3/DLAbguTFkQy2B1G80C2/VSDpWaxacWidy31bAeeni54E8oeYONk7jr/FmZ3UjvHk1OyzC3yfp+O+KbAJHq3SlyRPBA75MmGKW7gCKkUJeQaxWG/rbOKtjjkwfhDpjq872mf87Ad2Y1khi9fTDv7MeyUmUNgsAmuF4MvkyIVoPaIN5WO9cvKUOEl0kk5C5iV4A2Yl4CnYX4DEBDomgdK/spb5Hoy/64Mf8qeZp62E1I17oKxDdJrptitdjeyjusL317jp7IVYbFMXksNEStQNvahiMyUx5LC9O51WN1Waw5PtoEXcuyZlIsC7tRl7CNSF3eDCrj/LP0+ACr2hgF3tRoxv3oO6zvgLxGg4lYk/QD4UHKi/VeqLnMSI4u1WSqyjl2H8Q6escpEXwUqJgdMbUSDMck+4opMzAh/gbHD4rt2ETISePWHC92C17DiEljRS25i9vV+AyLm+UrKU4TiGD/C8p5fXFafZGtrmVq+lasDa3zjCoh2nqq44j8p5ajnPT8Ki/lBTmPp6ex6wf0eF6kJ0IdbXwTbMXuAQl2EZ2PsBcxURxi+UW5zWVZnsokpZ9xV/kmLyEtcMjXXz7bw1bOHQ9jLVF2/eHPhS4OQb0PN/BlsvoJr0fL6MmIkW+pDkpnOIa0w3d5f/gDGdoKPrZD5FZjTxg7nfHKerwBpchZ/ElvGmsk/sorxw+F1Jkba+wojUHkcuwdq5gPWU0k7UA4+3Iu0ghnfGz8l9hckwK+I9z5puXeavMnnWLN941AIVykHAWoV9VVhljE1/FdiHSXSCCN/R1+oqQHDVMhoYW4QGhnz3fTTfuG30xVHo+w+dqGwjVYkNp6nz4GwQUaNYCVjFbaOBf92AInGZlTsoy5lJyhHPV8H+qszIrUxmgfLm5Ml7O7QxMhKjhKJKt3lywl2oHcHgc3hYHWLi3wRuAzjt6UqU/MmizNZtqk9TO8Qcx+/CL3rHRXvQbqatfX9wTue2r7vvRbfji4NaU+ks7B1Trx3/BFCsAp/nyADWtg1EwtiTX1PaLy/416GAa2N12Mj9BPiaKax+RK3GOa1YHmzEs13idFgzBRtrA0BQ7FpYuC4/GH0RXhZGVHSvMdjk2NnjJsaR9UuwHgc4ahHU6wI4LvkKQEVPbF2kbjd2WeMBqW6sEutU4j3KoTqjtPPN9sZxrzPZrlpRwYne9DTbassmhXkLsxbfihehKmp8QZI+8K2HPgYfn2XGMj2DFRid0PwY3ZyoDiUHMf9yYITqo/aECpMn80NTedDL2ZzmhOZFPb/4pw6xb1nvhmuEdqImSbuqKcpRq8rm51vE5S5a9jxuPYXtiQUWnf3hJfbb5PLditD4QvbU+I91FUMa+WL7Sn2gQn1PdmkU4CLuqMGeDEleD+YP39F+hkuZIPtecHKfM/Q+sj5qDv+njFOJCgda3mVrqOK/2VPh02r9BzbrTNz/F/hKZxwZ+R00WsX+BAwrwkekLO0dUYJ6QREbImvx4zK+uKjRYvdS8W3JxXVTUJR7rFdL1QutiqRRUenIFSDpcveLQhC36REZopWmO2Phzo+N4nd8tjEFMXj9hvack8L6kEPkXoRKKFuFPr5/hVronzly/XdU//OVsme45utfUrr83fSduKRd1ov+geqn+H5MGSbiO1khCOYyol2wr7j8keBfj4uwp7F4GkjSTJF0ddbeIUss7L16amBqWj0R2z5TjvpKe6bg/iUiNUzqvJVxH8b+0HGnh6W+68/X/UosOKGWAWIHNb5YEpZbh5FlrSGr43Ua+Si9walFU+J+bGngSKQ6fENHvZKOjaDtOXa1/ox8gPAPkFJ1JKeNfVSfxorKGBh/rH1K67z4V1WyraqJIoI+XufZ5/TKjPXvDsDVc1+6drVmGK1Odxdfw5ySvg/oyQ8Axc+id/mD1hsPLKaewrbeViVBXr5UZlyvdPYq1w29zX7MG1aj+Rdy9Y+COQ/dfIPlB/pWtiPWc4+FchlvjevK2f01fC/Euc2Pc0xMzpiODUDG7h7ifxd22jdyo4vclj3PJ2I7y4ArobDeLaTPaEESN/ZnGC/aH0l9baLxkpAxM50f7ggPs27FtctiTbJ27IYScRi4lUy1U5aE+h8e9DlshWFxL0xE98jwtftu95M5hOhZIGDr+COvRYaGskSd3GbYdOl4G9Oe9KCAruOHhrXaRIxsSD7T6cQRqbChAmmGnJHu2plAPpP/DGSJW/WshGiHCC1Pdmaa+AN2QkYeo59gR8ZUbUP9EFOGe/CdJ4vDObijn0Ban6Lt7Ze5VWpauw5qmgNBKiIUYy5TPl7l8TsKHmC1JoI2gQCheKDKPzjJVXyeXezPWFAd/PXQGVzW2gOs8tqAcEyzKybupZ86mX/WHPKiHfZYbFiTjqP3c+zSTVdg74WJsD795S6bNDpTBW0ofz9iGnrnt5cL72nlRlbDBJNV1s4DePx+KJQCTy9FK8Yn2GNgtCp1jHJNHK906n0d+DGz7gLU/nL0n7TqZfE8+FvyTPw9kUs6q3fSXIeW/wZS3LhYWFxZ6IJ1n3u/ICRnWQ5RWWIsQCAHwcVl5Kh0XsgTRHQ7ki8KZCqJ70CpGbxj2girQRj6tqq0BEeLxGfOkoV/6qtVmZKZbHsasR9Li1aKRb2FaKxfKzNFA/Y36Sp8bG1hO5ZJ3wQzR+Zi31jIPARLbf7tNnSSRqgy9bcZNECRLsaD4DFYK1A8af5XHWu4cztnB6843aMUPQkWiF4G36MxfPJgree/O6rD44Wj7cMatMseFLbM4sGRYKpo9WZfte4R1jx0C6GMD3yuz3XiXSTUDLsIsGuARsroXf81BeJ5ZLe6WqkCLrlRud6rAz8uIiFC1KnMF4KodiTNqAfO9i5AOF/wr8esfeoLypQuMGMTQy2H3ldiP7iHiRWBIokqglGwUvf3UgRlBT2fdzmJp8RS2KLL5inu1N55HksayqtjJygSfUTjWp5EGgHzJiFSLukW22/bBNa3e7Dv3UBG+aPwN1G7KnDFzHdTR35YcxuMPuifks1vYtpq/8G657YOG0Jqajdh70ZfiOWBYV1wqWlAXot4tce+naI1/0/evKtvQiFNcwZ1BSXdDOFvnYh4sf+1gB4sMIiqdxSM9o4L59OPqAt4XHto8AG+j4RkbzmEGUjuLDBPpbcKbN9Y1MobWr4R0J56eQeobB+kPvauSFtt/qlpigVEi1TY+jWDHNY0I2aJP/X/0+3I6PouO9X7YDWEHixMlQNxg1kS8DZx/47XPfQGblU+iQLq02lsb6K3t+xc2WyjcIa3GQK5PlER+ddbK7qtZ2mShXxJXO172hBD+1+tgY+gZBxjKpUSXwPIxvA4DF05iAAXqz+W55OKttXmf7MOa4DU0kpbWVHayt5BV36PrWMXTVaVnuZHiNsdnJDOreyuGUQ/G9rL9i3Uz1uFLIf0lP2nfAMWnNWJ4sgIU4w4/iQ+0InHrckQQp3liJC/jt0z+iNaNn4i059q5VyA+omQW4LYau1HoTdHp7kdnfmfZDzFGU36+ffoHxczt0N7uGWSB8Yr5Ek4pPBlU7XmJWRcRTUHLO4p5ncPnktFXWhxBpV/ziSq4bp7AC2tXM63JrumOf5xbjscQ/C2aZXfDPxdihsf+bWZ7YdZvfT6sDKafEDrZGRFlZuvK2128sjpvutujQEXuTv72mwviI/Kfkvsgu4SlHy/z77AjKpE9kV/JjjmSrSIl8hSshs6zfIcqIOsFxOov4zKFAZdCd7CTBtpGds6XBX1hIbCZvTbV1tbL3t7RLsTsoSwVMJI21T7vviL0iKD7BmtudQ+G/F12NuXP5wXrGSjmRneIpTHLqLeUimo8xVxHUgkdTN/gGAPItPl8wA5fWdyCZ7T+Kw3pNicJKcgZoy5r14NlnM6KnLpAViVpHJUSpDw0x2Sei457XICuYkmH4EprjW9g+UUtviOi5VNf3DRi2tubNKuuoU4n7G7ldIl8QKSO+ZpIpriL3w0Dxdi3/h6lNjnqQZvRdPQ5wV8hvSHsTsCm2K1oYa+PPIRr03N8Cph4xuqHRw+UZWQd16eHMwsbTg5S3L31+1mLhWF7uP4blxeoZV2PPaX+p1uXS6f4qQEwBqstBafSd0HmD7zL7hXuEBygb199A7MKZ9cLHQN9pEdX+eKORchJqing6hbYhbPOz+HvTA/NnrdtF3YUkdGL0vsZnnnN4ApI5kShkhm98CfBrJlFwsyYmviZeFLWUDY60uof2pKfqnHInVoGmyNvINPbPKRn9k9/q2x1xUCwVq6KWFjYFqyVahh6lt0VYwoAxZZG5lBjp1zX0wuCRWnaZB60WPl9Xe02oTe0wsqnZCqA4r6WPrc9i3FjC29B5CS+COjBLnUvB3UeK1BB4xElGbGxnSJUTrCUC9o9+NrSC7KUdrQNXjSC2po+MjY0JNU+7r2U+0dEwMxQ3bfZtyM4Vt51yAlkS4up8qLul5ZOzzu3m7KuIa4TahfpWn7M7ScvD9o/6nN0gUrNivbk4Tp5dnpTAA18dukMwJINlROn6WNAkflFQnyXfzXPQJTJ8Ai2T6GDPu24sXWeyPXEiwpWDrXVh4i+trT5O2Q4gQr01Vis4/EI0d3tfJHf4xX9zMV3c0cM86SWtdD+kdmjKFdbdQTIsV9ayg0NY3Qup+jA22a1oLyQCyLv6UaCVQw8zo8+Fcl1x/0DjeCTcwPw8OttvrS8kITx4VHPDGUNweGG8EXmALFzRt3UCderTW8ele+QENxnzhYep9OvLQ+lxwj9MbiUnOcqO4UpMbTIM20XMvsVNYJ/0WcRsOtqKnPIJfOpLkGyuF3CaPzEuVo4Ib+XXdTYcr1sj062nD8BHSW73D+MSLKG6tqTFJwf01LOjrApSmSF8hdJmpY4ntkDQK/v0e/jJwzioFYx+Tqakechu9T/q0Yq+kqtPMqgGSeGjufiMclc4iYrvoEdEzsYg0Ey9RohyJNCSzU/9hDK0ayvlWeR0zlvD6UNSvmOH+ujtZ1aRqvoP+qvAw7JuTmCZlGm/DrAlwoDA54f0OEq/JacW8L1fPv60lp9Q8aSDppb+qnrFHFZSAxnqzSDtfGx/jHQX1v8uz0tW9o9LHmUk+5BbRZCtK4eSTF43GiQbm7mBLt6Vwpmuf43qMmQmf7wunhO/YF5TNtGKwSaO9P0kbtbPKXLmcupwKvenMSbdmA7Ex0/97bKcxOzAH4JZVugpPTaoOYL+wLgKnBsJNoyE874zVZ8JHhFaxDfC0Tfz98Efg0CvOWFCzc6yi3QNGd6GOuo22zcfyBY2k4B6A7VMT50CwLfxiT9Ca4xlESfP0jOrOZ8gcU0nYHK5ATajmvvXqbiBASHtSqHZkjucJdWW0bFLzLTzNduPMNkrXjfkiu1X4Ri+U9qEFqQmLV+Kvr/ekUTTUKTkktTowKjWT3cfUJP+JVKQ96FvR/YrlXNabRTcl/kF3dkVY1sLcK6KY+AxcyVELUVdmK4fh7wCOw1NFkK+cfhgej3Z/CdTYTHD6XuqhUBbxe046l2rNr4OV3Ulj/0NakzLYKeJYu6lTEYBeSTwF+V/YHIKQv3T3kNyEHffAjorpdn0MGQ8zFoUOCRcB8RnKlk622+g9Iz7wrKZEZbdrF3khVVQvZXUPl9Tr87uSD0O1pU5mJQBYAUtzopO1ed7h3Bh6sIdQd+Zj45qE3zOCwuYekix7ITBWyZR/9r4BQN/1XGTqkbeZ3ORrNJpD2XryJYx3tp8V72vFUo8irNvQL2Sr0XzcLmZHWlpLsaBodAEAWsLN56+nPRhhzrfqIILl5ShQGI71b4YSqXn2gOBh2grYtuMeNUpd021ll6V+cLpYXzo/Qm0tFJe31dZaVYx7jFtaBrzPYWy3oR9mrxfm+paFC8PDhk5tcLF3UMeywdZVGtFsCtRqz1uI5k3leW6+5yYzgF8fvQw0VsQawZz7NDkQqID7Q9R46cD/+bdQWWN64DXyGXVtDoxckhopbUTG3+TZov439ZHGGFo4l9MC4o0dgtDhgaU0P7sjflnSF/y3sH8Y95s1PFXeWeH+Y6Qgz59xmQ3q3IivM6b771tNzIHcPhqGfuHc1Pj4IdKIhmkAKLbSmat2BMfLJ9mT+mKoUeCvSgbScvYlOWzU8s6npf1NaSGW9VQvJASsWmj97UtDmKWkG+O2bDsxv2GZZq9GeJZb3YHWHmYtTc9v2aNwa7V8GPfz7BTbGsRb52efs4dgaTGpm/9p914mnBO4Ca7/4XObmWGxH6h4veAFs5PbJ4srmD8lGWPlEMUf7B2aSl4Xr4bilE53mQ2A83tnG0AfF3rL/tRlvtneyg23kwNiOHLcu0wHJKXYLHGtZyNNlapg7e1INy0CMEVEWoKAbda2Alh5yf3ZBQ2QNsApTvHJAzIPghthTI72YvRPmiolnWZxt51VAfGM6ITwRHi+LfER1zmyQzEw09RfMvQ/bwW2EDwFbhEAAAAASUVORK5CYII='), -webkit-linear-gradient(top, #7b7c7f, #696a6d 30%, #555658 65%, #464748); | 2623 | background: transparent; |
1910 | background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADwAAAA8CAQAAACQ9RH5AAAUyUlEQVR4nFVZB5jU5Nb+ksxkkpnMZCgXpIuiIL1IURCW3ouAV5ByryCIFJUuTUQp0uXSlqqAuiILy9IEBOlVOlylCawgIFImM5lJMpkk9823w/r/8zw7Sb5yynvec76TWZYQQSBE8pL053Of+x1k3e9G4VVyc5L0R5jF/nYeUvD5RZT9hGR4/x7Jk/Kvy8OEDA61oU+7OUKahfPHm3sb0dU1mKc7WEHW9WZENQn5iWkenOdtliJkhLyFKj4cqc3oHj4RdoYkqjt/q6msDTKq+/ebE72tgu7z+6E9ZiPuLEQPjBDSLZlQ74UIOQLjmpgKVbXXnAeHLntuCcHw6/wRMt7P6koTrphMyJ1AM2dvbIRZzyJkiPGs310+OqQkjqTylfWG2DNUzVDctbYvJAiZau6OEcKT/0SH2oetWuZ93z3JJiX0g+QYmxmYgrmD2sQ0Fr9ifX1L0WIR4m9Ipifg2QHruE5I6XgaAow8r5ePlvLJgcVWRtIdGw7QbuHuUaoz+Zg9IHbzNnNui1hHzfswQIhmunfPGCXU43Jl3A0zB1F5e20We9vB2614UihqW6grFNJbRl/+KYxd09c/DCWewGYPvKyLzZlY0VKrTz61L0Y3mkK4jEbIb/DiM2YWVbFbboKV3f2vKnR3/DLAbguTFkQy2B1G80C2/VSDpWaxacWidy31bAeeni54E8oeYONk7jr/FmZ3UjvHk1OyzC3yfp+O+KbAJHq3SlyRPBA75MmGKW7gCKkUJeQaxWG/rbOKtjjkwfhDpjq872mf87Ad2Y1khi9fTDv7MeyUmUNgsAmuF4MvkyIVoPaIN5WO9cvKUOEl0kk5C5iV4A2Yl4CnYX4DEBDomgdK/spb5Hoy/64Mf8qeZp62E1I17oKxDdJrptitdjeyjusL317jp7IVYbFMXksNEStQNvahiMyUx5LC9O51WN1Waw5PtoEXcuyZlIsC7tRl7CNSF3eDCrj/LP0+ACr2hgF3tRoxv3oO6zvgLxGg4lYk/QD4UHKi/VeqLnMSI4u1WSqyjl2H8Q6escpEXwUqJgdMbUSDMck+4opMzAh/gbHD4rt2ETISePWHC92C17DiEljRS25i9vV+AyLm+UrKU4TiGD/C8p5fXFafZGtrmVq+lasDa3zjCoh2nqq44j8p5ajnPT8Ki/lBTmPp6ex6wf0eF6kJ0IdbXwTbMXuAQl2EZ2PsBcxURxi+UW5zWVZnsokpZ9xV/kmLyEtcMjXXz7bw1bOHQ9jLVF2/eHPhS4OQb0PN/BlsvoJr0fL6MmIkW+pDkpnOIa0w3d5f/gDGdoKPrZD5FZjTxg7nfHKerwBpchZ/ElvGmsk/sorxw+F1Jkba+wojUHkcuwdq5gPWU0k7UA4+3Iu0ghnfGz8l9hckwK+I9z5puXeavMnnWLN941AIVykHAWoV9VVhljE1/FdiHSXSCCN/R1+oqQHDVMhoYW4QGhnz3fTTfuG30xVHo+w+dqGwjVYkNp6nz4GwQUaNYCVjFbaOBf92AInGZlTsoy5lJyhHPV8H+qszIrUxmgfLm5Ml7O7QxMhKjhKJKt3lywl2oHcHgc3hYHWLi3wRuAzjt6UqU/MmizNZtqk9TO8Qcx+/CL3rHRXvQbqatfX9wTue2r7vvRbfji4NaU+ks7B1Trx3/BFCsAp/nyADWtg1EwtiTX1PaLy/416GAa2N12Mj9BPiaKax+RK3GOa1YHmzEs13idFgzBRtrA0BQ7FpYuC4/GH0RXhZGVHSvMdjk2NnjJsaR9UuwHgc4ahHU6wI4LvkKQEVPbF2kbjd2WeMBqW6sEutU4j3KoTqjtPPN9sZxrzPZrlpRwYne9DTbassmhXkLsxbfihehKmp8QZI+8K2HPgYfn2XGMj2DFRid0PwY3ZyoDiUHMf9yYITqo/aECpMn80NTedDL2ZzmhOZFPb/4pw6xb1nvhmuEdqImSbuqKcpRq8rm51vE5S5a9jxuPYXtiQUWnf3hJfbb5PLditD4QvbU+I91FUMa+WL7Sn2gQn1PdmkU4CLuqMGeDEleD+YP39F+hkuZIPtecHKfM/Q+sj5qDv+njFOJCgda3mVrqOK/2VPh02r9BzbrTNz/F/hKZxwZ+R00WsX+BAwrwkekLO0dUYJ6QREbImvx4zK+uKjRYvdS8W3JxXVTUJR7rFdL1QutiqRRUenIFSDpcveLQhC36REZopWmO2Phzo+N4nd8tjEFMXj9hvack8L6kEPkXoRKKFuFPr5/hVronzly/XdU//OVsme45utfUrr83fSduKRd1ov+geqn+H5MGSbiO1khCOYyol2wr7j8keBfj4uwp7F4GkjSTJF0ddbeIUss7L16amBqWj0R2z5TjvpKe6bg/iUiNUzqvJVxH8b+0HGnh6W+68/X/UosOKGWAWIHNb5YEpZbh5FlrSGr43Ua+Si9walFU+J+bGngSKQ6fENHvZKOjaDtOXa1/ox8gPAPkFJ1JKeNfVSfxorKGBh/rH1K67z4V1WyraqJIoI+XufZ5/TKjPXvDsDVc1+6drVmGK1Odxdfw5ySvg/oyQ8Axc+id/mD1hsPLKaewrbeViVBXr5UZlyvdPYq1w29zX7MG1aj+Rdy9Y+COQ/dfIPlB/pWtiPWc4+FchlvjevK2f01fC/Euc2Pc0xMzpiODUDG7h7ifxd22jdyo4vclj3PJ2I7y4ArobDeLaTPaEESN/ZnGC/aH0l9baLxkpAxM50f7ggPs27FtctiTbJ27IYScRi4lUy1U5aE+h8e9DlshWFxL0xE98jwtftu95M5hOhZIGDr+COvRYaGskSd3GbYdOl4G9Oe9KCAruOHhrXaRIxsSD7T6cQRqbChAmmGnJHu2plAPpP/DGSJW/WshGiHCC1Pdmaa+AN2QkYeo59gR8ZUbUP9EFOGe/CdJ4vDObijn0Ban6Lt7Ze5VWpauw5qmgNBKiIUYy5TPl7l8TsKHmC1JoI2gQCheKDKPzjJVXyeXezPWFAd/PXQGVzW2gOs8tqAcEyzKybupZ86mX/WHPKiHfZYbFiTjqP3c+zSTVdg74WJsD795S6bNDpTBW0ofz9iGnrnt5cL72nlRlbDBJNV1s4DePx+KJQCTy9FK8Yn2GNgtCp1jHJNHK906n0d+DGz7gLU/nL0n7TqZfE8+FvyTPw9kUs6q3fSXIeW/wZS3LhYWFxZ6IJ1n3u/ICRnWQ5RWWIsQCAHwcVl5Kh0XsgTRHQ7ki8KZCqJ70CpGbxj2girQRj6tqq0BEeLxGfOkoV/6qtVmZKZbHsasR9Li1aKRb2FaKxfKzNFA/Y36Sp8bG1hO5ZJ3wQzR+Zi31jIPARLbf7tNnSSRqgy9bcZNECRLsaD4DFYK1A8af5XHWu4cztnB6843aMUPQkWiF4G36MxfPJgree/O6rD44Wj7cMatMseFLbM4sGRYKpo9WZfte4R1jx0C6GMD3yuz3XiXSTUDLsIsGuARsroXf81BeJ5ZLe6WqkCLrlRud6rAz8uIiFC1KnMF4KodiTNqAfO9i5AOF/wr8esfeoLypQuMGMTQy2H3ldiP7iHiRWBIokqglGwUvf3UgRlBT2fdzmJp8RS2KLL5inu1N55HksayqtjJygSfUTjWp5EGgHzJiFSLukW22/bBNa3e7Dv3UBG+aPwN1G7KnDFzHdTR35YcxuMPuifks1vYtpq/8G657YOG0Jqajdh70ZfiOWBYV1wqWlAXot4tce+naI1/0/evKtvQiFNcwZ1BSXdDOFvnYh4sf+1gB4sMIiqdxSM9o4L59OPqAt4XHto8AG+j4RkbzmEGUjuLDBPpbcKbN9Y1MobWr4R0J56eQeobB+kPvauSFtt/qlpigVEi1TY+jWDHNY0I2aJP/X/0+3I6PouO9X7YDWEHixMlQNxg1kS8DZx/47XPfQGblU+iQLq02lsb6K3t+xc2WyjcIa3GQK5PlER+ddbK7qtZ2mShXxJXO172hBD+1+tgY+gZBxjKpUSXwPIxvA4DF05iAAXqz+W55OKttXmf7MOa4DU0kpbWVHayt5BV36PrWMXTVaVnuZHiNsdnJDOreyuGUQ/G9rL9i3Uz1uFLIf0lP2nfAMWnNWJ4sgIU4w4/iQ+0InHrckQQp3liJC/jt0z+iNaNn4i059q5VyA+omQW4LYau1HoTdHp7kdnfmfZDzFGU36+ffoHxczt0N7uGWSB8Yr5Ek4pPBlU7XmJWRcRTUHLO4p5ncPnktFXWhxBpV/ziSq4bp7AC2tXM63JrumOf5xbjscQ/C2aZXfDPxdihsf+bWZ7YdZvfT6sDKafEDrZGRFlZuvK2128sjpvutujQEXuTv72mwviI/Kfkvsgu4SlHy/z77AjKpE9kV/JjjmSrSIl8hSshs6zfIcqIOsFxOov4zKFAZdCd7CTBtpGds6XBX1hIbCZvTbV1tbL3t7RLsTsoSwVMJI21T7vviL0iKD7BmtudQ+G/F12NuXP5wXrGSjmRneIpTHLqLeUimo8xVxHUgkdTN/gGAPItPl8wA5fWdyCZ7T+Kw3pNicJKcgZoy5r14NlnM6KnLpAViVpHJUSpDw0x2Sei457XICuYkmH4EprjW9g+UUtviOi5VNf3DRi2tubNKuuoU4n7G7ldIl8QKSO+ZpIpriL3w0Dxdi3/h6lNjnqQZvRdPQ5wV8hvSHsTsCm2K1oYa+PPIRr03N8Cph4xuqHRw+UZWQd16eHMwsbTg5S3L31+1mLhWF7uP4blxeoZV2PPaX+p1uXS6f4qQEwBqstBafSd0HmD7zL7hXuEBygb199A7MKZ9cLHQN9pEdX+eKORchJqing6hbYhbPOz+HvTA/NnrdtF3YUkdGL0vsZnnnN4ApI5kShkhm98CfBrJlFwsyYmviZeFLWUDY60uof2pKfqnHInVoGmyNvINPbPKRn9k9/q2x1xUCwVq6KWFjYFqyVahh6lt0VYwoAxZZG5lBjp1zX0wuCRWnaZB60WPl9Xe02oTe0wsqnZCqA4r6WPrc9i3FjC29B5CS+COjBLnUvB3UeK1BB4xElGbGxnSJUTrCUC9o9+NrSC7KUdrQNXjSC2po+MjY0JNU+7r2U+0dEwMxQ3bfZtyM4Vt51yAlkS4up8qLul5ZOzzu3m7KuIa4TahfpWn7M7ScvD9o/6nN0gUrNivbk4Tp5dnpTAA18dukMwJINlROn6WNAkflFQnyXfzXPQJTJ8Ai2T6GDPu24sXWeyPXEiwpWDrXVh4i+trT5O2Q4gQr01Vis4/EI0d3tfJHf4xX9zMV3c0cM86SWtdD+kdmjKFdbdQTIsV9ayg0NY3Qup+jA22a1oLyQCyLv6UaCVQw8zo8+Fcl1x/0DjeCTcwPw8OttvrS8kITx4VHPDGUNweGG8EXmALFzRt3UCderTW8ele+QENxnzhYep9OvLQ+lxwj9MbiUnOcqO4UpMbTIM20XMvsVNYJ/0WcRsOtqKnPIJfOpLkGyuF3CaPzEuVo4Ib+XXdTYcr1sj062nD8BHSW73D+MSLKG6tqTFJwf01LOjrApSmSF8hdJmpY4ntkDQK/v0e/jJwzioFYx+Tqakechu9T/q0Yq+kqtPMqgGSeGjufiMclc4iYrvoEdEzsYg0Ey9RohyJNCSzU/9hDK0ayvlWeR0zlvD6UNSvmOH+ujtZ1aRqvoP+qvAw7JuTmCZlGm/DrAlwoDA54f0OEq/JacW8L1fPv60lp9Q8aSDppb+qnrFHFZSAxnqzSDtfGx/jHQX1v8uz0tW9o9LHmUk+5BbRZCtK4eSTF43GiQbm7mBLt6Vwpmuf43qMmQmf7wunhO/YF5TNtGKwSaO9P0kbtbPKXLmcupwKvenMSbdmA7Ex0/97bKcxOzAH4JZVugpPTaoOYL+wLgKnBsJNoyE874zVZ8JHhFaxDfC0Tfz98Efg0CvOWFCzc6yi3QNGd6GOuo22zcfyBY2k4B6A7VMT50CwLfxiT9Ca4xlESfP0jOrOZ8gcU0nYHK5ATajmvvXqbiBASHtSqHZkjucJdWW0bFLzLTzNduPMNkrXjfkiu1X4Ri+U9qEFqQmLV+Kvr/ekUTTUKTkktTowKjWT3cfUJP+JVKQ96FvR/YrlXNabRTcl/kF3dkVY1sLcK6KY+AxcyVELUVdmK4fh7wCOw1NFkK+cfhgej3Z/CdTYTHD6XuqhUBbxe046l2rNr4OV3Ulj/0NakzLYKeJYu6lTEYBeSTwF+V/YHIKQv3T3kNyEHffAjorpdn0MGQ8zFoUOCRcB8RnKlk622+g9Iz7wrKZEZbdrF3khVVQvZXUPl9Tr87uSD0O1pU5mJQBYAUtzopO1ed7h3Bh6sIdQd+Zj45qE3zOCwuYekix7ITBWyZR/9r4BQN/1XGTqkbeZ3ORrNJpD2XryJYx3tp8V72vFUo8irNvQL2Sr0XzcLmZHWlpLsaBodAEAWsLN56+nPRhhzrfqIILl5ShQGI71b4YSqXn2gOBh2grYtuMeNUpd021ll6V+cLpYXzo/Qm0tFJe31dZaVYx7jFtaBrzPYWy3oR9mrxfm+paFC8PDhk5tcLF3UMeywdZVGtFsCtRqz1uI5k3leW6+5yYzgF8fvQw0VsQawZz7NDkQqID7Q9R46cD/+bdQWWN64DXyGXVtDoxckhopbUTG3+TZov439ZHGGFo4l9MC4o0dgtDhgaU0P7sjflnSF/y3sH8Y95s1PFXeWeH+Y6Qgz59xmQ3q3IivM6b771tNzIHcPhqGfuHc1Pj4IdKIhmkAKLbSmat2BMfLJ9mT+mKoUeCvSgbScvYlOWzU8s6npf1NaSGW9VQvJASsWmj97UtDmKWkG+O2bDsxv2GZZq9GeJZb3YHWHmYtTc9v2aNwa7V8GPfz7BTbGsRb52efs4dgaTGpm/9p914mnBO4Ca7/4XObmWGxH6h4veAFs5PbJ4srmD8lGWPlEMUf7B2aSl4Xr4bilE53mQ2A83tnG0AfF3rL/tRlvtneyg23kwNiOHLcu0wHJKXYLHGtZyNNlapg7e1INy0CMEVEWoKAbda2Alh5yf3ZBQ2QNsApTvHJAzIPghthTI72YvRPmiolnWZxt51VAfGM6ITwRHi+LfER1zmyQzEw09RfMvQ/bwW2EDwFbhEAAAAASUVORK5CYII='), linear-gradient(top, #7b7c7f, #696a6d 30%, #555658 65%, #464748); | 2624 | border: 0; |
1911 | } | 2625 | -webkit-appearance: none; |
1912 | /* line 20, ../scss/jqtouch.scss */ | ||
1913 | #jqt .toolbar { | ||
1914 | background-image: -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 12.5, color-stop(12.5%, #181819), color-stop(12.5%, rgba(11, 11, 12, 0))), -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 12.5, color-stop(12.5%, #181819), color-stop(12.5%, rgba(11, 11, 12, 0))), -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 12.5, color-stop(12.5%, rgba(255, 255, 255, 0.1)), color-stop(12.5%, rgba(255, 255, 255, 0))), -webkit-gradient(radial, 50% 50%, 0, 50% 50%, 12.5, color-stop(12.5%, rgba(255, 255, 255, 0.1)), color-stop(12.5%, rgba(255, 255, 255, 0))); | ||
1915 | background-image: -webkit-radial-gradient(#181819 12.5%, rgba(11, 11, 12, 0) 12.5%), -webkit-radial-gradient(#181819 12.5%, rgba(11, 11, 12, 0) 12.5%), -webkit-radial-gradient(rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 12.5%), -webkit-radial-gradient(rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 12.5%); | ||
1916 | background-image: radial-gradient(#181819 12.5%, rgba(11, 11, 12, 0) 12.5%), radial-gradient(#181819 12.5%, rgba(11, 11, 12, 0) 12.5%), radial-gradient(rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 12.5%), radial-gradient(rgba(255, 255, 255, 0.1) 12.5%, rgba(255, 255, 255, 0) 12.5%); | ||
1917 | background-repeat: repeat; | ||
1918 | background-position: 0 0, 8px 8px, 0 1px, 8px 9px; | ||
1919 | background-color: #2f3031; | ||
1920 | background-size: 16px 16px; | ||
1921 | } | ||
1922 | /* line 29, ../scss/jqtouch.scss */ | ||
1923 | #jqt ul li { | ||
1924 | border-top: 1px solid #48494b; | ||
1925 | background-image: none; | ||
1926 | background-color: rgba(85, 86, 88, 0.2); | ||
1927 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(123, 124, 127, 0.2)), color-stop(3%, rgba(98, 99, 101, 0.2)), color-stop(100%, rgba(72, 73, 75, 0.2))); | ||
1928 | background-image: -webkit-linear-gradient(top, rgba(123, 124, 127, 0.2), rgba(98, 99, 101, 0.2) 3%, rgba(72, 73, 75, 0.2)); | ||
1929 | background-image: linear-gradient(top, rgba(123, 124, 127, 0.2), rgba(98, 99, 101, 0.2) 3%, rgba(72, 73, 75, 0.2)); | ||
1930 | } | ||
1931 | /* line 33, ../scss/jqtouch.scss */ | ||
1932 | #jqt ul li a { | ||
1933 | color: white; | ||
1934 | text-shadow: #3c3d3e 0 -1px 0; | ||
1935 | } | ||
1936 | /* line 37, ../scss/jqtouch.scss */ | ||
1937 | #jqt ul li .toggle input[type="checkbox"] { | ||
1938 | -webkit-border-radius: 5px; | ||
1939 | border-radius: 5px; | ||
1940 | background: #ffffff url(../img/jqt/on_off.png) 0 0 no-repeat; | ||
1941 | } | 2626 | } |
1942 | /* line 42, ../scss/jqtouch.scss */ | 2627 | .btn { |
1943 | #jqt ul li input[type='submit'] { | 2628 | display: inline-block; |
2629 | *display: inline; | ||
2630 | /* IE7 inline-block hack */ | ||
2631 | |||
2632 | *zoom: 1; | ||
2633 | padding: 4px 12px; | ||
2634 | margin-bottom: 0; | ||
2635 | font-size: 14px; | ||
2636 | line-height: 20px; | ||
2637 | text-align: center; | ||
2638 | vertical-align: middle; | ||
2639 | cursor: pointer; | ||
2640 | color: #333333; | ||
2641 | text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75); | ||
2642 | background-color: #f5f5f5; | ||
2643 | background-image: -moz-linear-gradient(top, #ffffff, #e6e6e6); | ||
2644 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#e6e6e6)); | ||
2645 | background-image: -webkit-linear-gradient(top, #ffffff, #e6e6e6); | ||
2646 | background-image: -o-linear-gradient(top, #ffffff, #e6e6e6); | ||
2647 | background-image: linear-gradient(to bottom, #ffffff, #e6e6e6); | ||
2648 | background-repeat: repeat-x; | ||
2649 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#ffe6e6e6', GradientType=0); | ||
2650 | border-color: #e6e6e6 #e6e6e6 #bfbfbf; | ||
2651 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2652 | *background-color: #e6e6e6; | ||
2653 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2654 | |||
2655 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2656 | border: 1px solid #bbbbbb; | ||
2657 | *border: 0; | ||
2658 | border-bottom-color: #a2a2a2; | ||
2659 | -webkit-border-radius: 4px; | ||
2660 | -moz-border-radius: 4px; | ||
2661 | border-radius: 4px; | ||
2662 | *margin-left: .3em; | ||
2663 | -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
2664 | -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
2665 | box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
2666 | } | ||
2667 | .btn:hover, | ||
2668 | .btn:active, | ||
2669 | .btn.active, | ||
2670 | .btn.disabled, | ||
2671 | .btn[disabled] { | ||
2672 | color: #333333; | ||
2673 | background-color: #e6e6e6; | ||
2674 | *background-color: #d9d9d9; | ||
2675 | } | ||
2676 | .btn:active, | ||
2677 | .btn.active { | ||
2678 | background-color: #cccccc \9; | ||
2679 | } | ||
2680 | .btn:first-child { | ||
2681 | *margin-left: 0; | ||
2682 | } | ||
2683 | .btn:hover { | ||
2684 | color: #333333; | ||
2685 | text-decoration: none; | ||
2686 | background-position: 0 -15px; | ||
2687 | -webkit-transition: background-position 0.1s linear; | ||
2688 | -moz-transition: background-position 0.1s linear; | ||
2689 | -o-transition: background-position 0.1s linear; | ||
2690 | transition: background-position 0.1s linear; | ||
2691 | } | ||
2692 | .btn:focus { | ||
2693 | outline: thin dotted #333; | ||
2694 | outline: 5px auto -webkit-focus-ring-color; | ||
2695 | outline-offset: -2px; | ||
2696 | } | ||
2697 | .btn.active, | ||
2698 | .btn:active { | ||
1944 | background-image: none; | 2699 | background-image: none; |
1945 | background-color: white; | 2700 | outline: 0; |
1946 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(50%, #ffffff), color-stop(51%, #ffffff), color-stop(100%, #f2f2f2)); | 2701 | -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); |
1947 | background-image: -webkit-linear-gradient(top, #ffffff, #ffffff 50%, #ffffff 51%, #f2f2f2); | 2702 | -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); |
1948 | background-image: linear-gradient(top, #ffffff, #ffffff 50%, #ffffff 51%, #f2f2f2); | 2703 | box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); |
1949 | border: 1px outset black; | 2704 | } |
1950 | } | 2705 | .btn.disabled, |
1951 | /* line 47, ../scss/jqtouch.scss */ | 2706 | .btn[disabled] { |
1952 | #jqt ul li small.counter { | 2707 | cursor: default; |
1953 | -webkit-box-shadow: rgba(255, 255, 255, 0.1) 0 1px 0; | ||
1954 | box-shadow: rgba(255, 255, 255, 0.1) 0 1px 0; | ||
1955 | } | ||
1956 | /* line 54, ../scss/jqtouch.scss */ | ||
1957 | #jqt ul.metal li { | ||
1958 | background-image: none; | 2708 | background-image: none; |
1959 | border-top: 1px solid #fff; | 2709 | opacity: 0.65; |
1960 | border-bottom: 1px solid #666; | 2710 | filter: alpha(opacity=65); |
1961 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#eeeeee), to(#9c9ea0)); | 2711 | -webkit-box-shadow: none; |
2712 | -moz-box-shadow: none; | ||
2713 | box-shadow: none; | ||
2714 | } | ||
2715 | .btn-large { | ||
2716 | padding: 11px 19px; | ||
2717 | font-size: 17.5px; | ||
2718 | -webkit-border-radius: 6px; | ||
2719 | -moz-border-radius: 6px; | ||
2720 | border-radius: 6px; | ||
2721 | } | ||
2722 | .btn-large [class^="icon-"], | ||
2723 | .btn-large [class*=" icon-"] { | ||
2724 | margin-top: 4px; | ||
2725 | } | ||
2726 | .btn-small { | ||
2727 | padding: 2px 10px; | ||
2728 | font-size: 11.9px; | ||
2729 | -webkit-border-radius: 3px; | ||
2730 | -moz-border-radius: 3px; | ||
2731 | border-radius: 3px; | ||
1962 | } | 2732 | } |
1963 | /* line 60, ../scss/jqtouch.scss */ | 2733 | .btn-small [class^="icon-"], |
1964 | #jqt ul.metal li a { | 2734 | .btn-small [class*=" icon-"] { |
1965 | text-shadow: #fff 0 1px 0; | 2735 | margin-top: 0; |
1966 | } | 2736 | } |
1967 | /* line 62, ../scss/jqtouch.scss */ | 2737 | .btn-mini [class^="icon-"], |
1968 | #jqt ul.metal li a.active { | 2738 | .btn-mini [class*=" icon-"] { |
1969 | color: #000; | 2739 | margin-top: -1px; |
1970 | } | 2740 | } |
1971 | /* line 65, ../scss/jqtouch.scss */ | 2741 | .btn-mini { |
1972 | #jqt ul.metal li em { | 2742 | padding: 0 6px; |
1973 | color: #444; | 2743 | font-size: 10.5px; |
2744 | -webkit-border-radius: 3px; | ||
2745 | -moz-border-radius: 3px; | ||
2746 | border-radius: 3px; | ||
1974 | } | 2747 | } |
1975 | /* line 71, ../scss/jqtouch.scss */ | 2748 | .btn-block { |
1976 | #jqt ul.edgetoedge li { | 2749 | display: block; |
1977 | background-image: none; | 2750 | width: 100%; |
1978 | background-color: #3c3d3e; | 2751 | padding-left: 0; |
1979 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #282829), color-stop(100%, #2f3031)); | 2752 | padding-right: 0; |
1980 | background-image: -webkit-linear-gradient(top, #282829, #2f3031); | 2753 | -webkit-box-sizing: border-box; |
1981 | background-image: linear-gradient(top, #282829, #2f3031); | 2754 | -moz-box-sizing: border-box; |
1982 | border-bottom: 1px solid #1e1e1f; | 2755 | box-sizing: border-box; |
1983 | border-top: 1px solid #343536; | 2756 | } |
1984 | } | 2757 | .btn-block + .btn-block { |
1985 | /* line 76, ../scss/jqtouch.scss */ | 2758 | margin-top: 5px; |
1986 | #jqt ul.edgetoedge li.sep { | 2759 | } |
2760 | input[type="submit"].btn-block, | ||
2761 | input[type="reset"].btn-block, | ||
2762 | input[type="button"].btn-block { | ||
2763 | width: 100%; | ||
2764 | } | ||
2765 | .btn-primary.active, | ||
2766 | .btn-warning.active, | ||
2767 | .btn-danger.active, | ||
2768 | .btn-success.active, | ||
2769 | .btn-info.active, | ||
2770 | .btn-inverse.active { | ||
2771 | color: rgba(255, 255, 255, 0.75); | ||
2772 | } | ||
2773 | .btn { | ||
2774 | border-color: #c5c5c5; | ||
2775 | border-color: rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.15) rgba(0, 0, 0, 0.25); | ||
2776 | } | ||
2777 | .btn-primary { | ||
2778 | color: #ffffff; | ||
2779 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2780 | background-color: #006dcc; | ||
2781 | background-image: -moz-linear-gradient(top, #0088cc, #0044cc); | ||
2782 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0044cc)); | ||
2783 | background-image: -webkit-linear-gradient(top, #0088cc, #0044cc); | ||
2784 | background-image: -o-linear-gradient(top, #0088cc, #0044cc); | ||
2785 | background-image: linear-gradient(to bottom, #0088cc, #0044cc); | ||
2786 | background-repeat: repeat-x; | ||
2787 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0044cc', GradientType=0); | ||
2788 | border-color: #0044cc #0044cc #002a80; | ||
2789 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2790 | *background-color: #0044cc; | ||
2791 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2792 | |||
2793 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2794 | } | ||
2795 | .btn-primary:hover, | ||
2796 | .btn-primary:active, | ||
2797 | .btn-primary.active, | ||
2798 | .btn-primary.disabled, | ||
2799 | .btn-primary[disabled] { | ||
2800 | color: #ffffff; | ||
2801 | background-color: #0044cc; | ||
2802 | *background-color: #003bb3; | ||
2803 | } | ||
2804 | .btn-primary:active, | ||
2805 | .btn-primary.active { | ||
2806 | background-color: #003399 \9; | ||
2807 | } | ||
2808 | .btn-warning { | ||
2809 | color: #ffffff; | ||
2810 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2811 | background-color: #faa732; | ||
2812 | background-image: -moz-linear-gradient(top, #fbb450, #f89406); | ||
2813 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); | ||
2814 | background-image: -webkit-linear-gradient(top, #fbb450, #f89406); | ||
2815 | background-image: -o-linear-gradient(top, #fbb450, #f89406); | ||
2816 | background-image: linear-gradient(to bottom, #fbb450, #f89406); | ||
2817 | background-repeat: repeat-x; | ||
2818 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); | ||
2819 | border-color: #f89406 #f89406 #ad6704; | ||
2820 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2821 | *background-color: #f89406; | ||
2822 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2823 | |||
2824 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2825 | } | ||
2826 | .btn-warning:hover, | ||
2827 | .btn-warning:active, | ||
2828 | .btn-warning.active, | ||
2829 | .btn-warning.disabled, | ||
2830 | .btn-warning[disabled] { | ||
2831 | color: #ffffff; | ||
2832 | background-color: #f89406; | ||
2833 | *background-color: #df8505; | ||
2834 | } | ||
2835 | .btn-warning:active, | ||
2836 | .btn-warning.active { | ||
2837 | background-color: #c67605 \9; | ||
2838 | } | ||
2839 | .btn-danger { | ||
2840 | color: #ffffff; | ||
2841 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2842 | background-color: #da4f49; | ||
2843 | background-image: -moz-linear-gradient(top, #ee5f5b, #bd362f); | ||
2844 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#bd362f)); | ||
2845 | background-image: -webkit-linear-gradient(top, #ee5f5b, #bd362f); | ||
2846 | background-image: -o-linear-gradient(top, #ee5f5b, #bd362f); | ||
2847 | background-image: linear-gradient(to bottom, #ee5f5b, #bd362f); | ||
2848 | background-repeat: repeat-x; | ||
2849 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffbd362f', GradientType=0); | ||
2850 | border-color: #bd362f #bd362f #802420; | ||
2851 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2852 | *background-color: #bd362f; | ||
2853 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2854 | |||
2855 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2856 | } | ||
2857 | .btn-danger:hover, | ||
2858 | .btn-danger:active, | ||
2859 | .btn-danger.active, | ||
2860 | .btn-danger.disabled, | ||
2861 | .btn-danger[disabled] { | ||
2862 | color: #ffffff; | ||
2863 | background-color: #bd362f; | ||
2864 | *background-color: #a9302a; | ||
2865 | } | ||
2866 | .btn-danger:active, | ||
2867 | .btn-danger.active { | ||
2868 | background-color: #942a25 \9; | ||
2869 | } | ||
2870 | .btn-success { | ||
2871 | color: #ffffff; | ||
2872 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2873 | background-color: #5bb75b; | ||
2874 | background-image: -moz-linear-gradient(top, #62c462, #51a351); | ||
2875 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#51a351)); | ||
2876 | background-image: -webkit-linear-gradient(top, #62c462, #51a351); | ||
2877 | background-image: -o-linear-gradient(top, #62c462, #51a351); | ||
2878 | background-image: linear-gradient(to bottom, #62c462, #51a351); | ||
2879 | background-repeat: repeat-x; | ||
2880 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff51a351', GradientType=0); | ||
2881 | border-color: #51a351 #51a351 #387038; | ||
2882 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2883 | *background-color: #51a351; | ||
2884 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2885 | |||
2886 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2887 | } | ||
2888 | .btn-success:hover, | ||
2889 | .btn-success:active, | ||
2890 | .btn-success.active, | ||
2891 | .btn-success.disabled, | ||
2892 | .btn-success[disabled] { | ||
2893 | color: #ffffff; | ||
2894 | background-color: #51a351; | ||
2895 | *background-color: #499249; | ||
2896 | } | ||
2897 | .btn-success:active, | ||
2898 | .btn-success.active { | ||
2899 | background-color: #408140 \9; | ||
2900 | } | ||
2901 | .btn-info { | ||
2902 | color: #ffffff; | ||
2903 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2904 | background-color: #49afcd; | ||
2905 | background-image: -moz-linear-gradient(top, #5bc0de, #2f96b4); | ||
2906 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#2f96b4)); | ||
2907 | background-image: -webkit-linear-gradient(top, #5bc0de, #2f96b4); | ||
2908 | background-image: -o-linear-gradient(top, #5bc0de, #2f96b4); | ||
2909 | background-image: linear-gradient(to bottom, #5bc0de, #2f96b4); | ||
2910 | background-repeat: repeat-x; | ||
2911 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff2f96b4', GradientType=0); | ||
2912 | border-color: #2f96b4 #2f96b4 #1f6377; | ||
2913 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2914 | *background-color: #2f96b4; | ||
2915 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2916 | |||
2917 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2918 | } | ||
2919 | .btn-info:hover, | ||
2920 | .btn-info:active, | ||
2921 | .btn-info.active, | ||
2922 | .btn-info.disabled, | ||
2923 | .btn-info[disabled] { | ||
2924 | color: #ffffff; | ||
2925 | background-color: #2f96b4; | ||
2926 | *background-color: #2a85a0; | ||
2927 | } | ||
2928 | .btn-info:active, | ||
2929 | .btn-info.active { | ||
2930 | background-color: #24748c \9; | ||
2931 | } | ||
2932 | .btn-inverse { | ||
2933 | color: #ffffff; | ||
2934 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
2935 | background-color: #363636; | ||
2936 | background-image: -moz-linear-gradient(top, #444444, #222222); | ||
2937 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#444444), to(#222222)); | ||
2938 | background-image: -webkit-linear-gradient(top, #444444, #222222); | ||
2939 | background-image: -o-linear-gradient(top, #444444, #222222); | ||
2940 | background-image: linear-gradient(to bottom, #444444, #222222); | ||
2941 | background-repeat: repeat-x; | ||
2942 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff444444', endColorstr='#ff222222', GradientType=0); | ||
2943 | border-color: #222222 #222222 #000000; | ||
2944 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
2945 | *background-color: #222222; | ||
2946 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2947 | |||
2948 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); | ||
2949 | } | ||
2950 | .btn-inverse:hover, | ||
2951 | .btn-inverse:active, | ||
2952 | .btn-inverse.active, | ||
2953 | .btn-inverse.disabled, | ||
2954 | .btn-inverse[disabled] { | ||
2955 | color: #ffffff; | ||
2956 | background-color: #222222; | ||
2957 | *background-color: #151515; | ||
2958 | } | ||
2959 | .btn-inverse:active, | ||
2960 | .btn-inverse.active { | ||
2961 | background-color: #080808 \9; | ||
2962 | } | ||
2963 | button.btn, | ||
2964 | input[type="submit"].btn { | ||
2965 | *padding-top: 3px; | ||
2966 | *padding-bottom: 3px; | ||
2967 | } | ||
2968 | button.btn::-moz-focus-inner, | ||
2969 | input[type="submit"].btn::-moz-focus-inner { | ||
2970 | padding: 0; | ||
2971 | border: 0; | ||
2972 | } | ||
2973 | button.btn.btn-large, | ||
2974 | input[type="submit"].btn.btn-large { | ||
2975 | *padding-top: 7px; | ||
2976 | *padding-bottom: 7px; | ||
2977 | } | ||
2978 | button.btn.btn-small, | ||
2979 | input[type="submit"].btn.btn-small { | ||
2980 | *padding-top: 3px; | ||
2981 | *padding-bottom: 3px; | ||
2982 | } | ||
2983 | button.btn.btn-mini, | ||
2984 | input[type="submit"].btn.btn-mini { | ||
2985 | *padding-top: 1px; | ||
2986 | *padding-bottom: 1px; | ||
2987 | } | ||
2988 | .btn-link, | ||
2989 | .btn-link:active, | ||
2990 | .btn-link[disabled] { | ||
2991 | background-color: transparent; | ||
1987 | background-image: none; | 2992 | background-image: none; |
1988 | background-color: rgba(0, 0, 0, 0.3); | 2993 | -webkit-box-shadow: none; |
1989 | background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, rgba(38, 38, 38, 0.3)), color-stop(30%, rgba(20, 20, 20, 0.3)), color-stop(65%, rgba(0, 0, 0, 0.3)), color-stop(100%, rgba(0, 0, 0, 0.3))); | 2994 | -moz-box-shadow: none; |
1990 | background-image: -webkit-linear-gradient(top, rgba(38, 38, 38, 0.3), rgba(20, 20, 20, 0.3) 30%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.3)); | 2995 | box-shadow: none; |
1991 | background-image: linear-gradient(top, rgba(38, 38, 38, 0.3), rgba(20, 20, 20, 0.3) 30%, rgba(0, 0, 0, 0.3) 65%, rgba(0, 0, 0, 0.3)); | 2996 | } |
1992 | color: #949698; | 2997 | .btn-link { |
1993 | text-shadow: #000000 0 -1px 0; | 2998 | border-color: transparent; |
1994 | } | 2999 | cursor: pointer; |
1995 | /* line 83, ../scss/jqtouch.scss */ | 3000 | color: #0088cc; |
1996 | #jqt .info { | 3001 | -webkit-border-radius: 0; |
1997 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#cccccc), to(#aaaaaa), color-stop(0.6, #cccccc)); | 3002 | -moz-border-radius: 0; |
1998 | text-shadow: rgba(255, 255, 255, 0.8) 0 1px 0; | 3003 | border-radius: 0; |
1999 | color: #444; | ||
2000 | border-top: 1px solid rgba(255, 255, 255, 0.2); | ||
2001 | } | 3004 | } |
2002 | div.spinner { | 3005 | .btn-link:hover { |
3006 | color: #005580; | ||
3007 | text-decoration: underline; | ||
3008 | background-color: transparent; | ||
3009 | } | ||
3010 | .btn-link[disabled]:hover { | ||
3011 | color: #333333; | ||
3012 | text-decoration: none; | ||
3013 | } | ||
3014 | .btn-group { | ||
2003 | position: relative; | 3015 | position: relative; |
2004 | width: 100px; | ||
2005 | height: 100px; | ||
2006 | display: inline-block; | 3016 | display: inline-block; |
3017 | *display: inline; | ||
3018 | /* IE7 inline-block hack */ | ||
3019 | |||
3020 | *zoom: 1; | ||
3021 | font-size: 0; | ||
3022 | vertical-align: middle; | ||
3023 | white-space: nowrap; | ||
3024 | *margin-left: .3em; | ||
2007 | } | 3025 | } |
2008 | div.spinner div { | 3026 | .btn-group:first-child { |
2009 | width: 12%; | 3027 | *margin-left: 0; |
2010 | height: 26%; | ||
2011 | background: #000; | ||
2012 | position: absolute; | ||
2013 | left: 44.5%; | ||
2014 | top: 37%; | ||
2015 | opacity: 0; | ||
2016 | -webkit-animation: fade 1s linear infinite; | ||
2017 | -webkit-border-radius: 50px; | ||
2018 | -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); | ||
2019 | } | 3028 | } |
2020 | div.spinner div.bar01 { | 3029 | .btn-group + .btn-group { |
2021 | -webkit-transform: rotate(0deg) translate(0, -142%); | 3030 | margin-left: 5px; |
2022 | -webkit-animation-delay: 0s; | ||
2023 | } | 3031 | } |
2024 | div.spinner div.bar02 { | 3032 | .btn-toolbar { |
2025 | -webkit-transform: rotate(30deg) translate(0, -142%); | 3033 | font-size: 0; |
2026 | -webkit-animation-delay: -0.9167s; | 3034 | margin-top: 10px; |
3035 | margin-bottom: 10px; | ||
2027 | } | 3036 | } |
2028 | div.spinner div.bar03 { | 3037 | .btn-toolbar > .btn + .btn, |
2029 | -webkit-transform: rotate(60deg) translate(0, -142%); | 3038 | .btn-toolbar > .btn-group + .btn, |
2030 | -webkit-animation-delay: -0.833s; | 3039 | .btn-toolbar > .btn + .btn-group { |
3040 | margin-left: 5px; | ||
2031 | } | 3041 | } |
2032 | div.spinner div.bar04 { | 3042 | .btn-group > .btn { |
2033 | -webkit-transform: rotate(90deg) translate(0, -142%); | 3043 | position: relative; |
2034 | -webkit-animation-delay: -0.75s; | 3044 | -webkit-border-radius: 0; |
3045 | -moz-border-radius: 0; | ||
3046 | border-radius: 0; | ||
2035 | } | 3047 | } |
2036 | div.spinner div.bar05 { | 3048 | .btn-group > .btn + .btn { |
2037 | -webkit-transform: rotate(120deg) translate(0, -142%); | 3049 | margin-left: -1px; |
2038 | -webkit-animation-delay: -0.667s; | ||
2039 | } | 3050 | } |
2040 | div.spinner div.bar06 { | 3051 | .btn-group > .btn, |
2041 | -webkit-transform: rotate(150deg) translate(0, -142%); | 3052 | .btn-group > .dropdown-menu, |
2042 | -webkit-animation-delay: -0.5833s; | 3053 | .btn-group > .popover { |
3054 | font-size: 14px; | ||
2043 | } | 3055 | } |
2044 | div.spinner div.bar07 { | 3056 | .btn-group > .btn-mini { |
2045 | -webkit-transform: rotate(180deg) translate(0, -142%); | 3057 | font-size: 10.5px; |
2046 | -webkit-animation-delay: -0.5s; | 3058 | } |
3059 | .btn-group > .btn-small { | ||
3060 | font-size: 11.9px; | ||
3061 | } | ||
3062 | .btn-group > .btn-large { | ||
3063 | font-size: 17.5px; | ||
3064 | } | ||
3065 | .btn-group > .btn:first-child { | ||
3066 | margin-left: 0; | ||
3067 | -webkit-border-top-left-radius: 4px; | ||
3068 | -moz-border-radius-topleft: 4px; | ||
3069 | border-top-left-radius: 4px; | ||
3070 | -webkit-border-bottom-left-radius: 4px; | ||
3071 | -moz-border-radius-bottomleft: 4px; | ||
3072 | border-bottom-left-radius: 4px; | ||
3073 | } | ||
3074 | .btn-group > .btn:last-child, | ||
3075 | .btn-group > .dropdown-toggle { | ||
3076 | -webkit-border-top-right-radius: 4px; | ||
3077 | -moz-border-radius-topright: 4px; | ||
3078 | border-top-right-radius: 4px; | ||
3079 | -webkit-border-bottom-right-radius: 4px; | ||
3080 | -moz-border-radius-bottomright: 4px; | ||
3081 | border-bottom-right-radius: 4px; | ||
3082 | } | ||
3083 | .btn-group > .btn.large:first-child { | ||
3084 | margin-left: 0; | ||
3085 | -webkit-border-top-left-radius: 6px; | ||
3086 | -moz-border-radius-topleft: 6px; | ||
3087 | border-top-left-radius: 6px; | ||
3088 | -webkit-border-bottom-left-radius: 6px; | ||
3089 | -moz-border-radius-bottomleft: 6px; | ||
3090 | border-bottom-left-radius: 6px; | ||
3091 | } | ||
3092 | .btn-group > .btn.large:last-child, | ||
3093 | .btn-group > .large.dropdown-toggle { | ||
3094 | -webkit-border-top-right-radius: 6px; | ||
3095 | -moz-border-radius-topright: 6px; | ||
3096 | border-top-right-radius: 6px; | ||
3097 | -webkit-border-bottom-right-radius: 6px; | ||
3098 | -moz-border-radius-bottomright: 6px; | ||
3099 | border-bottom-right-radius: 6px; | ||
3100 | } | ||
3101 | .btn-group > .btn:hover, | ||
3102 | .btn-group > .btn:focus, | ||
3103 | .btn-group > .btn:active, | ||
3104 | .btn-group > .btn.active { | ||
3105 | z-index: 2; | ||
3106 | } | ||
3107 | .btn-group .dropdown-toggle:active, | ||
3108 | .btn-group.open .dropdown-toggle { | ||
3109 | outline: 0; | ||
3110 | } | ||
3111 | .btn-group > .btn + .dropdown-toggle { | ||
3112 | padding-left: 8px; | ||
3113 | padding-right: 8px; | ||
3114 | -webkit-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
3115 | -moz-box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
3116 | box-shadow: inset 1px 0 0 rgba(255,255,255,.125), inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05); | ||
3117 | *padding-top: 5px; | ||
3118 | *padding-bottom: 5px; | ||
3119 | } | ||
3120 | .btn-group > .btn-mini + .dropdown-toggle { | ||
3121 | padding-left: 5px; | ||
3122 | padding-right: 5px; | ||
3123 | *padding-top: 2px; | ||
3124 | *padding-bottom: 2px; | ||
2047 | } | 3125 | } |
2048 | div.spinner div.bar08 { | 3126 | .btn-group > .btn-small + .dropdown-toggle { |
2049 | -webkit-transform: rotate(210deg) translate(0, -142%); | 3127 | *padding-top: 5px; |
2050 | -webkit-animation-delay: -0.41667s; | 3128 | *padding-bottom: 4px; |
2051 | } | 3129 | } |
2052 | div.spinner div.bar09 { | 3130 | .btn-group > .btn-large + .dropdown-toggle { |
2053 | -webkit-transform: rotate(240deg) translate(0, -142%); | 3131 | padding-left: 12px; |
2054 | -webkit-animation-delay: -0.333s; | 3132 | padding-right: 12px; |
3133 | *padding-top: 7px; | ||
3134 | *padding-bottom: 7px; | ||
2055 | } | 3135 | } |
2056 | div.spinner div.bar10 { | 3136 | .btn-group.open .dropdown-toggle { |
2057 | -webkit-transform: rotate(270deg) translate(0, -142%); | 3137 | background-image: none; |
2058 | -webkit-animation-delay: -0.25s; | 3138 | -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); |
3139 | -moz-box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); | ||
3140 | box-shadow: inset 0 2px 4px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.05); | ||
2059 | } | 3141 | } |
2060 | div.spinner div.bar11 { | 3142 | .btn-group.open .btn.dropdown-toggle { |
2061 | -webkit-transform: rotate(300deg) translate(0, -142%); | 3143 | background-color: #e6e6e6; |
2062 | -webkit-animation-delay: -0.1667s; | ||
2063 | } | 3144 | } |
2064 | div.spinner div.bar12 { | 3145 | .btn-group.open .btn-primary.dropdown-toggle { |
2065 | -webkit-transform: rotate(330deg) translate(0, -142%); | 3146 | background-color: #0044cc; |
2066 | -webkit-animation-delay: -0.0833s; | ||
2067 | } | 3147 | } |
2068 | @-webkit-keyframes fade { | 3148 | .btn-group.open .btn-warning.dropdown-toggle { |
2069 | from { | 3149 | background-color: #f89406; |
2070 | opacity: 1; | ||
2071 | } | 3150 | } |
2072 | to { | 3151 | .btn-group.open .btn-danger.dropdown-toggle { |
2073 | opacity: 0.25; | 3152 | background-color: #bd362f; |
2074 | } | 3153 | } |
3154 | .btn-group.open .btn-success.dropdown-toggle { | ||
3155 | background-color: #51a351; | ||
2075 | } | 3156 | } |
2076 | /* | 3157 | .btn-group.open .btn-info.dropdown-toggle { |
2077 | 3158 | background-color: #2f96b4; | |
2078 | Color list: | ||
2079 | - login box: | ||
2080 | light#ff9955 | ||
2081 | dark#ff6622 | ||
2082 | - login button: | ||
2083 | regular#dd5500 | ||
2084 | hover#773311 | ||
2085 | - login translations: | ||
2086 | box: #cc6622; | ||
2087 | not-selected: | ||
2088 | color: #ddaa99 | ||
2089 | background:#994422 | ||
2090 | selected: #772211; | ||
2091 | */ | ||
2092 | html { | ||
2093 | height: 100%; | ||
2094 | -webkit-text-size-adjust: none; | ||
2095 | -ms-text-size-adjust: none; | ||
2096 | } | 3159 | } |
2097 | body { | 3160 | .btn-group.open .btn-inverse.dropdown-toggle { |
2098 | font-family: Helvetica-Neue, Helvetica, Arial, Geneva, sans-serif; | 3161 | background-color: #222222; |
2099 | margin: 0px; | ||
2100 | } | 3162 | } |
2101 | .ellipsis { | 3163 | .btn .caret { |
2102 | text-overflow: ellipsis; | 3164 | margin-top: 8px; |
2103 | overflow: hidden; | 3165 | margin-left: 0; |
2104 | white-space: nowrap; | ||
2105 | } | 3166 | } |
2106 | div#loginForm div.credentialsMessage.error h1 { | 3167 | .btn-mini .caret, |
2107 | color: red; | 3168 | .btn-small .caret, |
3169 | .btn-large .caret { | ||
3170 | margin-top: 6px; | ||
2108 | } | 3171 | } |
2109 | div#loginForm div.validating div.loading { | 3172 | .btn-large .caret { |
2110 | margin-top: 50px; | 3173 | border-left-width: 5px; |
2111 | margin-bottom: 50px; | 3174 | border-right-width: 5px; |
2112 | margin-left: auto; | 3175 | border-top-width: 5px; |
2113 | margin-right: auto; | ||
2114 | width: 100px; | ||
2115 | } | 3176 | } |
2116 | /* | 3177 | .dropup .btn-large .caret { |
2117 | 3178 | border-bottom-width: 5px; | |
2118 | Color list: | ||
2119 | - login box: | ||
2120 | light#ff9955 | ||
2121 | dark#ff6622 | ||
2122 | - login button: | ||
2123 | regular#dd5500 | ||
2124 | hover#773311 | ||
2125 | - login translations: | ||
2126 | box: #cc6622; | ||
2127 | not-selected: | ||
2128 | color: #ddaa99 | ||
2129 | background:#994422 | ||
2130 | selected: #772211; | ||
2131 | */ | ||
2132 | html { | ||
2133 | height: 100%; | ||
2134 | -webkit-text-size-adjust: none; | ||
2135 | -ms-text-size-adjust: none; | ||
2136 | } | 3179 | } |
2137 | body { | 3180 | .btn-primary .caret, |
2138 | font-family: Helvetica-Neue, Helvetica, Arial, Geneva, sans-serif; | 3181 | .btn-warning .caret, |
2139 | margin: 0px; | 3182 | .btn-danger .caret, |
3183 | .btn-info .caret, | ||
3184 | .btn-success .caret, | ||
3185 | .btn-inverse .caret { | ||
3186 | border-top-color: #ffffff; | ||
3187 | border-bottom-color: #ffffff; | ||
2140 | } | 3188 | } |
2141 | .ellipsis { | 3189 | .btn-group-vertical { |
2142 | text-overflow: ellipsis; | 3190 | display: inline-block; |
2143 | overflow: hidden; | 3191 | *display: inline; |
2144 | white-space: nowrap; | 3192 | /* IE7 inline-block hack */ |
3193 | |||
3194 | *zoom: 1; | ||
2145 | } | 3195 | } |
2146 | #jqt div.cardList ul li.cardListItem a small.favicon { | 3196 | .btn-group-vertical > .btn { |
2147 | background: white; | ||
2148 | -webkit-border-radius: 3px; | ||
2149 | border-radius: 3px; | ||
2150 | display: block; | 3197 | display: block; |
2151 | width: 26px; | 3198 | float: none; |
2152 | height: 26px; | 3199 | max-width: 100%; |
2153 | padding: 0px; | 3200 | -webkit-border-radius: 0; |
3201 | -moz-border-radius: 0; | ||
3202 | border-radius: 0; | ||
2154 | } | 3203 | } |
2155 | #jqt div.cardList ul li.cardListItem a small.favicon img.favicon { | 3204 | .btn-group-vertical > .btn + .btn { |
2156 | margin-right: 3px; | 3205 | margin-left: 0; |
2157 | margin-top: 3px; | 3206 | margin-top: -1px; |
2158 | width: 20px; | 3207 | } |
2159 | height: 20px; | 3208 | .btn-group-vertical > .btn:first-child { |
3209 | -webkit-border-radius: 4px 4px 0 0; | ||
3210 | -moz-border-radius: 4px 4px 0 0; | ||
3211 | border-radius: 4px 4px 0 0; | ||
3212 | } | ||
3213 | .btn-group-vertical > .btn:last-child { | ||
3214 | -webkit-border-radius: 0 0 4px 4px; | ||
3215 | -moz-border-radius: 0 0 4px 4px; | ||
3216 | border-radius: 0 0 4px 4px; | ||
3217 | } | ||
3218 | .btn-group-vertical > .btn-large:first-child { | ||
3219 | -webkit-border-radius: 6px 6px 0 0; | ||
3220 | -moz-border-radius: 6px 6px 0 0; | ||
3221 | border-radius: 6px 6px 0 0; | ||
3222 | } | ||
3223 | .btn-group-vertical > .btn-large:last-child { | ||
3224 | -webkit-border-radius: 0 0 6px 6px; | ||
3225 | -moz-border-radius: 0 0 6px 6px; | ||
3226 | border-radius: 0 0 6px 6px; | ||
3227 | } | ||
3228 | .alert { | ||
3229 | padding: 8px 35px 8px 14px; | ||
3230 | margin-bottom: 20px; | ||
3231 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); | ||
3232 | background-color: #fcf8e3; | ||
3233 | border: 1px solid #fbeed5; | ||
3234 | -webkit-border-radius: 4px; | ||
3235 | -moz-border-radius: 4px; | ||
3236 | border-radius: 4px; | ||
2160 | } | 3237 | } |
2161 | #jqt div.cardDetail ul li a.password { | 3238 | .alert, |
2162 | color: gray; | 3239 | .alert h4 { |
3240 | color: #c09853; | ||
2163 | } | 3241 | } |
2164 | /* ---------------------------------------- */ | 3242 | .alert h4 { |
2165 | /* | ||
2166 | body { | ||
2167 | margin: 0; | 3243 | margin: 0; |
2168 | font-family: Helvetica; | ||
2169 | background: #FFFFFF; | ||
2170 | color: #000000; | ||
2171 | overflow-x: hidden; | ||
2172 | -webkit-user-select: none; | ||
2173 | -webkit-text-size-adjust: none; | ||
2174 | } | 3244 | } |
2175 | 3245 | .alert .close { | |
2176 | 3246 | position: relative; | |
2177 | div.toolbar { | 3247 | top: -2px; |
2178 | box-sizing: border-box; | 3248 | right: -21px; |
2179 | -moz-box-sizing: border-box; | 3249 | line-height: 20px; |
2180 | -webkit-box-sizing: border-box; | ||
2181 | border-bottom: 1px solid #2d3642; | ||
2182 | border-top: 1px solid #6d84a2; | ||
2183 | padding: 10px; | ||
2184 | height: 45px; | ||
2185 | //background: url(./images/old/iPhone/toolbar.png) #6d84a2 repeat-x; | ||
2186 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAArCAIAAAA2QHWOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE1JREFUCNddjDEOgEAQAgn//5qltYWFnb1GB4vdSy4WBAYStKyb9+O0FJMYyjMyMWCC35lJM71r6vF1P07/lFSfPx6ZxNLcy1HtihzpA/RWcOj0zlDhAAAAAElFTkSuQmCCCg==) #6d84a2 repeat-x; | ||
2187 | } | 3250 | } |
2188 | 3251 | .alert-success { | |
2189 | div.toolbar h1#pageTitle { | 3252 | background-color: #dff0d8; |
2190 | overflow: hidden; | 3253 | border-color: #d6e9c6; |
2191 | margin-top: 1px; | 3254 | color: #468847; |
2192 | margin-bottom: 0px; | 3255 | } |
2193 | margin-left: auto; | 3256 | .alert-success h4 { |
2194 | margin-right: auto; | 3257 | color: #468847; |
2195 | width: 150px; | 3258 | } |
2196 | height: 25px; | 3259 | .alert-danger, |
2197 | font-size: 20px; | 3260 | .alert-error { |
2198 | width: 150px; | 3261 | background-color: #f2dede; |
3262 | border-color: #eed3d7; | ||
3263 | color: #b94a48; | ||
3264 | } | ||
3265 | .alert-danger h4, | ||
3266 | .alert-error h4 { | ||
3267 | color: #b94a48; | ||
3268 | } | ||
3269 | .alert-info { | ||
3270 | background-color: #d9edf7; | ||
3271 | border-color: #bce8f1; | ||
3272 | color: #3a87ad; | ||
3273 | } | ||
3274 | .alert-info h4 { | ||
3275 | color: #3a87ad; | ||
3276 | } | ||
3277 | .alert-block { | ||
3278 | padding-top: 14px; | ||
3279 | padding-bottom: 14px; | ||
3280 | } | ||
3281 | .alert-block > p, | ||
3282 | .alert-block > ul { | ||
3283 | margin-bottom: 0; | ||
3284 | } | ||
3285 | .alert-block p + p { | ||
3286 | margin-top: 5px; | ||
3287 | } | ||
3288 | .nav { | ||
3289 | margin-left: 0; | ||
3290 | margin-bottom: 20px; | ||
3291 | list-style: none; | ||
3292 | } | ||
3293 | .nav > li > a { | ||
3294 | display: block; | ||
3295 | } | ||
3296 | .nav > li > a:hover { | ||
3297 | text-decoration: none; | ||
3298 | background-color: #eeeeee; | ||
3299 | } | ||
3300 | .nav > li > a > img { | ||
3301 | max-width: none; | ||
3302 | } | ||
3303 | .nav > .pull-right { | ||
3304 | float: right; | ||
3305 | } | ||
3306 | .nav-header { | ||
3307 | display: block; | ||
3308 | padding: 3px 15px; | ||
3309 | font-size: 11px; | ||
2199 | font-weight: bold; | 3310 | font-weight: bold; |
2200 | text-shadow: rgba(0, 0, 0, 0.4) 0px -1px 0; | 3311 | line-height: 20px; |
2201 | text-align: center; | 3312 | color: #999999; |
2202 | text-overflow: ellipsis; | 3313 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); |
2203 | white-space: nowrap; | 3314 | text-transform: uppercase; |
2204 | color: #FFFFFF; | ||
2205 | } | 3315 | } |
2206 | 3316 | .nav li + .nav-header { | |
2207 | div.toolbar a.button { | 3317 | margin-top: 9px; |
2208 | position: absolute; | 3318 | } |
3319 | .nav-list { | ||
3320 | padding-left: 15px; | ||
3321 | padding-right: 15px; | ||
3322 | margin-bottom: 0; | ||
3323 | } | ||
3324 | .nav-list > li > a, | ||
3325 | .nav-list .nav-header { | ||
3326 | margin-left: -15px; | ||
3327 | margin-right: -15px; | ||
3328 | text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5); | ||
3329 | } | ||
3330 | .nav-list > li > a { | ||
3331 | padding: 3px 15px; | ||
3332 | } | ||
3333 | .nav-list > .active > a, | ||
3334 | .nav-list > .active > a:hover { | ||
3335 | color: #ffffff; | ||
3336 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.2); | ||
3337 | background-color: #0088cc; | ||
3338 | } | ||
3339 | .nav-list [class^="icon-"], | ||
3340 | .nav-list [class*=" icon-"] { | ||
3341 | margin-right: 2px; | ||
3342 | } | ||
3343 | .nav-list .divider { | ||
3344 | *width: 100%; | ||
3345 | height: 1px; | ||
3346 | margin: 9px 1px; | ||
3347 | *margin: -5px 0 5px; | ||
2209 | overflow: hidden; | 3348 | overflow: hidden; |
2210 | top: 8px; | 3349 | background-color: #e5e5e5; |
2211 | right: 6px; | 3350 | border-bottom: 1px solid #ffffff; |
2212 | margin: 0; | 3351 | } |
2213 | border-width: 0 5px; | 3352 | .nav-tabs, |
2214 | padding: 0 3px; | 3353 | .nav-pills { |
3354 | *zoom: 1; | ||
3355 | } | ||
3356 | .nav-tabs:before, | ||
3357 | .nav-pills:before, | ||
3358 | .nav-tabs:after, | ||
3359 | .nav-pills:after { | ||
3360 | display: table; | ||
3361 | content: ""; | ||
3362 | line-height: 0; | ||
3363 | } | ||
3364 | .nav-tabs:after, | ||
3365 | .nav-pills:after { | ||
3366 | clear: both; | ||
3367 | } | ||
3368 | .nav-tabs > li, | ||
3369 | .nav-pills > li { | ||
3370 | float: left; | ||
3371 | } | ||
3372 | .nav-tabs > li > a, | ||
3373 | .nav-pills > li > a { | ||
3374 | padding-right: 12px; | ||
3375 | padding-left: 12px; | ||
3376 | margin-right: 2px; | ||
3377 | line-height: 14px; | ||
3378 | } | ||
3379 | .nav-tabs { | ||
3380 | border-bottom: 1px solid #ddd; | ||
3381 | } | ||
3382 | .nav-tabs > li { | ||
3383 | margin-bottom: -1px; | ||
3384 | } | ||
3385 | .nav-tabs > li > a { | ||
3386 | padding-top: 8px; | ||
3387 | padding-bottom: 8px; | ||
3388 | line-height: 20px; | ||
3389 | border: 1px solid transparent; | ||
3390 | -webkit-border-radius: 4px 4px 0 0; | ||
3391 | -moz-border-radius: 4px 4px 0 0; | ||
3392 | border-radius: 4px 4px 0 0; | ||
3393 | } | ||
3394 | .nav-tabs > li > a:hover { | ||
3395 | border-color: #eeeeee #eeeeee #dddddd; | ||
3396 | } | ||
3397 | .nav-tabs > .active > a, | ||
3398 | .nav-tabs > .active > a:hover { | ||
3399 | color: #555555; | ||
3400 | background-color: #ffffff; | ||
3401 | border: 1px solid #ddd; | ||
3402 | border-bottom-color: transparent; | ||
3403 | cursor: default; | ||
3404 | } | ||
3405 | .nav-pills > li > a { | ||
3406 | padding-top: 8px; | ||
3407 | padding-bottom: 8px; | ||
3408 | margin-top: 2px; | ||
3409 | margin-bottom: 2px; | ||
3410 | -webkit-border-radius: 5px; | ||
3411 | -moz-border-radius: 5px; | ||
3412 | border-radius: 5px; | ||
3413 | } | ||
3414 | .nav-pills > .active > a, | ||
3415 | .nav-pills > .active > a:hover { | ||
3416 | color: #ffffff; | ||
3417 | background-color: #0088cc; | ||
3418 | } | ||
3419 | .nav-stacked > li { | ||
3420 | float: none; | ||
3421 | } | ||
3422 | .nav-stacked > li > a { | ||
3423 | margin-right: 0; | ||
3424 | } | ||
3425 | .nav-tabs.nav-stacked { | ||
3426 | border-bottom: 0; | ||
3427 | } | ||
3428 | .nav-tabs.nav-stacked > li > a { | ||
3429 | border: 1px solid #ddd; | ||
3430 | -webkit-border-radius: 0; | ||
3431 | -moz-border-radius: 0; | ||
3432 | border-radius: 0; | ||
3433 | } | ||
3434 | .nav-tabs.nav-stacked > li:first-child > a { | ||
3435 | -webkit-border-top-right-radius: 4px; | ||
3436 | -moz-border-radius-topright: 4px; | ||
3437 | border-top-right-radius: 4px; | ||
3438 | -webkit-border-top-left-radius: 4px; | ||
3439 | -moz-border-radius-topleft: 4px; | ||
3440 | border-top-left-radius: 4px; | ||
3441 | } | ||
3442 | .nav-tabs.nav-stacked > li:last-child > a { | ||
3443 | -webkit-border-bottom-right-radius: 4px; | ||
3444 | -moz-border-radius-bottomright: 4px; | ||
3445 | border-bottom-right-radius: 4px; | ||
3446 | -webkit-border-bottom-left-radius: 4px; | ||
3447 | -moz-border-radius-bottomleft: 4px; | ||
3448 | border-bottom-left-radius: 4px; | ||
3449 | } | ||
3450 | .nav-tabs.nav-stacked > li > a:hover { | ||
3451 | border-color: #ddd; | ||
3452 | z-index: 2; | ||
3453 | } | ||
3454 | .nav-pills.nav-stacked > li > a { | ||
3455 | margin-bottom: 3px; | ||
3456 | } | ||
3457 | .nav-pills.nav-stacked > li:last-child > a { | ||
3458 | margin-bottom: 1px; | ||
3459 | } | ||
3460 | .nav-tabs .dropdown-menu { | ||
3461 | -webkit-border-radius: 0 0 6px 6px; | ||
3462 | -moz-border-radius: 0 0 6px 6px; | ||
3463 | border-radius: 0 0 6px 6px; | ||
3464 | } | ||
3465 | .nav-pills .dropdown-menu { | ||
3466 | -webkit-border-radius: 6px; | ||
3467 | -moz-border-radius: 6px; | ||
3468 | border-radius: 6px; | ||
3469 | } | ||
3470 | .nav .dropdown-toggle .caret { | ||
3471 | border-top-color: #0088cc; | ||
3472 | border-bottom-color: #0088cc; | ||
3473 | margin-top: 6px; | ||
3474 | } | ||
3475 | .nav .dropdown-toggle:hover .caret { | ||
3476 | border-top-color: #005580; | ||
3477 | border-bottom-color: #005580; | ||
3478 | } | ||
3479 | /* move down carets for tabs */ | ||
3480 | .nav-tabs .dropdown-toggle .caret { | ||
3481 | margin-top: 8px; | ||
3482 | } | ||
3483 | .nav .active .dropdown-toggle .caret { | ||
3484 | border-top-color: #fff; | ||
3485 | border-bottom-color: #fff; | ||
3486 | } | ||
3487 | .nav-tabs .active .dropdown-toggle .caret { | ||
3488 | border-top-color: #555555; | ||
3489 | border-bottom-color: #555555; | ||
3490 | } | ||
3491 | .nav > .dropdown.active > a:hover { | ||
3492 | cursor: pointer; | ||
3493 | } | ||
3494 | .nav-tabs .open .dropdown-toggle, | ||
3495 | .nav-pills .open .dropdown-toggle, | ||
3496 | .nav > li.dropdown.open.active > a:hover { | ||
3497 | color: #ffffff; | ||
3498 | background-color: #999999; | ||
3499 | border-color: #999999; | ||
3500 | } | ||
3501 | .nav li.dropdown.open .caret, | ||
3502 | .nav li.dropdown.open.active .caret, | ||
3503 | .nav li.dropdown.open a:hover .caret { | ||
3504 | border-top-color: #ffffff; | ||
3505 | border-bottom-color: #ffffff; | ||
3506 | opacity: 1; | ||
3507 | filter: alpha(opacity=100); | ||
3508 | } | ||
3509 | .tabs-stacked .open > a:hover { | ||
3510 | border-color: #999999; | ||
3511 | } | ||
3512 | .tabbable { | ||
3513 | *zoom: 1; | ||
3514 | } | ||
3515 | .tabbable:before, | ||
3516 | .tabbable:after { | ||
3517 | display: table; | ||
3518 | content: ""; | ||
3519 | line-height: 0; | ||
3520 | } | ||
3521 | .tabbable:after { | ||
3522 | clear: both; | ||
3523 | } | ||
3524 | .tab-content { | ||
3525 | overflow: auto; | ||
3526 | } | ||
3527 | .tabs-below > .nav-tabs, | ||
3528 | .tabs-right > .nav-tabs, | ||
3529 | .tabs-left > .nav-tabs { | ||
3530 | border-bottom: 0; | ||
3531 | } | ||
3532 | .tab-content > .tab-pane, | ||
3533 | .pill-content > .pill-pane { | ||
3534 | display: none; | ||
3535 | } | ||
3536 | .tab-content > .active, | ||
3537 | .pill-content > .active { | ||
3538 | display: block; | ||
3539 | } | ||
3540 | .tabs-below > .nav-tabs { | ||
3541 | border-top: 1px solid #ddd; | ||
3542 | } | ||
3543 | .tabs-below > .nav-tabs > li { | ||
3544 | margin-top: -1px; | ||
3545 | margin-bottom: 0; | ||
3546 | } | ||
3547 | .tabs-below > .nav-tabs > li > a { | ||
3548 | -webkit-border-radius: 0 0 4px 4px; | ||
3549 | -moz-border-radius: 0 0 4px 4px; | ||
3550 | border-radius: 0 0 4px 4px; | ||
3551 | } | ||
3552 | .tabs-below > .nav-tabs > li > a:hover { | ||
3553 | border-bottom-color: transparent; | ||
3554 | border-top-color: #ddd; | ||
3555 | } | ||
3556 | .tabs-below > .nav-tabs > .active > a, | ||
3557 | .tabs-below > .nav-tabs > .active > a:hover { | ||
3558 | border-color: transparent #ddd #ddd #ddd; | ||
3559 | } | ||
3560 | .tabs-left > .nav-tabs > li, | ||
3561 | .tabs-right > .nav-tabs > li { | ||
3562 | float: none; | ||
3563 | } | ||
3564 | .tabs-left > .nav-tabs > li > a, | ||
3565 | .tabs-right > .nav-tabs > li > a { | ||
3566 | min-width: 74px; | ||
3567 | margin-right: 0; | ||
3568 | margin-bottom: 3px; | ||
3569 | } | ||
3570 | .tabs-left > .nav-tabs { | ||
3571 | float: left; | ||
3572 | margin-right: 19px; | ||
3573 | border-right: 1px solid #ddd; | ||
3574 | } | ||
3575 | .tabs-left > .nav-tabs > li > a { | ||
3576 | margin-right: -1px; | ||
3577 | -webkit-border-radius: 4px 0 0 4px; | ||
3578 | -moz-border-radius: 4px 0 0 4px; | ||
3579 | border-radius: 4px 0 0 4px; | ||
3580 | } | ||
3581 | .tabs-left > .nav-tabs > li > a:hover { | ||
3582 | border-color: #eeeeee #dddddd #eeeeee #eeeeee; | ||
3583 | } | ||
3584 | .tabs-left > .nav-tabs .active > a, | ||
3585 | .tabs-left > .nav-tabs .active > a:hover { | ||
3586 | border-color: #ddd transparent #ddd #ddd; | ||
3587 | *border-right-color: #ffffff; | ||
3588 | } | ||
3589 | .tabs-right > .nav-tabs { | ||
3590 | float: right; | ||
3591 | margin-left: 19px; | ||
3592 | border-left: 1px solid #ddd; | ||
3593 | } | ||
3594 | .tabs-right > .nav-tabs > li > a { | ||
3595 | margin-left: -1px; | ||
3596 | -webkit-border-radius: 0 4px 4px 0; | ||
3597 | -moz-border-radius: 0 4px 4px 0; | ||
3598 | border-radius: 0 4px 4px 0; | ||
3599 | } | ||
3600 | .tabs-right > .nav-tabs > li > a:hover { | ||
3601 | border-color: #eeeeee #eeeeee #eeeeee #dddddd; | ||
3602 | } | ||
3603 | .tabs-right > .nav-tabs .active > a, | ||
3604 | .tabs-right > .nav-tabs .active > a:hover { | ||
3605 | border-color: #ddd #ddd #ddd transparent; | ||
3606 | *border-left-color: #ffffff; | ||
3607 | } | ||
3608 | .nav > .disabled > a { | ||
3609 | color: #999999; | ||
3610 | } | ||
3611 | .nav > .disabled > a:hover { | ||
3612 | text-decoration: none; | ||
3613 | background-color: transparent; | ||
3614 | cursor: default; | ||
3615 | } | ||
3616 | .navbar { | ||
3617 | overflow: visible; | ||
3618 | margin-bottom: 20px; | ||
3619 | *position: relative; | ||
3620 | *z-index: 2; | ||
3621 | } | ||
3622 | .navbar-inner { | ||
3623 | min-height: 40px; | ||
3624 | padding-left: 20px; | ||
3625 | padding-right: 20px; | ||
3626 | background-color: #fafafa; | ||
3627 | background-image: -moz-linear-gradient(top, #ffffff, #f2f2f2); | ||
3628 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), to(#f2f2f2)); | ||
3629 | background-image: -webkit-linear-gradient(top, #ffffff, #f2f2f2); | ||
3630 | background-image: -o-linear-gradient(top, #ffffff, #f2f2f2); | ||
3631 | background-image: linear-gradient(to bottom, #ffffff, #f2f2f2); | ||
3632 | background-repeat: repeat-x; | ||
3633 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffffff', endColorstr='#fff2f2f2', GradientType=0); | ||
3634 | border: 1px solid #d4d4d4; | ||
3635 | -webkit-border-radius: 4px; | ||
3636 | -moz-border-radius: 4px; | ||
3637 | border-radius: 4px; | ||
3638 | -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); | ||
3639 | -moz-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); | ||
3640 | box-shadow: 0 1px 4px rgba(0, 0, 0, 0.065); | ||
3641 | *zoom: 1; | ||
3642 | } | ||
3643 | .navbar-inner:before, | ||
3644 | .navbar-inner:after { | ||
3645 | display: table; | ||
3646 | content: ""; | ||
3647 | line-height: 0; | ||
3648 | } | ||
3649 | .navbar-inner:after { | ||
3650 | clear: both; | ||
3651 | } | ||
3652 | .navbar .container { | ||
2215 | width: auto; | 3653 | width: auto; |
2216 | height: 30px; | 3654 | } |
2217 | line-height: 30px; | 3655 | .nav-collapse.collapse { |
2218 | font-family: inherit; | 3656 | height: auto; |
2219 | font-size: 12px; | 3657 | overflow: visible; |
2220 | font-weight: bold; | 3658 | } |
2221 | color: #FFFFFF; | 3659 | .navbar .brand { |
2222 | text-shadow: rgba(0, 0, 0, 0.6) 0px -1px 0; | 3660 | float: left; |
2223 | text-overflow: ellipsis; | 3661 | display: block; |
3662 | padding: 10px 20px 10px; | ||
3663 | margin-left: -20px; | ||
3664 | font-size: 20px; | ||
3665 | font-weight: 200; | ||
3666 | color: #777777; | ||
3667 | text-shadow: 0 1px 0 #ffffff; | ||
3668 | } | ||
3669 | .navbar .brand:hover { | ||
2224 | text-decoration: none; | 3670 | text-decoration: none; |
3671 | } | ||
3672 | .navbar-text { | ||
3673 | margin-bottom: 0; | ||
3674 | line-height: 40px; | ||
3675 | color: #777777; | ||
3676 | } | ||
3677 | .navbar-link { | ||
3678 | color: #777777; | ||
3679 | } | ||
3680 | .navbar-link:hover { | ||
3681 | color: #333333; | ||
3682 | } | ||
3683 | .navbar .divider-vertical { | ||
3684 | height: 40px; | ||
3685 | margin: 0 9px; | ||
3686 | border-left: 1px solid #f2f2f2; | ||
3687 | border-right: 1px solid #ffffff; | ||
3688 | } | ||
3689 | .navbar .btn, | ||
3690 | .navbar .btn-group { | ||
3691 | margin-top: 5px; | ||
3692 | } | ||
3693 | .navbar .btn-group .btn, | ||
3694 | .navbar .input-prepend .btn, | ||
3695 | .navbar .input-append .btn { | ||
3696 | margin-top: 0; | ||
3697 | } | ||
3698 | .navbar-form { | ||
3699 | margin-bottom: 0; | ||
3700 | *zoom: 1; | ||
3701 | } | ||
3702 | .navbar-form:before, | ||
3703 | .navbar-form:after { | ||
3704 | display: table; | ||
3705 | content: ""; | ||
3706 | line-height: 0; | ||
3707 | } | ||
3708 | .navbar-form:after { | ||
3709 | clear: both; | ||
3710 | } | ||
3711 | .navbar-form input, | ||
3712 | .navbar-form select, | ||
3713 | .navbar-form .radio, | ||
3714 | .navbar-form .checkbox { | ||
3715 | margin-top: 5px; | ||
3716 | } | ||
3717 | .navbar-form input, | ||
3718 | .navbar-form select, | ||
3719 | .navbar-form .btn { | ||
3720 | display: inline-block; | ||
3721 | margin-bottom: 0; | ||
3722 | } | ||
3723 | .navbar-form input[type="image"], | ||
3724 | .navbar-form input[type="checkbox"], | ||
3725 | .navbar-form input[type="radio"] { | ||
3726 | margin-top: 3px; | ||
3727 | } | ||
3728 | .navbar-form .input-append, | ||
3729 | .navbar-form .input-prepend { | ||
3730 | margin-top: 5px; | ||
2225 | white-space: nowrap; | 3731 | white-space: nowrap; |
2226 | background: none; | ||
2227 | //-webkit-border-image: url(./images/old/iPhone/toolButton.png) 0 5 0 5; | ||
2228 | } | 3732 | } |
2229 | 3733 | .navbar-form .input-append input, | |
2230 | div.toolbar a#backButton { | 3734 | .navbar-form .input-prepend input { |
2231 | left: 6px; | 3735 | margin-top: 0; |
2232 | right: auto; | ||
2233 | padding: 0px; | ||
2234 | max-width: 55px; | ||
2235 | border-width: 0 8px 0 14px; | ||
2236 | //-webkit-border-image: url(./images/old/iPhone/backButton.png) 0 8 0 14; | ||
2237 | -webkit-border-image: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAeCAIAAAA6iHCJAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAtJJREFUeNrEV21P01AYbbtubNExBnXDbYjjZYI4BMdgEANDQoTElw/+Rw0mBs0UiSGaoJFEQEPwjRhFCW/JxrZ2Xdu1fe71bpAhCHzqupPnS5ObPOeec+5zb+lHLxao05HPiwvzr3/++J7N7FFGgaaDLe034+O+wCXyxSKET1u5+Wc98XTK39zeOzjudLmNIoAR2tlaf/Zkqm9gKNI/RBigE9dtb23MJKZj8fvuC16b3WGxsJRxOFfHeQOtH+ZnOI+XRfgEBoLAzz6fjo7ebfD4GYYhMiEdDGRAW6xOt6d7YGzl4xIL/7mgyPL044edkVt19T4EFAJEVQYud+MvOCkHc7MJ3+VrXGOzXrHeZS1s9trjOVj7tiqpONTWBRgD6BVmQFls9iMaSHnx/bu3ffEHgC2gVVqAIojKR3Iw9zLRcjVmtTnA0NydxQDg0IWvq59kYIOeZtWs9gQkagcMcgK/vLjYNXQHcEkas0AcYPdNIPr7Q/0M69B089ofavB5ZVm3OJ2cTwegzAUgxGbSe8tLS52xewjRZGabzAABZt+8mvGHBsiYNF+AAw1cXEBGNUiQqWpAlArM5MSYBXgEOl0NkLcCkxak28MRKbuDMa6KDAwAUnU8HO2Q+N0SJ3OLMCA7V1S9vt7d3tSg5LNV0ACXwOekcGfreVbVVYUqMjOvyPsH71cqkxsZ7NHFJIXBTCMONMAlEryoxAfDucyOmaOpmINyaTowrK23IyDxKbNzUIYoKU3+i37OXpCESvfGCOw11uMMcCkQke4rDlrS1coOSk2VOXftERfKtZsURmLXQUqBVqiUABgrQirc0Xp4Fv4t8kxN8dLkaJQupOVcGnTN0PuQHHlRSG1Eu9tUTLOnxZ5clclsfmK078va7/WN7axomCN2e42Xc/VEIoiiM0KePeM20DTY3M22BZtuhENW1rC/NrI3WVGTmZxSKEr7V4ABAJ+53J1I3nPjAAAAAElFTkSuQmCCCg==) 0 8 0 14; | ||
2238 | } | 3736 | } |
3737 | .navbar-search { | ||
3738 | position: relative; | ||
3739 | float: left; | ||
3740 | margin-top: 5px; | ||
3741 | margin-bottom: 0; | ||
3742 | } | ||
3743 | .navbar-search .search-query { | ||
3744 | margin-bottom: 0; | ||
3745 | padding: 4px 14px; | ||
3746 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
3747 | font-size: 13px; | ||
3748 | font-weight: normal; | ||
3749 | line-height: 1; | ||
3750 | -webkit-border-radius: 15px; | ||
3751 | -moz-border-radius: 15px; | ||
3752 | border-radius: 15px; | ||
3753 | } | ||
3754 | .navbar-static-top { | ||
3755 | position: static; | ||
3756 | margin-bottom: 0; | ||
3757 | } | ||
3758 | .navbar-static-top .navbar-inner { | ||
3759 | -webkit-border-radius: 0; | ||
3760 | -moz-border-radius: 0; | ||
3761 | border-radius: 0; | ||
3762 | } | ||
3763 | .navbar-fixed-top, | ||
3764 | .navbar-fixed-bottom { | ||
3765 | position: fixed; | ||
3766 | right: 0; | ||
3767 | left: 0; | ||
3768 | z-index: 1030; | ||
3769 | margin-bottom: 0; | ||
3770 | } | ||
3771 | .navbar-fixed-top .navbar-inner, | ||
3772 | .navbar-static-top .navbar-inner { | ||
3773 | border-width: 0 0 1px; | ||
3774 | } | ||
3775 | .navbar-fixed-bottom .navbar-inner { | ||
3776 | border-width: 1px 0 0; | ||
3777 | } | ||
3778 | .navbar-fixed-top .navbar-inner, | ||
3779 | .navbar-fixed-bottom .navbar-inner { | ||
3780 | padding-left: 0; | ||
3781 | padding-right: 0; | ||
3782 | -webkit-border-radius: 0; | ||
3783 | -moz-border-radius: 0; | ||
3784 | border-radius: 0; | ||
3785 | } | ||
3786 | .navbar-static-top .container, | ||
3787 | .navbar-fixed-top .container, | ||
3788 | .navbar-fixed-bottom .container { | ||
3789 | width: 940px; | ||
3790 | } | ||
3791 | .navbar-fixed-top { | ||
3792 | top: 0; | ||
3793 | } | ||
3794 | .navbar-fixed-top .navbar-inner, | ||
3795 | .navbar-static-top .navbar-inner { | ||
3796 | -webkit-box-shadow: 0 1px 10px rgba(0,0,0,.1); | ||
3797 | -moz-box-shadow: 0 1px 10px rgba(0,0,0,.1); | ||
3798 | box-shadow: 0 1px 10px rgba(0,0,0,.1); | ||
3799 | } | ||
3800 | .navbar-fixed-bottom { | ||
3801 | bottom: 0; | ||
3802 | } | ||
3803 | .navbar-fixed-bottom .navbar-inner { | ||
3804 | -webkit-box-shadow: 0 -1px 10px rgba(0,0,0,.1); | ||
3805 | -moz-box-shadow: 0 -1px 10px rgba(0,0,0,.1); | ||
3806 | box-shadow: 0 -1px 10px rgba(0,0,0,.1); | ||
3807 | } | ||
3808 | .navbar .nav { | ||
3809 | position: relative; | ||
3810 | left: 0; | ||
3811 | display: block; | ||
3812 | float: left; | ||
3813 | margin: 0 10px 0 0; | ||
3814 | } | ||
3815 | .navbar .nav.pull-right { | ||
3816 | float: right; | ||
3817 | margin-right: 0; | ||
3818 | } | ||
3819 | .navbar .nav > li { | ||
3820 | float: left; | ||
3821 | } | ||
3822 | .navbar .nav > li > a { | ||
3823 | float: none; | ||
3824 | padding: 10px 15px 10px; | ||
3825 | color: #777777; | ||
3826 | text-decoration: none; | ||
3827 | text-shadow: 0 1px 0 #ffffff; | ||
3828 | } | ||
3829 | .navbar .nav .dropdown-toggle .caret { | ||
3830 | margin-top: 8px; | ||
3831 | } | ||
3832 | .navbar .nav > li > a:focus, | ||
3833 | .navbar .nav > li > a:hover { | ||
3834 | background-color: transparent; | ||
3835 | color: #333333; | ||
3836 | text-decoration: none; | ||
3837 | } | ||
3838 | .navbar .nav > .active > a, | ||
3839 | .navbar .nav > .active > a:hover, | ||
3840 | .navbar .nav > .active > a:focus { | ||
3841 | color: #555555; | ||
3842 | text-decoration: none; | ||
3843 | background-color: #e5e5e5; | ||
3844 | -webkit-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | ||
3845 | -moz-box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | ||
3846 | box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.125); | ||
3847 | } | ||
3848 | .navbar .btn-navbar { | ||
3849 | display: none; | ||
3850 | float: right; | ||
3851 | padding: 7px 10px; | ||
3852 | margin-left: 5px; | ||
3853 | margin-right: 5px; | ||
3854 | color: #ffffff; | ||
3855 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
3856 | background-color: #ededed; | ||
3857 | background-image: -moz-linear-gradient(top, #f2f2f2, #e5e5e5); | ||
3858 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f2f2f2), to(#e5e5e5)); | ||
3859 | background-image: -webkit-linear-gradient(top, #f2f2f2, #e5e5e5); | ||
3860 | background-image: -o-linear-gradient(top, #f2f2f2, #e5e5e5); | ||
3861 | background-image: linear-gradient(to bottom, #f2f2f2, #e5e5e5); | ||
3862 | background-repeat: repeat-x; | ||
3863 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff2f2f2', endColorstr='#ffe5e5e5', GradientType=0); | ||
3864 | border-color: #e5e5e5 #e5e5e5 #bfbfbf; | ||
3865 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
3866 | *background-color: #e5e5e5; | ||
3867 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2239 | 3868 | ||
2240 | // ------------------------------------------- | 3869 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); |
2241 | 3870 | -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); | |
2242 | body.iPhone form.loginForm { | 3871 | -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); |
2243 | min-height: 372px; | 3872 | box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.075); |
3873 | } | ||
3874 | .navbar .btn-navbar:hover, | ||
3875 | .navbar .btn-navbar:active, | ||
3876 | .navbar .btn-navbar.active, | ||
3877 | .navbar .btn-navbar.disabled, | ||
3878 | .navbar .btn-navbar[disabled] { | ||
3879 | color: #ffffff; | ||
3880 | background-color: #e5e5e5; | ||
3881 | *background-color: #d9d9d9; | ||
3882 | } | ||
3883 | .navbar .btn-navbar:active, | ||
3884 | .navbar .btn-navbar.active { | ||
3885 | background-color: #cccccc \9; | ||
3886 | } | ||
3887 | .navbar .btn-navbar .icon-bar { | ||
3888 | display: block; | ||
3889 | width: 18px; | ||
3890 | height: 2px; | ||
3891 | background-color: #f5f5f5; | ||
3892 | -webkit-border-radius: 1px; | ||
3893 | -moz-border-radius: 1px; | ||
3894 | border-radius: 1px; | ||
3895 | -webkit-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); | ||
3896 | -moz-box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); | ||
3897 | box-shadow: 0 1px 0 rgba(0, 0, 0, 0.25); | ||
3898 | } | ||
3899 | .btn-navbar .icon-bar + .icon-bar { | ||
3900 | margin-top: 3px; | ||
3901 | } | ||
3902 | .navbar .nav > li > .dropdown-menu:before { | ||
3903 | content: ''; | ||
3904 | display: inline-block; | ||
3905 | border-left: 7px solid transparent; | ||
3906 | border-right: 7px solid transparent; | ||
3907 | border-bottom: 7px solid #ccc; | ||
3908 | border-bottom-color: rgba(0, 0, 0, 0.2); | ||
3909 | position: absolute; | ||
3910 | top: -7px; | ||
3911 | left: 9px; | ||
3912 | } | ||
3913 | .navbar .nav > li > .dropdown-menu:after { | ||
3914 | content: ''; | ||
3915 | display: inline-block; | ||
3916 | border-left: 6px solid transparent; | ||
3917 | border-right: 6px solid transparent; | ||
3918 | border-bottom: 6px solid #ffffff; | ||
3919 | position: absolute; | ||
3920 | top: -6px; | ||
3921 | left: 10px; | ||
3922 | } | ||
3923 | .navbar-fixed-bottom .nav > li > .dropdown-menu:before { | ||
3924 | border-top: 7px solid #ccc; | ||
3925 | border-top-color: rgba(0, 0, 0, 0.2); | ||
3926 | border-bottom: 0; | ||
3927 | bottom: -7px; | ||
3928 | top: auto; | ||
3929 | } | ||
3930 | .navbar-fixed-bottom .nav > li > .dropdown-menu:after { | ||
3931 | border-top: 6px solid #ffffff; | ||
3932 | border-bottom: 0; | ||
3933 | bottom: -6px; | ||
3934 | top: auto; | ||
3935 | } | ||
3936 | .navbar .nav li.dropdown > a:hover .caret { | ||
3937 | border-top-color: #555555; | ||
3938 | border-bottom-color: #555555; | ||
3939 | } | ||
3940 | .navbar .nav li.dropdown.open > .dropdown-toggle, | ||
3941 | .navbar .nav li.dropdown.active > .dropdown-toggle, | ||
3942 | .navbar .nav li.dropdown.open.active > .dropdown-toggle { | ||
3943 | background-color: #e5e5e5; | ||
3944 | color: #555555; | ||
3945 | } | ||
3946 | .navbar .nav li.dropdown > .dropdown-toggle .caret { | ||
3947 | border-top-color: #777777; | ||
3948 | border-bottom-color: #777777; | ||
3949 | } | ||
3950 | .navbar .nav li.dropdown.open > .dropdown-toggle .caret, | ||
3951 | .navbar .nav li.dropdown.active > .dropdown-toggle .caret, | ||
3952 | .navbar .nav li.dropdown.open.active > .dropdown-toggle .caret { | ||
3953 | border-top-color: #555555; | ||
3954 | border-bottom-color: #555555; | ||
3955 | } | ||
3956 | .navbar .pull-right > li > .dropdown-menu, | ||
3957 | .navbar .nav > li > .dropdown-menu.pull-right { | ||
3958 | left: auto; | ||
3959 | right: 0; | ||
3960 | } | ||
3961 | .navbar .pull-right > li > .dropdown-menu:before, | ||
3962 | .navbar .nav > li > .dropdown-menu.pull-right:before { | ||
3963 | left: auto; | ||
3964 | right: 12px; | ||
3965 | } | ||
3966 | .navbar .pull-right > li > .dropdown-menu:after, | ||
3967 | .navbar .nav > li > .dropdown-menu.pull-right:after { | ||
3968 | left: auto; | ||
3969 | right: 13px; | ||
3970 | } | ||
3971 | .navbar .pull-right > li > .dropdown-menu .dropdown-menu, | ||
3972 | .navbar .nav > li > .dropdown-menu.pull-right .dropdown-menu { | ||
3973 | left: auto; | ||
3974 | right: 100%; | ||
3975 | margin-left: 0; | ||
3976 | margin-right: -1px; | ||
3977 | -webkit-border-radius: 6px 0 6px 6px; | ||
3978 | -moz-border-radius: 6px 0 6px 6px; | ||
3979 | border-radius: 6px 0 6px 6px; | ||
3980 | } | ||
3981 | .navbar-inverse .navbar-inner { | ||
3982 | background-color: #1b1b1b; | ||
3983 | background-image: -moz-linear-gradient(top, #222222, #111111); | ||
3984 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#222222), to(#111111)); | ||
3985 | background-image: -webkit-linear-gradient(top, #222222, #111111); | ||
3986 | background-image: -o-linear-gradient(top, #222222, #111111); | ||
3987 | background-image: linear-gradient(to bottom, #222222, #111111); | ||
3988 | background-repeat: repeat-x; | ||
3989 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff222222', endColorstr='#ff111111', GradientType=0); | ||
3990 | border-color: #252525; | ||
3991 | } | ||
3992 | .navbar-inverse .brand, | ||
3993 | .navbar-inverse .nav > li > a { | ||
3994 | color: #999999; | ||
3995 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
3996 | } | ||
3997 | .navbar-inverse .brand:hover, | ||
3998 | .navbar-inverse .nav > li > a:hover { | ||
3999 | color: #ffffff; | ||
4000 | } | ||
4001 | .navbar-inverse .brand { | ||
4002 | color: #999999; | ||
4003 | } | ||
4004 | .navbar-inverse .navbar-text { | ||
4005 | color: #999999; | ||
4006 | } | ||
4007 | .navbar-inverse .nav > li > a:focus, | ||
4008 | .navbar-inverse .nav > li > a:hover { | ||
4009 | background-color: transparent; | ||
4010 | color: #ffffff; | ||
4011 | } | ||
4012 | .navbar-inverse .nav .active > a, | ||
4013 | .navbar-inverse .nav .active > a:hover, | ||
4014 | .navbar-inverse .nav .active > a:focus { | ||
4015 | color: #ffffff; | ||
4016 | background-color: #111111; | ||
4017 | } | ||
4018 | .navbar-inverse .navbar-link { | ||
4019 | color: #999999; | ||
4020 | } | ||
4021 | .navbar-inverse .navbar-link:hover { | ||
4022 | color: #ffffff; | ||
4023 | } | ||
4024 | .navbar-inverse .divider-vertical { | ||
4025 | border-left-color: #111111; | ||
4026 | border-right-color: #222222; | ||
4027 | } | ||
4028 | .navbar-inverse .nav li.dropdown.open > .dropdown-toggle, | ||
4029 | .navbar-inverse .nav li.dropdown.active > .dropdown-toggle, | ||
4030 | .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle { | ||
4031 | background-color: #111111; | ||
4032 | color: #ffffff; | ||
4033 | } | ||
4034 | .navbar-inverse .nav li.dropdown > a:hover .caret { | ||
4035 | border-top-color: #ffffff; | ||
4036 | border-bottom-color: #ffffff; | ||
4037 | } | ||
4038 | .navbar-inverse .nav li.dropdown > .dropdown-toggle .caret { | ||
4039 | border-top-color: #999999; | ||
4040 | border-bottom-color: #999999; | ||
4041 | } | ||
4042 | .navbar-inverse .nav li.dropdown.open > .dropdown-toggle .caret, | ||
4043 | .navbar-inverse .nav li.dropdown.active > .dropdown-toggle .caret, | ||
4044 | .navbar-inverse .nav li.dropdown.open.active > .dropdown-toggle .caret { | ||
4045 | border-top-color: #ffffff; | ||
4046 | border-bottom-color: #ffffff; | ||
4047 | } | ||
4048 | .navbar-inverse .navbar-search .search-query { | ||
4049 | color: #ffffff; | ||
4050 | background-color: #515151; | ||
4051 | border-color: #111111; | ||
4052 | -webkit-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); | ||
4053 | -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); | ||
4054 | box-shadow: inset 0 1px 2px rgba(0,0,0,.1), 0 1px 0 rgba(255,255,255,.15); | ||
4055 | -webkit-transition: none; | ||
4056 | -moz-transition: none; | ||
4057 | -o-transition: none; | ||
4058 | transition: none; | ||
4059 | } | ||
4060 | .navbar-inverse .navbar-search .search-query:-moz-placeholder { | ||
4061 | color: #cccccc; | ||
4062 | } | ||
4063 | .navbar-inverse .navbar-search .search-query:-ms-input-placeholder { | ||
4064 | color: #cccccc; | ||
4065 | } | ||
4066 | .navbar-inverse .navbar-search .search-query::-webkit-input-placeholder { | ||
4067 | color: #cccccc; | ||
4068 | } | ||
4069 | .navbar-inverse .navbar-search .search-query:focus, | ||
4070 | .navbar-inverse .navbar-search .search-query.focused { | ||
4071 | padding: 5px 15px; | ||
4072 | color: #333333; | ||
4073 | text-shadow: 0 1px 0 #ffffff; | ||
4074 | background-color: #ffffff; | ||
4075 | border: 0; | ||
4076 | -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); | ||
4077 | -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); | ||
4078 | box-shadow: 0 0 3px rgba(0, 0, 0, 0.15); | ||
4079 | outline: 0; | ||
4080 | } | ||
4081 | .navbar-inverse .btn-navbar { | ||
4082 | color: #ffffff; | ||
4083 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
4084 | background-color: #0e0e0e; | ||
4085 | background-image: -moz-linear-gradient(top, #151515, #040404); | ||
4086 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#151515), to(#040404)); | ||
4087 | background-image: -webkit-linear-gradient(top, #151515, #040404); | ||
4088 | background-image: -o-linear-gradient(top, #151515, #040404); | ||
4089 | background-image: linear-gradient(to bottom, #151515, #040404); | ||
4090 | background-repeat: repeat-x; | ||
4091 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff151515', endColorstr='#ff040404', GradientType=0); | ||
4092 | border-color: #040404 #040404 #000000; | ||
4093 | border-color: rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.1) rgba(0, 0, 0, 0.25); | ||
4094 | *background-color: #040404; | ||
4095 | /* Darken IE7 buttons by default so they stand out more given they won't have borders */ | ||
2244 | 4096 | ||
2245 | box-sizing: border-box; | 4097 | filter: progid:DXImageTransform.Microsoft.gradient(enabled = false); |
2246 | -moz-box-sizing: border-box; | 4098 | } |
2247 | -webkit-box-sizing: border-box; | 4099 | .navbar-inverse .btn-navbar:hover, |
2248 | padding: 10px; | 4100 | .navbar-inverse .btn-navbar:active, |
2249 | //background: #c8c8c8 url(./images/old/iPhone/pinstripes.png); | 4101 | .navbar-inverse .btn-navbar.active, |
2250 | background: #c8c8c8 url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAIAAACdaSOZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpiPHrmCgMC/GNjYwNSAAEGADdNA3dnzPlQAAAAAElFTkSuQmCCCg==); | 4102 | .navbar-inverse .btn-navbar.disabled, |
4103 | .navbar-inverse .btn-navbar[disabled] { | ||
4104 | color: #ffffff; | ||
4105 | background-color: #040404; | ||
4106 | *background-color: #000000; | ||
4107 | } | ||
4108 | .navbar-inverse .btn-navbar:active, | ||
4109 | .navbar-inverse .btn-navbar.active { | ||
4110 | background-color: #000000 \9; | ||
4111 | } | ||
4112 | .breadcrumb { | ||
4113 | padding: 8px 15px; | ||
4114 | margin: 0 0 20px; | ||
4115 | list-style: none; | ||
4116 | background-color: #f5f5f5; | ||
4117 | -webkit-border-radius: 4px; | ||
4118 | -moz-border-radius: 4px; | ||
4119 | border-radius: 4px; | ||
2251 | } | 4120 | } |
4121 | .breadcrumb > li { | ||
4122 | display: inline-block; | ||
4123 | *display: inline; | ||
4124 | /* IE7 inline-block hack */ | ||
2252 | 4125 | ||
2253 | fieldset { | 4126 | *zoom: 1; |
2254 | position: relative; | 4127 | text-shadow: 0 1px 0 #ffffff; |
2255 | margin: 0 0 20px 0; | 4128 | } |
2256 | padding: 0; | 4129 | .breadcrumb > li > .divider { |
2257 | background: #FFFFFF; | 4130 | padding: 0 5px; |
2258 | -webkit-border-radius: 10px; | 4131 | color: #ccc; |
2259 | -moz-border-radius: 10px; | 4132 | } |
2260 | border: 1px solid #999999; | 4133 | .breadcrumb > .active { |
2261 | text-align: right; | 4134 | color: #999999; |
2262 | font-size: 16px; | ||
2263 | } | 4135 | } |
4136 | .pagination { | ||
4137 | margin: 20px 0; | ||
4138 | } | ||
4139 | .pagination ul { | ||
4140 | display: inline-block; | ||
4141 | *display: inline; | ||
4142 | /* IE7 inline-block hack */ | ||
2264 | 4143 | ||
2265 | .row { | 4144 | *zoom: 1; |
2266 | position: relative; | 4145 | margin-left: 0; |
2267 | min-height: 42px; | 4146 | margin-bottom: 0; |
2268 | border-bottom: 1px solid #999999; | 4147 | -webkit-border-radius: 4px; |
2269 | -webkit-border-radius: 0; | 4148 | -moz-border-radius: 4px; |
4149 | border-radius: 4px; | ||
4150 | -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); | ||
4151 | -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); | ||
4152 | box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05); | ||
4153 | } | ||
4154 | .pagination ul > li { | ||
4155 | display: inline; | ||
4156 | } | ||
4157 | .pagination ul > li > a, | ||
4158 | .pagination ul > li > span { | ||
4159 | float: left; | ||
4160 | padding: 4px 12px; | ||
4161 | line-height: 20px; | ||
4162 | text-decoration: none; | ||
4163 | background-color: #ffffff; | ||
4164 | border: 1px solid #dddddd; | ||
4165 | border-left-width: 0; | ||
4166 | } | ||
4167 | .pagination ul > li > a:hover, | ||
4168 | .pagination ul > .active > a, | ||
4169 | .pagination ul > .active > span { | ||
4170 | background-color: #f5f5f5; | ||
4171 | } | ||
4172 | .pagination ul > .active > a, | ||
4173 | .pagination ul > .active > span { | ||
4174 | color: #999999; | ||
4175 | cursor: default; | ||
4176 | } | ||
4177 | .pagination ul > .disabled > span, | ||
4178 | .pagination ul > .disabled > a, | ||
4179 | .pagination ul > .disabled > a:hover { | ||
4180 | color: #999999; | ||
4181 | background-color: transparent; | ||
4182 | cursor: default; | ||
4183 | } | ||
4184 | .pagination ul > li:first-child > a, | ||
4185 | .pagination ul > li:first-child > span { | ||
4186 | border-left-width: 1px; | ||
4187 | -webkit-border-top-left-radius: 4px; | ||
4188 | -moz-border-radius-topleft: 4px; | ||
4189 | border-top-left-radius: 4px; | ||
4190 | -webkit-border-bottom-left-radius: 4px; | ||
4191 | -moz-border-radius-bottomleft: 4px; | ||
4192 | border-bottom-left-radius: 4px; | ||
4193 | } | ||
4194 | .pagination ul > li:last-child > a, | ||
4195 | .pagination ul > li:last-child > span { | ||
4196 | -webkit-border-top-right-radius: 4px; | ||
4197 | -moz-border-radius-topright: 4px; | ||
4198 | border-top-right-radius: 4px; | ||
4199 | -webkit-border-bottom-right-radius: 4px; | ||
4200 | -moz-border-radius-bottomright: 4px; | ||
4201 | border-bottom-right-radius: 4px; | ||
4202 | } | ||
4203 | .pagination-centered { | ||
4204 | text-align: center; | ||
4205 | } | ||
4206 | .pagination-right { | ||
2270 | text-align: right; | 4207 | text-align: right; |
2271 | } | 4208 | } |
2272 | 4209 | .pagination-large ul > li > a, | |
2273 | fieldset > .row:last-child { | 4210 | .pagination-large ul > li > span { |
2274 | border-bottom: none !important; | 4211 | padding: 11px 19px; |
4212 | font-size: 17.5px; | ||
4213 | } | ||
4214 | .pagination-large ul > li:first-child > a, | ||
4215 | .pagination-large ul > li:first-child > span { | ||
4216 | -webkit-border-top-left-radius: 6px; | ||
4217 | -moz-border-radius-topleft: 6px; | ||
4218 | border-top-left-radius: 6px; | ||
4219 | -webkit-border-bottom-left-radius: 6px; | ||
4220 | -moz-border-radius-bottomleft: 6px; | ||
4221 | border-bottom-left-radius: 6px; | ||
4222 | } | ||
4223 | .pagination-large ul > li:last-child > a, | ||
4224 | .pagination-large ul > li:last-child > span { | ||
4225 | -webkit-border-top-right-radius: 6px; | ||
4226 | -moz-border-radius-topright: 6px; | ||
4227 | border-top-right-radius: 6px; | ||
4228 | -webkit-border-bottom-right-radius: 6px; | ||
4229 | -moz-border-radius-bottomright: 6px; | ||
4230 | border-bottom-right-radius: 6px; | ||
4231 | } | ||
4232 | .pagination-mini ul > li:first-child > a, | ||
4233 | .pagination-small ul > li:first-child > a, | ||
4234 | .pagination-mini ul > li:first-child > span, | ||
4235 | .pagination-small ul > li:first-child > span { | ||
4236 | -webkit-border-top-left-radius: 3px; | ||
4237 | -moz-border-radius-topleft: 3px; | ||
4238 | border-top-left-radius: 3px; | ||
4239 | -webkit-border-bottom-left-radius: 3px; | ||
4240 | -moz-border-radius-bottomleft: 3px; | ||
4241 | border-bottom-left-radius: 3px; | ||
4242 | } | ||
4243 | .pagination-mini ul > li:last-child > a, | ||
4244 | .pagination-small ul > li:last-child > a, | ||
4245 | .pagination-mini ul > li:last-child > span, | ||
4246 | .pagination-small ul > li:last-child > span { | ||
4247 | -webkit-border-top-right-radius: 3px; | ||
4248 | -moz-border-radius-topright: 3px; | ||
4249 | border-top-right-radius: 3px; | ||
4250 | -webkit-border-bottom-right-radius: 3px; | ||
4251 | -moz-border-radius-bottomright: 3px; | ||
4252 | border-bottom-right-radius: 3px; | ||
4253 | } | ||
4254 | .pagination-small ul > li > a, | ||
4255 | .pagination-small ul > li > span { | ||
4256 | padding: 2px 10px; | ||
4257 | font-size: 11.9px; | ||
2275 | } | 4258 | } |
4259 | .pagination-mini ul > li > a, | ||
4260 | .pagination-mini ul > li > span { | ||
4261 | padding: 0 6px; | ||
4262 | font-size: 10.5px; | ||
4263 | } | ||
4264 | .pager { | ||
4265 | margin: 20px 0; | ||
4266 | list-style: none; | ||
4267 | text-align: center; | ||
4268 | *zoom: 1; | ||
4269 | } | ||
4270 | .pager:before, | ||
4271 | .pager:after { | ||
4272 | display: table; | ||
4273 | content: ""; | ||
4274 | line-height: 0; | ||
4275 | } | ||
4276 | .pager:after { | ||
4277 | clear: both; | ||
4278 | } | ||
4279 | .pager li { | ||
4280 | display: inline; | ||
4281 | } | ||
4282 | .pager li > a, | ||
4283 | .pager li > span { | ||
4284 | display: inline-block; | ||
4285 | padding: 5px 14px; | ||
4286 | background-color: #fff; | ||
4287 | border: 1px solid #ddd; | ||
4288 | -webkit-border-radius: 15px; | ||
4289 | -moz-border-radius: 15px; | ||
4290 | border-radius: 15px; | ||
4291 | } | ||
4292 | .pager li > a:hover { | ||
4293 | text-decoration: none; | ||
4294 | background-color: #f5f5f5; | ||
4295 | } | ||
4296 | .pager .next > a, | ||
4297 | .pager .next > span { | ||
4298 | float: right; | ||
4299 | } | ||
4300 | .pager .previous > a, | ||
4301 | .pager .previous > span { | ||
4302 | float: left; | ||
4303 | } | ||
4304 | .pager .disabled > a, | ||
4305 | .pager .disabled > a:hover, | ||
4306 | .pager .disabled > span { | ||
4307 | color: #999999; | ||
4308 | background-color: #fff; | ||
4309 | cursor: default; | ||
4310 | } | ||
4311 | .modal-backdrop { | ||
4312 | position: fixed; | ||
4313 | top: 0; | ||
4314 | right: 0; | ||
4315 | bottom: 0; | ||
4316 | left: 0; | ||
4317 | z-index: 1040; | ||
4318 | background-color: #000000; | ||
4319 | } | ||
4320 | .modal-backdrop.fade { | ||
4321 | opacity: 0; | ||
4322 | } | ||
4323 | .modal-backdrop, | ||
4324 | .modal-backdrop.fade.in { | ||
4325 | opacity: 0.8; | ||
4326 | filter: alpha(opacity=80); | ||
4327 | } | ||
4328 | .modal { | ||
4329 | position: fixed; | ||
4330 | top: 10%; | ||
4331 | left: 50%; | ||
4332 | z-index: 1050; | ||
4333 | width: 560px; | ||
4334 | margin-left: -280px; | ||
4335 | background-color: #ffffff; | ||
4336 | border: 1px solid #999; | ||
4337 | border: 1px solid rgba(0, 0, 0, 0.3); | ||
4338 | *border: 1px solid #999; | ||
4339 | /* IE6-7 */ | ||
2276 | 4340 | ||
2277 | 4341 | -webkit-border-radius: 6px; | |
2278 | .row > input:not(input[type|=radio]):not(input[type|=checkbox]), | 4342 | -moz-border-radius: 6px; |
2279 | .row > div.fieldValue { | 4343 | border-radius: 6px; |
2280 | width: 100%; | 4344 | -webkit-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); |
2281 | box-sizing: border-box; | 4345 | -moz-box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); |
2282 | -moz-box-sizing: border-box; | 4346 | box-shadow: 0 3px 7px rgba(0, 0, 0, 0.3); |
2283 | -webkit-box-sizing: border-box; | 4347 | -webkit-background-clip: padding-box; |
4348 | -moz-background-clip: padding-box; | ||
4349 | background-clip: padding-box; | ||
4350 | outline: none; | ||
4351 | } | ||
4352 | .modal.fade { | ||
4353 | -webkit-transition: opacity .3s linear, top .3s ease-out; | ||
4354 | -moz-transition: opacity .3s linear, top .3s ease-out; | ||
4355 | -o-transition: opacity .3s linear, top .3s ease-out; | ||
4356 | transition: opacity .3s linear, top .3s ease-out; | ||
4357 | top: -25%; | ||
4358 | } | ||
4359 | .modal.fade.in { | ||
4360 | top: 10%; | ||
4361 | } | ||
4362 | .modal-header { | ||
4363 | padding: 9px 15px; | ||
4364 | border-bottom: 1px solid #eee; | ||
4365 | } | ||
4366 | .modal-header .close { | ||
4367 | margin-top: 2px; | ||
4368 | } | ||
4369 | .modal-header h3 { | ||
2284 | margin: 0; | 4370 | margin: 0; |
2285 | border: none; | 4371 | line-height: 30px; |
2286 | padding: 0px 10px 0 112px; | ||
2287 | height: 42px; | ||
2288 | background: none; | ||
2289 | font-size: 16px; | ||
2290 | font-weight: normal; | ||
2291 | |||
2292 | color: #666a60; | ||
2293 | -webkit-user-select: text; | ||
2294 | } | 4372 | } |
2295 | 4373 | .modal-body { | |
2296 | .row > div.fieldValue p { | 4374 | position: relative; |
2297 | margin: 0px; | 4375 | overflow-y: auto; |
2298 | text-align: left; | 4376 | max-height: 400px; |
2299 | height: 40px; | 4377 | padding: 15px; |
2300 | vertical-align: middle; | ||
2301 | line-height: 40px; | ||
2302 | } | 4378 | } |
2303 | 4379 | .modal-form { | |
2304 | body[orientation="landscape"] .row > div.fieldValue.password { | 4380 | margin-bottom: 0; |
2305 | padding-right: 120px; | ||
2306 | //background: url(./images/old/iPhone/password_background.png) no-repeat 105px; | ||
2307 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAWCAYAAAAsNNkQAAAM1GlDQ1BJQ0MgUHJvZmlsZQAAeAGtl3k8VO8ex59ZGMuYYTC2MLLLmp3sWyLZFUoau2HGklTKkpQ1SyhaUFSISqRUtJAlSQpRtoos2bNku2cG1b2v1+/ef+7zep05n/Oc85wzM8+83898AcBKu1IoJDgAwM8/ONDaRJ+wd58jAfURwAAC6lQGsq7EIIqepaU5dPQPba4duhpqbTLUew2S01TBCqXR4HGq6xejAy3/MGizGxMIPRAAmDTUweG5nnWp+dB6tqXmI8GUYOgaL2omerm6QTkMytKBttYGUL4JZYzneq6k5kPruZ6aQ4ie1LGdANDj/N28/QFAjUFZ2809iAidpj7XzS2I6AflZChb+PmRoftj+qAsQaQEQmOxDFAWoX4v0B5qTnEAKPEAwGD2p+9IOgDludCQ3X/6hB8AgHcFIC/xT9+MNe27guFbgjwUt9NuB0PrA0DXs7Y2Iwa9t1QAVlLW1pby1tZWrgGA+ARADYl4ODCEdi30QWDNAPyv4/XPvDECAU0ONMEwEVgB/BgiDBlGd5I+AhXFcIrRkLGW6QzzWXQsSwKmgtWLLQWXwp7KcZ4zHZ/Olcldy0vmy96SzX9ZoJ5wWChv6zXhFtHjYgXirZInpYq2tctEyd6W61I4s/2eYq9ygkqFar96ksYjzUGtNO2nOiN6GfrPDcaNsozrTKZNr+5qNJvbnWfxZs9by7dWrdbLtoV2H+zbHTr2djoine46f9r/+UCPS+/BvkNo4kO3r+7fPAY9h7y+ew/7cpKe+f3wHydPUCYDpgKng2aDZw//DJk7Mh+6cHTx2K/jy2HLJ1bCJSM+RMFOwaMRp5ExdGfoz6JiGeIY45kSmBPRSSznMMnYFNZUtjTcefZ0jgzOTPwFrovcWTzZvJf4Lm+5wn9VIEcwl5AndG3rdeF8kQLRG+I3xW9JFEoWSRWNFpNuS5fIlMrdkb+rcE+hbPt9pXLlCpWKuQchlaoP1R5pVGk+3vFkx1Otp6vV4TU6z3Sf673Qf2lQi6yNrjN6ZVxv0mDaaNrE1BT/2qzZ/I1FC6bl3FvLVqt31m24ttT3Nh9s2+068B2ZnQ4f93Y5dvN2Z39y/uzcs79XoPdqn0v/wQGhgbwvh74Sv7kNig4WDHl89xz2GpEcKRz1GfP9QRqXGS+Z8J8kT1GmFabvzQTOBv0MnlOeq5gPWQhdPPrr6JLGUtXy8ZWwVa3Vp2tr0PwLwzHwSUQTsogujT4M5clgy2jApMQsjhZn4cZwYblZudk4cWLsEhxqnOb4A1xB3Ek8pbxNfMP87AIqgp6EC0KvhGEiWqIBYnfFJyQlpEjbqmQQsnpyKfL92yUVY5Q6VKRUKWq1GlyaoTtea+N1yLrP9UUMjhu2GguYhO58YrpopmDuvjvdotUSY2ViHWqTb/venslBd2/AvsuOdU4T+wUP7HE5djDPtfbQsBunu47HXs+TXjneNT6ffRf92P23kQ0pXgFhgclBecHlh+tDuo+MhM4dQxxnCyOckD6pHK4bYRa5J8rp1MFo99OkmOAzgWcjYiPiTsXHJqQmxidlnbuYnJmSknopLfV8RvqFjJuZNy6UXLyZVZRdeunx5cdXaq++zmnNbctru9Z2vTv/a8HQjYGb325NFE4VTRSP354umSgdvTN2d+hef9nA/a7y1oqGBzWVDx6WPrpUlfo44onfU6dqs5odz6Se454vvuh72Vh7vy7tVWC9TYNKI1/jWlPX6/vNcW8cW4RbBt+WtZ54Z9SGafv8PueDT7ti+0pHc2fax/1dkl0z3Y8+RX026+Ho6em91RfUrzmAHGj8cv7rgW/i38YGHw1Fft81zDn8eeT6KGlMeWz1R8N46oTTpMjk2FTZdNiMySxutvNn/hx5Xn0BsfBqMeWX05Lw0o/lipWIVdM1PHX+wSlYKMS/JuIR8gSdDl01fSTqNIMxQy1jDOSAOPQudBNLIiYRm8S6h7WFLRmXyp7GkcZpy/ken8GVwX2BJ4s3G7LBJX5n/s8CVwVzCLlCuVtzha+JXBfNh5xwQ+Km5C0pb6mRbYXSxTK3ZUvkSuXvKNyF3FCmdJ+KjGqFWqjagvojyBBVOx5rPdE+qb2qU61bo/cM8sQLw2gjpFEt5IpXO+tNGyBbxJujzV/vboaM0WKZbMUKOeOdTZvte7t2+wwHPNUb+z46djllO/PR3NHr0newzzX3kNChAeIXmj8KPMXWDeIz4ltEkiaN/ZtFZn5bpPKoGs0jS1SPnFwNX4sEUfDfJkFRTRLbELcrnjkBTXMJNpk1he23S/CZXBe4N1yy5W+X5A1cI9JsInZDbNMmxdK3ZUpk/3KJYrlShfIDVZpJ1CGTaEIm0a7W/ssjRnXGNIvshCxi9jrkzdYWC8gflu+s2k58kGq373DojOqS63b8FNOj2BvbrzyQ8NVtUHMoZdh71OcHaYI8FTfrOHduMX7Fmjr/62sfdU2gVwEgYxsA9lkA2OQBEANlcRdorYLWUUsWAGzVAZxOAMC1KAC2SwtsrB/QusUK+IEs0Af7QBBIBnfAAowAM4OFwm7C3sCG4Fi4CTwS/gS+jNBCRCLqEMtIIeQ+ZAHyJ50x3Wm6UroJehP6XPpBFCfKGfWEAcWgzhDNMMqowUhmrGGSYYpgqmTGMEcyf0RzoP3R31mMWE6x9GNcMc+xCKwHdozVijWDdYUtlm0ap4HLZ1dlz2ef4HDhmOf05qzAb8O/4vLgRnEX8ojyHOGZ5b3MZ8I3syWHX4Q/TAAmUC7oQxAidAmd37p1a4QwVrhFJEXUToxXbEC8SMJA4pakvhSbVP+2MukzMs6yinJouSH5lwp526MU3ZRMlKVV2FWWVQfVMtUx6jUadzRzd5zXOqsdrnNEN0CPpO9t4GXoZeRr7G8SvPO4afSuc2bZ5rd2V1o07PlkOWWNshGwVbOzsac4JO0t2ffWccaZe7/2AQ+X5INVrt+JXG4m7kc9ir25fSx940i1/nCyHiUy4EUQfbDZ4dRQkaPkY4/DmE44niyGfpO20fDTzjEPzrLHBsS1JqYnLSa7pNSlyZ3Pygy68CXLJrv2SkmOaO7la1wFrDeSbmEKz93OLOW/c/2eTLlhRWul68OpJ1xPi2v0XwTXYuuK63c1xTXLvGl9G9JW94HSwddZ/0nsc2dvXL/O1+JBt++Cw10/7Cfwkx3TWbMu82OL5Uvha9w0f8ABE+ACkkAH7AWHQTqoBD0wFEwe5gJLglXDZuBScBd4Fvw9AovYjUhANCNZkHuQ6chuOgKdN90dugV6A/pz9B9RoqjDqBcMOAY3hkpGZkZnxhImJNMBpvvMTMxE5mo0J5qCbmaRYklkGcOYY0qxLFgytp1Vl/U6G4YthK0bZ4y7y05gT2Vf5Qji+MHpwzmCJ+GnuYK55riP8cB4Enh5eQv51PnqtthvGeaPEOARqBC0EhwhxAiJCdVv9RfmEn4qQhRFiz4T8xcXFH8nESupL7kiVbUtTFpLel6mWvasnK28kPyEQvX2FEUfJUNlAeUllQ/QQn9ZPVLDU9Nhh5aWnLaQDk4XqYfQm9afMpgwHDUaNJ4xGd35cxfcjMOca7eChfaePZbWVr7WR22ybe/Zvbbvdljex+Eo52ThHLD/4oFalyFXxkPyRC+3LPdqj0kvSW93n0zfD358/nbkbMr3QImgkOCGEP4jQaGNx4SPJ4WNnNwXXh+pEpUfjTuddAZ3NiOOOz47UTnpTbJ7yq+0xHTVjG8XrmT5XLK7IplDlzt27Xl++Y2Lt2KKiLedS43vqpUplcs+kHkoUSX6RKJa/pnOi521Vq9IDQFNKc05LY9be9rW2gU7tbrcPsX3POob+8LzTX8oYvjm6Ndx3kmP6Suzg/MSi/5LFasw2vzT0/in0k9l/90m+5vcr1OPxELMU4nP2uB9FeXMIEgj3ZbG+SUa5fM0xt0gvr/Q6A6iso3D08hupHGd/JtpC57ZDZ4tqTRvsGy1TvIGxyEQxX8x/IfgDX7fUen9w+4fcv+Z2/9GrWc/ldv/pDak6z+5jSr8m9yE7X/IzaDfZPey+ia919M2+S3GbRJcVrnJcNWpdYqfdW1y3DDcFPf6ZXMGleV3/FSa2+90xHTWd4VARPv2GFKZHjgD/YMs/jY32AaR7TtiOioxhvphP14wETPpObVzWmqGeWZ89u3PsrmMedv5sYXoRf1f4r8Gl8KXuZevrLCtRK/Mr15fi6fO/3q9RKspmAzIJHIgwdzAkHb4/3vxIx2GajJao5akaHd/Oxtoj4M2Ce9gU1otCGUNYADIgARtgYAAzKEjw41XAiD+PuMN1bS0Wg4aAehZAbjkQE3VC8cjqPu/W7B7KFTnAWBAphwN9Pb0CiboQZWsuzTB1J8oK03YLi+vDv4FzyIFHn6XLvIAAAAJcEhZcwAACxMAAAsTAQCanBgAAAq0SURBVGgF7Vd7WJRVGn/P931z5SJ3UUlNUUlcL0n61PKsKGKQVrgtrJfqsZUYL3ErXNa2renJLooCIVZqqeUllxVBF0Pcp822Hq0ssU3xWgGmKaYoMMzMdzt7zgdnmGFG7K/9a94/5pz38nu/8/3e95zvDIBf/Az4GfAz4GfAz4CfAT8DPhhAPmwepieLi8eHXDqTgxCSqUOHHbVry3Yc8AjqR1mwZs3EiMtnlzO8XrBXFxfvPNQPxMu1+MW/ZgS1/zwTI07lkaysWzc8FyGr6hV4G8Oi0tKQwEvn83lFHEhDdMjpWFuyveA24V7mxSUlYcZLZwsEVYnoxjs615bsWOEV2I/h1NMwcVQ7LAcEMpCVIwFqdLugvh+I5hLuFCBBFDjsDVk0jlRTRTpH450w7n4JIgn+hIYHwArwzhPu/l8zl504qsvuyKaxAie1Zmaeyvs1uN6YEHB22VOQ4nxAs+nsJ3t9d561QzAguyNVUqQELVqwH78zyjPCHEDIa4UeHkAxSPCtZ4RvjfNlzsrLGl9iXRxGffLExGbMghBWDbzcRtVsq9WctWT+DIxp3TzF8qxlQql1UQi1SqMmNjE8CVT0OuUmtVO8Zfm8ZF/4jKI3BuQszZhWWWnV01gAsUkbyI+A4Hp8fLyWstBqjbJY5nWTxgJ6xqdWrbqrMPeP46xWK2cbMqWLPLqThRg59Uc2tzxnGVtQkKG9K7PR8UmrdWjB8vnxGGMEMfd3AlZtzG8QlCY2X5K7eFx+frr2rszGRud8GI/zQfPdDIEmtuURAtKooPGAs8HcmQ4+eaB5fBZIkZzVF1rt9XnPZLyedG6dIrInApLiB/Pf5FpfSMVXzh/iANVWb5g7yuWmE1Iw0W6vOXdVOlSQk/lKWus+UeoJIMecY3wEPpHz4vOz8ZUL/8IyOlBV/lisB54oBtvZ34tYqP3kk7N1q59fmIw7Wm8pPUEmPfflS1YrXpKf/bf21h/qdTxau2/1I0F9c0hXftjeKfJ1V6+e2rfw4oaBTrX3NeKi0ZZl1r/EZi1ZWANdtrowI/doX7zyS8tuuwJ1y5Zm7p93pTTKiXvx4wahbcutK0cT/D+xJH400CjM7oun+i077BOb4RB+DFZxnSC19wSRpnSSg6UBZ8FD9mtwiMdwAPLAiwca7tX9C7ZUjQj8sur7nlyg44WLkiLfxXIjpIgY8wbmDzI4Nq0r32th+uPvVsaaj9WcZ7peEFpEWR7arZOlASb14np2BkCg3lFRsn5vDosH0rFP52WvQU5bIbPpOZJD7c7BkXNKJs9nnSVwys1Ao5yyprTqaxa/YGdtaOB/Pmwmz9IKxyGO7CCsqhgH0hgeSR0y1gWxlzfpxDNl6/eMJZ2t7czF7x4M44598DPxa+tEgGwcR9peVclB5QMvOE+XVVTFMzyNaVkBI6POwQU6p0J2/kUZg4tH8iCJ5ad+gw42oD3wDJ27C3tPlw19XbvdpZCJW3GoGbkXhxrskn5y5RsZA+icCm6o29U96/7tLQ7VySu4FYdanIp+8o7ytGA6p5KTm6uXRce8bq37lxWHaqpbcaguq3yIkecn0TkT9MXeP2DAZqarWDWz4lCb4lYcqtslXVx1Se9J4GionE+KIlAfFZIrgBWH6l54WX9PVbHnSSB9Dx/SWCZuxaEmSoSrSalBVGAyziEfuz7iWgSzh4UE7pfaVUGVpDEkj44sz0R8JF+vkMV3kUXTIxUHB5j/PTiS3ku6heBrpHYMqiiO/jX4ILPp8JDoMBc+PDxcUWxirdzZlQqqGk6yGsljyDq8hHwTkMpxuDUiNOiyuzcsJOCM3A51ilO8j+xIWijS+bhvM0qEJSfZ09hk0H8RHGrSbqk0T/iAwEbZhg7KTmcCwdP37x+v1x0JjxzATnKaAkYEQTXuoA0Oo8luoev34pHYyM7WuMN6IxyG8F4eiV0TD+KZkY7047hk5Z8zlbbL2zjARrr3WfDQEL4oNTGxYvIci919W/fFLy0qeFxpb92MMBg88dxzqYmx70yeY70tnuYq/qA+4PSxv+8RREcq1d1zjIo0pkxPn/ppQoLFgxga5y7Pbz846MrRnQ2ComhXbOYzCejjqaOGLZyfp7/W35Xd+t6+wS1f72kgV+wohqWjSQf1vx097ImMHMP1/vCkAVD747BQ1wmbSYd48KgLhkJuJLwNVrATbunreQnvZekxNEcNn8g3f7ufHMu08q7i0Hm7A0+79NP5phmpjQ1U9yU/RY+YhFr+W02KQ3aAF376pYuXLsxIO93vVXP4qIhCvutWFoFr3c8ahObrEsUJF880Vx4+epJ2oU95qrwy0tlQVc+pysi+AbIKw2y21iHJaW9V9fUxPats18DO72o/5lR5OLOxkeDv7uhsHZyc9vZeZvM15nfAJNNVqCZr9+IRi5DEt8H36NTtr9w+C/SnoqJEXcuJOlJU7UzkObhpNBlelSRlRg9JvEPhEh5Jijv+yZHGpr4Le3rlymlc0/F60hPaR5lD+IbRbFolSXIywztVPmFuyuivPv789MW++CQrFlISbhWh9tbXiE8rjklQP1eNoeVYcsyi8bKKojEoUzNnjqmv/+y06wrNcqV9hA0hX5XtRLLzd8wWYlTec2JDGzmdRxAb1yXz42cl3qNfnHbfkX2HT7iOOBq/aOuPRqHx/d0gO+/vxaubHVhnI/hh3XhhwqzEOC5zyrCjdV9dUFgcGzuegGmGq3CQ6D2XFbihN8EqWQYXD6oCCa9MgWMvfwstDOc+ai/vbtDmki2M7Eyt86muqvbLY+N0q23G0N0sVlXVUKxTfG5L2X4rkmxtPYvFYG8eGycU202hlcxGPrrhcvd3jJlcYxJ5pCzZJ7gM5GiWwbHpOhi2yoKhkdkdknpPVIzTwXT30W4i33JFoUT2iAjJMW15HbrgD5iFjjZZGfKbQXovcpuGD5cVVRnaGyvCuJgbBZ0GT3yXog4yjGt1fUN748llwgkRRO/lAZMiBEPxdR24eCAnDP3y+MTTXD4LtKWkYj8/csJUQNxJBKpzXpx9tsWySeo0BGSriPtF4KFhcBhKffH16k/dF8TmW8ve2mMYM3kKuas0UnxmrDiX4jkTLFMQd13Hw/GYCJRC8EcZxn20WpG69c2N89CAMIsK6Kaew1/MGqrW/KO09IYKWCM40IC3DAsWYxcuO9DmjmXzw9ORzN0dPwPxukrSRVJ0AM5+cMUh266y8u0SL5wlu/pKdIj6TPmGqkUJZG0Mx0aKN4+5Nwl4YS/FDwnEi56k+JL1W2Red47cun8eHKoufbOiKtti+cYLT/OEVEKVIQamEvwpojr1sZCONoF0awAsFckfbsTBcV0QpKAdcIQ9t+/os0A06J0VK06KQcEpPK+kTy842ERt95rNNs5gnjM1RiDk7v6M2m4nFc8++50cHKrhkws/aqZxIwyRbXpz0JwHxsHMF17dfdtFsZzvrF6/WeT5h3lOzn+0aD+5ExGJnLCR57i5D08yLC9a02NjgD7jpsLCX24kbVtACEpvk7gazY0Q5kJHPxhk5Ge//MaHb/WBeKjrc3OvtSW9n0nxrQ61luHVqLsJHh566fXdGz0APhRUAd9dM8EsshXS0TrQeBh7F9zEBpijj4aZ/RXHRzq/yc+AnwE/A34G/Az83xj4H4iTXMrVi2PuAAAAAElFTkSuQmCCCg==) no-repeat 105px; | ||
2308 | } | 4381 | } |
2309 | 4382 | .modal-footer { | |
2310 | .row > div.fieldValue.password { | 4383 | padding: 14px 15px 15px; |
2311 | color: rgba(255,255,255,0.5); | 4384 | margin-bottom: 0; |
2312 | //background: url(./images/old/iPhone/password_background.png) no-repeat 106px; | 4385 | text-align: right; |
2313 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAGgAAAAWCAYAAAAsNNkQAAAM1GlDQ1BJQ0MgUHJvZmlsZQAAeAGtl3k8VO8ex59ZGMuYYTC2MLLLmp3sWyLZFUoau2HGklTKkpQ1SyhaUFSISqRUtJAlSQpRtoos2bNku2cG1b2v1+/ef+7zep05n/Oc85wzM8+83898AcBKu1IoJDgAwM8/ONDaRJ+wd58jAfURwAAC6lQGsq7EIIqepaU5dPQPba4duhpqbTLUew2S01TBCqXR4HGq6xejAy3/MGizGxMIPRAAmDTUweG5nnWp+dB6tqXmI8GUYOgaL2omerm6QTkMytKBttYGUL4JZYzneq6k5kPruZ6aQ4ie1LGdANDj/N28/QFAjUFZ2809iAidpj7XzS2I6AflZChb+PmRoftj+qAsQaQEQmOxDFAWoX4v0B5qTnEAKPEAwGD2p+9IOgDludCQ3X/6hB8AgHcFIC/xT9+MNe27guFbgjwUt9NuB0PrA0DXs7Y2Iwa9t1QAVlLW1pby1tZWrgGA+ARADYl4ODCEdi30QWDNAPyv4/XPvDECAU0ONMEwEVgB/BgiDBlGd5I+AhXFcIrRkLGW6QzzWXQsSwKmgtWLLQWXwp7KcZ4zHZ/Olcldy0vmy96SzX9ZoJ5wWChv6zXhFtHjYgXirZInpYq2tctEyd6W61I4s/2eYq9ygkqFar96ksYjzUGtNO2nOiN6GfrPDcaNsozrTKZNr+5qNJvbnWfxZs9by7dWrdbLtoV2H+zbHTr2djoine46f9r/+UCPS+/BvkNo4kO3r+7fPAY9h7y+ew/7cpKe+f3wHydPUCYDpgKng2aDZw//DJk7Mh+6cHTx2K/jy2HLJ1bCJSM+RMFOwaMRp5ExdGfoz6JiGeIY45kSmBPRSSznMMnYFNZUtjTcefZ0jgzOTPwFrovcWTzZvJf4Lm+5wn9VIEcwl5AndG3rdeF8kQLRG+I3xW9JFEoWSRWNFpNuS5fIlMrdkb+rcE+hbPt9pXLlCpWKuQchlaoP1R5pVGk+3vFkx1Otp6vV4TU6z3Sf673Qf2lQi6yNrjN6ZVxv0mDaaNrE1BT/2qzZ/I1FC6bl3FvLVqt31m24ttT3Nh9s2+068B2ZnQ4f93Y5dvN2Z39y/uzcs79XoPdqn0v/wQGhgbwvh74Sv7kNig4WDHl89xz2GpEcKRz1GfP9QRqXGS+Z8J8kT1GmFabvzQTOBv0MnlOeq5gPWQhdPPrr6JLGUtXy8ZWwVa3Vp2tr0PwLwzHwSUQTsogujT4M5clgy2jApMQsjhZn4cZwYblZudk4cWLsEhxqnOb4A1xB3Ek8pbxNfMP87AIqgp6EC0KvhGEiWqIBYnfFJyQlpEjbqmQQsnpyKfL92yUVY5Q6VKRUKWq1GlyaoTtea+N1yLrP9UUMjhu2GguYhO58YrpopmDuvjvdotUSY2ViHWqTb/venslBd2/AvsuOdU4T+wUP7HE5djDPtfbQsBunu47HXs+TXjneNT6ffRf92P23kQ0pXgFhgclBecHlh+tDuo+MhM4dQxxnCyOckD6pHK4bYRa5J8rp1MFo99OkmOAzgWcjYiPiTsXHJqQmxidlnbuYnJmSknopLfV8RvqFjJuZNy6UXLyZVZRdeunx5cdXaq++zmnNbctru9Z2vTv/a8HQjYGb325NFE4VTRSP354umSgdvTN2d+hef9nA/a7y1oqGBzWVDx6WPrpUlfo44onfU6dqs5odz6Se454vvuh72Vh7vy7tVWC9TYNKI1/jWlPX6/vNcW8cW4RbBt+WtZ54Z9SGafv8PueDT7ti+0pHc2fax/1dkl0z3Y8+RX026+Ho6em91RfUrzmAHGj8cv7rgW/i38YGHw1Fft81zDn8eeT6KGlMeWz1R8N46oTTpMjk2FTZdNiMySxutvNn/hx5Xn0BsfBqMeWX05Lw0o/lipWIVdM1PHX+wSlYKMS/JuIR8gSdDl01fSTqNIMxQy1jDOSAOPQudBNLIiYRm8S6h7WFLRmXyp7GkcZpy/ken8GVwX2BJ4s3G7LBJX5n/s8CVwVzCLlCuVtzha+JXBfNh5xwQ+Km5C0pb6mRbYXSxTK3ZUvkSuXvKNyF3FCmdJ+KjGqFWqjagvojyBBVOx5rPdE+qb2qU61bo/cM8sQLw2gjpFEt5IpXO+tNGyBbxJujzV/vboaM0WKZbMUKOeOdTZvte7t2+wwHPNUb+z46djllO/PR3NHr0newzzX3kNChAeIXmj8KPMXWDeIz4ltEkiaN/ZtFZn5bpPKoGs0jS1SPnFwNX4sEUfDfJkFRTRLbELcrnjkBTXMJNpk1he23S/CZXBe4N1yy5W+X5A1cI9JsInZDbNMmxdK3ZUpk/3KJYrlShfIDVZpJ1CGTaEIm0a7W/ssjRnXGNIvshCxi9jrkzdYWC8gflu+s2k58kGq373DojOqS63b8FNOj2BvbrzyQ8NVtUHMoZdh71OcHaYI8FTfrOHduMX7Fmjr/62sfdU2gVwEgYxsA9lkA2OQBEANlcRdorYLWUUsWAGzVAZxOAMC1KAC2SwtsrB/QusUK+IEs0Af7QBBIBnfAAowAM4OFwm7C3sCG4Fi4CTwS/gS+jNBCRCLqEMtIIeQ+ZAHyJ50x3Wm6UroJehP6XPpBFCfKGfWEAcWgzhDNMMqowUhmrGGSYYpgqmTGMEcyf0RzoP3R31mMWE6x9GNcMc+xCKwHdozVijWDdYUtlm0ap4HLZ1dlz2ef4HDhmOf05qzAb8O/4vLgRnEX8ojyHOGZ5b3MZ8I3syWHX4Q/TAAmUC7oQxAidAmd37p1a4QwVrhFJEXUToxXbEC8SMJA4pakvhSbVP+2MukzMs6yinJouSH5lwp526MU3ZRMlKVV2FWWVQfVMtUx6jUadzRzd5zXOqsdrnNEN0CPpO9t4GXoZeRr7G8SvPO4afSuc2bZ5rd2V1o07PlkOWWNshGwVbOzsac4JO0t2ffWccaZe7/2AQ+X5INVrt+JXG4m7kc9ir25fSx940i1/nCyHiUy4EUQfbDZ4dRQkaPkY4/DmE44niyGfpO20fDTzjEPzrLHBsS1JqYnLSa7pNSlyZ3Pygy68CXLJrv2SkmOaO7la1wFrDeSbmEKz93OLOW/c/2eTLlhRWul68OpJ1xPi2v0XwTXYuuK63c1xTXLvGl9G9JW94HSwddZ/0nsc2dvXL/O1+JBt++Cw10/7Cfwkx3TWbMu82OL5Uvha9w0f8ABE+ACkkAH7AWHQTqoBD0wFEwe5gJLglXDZuBScBd4Fvw9AovYjUhANCNZkHuQ6chuOgKdN90dugV6A/pz9B9RoqjDqBcMOAY3hkpGZkZnxhImJNMBpvvMTMxE5mo0J5qCbmaRYklkGcOYY0qxLFgytp1Vl/U6G4YthK0bZ4y7y05gT2Vf5Qji+MHpwzmCJ+GnuYK55riP8cB4Enh5eQv51PnqtthvGeaPEOARqBC0EhwhxAiJCdVv9RfmEn4qQhRFiz4T8xcXFH8nESupL7kiVbUtTFpLel6mWvasnK28kPyEQvX2FEUfJUNlAeUllQ/QQn9ZPVLDU9Nhh5aWnLaQDk4XqYfQm9afMpgwHDUaNJ4xGd35cxfcjMOca7eChfaePZbWVr7WR22ybe/Zvbbvdljex+Eo52ThHLD/4oFalyFXxkPyRC+3LPdqj0kvSW93n0zfD358/nbkbMr3QImgkOCGEP4jQaGNx4SPJ4WNnNwXXh+pEpUfjTuddAZ3NiOOOz47UTnpTbJ7yq+0xHTVjG8XrmT5XLK7IplDlzt27Xl++Y2Lt2KKiLedS43vqpUplcs+kHkoUSX6RKJa/pnOi521Vq9IDQFNKc05LY9be9rW2gU7tbrcPsX3POob+8LzTX8oYvjm6Ndx3kmP6Suzg/MSi/5LFasw2vzT0/in0k9l/90m+5vcr1OPxELMU4nP2uB9FeXMIEgj3ZbG+SUa5fM0xt0gvr/Q6A6iso3D08hupHGd/JtpC57ZDZ4tqTRvsGy1TvIGxyEQxX8x/IfgDX7fUen9w+4fcv+Z2/9GrWc/ldv/pDak6z+5jSr8m9yE7X/IzaDfZPey+ia919M2+S3GbRJcVrnJcNWpdYqfdW1y3DDcFPf6ZXMGleV3/FSa2+90xHTWd4VARPv2GFKZHjgD/YMs/jY32AaR7TtiOioxhvphP14wETPpObVzWmqGeWZ89u3PsrmMedv5sYXoRf1f4r8Gl8KXuZevrLCtRK/Mr15fi6fO/3q9RKspmAzIJHIgwdzAkHb4/3vxIx2GajJao5akaHd/Oxtoj4M2Ce9gU1otCGUNYADIgARtgYAAzKEjw41XAiD+PuMN1bS0Wg4aAehZAbjkQE3VC8cjqPu/W7B7KFTnAWBAphwN9Pb0CiboQZWsuzTB1J8oK03YLi+vDv4FzyIFHn6XLvIAAAAJcEhZcwAACxMAAAsTAQCanBgAAAq0SURBVGgF7Vd7WJRVGn/P931z5SJ3UUlNUUlcL0n61PKsKGKQVrgtrJfqsZUYL3ErXNa2renJLooCIVZqqeUllxVBF0Pcp822Hq0ssU3xWgGmKaYoMMzMdzt7zgdnmGFG7K/9a94/5pz38nu/8/3e95zvDIBf/Az4GfAz4GfAz4CfAT8DPhhAPmwepieLi8eHXDqTgxCSqUOHHbVry3Yc8AjqR1mwZs3EiMtnlzO8XrBXFxfvPNQPxMu1+MW/ZgS1/zwTI07lkaysWzc8FyGr6hV4G8Oi0tKQwEvn83lFHEhDdMjpWFuyveA24V7mxSUlYcZLZwsEVYnoxjs615bsWOEV2I/h1NMwcVQ7LAcEMpCVIwFqdLugvh+I5hLuFCBBFDjsDVk0jlRTRTpH450w7n4JIgn+hIYHwArwzhPu/l8zl504qsvuyKaxAie1Zmaeyvs1uN6YEHB22VOQ4nxAs+nsJ3t9d561QzAguyNVUqQELVqwH78zyjPCHEDIa4UeHkAxSPCtZ4RvjfNlzsrLGl9iXRxGffLExGbMghBWDbzcRtVsq9WctWT+DIxp3TzF8qxlQql1UQi1SqMmNjE8CVT0OuUmtVO8Zfm8ZF/4jKI3BuQszZhWWWnV01gAsUkbyI+A4Hp8fLyWstBqjbJY5nWTxgJ6xqdWrbqrMPeP46xWK2cbMqWLPLqThRg59Uc2tzxnGVtQkKG9K7PR8UmrdWjB8vnxGGMEMfd3AlZtzG8QlCY2X5K7eFx+frr2rszGRud8GI/zQfPdDIEmtuURAtKooPGAs8HcmQ4+eaB5fBZIkZzVF1rt9XnPZLyedG6dIrInApLiB/Pf5FpfSMVXzh/iANVWb5g7yuWmE1Iw0W6vOXdVOlSQk/lKWus+UeoJIMecY3wEPpHz4vOz8ZUL/8IyOlBV/lisB54oBtvZ34tYqP3kk7N1q59fmIw7Wm8pPUEmPfflS1YrXpKf/bf21h/qdTxau2/1I0F9c0hXftjeKfJ1V6+e2rfw4oaBTrX3NeKi0ZZl1r/EZi1ZWANdtrowI/doX7zyS8tuuwJ1y5Zm7p93pTTKiXvx4wahbcutK0cT/D+xJH400CjM7oun+i077BOb4RB+DFZxnSC19wSRpnSSg6UBZ8FD9mtwiMdwAPLAiwca7tX9C7ZUjQj8sur7nlyg44WLkiLfxXIjpIgY8wbmDzI4Nq0r32th+uPvVsaaj9WcZ7peEFpEWR7arZOlASb14np2BkCg3lFRsn5vDosH0rFP52WvQU5bIbPpOZJD7c7BkXNKJs9nnSVwys1Ao5yyprTqaxa/YGdtaOB/Pmwmz9IKxyGO7CCsqhgH0hgeSR0y1gWxlzfpxDNl6/eMJZ2t7czF7x4M44598DPxa+tEgGwcR9peVclB5QMvOE+XVVTFMzyNaVkBI6POwQU6p0J2/kUZg4tH8iCJ5ad+gw42oD3wDJ27C3tPlw19XbvdpZCJW3GoGbkXhxrskn5y5RsZA+icCm6o29U96/7tLQ7VySu4FYdanIp+8o7ytGA6p5KTm6uXRce8bq37lxWHaqpbcaguq3yIkecn0TkT9MXeP2DAZqarWDWz4lCb4lYcqtslXVx1Se9J4GionE+KIlAfFZIrgBWH6l54WX9PVbHnSSB9Dx/SWCZuxaEmSoSrSalBVGAyziEfuz7iWgSzh4UE7pfaVUGVpDEkj44sz0R8JF+vkMV3kUXTIxUHB5j/PTiS3ku6heBrpHYMqiiO/jX4ILPp8JDoMBc+PDxcUWxirdzZlQqqGk6yGsljyDq8hHwTkMpxuDUiNOiyuzcsJOCM3A51ilO8j+xIWijS+bhvM0qEJSfZ09hk0H8RHGrSbqk0T/iAwEbZhg7KTmcCwdP37x+v1x0JjxzATnKaAkYEQTXuoA0Oo8luoev34pHYyM7WuMN6IxyG8F4eiV0TD+KZkY7047hk5Z8zlbbL2zjARrr3WfDQEL4oNTGxYvIci919W/fFLy0qeFxpb92MMBg88dxzqYmx70yeY70tnuYq/qA+4PSxv+8RREcq1d1zjIo0pkxPn/ppQoLFgxga5y7Pbz846MrRnQ2ComhXbOYzCejjqaOGLZyfp7/W35Xd+t6+wS1f72kgV+wohqWjSQf1vx097ImMHMP1/vCkAVD747BQ1wmbSYd48KgLhkJuJLwNVrATbunreQnvZekxNEcNn8g3f7ufHMu08q7i0Hm7A0+79NP5phmpjQ1U9yU/RY+YhFr+W02KQ3aAF376pYuXLsxIO93vVXP4qIhCvutWFoFr3c8ahObrEsUJF880Vx4+epJ2oU95qrwy0tlQVc+pysi+AbIKw2y21iHJaW9V9fUxPats18DO72o/5lR5OLOxkeDv7uhsHZyc9vZeZvM15nfAJNNVqCZr9+IRi5DEt8H36NTtr9w+C/SnoqJEXcuJOlJU7UzkObhpNBlelSRlRg9JvEPhEh5Jijv+yZHGpr4Le3rlymlc0/F60hPaR5lD+IbRbFolSXIywztVPmFuyuivPv789MW++CQrFlISbhWh9tbXiE8rjklQP1eNoeVYcsyi8bKKojEoUzNnjqmv/+y06wrNcqV9hA0hX5XtRLLzd8wWYlTec2JDGzmdRxAb1yXz42cl3qNfnHbfkX2HT7iOOBq/aOuPRqHx/d0gO+/vxaubHVhnI/hh3XhhwqzEOC5zyrCjdV9dUFgcGzuegGmGq3CQ6D2XFbihN8EqWQYXD6oCCa9MgWMvfwstDOc+ai/vbtDmki2M7Eyt86muqvbLY+N0q23G0N0sVlXVUKxTfG5L2X4rkmxtPYvFYG8eGycU202hlcxGPrrhcvd3jJlcYxJ5pCzZJ7gM5GiWwbHpOhi2yoKhkdkdknpPVIzTwXT30W4i33JFoUT2iAjJMW15HbrgD5iFjjZZGfKbQXovcpuGD5cVVRnaGyvCuJgbBZ0GT3yXog4yjGt1fUN748llwgkRRO/lAZMiBEPxdR24eCAnDP3y+MTTXD4LtKWkYj8/csJUQNxJBKpzXpx9tsWySeo0BGSriPtF4KFhcBhKffH16k/dF8TmW8ve2mMYM3kKuas0UnxmrDiX4jkTLFMQd13Hw/GYCJRC8EcZxn20WpG69c2N89CAMIsK6Kaew1/MGqrW/KO09IYKWCM40IC3DAsWYxcuO9DmjmXzw9ORzN0dPwPxukrSRVJ0AM5+cMUh266y8u0SL5wlu/pKdIj6TPmGqkUJZG0Mx0aKN4+5Nwl4YS/FDwnEi56k+JL1W2Red47cun8eHKoufbOiKtti+cYLT/OEVEKVIQamEvwpojr1sZCONoF0awAsFckfbsTBcV0QpKAdcIQ9t+/os0A06J0VK06KQcEpPK+kTy842ERt95rNNs5gnjM1RiDk7v6M2m4nFc8++50cHKrhkws/aqZxIwyRbXpz0JwHxsHMF17dfdtFsZzvrF6/WeT5h3lOzn+0aD+5ExGJnLCR57i5D08yLC9a02NjgD7jpsLCX24kbVtACEpvk7gazY0Q5kJHPxhk5Ge//MaHb/WBeKjrc3OvtSW9n0nxrQ61luHVqLsJHh566fXdGz0APhRUAd9dM8EsshXS0TrQeBh7F9zEBpijj4aZ/RXHRzq/yc+AnwE/A34G/Az83xj4H4iTXMrVi2PuAAAAAElFTkSuQmCCCg==) no-repeat 106px; | 4386 | background-color: #f5f5f5; |
4387 | border-top: 1px solid #ddd; | ||
4388 | -webkit-border-radius: 0 0 6px 6px; | ||
4389 | -moz-border-radius: 0 0 6px 6px; | ||
4390 | border-radius: 0 0 6px 6px; | ||
4391 | -webkit-box-shadow: inset 0 1px 0 #ffffff; | ||
4392 | -moz-box-shadow: inset 0 1px 0 #ffffff; | ||
4393 | box-shadow: inset 0 1px 0 #ffffff; | ||
4394 | *zoom: 1; | ||
4395 | } | ||
4396 | .modal-footer:before, | ||
4397 | .modal-footer:after { | ||
4398 | display: table; | ||
4399 | content: ""; | ||
4400 | line-height: 0; | ||
2314 | } | 4401 | } |
2315 | 4402 | .modal-footer:after { | |
2316 | .row > div.fieldValue.password.clear { | 4403 | clear: both; |
2317 | color: #666a60; | ||
2318 | background: none; | ||
2319 | } | 4404 | } |
2320 | 4405 | .modal-footer .btn + .btn { | |
2321 | .row > input[type|=radio], .row > input[type|=checkbox] { | 4406 | margin-left: 5px; |
2322 | margin: 7px 7px 0 0; | 4407 | margin-bottom: 0; |
2323 | height: 25px; | ||
2324 | width: 25px; | ||
2325 | } | 4408 | } |
2326 | 4409 | .modal-footer .btn-group .btn + .btn { | |
2327 | 4410 | margin-left: -1px; | |
2328 | .row > label { | 4411 | } |
4412 | .modal-footer .btn-block + .btn-block { | ||
4413 | margin-left: 0; | ||
4414 | } | ||
4415 | .tooltip { | ||
2329 | position: absolute; | 4416 | position: absolute; |
2330 | margin: 0 0 0 14px; | 4417 | z-index: 1030; |
2331 | line-height: 42px; | 4418 | display: block; |
2332 | font-weight: bold; | 4419 | visibility: visible; |
2333 | max-width: 92px; | 4420 | padding: 5px; |
2334 | overflow: hidden; | 4421 | font-size: 11px; |
2335 | white-space: nowrap; | 4422 | opacity: 0; |
4423 | filter: alpha(opacity=0); | ||
2336 | } | 4424 | } |
2337 | 4425 | .tooltip.in { | |
2338 | body[orientation="landscape"] .row > label { | 4426 | opacity: 0.8; |
2339 | max-width: 150px; | 4427 | filter: alpha(opacity=80); |
2340 | } | 4428 | } |
2341 | 4429 | .tooltip.top { | |
2342 | body[orientation="landscape"] .row > input:not(input[type|=radio]):not(input[type|=checkbox]) { | 4430 | margin-top: -3px; |
2343 | padding-left: 140px; | ||
2344 | } | 4431 | } |
2345 | 4432 | .tooltip.right { | |
2346 | .row > img.favicon { | 4433 | margin-left: 3px; |
4434 | } | ||
4435 | .tooltip.bottom { | ||
4436 | margin-top: 3px; | ||
4437 | } | ||
4438 | .tooltip.left { | ||
4439 | margin-left: -3px; | ||
4440 | } | ||
4441 | .tooltip-inner { | ||
4442 | max-width: 200px; | ||
4443 | padding: 3px 8px; | ||
4444 | color: #ffffff; | ||
4445 | text-align: center; | ||
4446 | text-decoration: none; | ||
4447 | background-color: #000000; | ||
4448 | -webkit-border-radius: 4px; | ||
4449 | -moz-border-radius: 4px; | ||
4450 | border-radius: 4px; | ||
4451 | } | ||
4452 | .tooltip-arrow { | ||
2347 | position: absolute; | 4453 | position: absolute; |
2348 | width: 20px; | 4454 | width: 0; |
2349 | height: 20px; | 4455 | height: 0; |
2350 | top: 12px; | 4456 | border-color: transparent; |
2351 | left: 11px; | 4457 | border-style: solid; |
2352 | } | 4458 | } |
2353 | 4459 | .tooltip.top .tooltip-arrow { | |
2354 | .row > span { | 4460 | bottom: 0; |
2355 | padding: 8px 13px; | 4461 | left: 50%; |
4462 | margin-left: -5px; | ||
4463 | border-width: 5px 5px 0; | ||
4464 | border-top-color: #000000; | ||
4465 | } | ||
4466 | .tooltip.right .tooltip-arrow { | ||
4467 | top: 50%; | ||
4468 | left: 0; | ||
4469 | margin-top: -5px; | ||
4470 | border-width: 5px 5px 5px 0; | ||
4471 | border-right-color: #000000; | ||
4472 | } | ||
4473 | .tooltip.left .tooltip-arrow { | ||
4474 | top: 50%; | ||
4475 | right: 0; | ||
4476 | margin-top: -5px; | ||
4477 | border-width: 5px 0 5px 5px; | ||
4478 | border-left-color: #000000; | ||
4479 | } | ||
4480 | .tooltip.bottom .tooltip-arrow { | ||
4481 | top: 0; | ||
4482 | left: 50%; | ||
4483 | margin-left: -5px; | ||
4484 | border-width: 0 5px 5px; | ||
4485 | border-bottom-color: #000000; | ||
4486 | } | ||
4487 | .popover { | ||
4488 | position: absolute; | ||
4489 | top: 0; | ||
4490 | left: 0; | ||
4491 | z-index: 1010; | ||
4492 | display: none; | ||
4493 | width: 236px; | ||
4494 | padding: 1px; | ||
2356 | text-align: left; | 4495 | text-align: left; |
4496 | background-color: #ffffff; | ||
4497 | -webkit-background-clip: padding-box; | ||
4498 | -moz-background-clip: padding; | ||
4499 | background-clip: padding-box; | ||
4500 | border: 1px solid #ccc; | ||
4501 | border: 1px solid rgba(0, 0, 0, 0.2); | ||
4502 | -webkit-border-radius: 6px; | ||
4503 | -moz-border-radius: 6px; | ||
4504 | border-radius: 6px; | ||
4505 | -webkit-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
4506 | -moz-box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
4507 | box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2); | ||
4508 | white-space: normal; | ||
4509 | } | ||
4510 | .popover.top { | ||
4511 | margin-top: -10px; | ||
4512 | } | ||
4513 | .popover.right { | ||
4514 | margin-left: 10px; | ||
4515 | } | ||
4516 | .popover.bottom { | ||
4517 | margin-top: 10px; | ||
4518 | } | ||
4519 | .popover.left { | ||
4520 | margin-left: -10px; | ||
4521 | } | ||
4522 | .popover-title { | ||
4523 | margin: 0; | ||
4524 | padding: 8px 14px; | ||
4525 | font-size: 14px; | ||
4526 | font-weight: normal; | ||
4527 | line-height: 18px; | ||
4528 | background-color: #f7f7f7; | ||
4529 | border-bottom: 1px solid #ebebeb; | ||
4530 | -webkit-border-radius: 5px 5px 0 0; | ||
4531 | -moz-border-radius: 5px 5px 0 0; | ||
4532 | border-radius: 5px 5px 0 0; | ||
4533 | } | ||
4534 | .popover-content { | ||
4535 | padding: 9px 14px; | ||
4536 | } | ||
4537 | .popover .arrow, | ||
4538 | .popover .arrow:after { | ||
4539 | position: absolute; | ||
2357 | display: block; | 4540 | display: block; |
2358 | color: #666a60; | 4541 | width: 0; |
2359 | font-size: 10pt; | 4542 | height: 0; |
4543 | border-color: transparent; | ||
4544 | border-style: solid; | ||
2360 | } | 4545 | } |
2361 | 4546 | .popover .arrow { | |
2362 | .row.notes { | 4547 | border-width: 11px; |
2363 | -webkit-user-select: text; | ||
2364 | } | 4548 | } |
2365 | 4549 | .popover .arrow:after { | |
2366 | // ------------------------------------------- | 4550 | border-width: 10px; |
2367 | 4551 | content: ""; | |
2368 | .whiteButton { | 4552 | } |
4553 | .popover.top .arrow { | ||
4554 | left: 50%; | ||
4555 | margin-left: -11px; | ||
4556 | border-bottom-width: 0; | ||
4557 | border-top-color: #999; | ||
4558 | border-top-color: rgba(0, 0, 0, 0.25); | ||
4559 | bottom: -11px; | ||
4560 | } | ||
4561 | .popover.top .arrow:after { | ||
4562 | bottom: 1px; | ||
4563 | margin-left: -10px; | ||
4564 | border-bottom-width: 0; | ||
4565 | border-top-color: #ffffff; | ||
4566 | } | ||
4567 | .popover.right .arrow { | ||
4568 | top: 50%; | ||
4569 | left: -11px; | ||
4570 | margin-top: -11px; | ||
4571 | border-left-width: 0; | ||
4572 | border-right-color: #999; | ||
4573 | border-right-color: rgba(0, 0, 0, 0.25); | ||
4574 | } | ||
4575 | .popover.right .arrow:after { | ||
4576 | left: 1px; | ||
4577 | bottom: -10px; | ||
4578 | border-left-width: 0; | ||
4579 | border-right-color: #ffffff; | ||
4580 | } | ||
4581 | .popover.bottom .arrow { | ||
4582 | left: 50%; | ||
4583 | margin-left: -11px; | ||
4584 | border-top-width: 0; | ||
4585 | border-bottom-color: #999; | ||
4586 | border-bottom-color: rgba(0, 0, 0, 0.25); | ||
4587 | top: -11px; | ||
4588 | } | ||
4589 | .popover.bottom .arrow:after { | ||
4590 | top: 1px; | ||
4591 | margin-left: -10px; | ||
4592 | border-top-width: 0; | ||
4593 | border-bottom-color: #ffffff; | ||
4594 | } | ||
4595 | .popover.left .arrow { | ||
4596 | top: 50%; | ||
4597 | right: -11px; | ||
4598 | margin-top: -11px; | ||
4599 | border-right-width: 0; | ||
4600 | border-left-color: #999; | ||
4601 | border-left-color: rgba(0, 0, 0, 0.25); | ||
4602 | } | ||
4603 | .popover.left .arrow:after { | ||
4604 | right: 1px; | ||
4605 | border-right-width: 0; | ||
4606 | border-left-color: #ffffff; | ||
4607 | bottom: -10px; | ||
4608 | } | ||
4609 | .thumbnails { | ||
4610 | margin-left: -20px; | ||
4611 | list-style: none; | ||
4612 | *zoom: 1; | ||
4613 | } | ||
4614 | .thumbnails:before, | ||
4615 | .thumbnails:after { | ||
4616 | display: table; | ||
4617 | content: ""; | ||
4618 | line-height: 0; | ||
4619 | } | ||
4620 | .thumbnails:after { | ||
4621 | clear: both; | ||
4622 | } | ||
4623 | .row-fluid .thumbnails { | ||
4624 | margin-left: 0; | ||
4625 | } | ||
4626 | .thumbnails > li { | ||
4627 | float: left; | ||
4628 | margin-bottom: 20px; | ||
4629 | margin-left: 20px; | ||
4630 | } | ||
4631 | .thumbnail { | ||
4632 | display: block; | ||
4633 | padding: 4px; | ||
4634 | line-height: 20px; | ||
4635 | border: 1px solid #ddd; | ||
4636 | -webkit-border-radius: 4px; | ||
4637 | -moz-border-radius: 4px; | ||
4638 | border-radius: 4px; | ||
4639 | -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); | ||
4640 | -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); | ||
4641 | box-shadow: 0 1px 3px rgba(0, 0, 0, 0.055); | ||
4642 | -webkit-transition: all 0.2s ease-in-out; | ||
4643 | -moz-transition: all 0.2s ease-in-out; | ||
4644 | -o-transition: all 0.2s ease-in-out; | ||
4645 | transition: all 0.2s ease-in-out; | ||
4646 | } | ||
4647 | a.thumbnail:hover { | ||
4648 | border-color: #0088cc; | ||
4649 | -webkit-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); | ||
4650 | -moz-box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); | ||
4651 | box-shadow: 0 1px 4px rgba(0, 105, 214, 0.25); | ||
4652 | } | ||
4653 | .thumbnail > img { | ||
4654 | display: block; | ||
4655 | max-width: 100%; | ||
2369 | margin-left: auto; | 4656 | margin-left: auto; |
2370 | margin-right: auto; | 4657 | margin-right: auto; |
2371 | width: 150px; | 4658 | } |
4659 | .thumbnail .caption { | ||
4660 | padding: 9px; | ||
4661 | color: #555555; | ||
4662 | } | ||
4663 | .media, | ||
4664 | .media-body { | ||
4665 | overflow: hidden; | ||
4666 | *overflow: visible; | ||
4667 | zoom: 1; | ||
4668 | } | ||
4669 | .media, | ||
4670 | .media .media { | ||
4671 | margin-top: 15px; | ||
4672 | } | ||
4673 | .media:first-child { | ||
4674 | margin-top: 0; | ||
4675 | } | ||
4676 | .media-object { | ||
2372 | display: block; | 4677 | display: block; |
2373 | border-width: 0 12px; | 4678 | } |
2374 | padding: 10px; | 4679 | .media-heading { |
2375 | text-align: center; | 4680 | margin: 0 0 5px; |
2376 | font-size: 20px; | 4681 | } |
4682 | .media .pull-left { | ||
4683 | margin-right: 10px; | ||
4684 | } | ||
4685 | .media .pull-right { | ||
4686 | margin-left: 10px; | ||
4687 | } | ||
4688 | .media-list { | ||
4689 | margin-left: 0; | ||
4690 | list-style: none; | ||
4691 | } | ||
4692 | .label, | ||
4693 | .badge { | ||
4694 | display: inline-block; | ||
4695 | padding: 2px 4px; | ||
4696 | font-size: 11.844px; | ||
2377 | font-weight: bold; | 4697 | font-weight: bold; |
2378 | text-decoration: inherit; | 4698 | line-height: 14px; |
2379 | color: inherit; | 4699 | color: #ffffff; |
2380 | 4700 | vertical-align: baseline; | |
2381 | //-webkit-border-image: url(./images/old/iPhone/whiteButton.png) 0 12 0 12; | 4701 | white-space: nowrap; |
2382 | -webkit-border-image: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAB0AAAAuCAQAAAB+dNqHAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAdAAAALgChnaVgAAAAAmJLR0QA/4ePzL8AAANhSURBVEjHnZZNaFxVFMd/5747mclMkpmxzYdJtFaJglgFpYSiBAVX7l0UUZGuSkEEu3PtSulCUXFdxYXL7kQQIWD9CsRIqdomGGOaSdJmZjKTeW/eu/e4mKRmrE3n5X83j/ve7/3POfe+d67QrTxP8QLDnMTenkv4kQ2+YZ6d/Y/Kvut+XuZVKtygzVbXC8v0cT+jXORLWneix/mAZZZwKIrSbSAIAcd5kDdZ6kaf4zzfEeLPnHrr+UeOWpMJ9rjYxe7a5ntff/YThhyneJ/Zf9Ep3uEXkhNjX50bHoiStoPE76HWiPQFfcGN+kufLKxheZJ3+aOD5vmIBaLXpz89HSVhzF2Uy2TtGxe/+JksJzjHjgCvMEHz6cnZt7dD5zlAgSlkZy7MrVDgbz43FJimhV46W2vFzutBI3aN8NJZlBbTFAKepZ/o/IszU1Gs95Tz2Uw1nFuiiTE8Rhs9fbIROt/LaISvTaO0mbIM0kTKeefoUSMDCI6SxRCT9d77XlFrCYgQi0PH72vH9CyNMSjO4tGM9do76hXB4y2KU+c8aaR41KJ4SIn6DgqgPq2rggWc+kMEjBUBVDUNKQBiOx+218Pl6tVr+jJhUZx4PYSr4XBSsAKaJH9tpirT7uIoTj3pAna43TJJWtSjYDpxp5bv5OpTb4mOq3IIX0W14ypeUq+rYBH5T9fqbRerWMClrbB4PBgUjZPUuXrUGBW51Yhc71y9LSJi1NgQxVWj3a7aw2gmONSGJtNAxC9v9+56vaoe6aubXEWy4meXe/+VXl42TvqzG4ZFCkRzv/+w3lu436/PX6NNnsUgCctjUUJwnWdGC/ZenpXw47loTRrldu3XwLkSrQmiHbkSP3FkwB4MXpjfWDE3JTfw29ZGAGHjgWJdcDW9XC/0PVS4W47fVj5cuLUmFWlOVlevei8ApVLp8bWclnWU4khpZvTRwaw5VggEINHlZuSv1mcr6zW2ZF22xqLqlWr19uYdGSkeWyn4IY5okX61GBHMrp1HJaYldW4G9Ylm7c/19a4jV6k0+fBmtjbkCwxoDovdQ0lIpEXTNIrbR6OVxWr1joNeJjM+Xhyu2+0+Z6Ocmt17Kj4bBvFgPJTUNlZX4/j/zohAJlMuF4vW5vP7Z3d2kqRW29qKuxr4P1RbNFwZtqq8AAAAAElFTkSuQmCCCg==) 0 12 0 12; | 4702 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); |
2383 | text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0; | 4703 | background-color: #999999; |
2384 | } | 4704 | } |
2385 | 4705 | .label { | |
2386 | // ------------------------------------------- | 4706 | -webkit-border-radius: 3px; |
2387 | 4707 | -moz-border-radius: 3px; | |
2388 | body.iPhone .loginProgressPanel { | 4708 | border-radius: 3px; |
2389 | min-height: 372px; | ||
2390 | |||
2391 | box-sizing: border-box; | ||
2392 | -moz-box-sizing: border-box; | ||
2393 | -webkit-box-sizing: border-box; | ||
2394 | padding: 10px; | ||
2395 | //background: #c8c8c8 url(./images/old/iPhone/pinstripes.png); | ||
2396 | background: #c8c8c8 url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAIAAACdaSOZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpiPHrmCgMC/GNjYwNSAAEGADdNA3dnzPlQAAAAAElFTkSuQmCCCg==); | ||
2397 | } | 4709 | } |
2398 | 4710 | .badge { | |
2399 | body.iPhone .loadingBar { | 4711 | padding-left: 9px; |
2400 | margin-left: auto; | 4712 | padding-right: 9px; |
2401 | margin-right: auto; | 4713 | -webkit-border-radius: 9px; |
2402 | margin-top: 60px; | 4714 | -moz-border-radius: 9px; |
4715 | border-radius: 9px; | ||
2403 | } | 4716 | } |
2404 | 4717 | .label:empty, | |
2405 | div.loadingBar { | 4718 | .badge:empty { |
2406 | height: 22px; | 4719 | display: none; |
2407 | width: 214px; | ||
2408 | //background: url(./images/old/loading/loadingBar.gif) no-repeat center; | ||
2409 | background: url(data:image/gif;charset=utf-8;base64,R0lGODlh1gAWAMQAAP////f39/f37+/v7+/v5ubm5ubm3t7e3t7e1tbWzs7Ozs7Oxc7OvcXFvcXFtb29tb29rbW1rbW1pa2tpa2tnKWlnKWllP///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFBwAXACwAAAAA1gAWAAAF/+AljkQjUVWqrmzrvnAsz3Rt33iur5S0DKPgaOCgWHbIpHLJbDpjx0ZAKDoYKz4CYMsFDBLgsHhc6Jq737E6XD6f02t1242Or+f0LdzOztf5Ynh5e2ALEEYWFAZCBhUWEwiDgIF+XIR8gnSXdplum3Gdb5N9lV6jYKFmn2APKRMFQxIWEgGSp6l/o7iWpwm7er2/prelw7rFq2ELE4lTFw+PA7bHpclkyMHYxNXZ3NuV1sqODRcDKZGa3eDqfuGk69/t7NOTwu6oCCkDDY/0gPbz0sXzh0kbNXgH5W2bUGGZhQUCExLkZLBexX8XC3qTGNHilgYVIjiSJmpgR4wbPf8iVKmQo6eAL+MVqIAopsuSN1XBxMlyIqiMFFOi5BIghQULPIe27HlS40qlPu8A/SnUKRcBNFFo4WXSJlOvUJsGfWo1qpypUs8coCkLIrCuScuKpUp27NKwYOXmtdsFZIQFs97mzPU1Lt+5aevSvavX8OIuASQ0HIACwT1faM9WPbz3MWLNihMz5rwlAU0gDhIpgKuTNWG8jkWbvbbZc2fZXQoYWSCCcqIFhVsP5jpccPDXjYUfJx68ADNaIxrRdJAcOWnlsLFXZ57duu3YoM0ESGCEAqwgBWTRjNAg/GxKtXHfdv+Zdmj68+0TLdAAxazzQuyDyFEEFmjggQgmqOAoggw26OCDEEYo4YQUKkjBAs5Q0dsCJzhS4YcghijiiCSWSCBbGFIRAgAh+QQFBwAXACwCAAIA0gASAAAF/+AlilQznhegqkPivnBcrHQNtHH+zraN6zlej/YDwoRDljGYJC5lzdUARb2UDFHlc5e9bbnZ4hOZFC/JQ7MR3VMD2b4qiqKA19w6u/Ob0Ev5fV14TGGAflpfhzdyJxQLioNQhXyQhoKWk4mXlIKMJw2VnJlboZqjY5umUZFHnYwJJhRYp2eppLaotGu4tbpvrnIvJby7vnnEv8aEq5jMoqueMBByd81NrGDOqtfWZd1p322ACcqS2rflrenZ3M/t296UKe/o57n2vfjF+sn8x+suClSp5i4ePHAFER4Ul5DhQh+GBu55SJDixHr07mXMt3FfxzcS/zSEOLIiRoMnFWOmdLiSZKKQiFqa1IiSpkqbLHG6lHlxjJwAIi0G5TlU50yONZHeVJrzDCMJBLyU7Ml0p1GqHpNmXbq16RpPFyYsCGe16tGuZdGe7ffxn78gYOOaa7uM7lytbPG6tavurQxPIQAAIfkEBQcAFwAsAQABANMAEwAABf/gJY5kaZ5oqq5s675wLM80+ixJXgB87/eDnHBITOx+SECwyDQmkcsm8fgESovUqvI61Vq5wgKKR1hMVl3vFqxTr9nZahQcf8659eT9moey22oDKmlee1J9P4ZNiD6KTIxfcG6OWJN/ToGDQ5A8lIRanpuWf5xvdKOSgZelgimfcquop6qksni2fLiHk5phuou/j8GVtKmFscWzhSoPosm3z7nRu9PA1cLXxMsqOIDHtdmvdsjfxqDk5+DbKA0XvuHO5crp5rDq9PP29XaDCu6Y8qAFlDaQWkFrB7El1AZK04ILC1ih05dv3D2KAvFlxEiwoasc7RwME6dnosV9JS9+nqyYEiWUXgkipEhksiVLPyptbly5U2dHjlLOnKCZE6dLokcb1TR6E2lTpX/aDYWaNNJTqz2ZZnW6lerVTpcSjPHaFetPnmd9GtSYVmtbrlxQJAhgdi1QhGztotWrFu9dhXmbSEUxoYEBAkvh8nW7WLHfvY/7ApbTq4HMEiEAACH5BAUHABcALAIAAgDSABIAAAX/4CWO5JWcZwGsbMsOaCyjqmsD8Kwn9d3mO1nPtwIGacTfUZh8LWOFknRaYjZxT+TVuBwSuUevDxwU38g7sw2ti04BCQqVZG2yZ2rXvZ7cQ69YWTyAflp2gjxULxFzJn9biHlKgpJOlISRmJeQm00Gc3xfmZxZlUWjh519qKuqX6CPqaWas6RPpoG1sre0vFuwhq26wr67Xb3HtsnGYYTAKcjNytLMZdHW09jVac5Vbdfc2eHb3+Ll5Hjg531T66KuY6zvw/PFxMv31OxUofHwZ/L80RNorx4+g/peUYEQK582h+MguiN4kGJCiw8VUqEQDGFGjBE9hgQ5EeC/NQHPYzSS02CQuXQv+5kcOLMgSZjoZK5p9GDEAXU4JQYVWRLlST0pjdLcOWdBIxFIj05aGpXqVJs1K2a9qLKpnEZVsSoVG1brWLNluZ5Vq4fn0wsBrqKVy5bux6131+ZNu/fHWxIhAAAh+QQFBwAXACwCAAIA0gASAAAF/+AlitJojkmaFkDrvu6gzrTKwjgg13xy569dj/YDtoRDmzGYJC5jzZnhRJ1EZ0UjspkFbpPd3HcYxo17ZdiZl2ZefdSTpPD2PY/1NvStx/PvOnmAazV9gXxxJhMGgneETo6NT49Yg5JLlEqRiHEDKJdaoF6iYqRmpmqoblcFiS0IF1Z/m6yWs5Oqe7W0UYaZK3cTiSKQuLeYuX67xsvIx6HPQA3Dxc7N0Nej0aXbp92p30EX2dzk3ubg6Ku9tuq67I7EXO3wzPXW99j52u7K+2LUKvGaNxAMPYL2EOJTqI+hl4CaEhosSObgRIkVKaKxmHESRGAa2XDcGLLQSJElq2E1vIjpo52UAjGSlImSpkmYERey1DJMQUydHYHOFFqT6E2bKvn9MzPsAoUFIJH+XBmU6lCrRbEeNZoUYFOnDg6c3Kq167ml6dCuc1hObYyvcNOyPTtX7k6lddfebZv3bdMQACH5BAkBABcALAAAAADWABYAAAX/4CWOZGmeaKqubOu+cCzPdG3feK7vfH8tBABgoEoYjQWUcElMHZHK5bD4TJ6kU2c1yqQerSZsE/VMgEvi4gJCaSGk41P5TEprv1xh3DTPZ8lbV3BeUIJdd4Vhg4gJDSsBi4B4hnqEZn57JX2Uf3KBioeSiWiRnpOglYx0JgOlfJ+koaajda6asLWyr6exqaKXnJkkm6idu7Qmb7q3vLm+s8DFwiPEvcbMyCJ2v6vatsO4I9vQ3b3TItXO1+DN4t/U4d7L7NkX48fR1ucX6e7z8O1MLPiHLp69dwUDHiTIz+A9bPnU7esn7xm+cg/pRUTRah3Aehk/bqzoMSFIhA0V1YY0OXKhRYgYUVK0d+alxpgMZ65MeTKnQ5k/faoEOjRAnYlBbYrEqZQl05I8W+7USbRn06g4BZA4YOkp0qFCrUKlGlZqVbNlmXJtQfZq27FJ4YJ1G/erWLtohThgW7crJr/BAEsTrI+wRMP+hBDgO1fuXcQk8XqF7NJxXsuTWbyV/FdVZ26fyYW+OBpmadGBPacGvRr1YNWvWcd2XVhzX9i1ZeemfRh3b92/eScGsLgFhQgNLnNuTZq5aec3Ty+V7pRLgAJ7fWjfzr279+/gw4sfTz5FCAA7Cg==) no-repeat center; | ||
2410 | } | 4720 | } |
2411 | 4721 | a.label:hover, | |
2412 | div.loadingBar div.loadingBarProgress { | 4722 | a.badge:hover { |
2413 | height: 100%; | 4723 | color: #ffffff; |
2414 | width: 0%; | 4724 | text-decoration: none; |
4725 | cursor: pointer; | ||
2415 | } | 4726 | } |
2416 | 4727 | .label-important, | |
2417 | div.loadingBar div.loadingBarProgress div.loadingBarProgress_left { | 4728 | .badge-important { |
2418 | height: 100%; | 4729 | background-color: #b94a48; |
2419 | max-width: 8px; | ||
2420 | //background: url(./images/old/loading/loadingBarProgress.png) no-repeat 0; | ||
2421 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAAWCAYAAAC8C2KaAAAACXBIWXMAAAsSAAALEgHS3X78AAACIklEQVR4Ae3brU7DUBQH8HO6PQAazx4BRUKDwfChQTGFQ4wRFGEERdgQONRQoGEzGFISFI8w/DQSWHsP565r0xY2BiWY/ivW+530l52cdr0jwgEBCPy5AE9aUc7XV0kcl4jniGR20lj0QaAYAtzXWHgmNh7v3HTGXfOXgSWnKy6VqEZMCKZxcmiHgFCfAjrjva6XxfgUWNJc3tVBG9mBqEMAAmMFrrl+10r2pgJLTpYO9dZvNTkAZQhAYAoBNh3evz+KRsaBJccLevtXakYdOEMAAj8UCII6Hzx6dlY5nipBjXwTV1GAAAR+KiA1neHZWcOMJY35FS03bAMOCEAgl0CDG0/dMGP5by6xk2s1TIYABFRAjKufo8AyfoUkftyCDwQg8FsBloqdGmaswMf7qt9CYh4E0gLDWBrdCg7SXahBAAK5BEYZa9AnZmStXJSYDAEVENEtT/GtYNAjxl5AfDEgkFtAuGfXCDPW4N0jh9zci2IBCBRdwCTeY1kL2Z65RdYq+rcC159LQLjPFy9rdo0wY9nS+2uLSk5qI6FtxgEBCEwpEJg4flIvr2SrfEgOYxPulI4YBoFYwEiHL/2jqJ4KLNuowVXT4NqMBuAMAQh8I2DkSoPqLDnqU2DZTqmWF4mcXTxzJalQhkBGQJ+piEyL2/5DpifchJttjOpSLenmXMfVvboVBFmkgnOhBYbBJPqTuv41vx10C22Bi4fAfwt8AJe2flCLvH1PAAAAAElFTkSuQmCCCg==) no-repeat 0; | ||
2422 | } | 4730 | } |
2423 | 4731 | .label-important[href], | |
2424 | div.loadingBar div.loadingBarProgress div.loadingBarProgress_right { | 4732 | .badge-important[href] { |
4733 | background-color: #953b39; | ||
4734 | } | ||
4735 | .label-warning, | ||
4736 | .badge-warning { | ||
4737 | background-color: #f89406; | ||
4738 | } | ||
4739 | .label-warning[href], | ||
4740 | .badge-warning[href] { | ||
4741 | background-color: #c67605; | ||
4742 | } | ||
4743 | .label-success, | ||
4744 | .badge-success { | ||
4745 | background-color: #468847; | ||
4746 | } | ||
4747 | .label-success[href], | ||
4748 | .badge-success[href] { | ||
4749 | background-color: #356635; | ||
4750 | } | ||
4751 | .label-info, | ||
4752 | .badge-info { | ||
4753 | background-color: #3a87ad; | ||
4754 | } | ||
4755 | .label-info[href], | ||
4756 | .badge-info[href] { | ||
4757 | background-color: #2d6987; | ||
4758 | } | ||
4759 | .label-inverse, | ||
4760 | .badge-inverse { | ||
4761 | background-color: #333333; | ||
4762 | } | ||
4763 | .label-inverse[href], | ||
4764 | .badge-inverse[href] { | ||
4765 | background-color: #1a1a1a; | ||
4766 | } | ||
4767 | .btn .label, | ||
4768 | .btn .badge { | ||
2425 | position: relative; | 4769 | position: relative; |
2426 | height: 100%; | 4770 | top: -1px; |
2427 | margin-left: 8px; | ||
2428 | //background: url(./images/old/loading/loadingBarProgress.png) no-repeat right; | ||
2429 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAANYAAAAWCAYAAAC8C2KaAAAACXBIWXMAAAsSAAALEgHS3X78AAACIklEQVR4Ae3brU7DUBQH8HO6PQAazx4BRUKDwfChQTGFQ4wRFGEERdgQONRQoGEzGFISFI8w/DQSWHsP565r0xY2BiWY/ivW+530l52cdr0jwgEBCPy5AE9aUc7XV0kcl4jniGR20lj0QaAYAtzXWHgmNh7v3HTGXfOXgSWnKy6VqEZMCKZxcmiHgFCfAjrjva6XxfgUWNJc3tVBG9mBqEMAAmMFrrl+10r2pgJLTpYO9dZvNTkAZQhAYAoBNh3evz+KRsaBJccLevtXakYdOEMAAj8UCII6Hzx6dlY5nipBjXwTV1GAAAR+KiA1neHZWcOMJY35FS03bAMOCEAgl0CDG0/dMGP5by6xk2s1TIYABFRAjKufo8AyfoUkftyCDwQg8FsBloqdGmaswMf7qt9CYh4E0gLDWBrdCg7SXahBAAK5BEYZa9AnZmStXJSYDAEVENEtT/GtYNAjxl5AfDEgkFtAuGfXCDPW4N0jh9zci2IBCBRdwCTeY1kL2Z65RdYq+rcC159LQLjPFy9rdo0wY9nS+2uLSk5qI6FtxgEBCEwpEJg4flIvr2SrfEgOYxPulI4YBoFYwEiHL/2jqJ4KLNuowVXT4NqMBuAMAQh8I2DkSoPqLDnqU2DZTqmWF4mcXTxzJalQhkBGQJ+piEyL2/5DpifchJttjOpSLenmXMfVvboVBFmkgnOhBYbBJPqTuv41vx10C22Bi4fAfwt8AJe2flCLvH1PAAAAAElFTkSuQmCCCg==) no-repeat right; | ||
2430 | top: -22px; | ||
2431 | } | 4771 | } |
2432 | 4772 | .btn-mini .label, | |
2433 | // ------------------------------------------- | 4773 | .btn-mini .badge { |
2434 | 4774 | top: 0; | |
2435 | body.iPhone .loginErrorPanel { | ||
2436 | position: absolute; | ||
2437 | min-height: 372px; | ||
2438 | box-sizing: border-box; | ||
2439 | -moz-box-sizing: border-box; | ||
2440 | -webkit-box-sizing: border-box; | ||
2441 | padding: 10px; | ||
2442 | //background: #c8c8c8 url(./images/old/iPhone/pinstripes.png); | ||
2443 | background: #c8c8c8 url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAIAAACdaSOZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpiPHrmCgMC/GNjYwNSAAEGADdNA3dnzPlQAAAAAElFTkSuQmCCCg==); | ||
2444 | } | 4775 | } |
2445 | 4776 | @-webkit-keyframes progress-bar-stripes { | |
2446 | body.iPhone .loginErrorPanel h2 { | 4777 | from { |
2447 | text-align: center; | 4778 | background-position: 40px 0; |
2448 | color: red; | ||
2449 | margin-top: 40px; | ||
2450 | } | 4779 | } |
2451 | 4780 | to { | |
2452 | // ------------------------------------------- | 4781 | background-position: 0 0; |
2453 | 4782 | } | |
2454 | form.cardListSearchForm { | 4783 | } |
2455 | box-sizing: border-box; | 4784 | @-moz-keyframes progress-bar-stripes { |
2456 | -moz-box-sizing: border-box; | 4785 | from { |
4786 | background-position: 40px 0; | ||
4787 | } | ||
4788 | to { | ||
4789 | background-position: 0 0; | ||
4790 | } | ||
4791 | } | ||
4792 | @-ms-keyframes progress-bar-stripes { | ||
4793 | from { | ||
4794 | background-position: 40px 0; | ||
4795 | } | ||
4796 | to { | ||
4797 | background-position: 0 0; | ||
4798 | } | ||
4799 | } | ||
4800 | @-o-keyframes progress-bar-stripes { | ||
4801 | from { | ||
4802 | background-position: 0 0; | ||
4803 | } | ||
4804 | to { | ||
4805 | background-position: 40px 0; | ||
4806 | } | ||
4807 | } | ||
4808 | @keyframes progress-bar-stripes { | ||
4809 | from { | ||
4810 | background-position: 40px 0; | ||
4811 | } | ||
4812 | to { | ||
4813 | background-position: 0 0; | ||
4814 | } | ||
4815 | } | ||
4816 | .progress { | ||
4817 | overflow: hidden; | ||
4818 | height: 20px; | ||
4819 | margin-bottom: 20px; | ||
4820 | background-color: #f7f7f7; | ||
4821 | background-image: -moz-linear-gradient(top, #f5f5f5, #f9f9f9); | ||
4822 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#f5f5f5), to(#f9f9f9)); | ||
4823 | background-image: -webkit-linear-gradient(top, #f5f5f5, #f9f9f9); | ||
4824 | background-image: -o-linear-gradient(top, #f5f5f5, #f9f9f9); | ||
4825 | background-image: linear-gradient(to bottom, #f5f5f5, #f9f9f9); | ||
4826 | background-repeat: repeat-x; | ||
4827 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0); | ||
4828 | -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); | ||
4829 | -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); | ||
4830 | box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1); | ||
4831 | -webkit-border-radius: 4px; | ||
4832 | -moz-border-radius: 4px; | ||
4833 | border-radius: 4px; | ||
4834 | } | ||
4835 | .progress .bar { | ||
4836 | width: 0%; | ||
4837 | height: 100%; | ||
4838 | color: #ffffff; | ||
4839 | float: left; | ||
4840 | font-size: 12px; | ||
4841 | text-align: center; | ||
4842 | text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25); | ||
4843 | background-color: #0e90d2; | ||
4844 | background-image: -moz-linear-gradient(top, #149bdf, #0480be); | ||
4845 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#149bdf), to(#0480be)); | ||
4846 | background-image: -webkit-linear-gradient(top, #149bdf, #0480be); | ||
4847 | background-image: -o-linear-gradient(top, #149bdf, #0480be); | ||
4848 | background-image: linear-gradient(to bottom, #149bdf, #0480be); | ||
4849 | background-repeat: repeat-x; | ||
4850 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0); | ||
4851 | -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); | ||
4852 | -moz-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); | ||
4853 | box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15); | ||
2457 | -webkit-box-sizing: border-box; | 4854 | -webkit-box-sizing: border-box; |
2458 | border-bottom: 1px solid #2d3642; | 4855 | -moz-box-sizing: border-box; |
2459 | border-top: 1px solid #6d84a2; | 4856 | box-sizing: border-box; |
2460 | padding: 6px; | 4857 | -webkit-transition: width 0.6s ease; |
2461 | height: 45px; | 4858 | -moz-transition: width 0.6s ease; |
2462 | // background: url(./images/old/iPhone/toolbar.png) #6d84a2 repeat-x; | 4859 | -o-transition: width 0.6s ease; |
2463 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAArCAIAAAA2QHWOAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAE1JREFUCNddjDEOgEAQAgn//5qltYWFnb1GB4vdSy4WBAYStKyb9+O0FJMYyjMyMWCC35lJM71r6vF1P07/lFSfPx6ZxNLcy1HtihzpA/RWcOj0zlDhAAAAAElFTkSuQmCCCg==) #6d84a2 repeat-x; | 4860 | transition: width 0.6s ease; |
2464 | margin: 0px; | 4861 | } |
4862 | .progress .bar + .bar { | ||
4863 | -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); | ||
4864 | -moz-box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); | ||
4865 | box-shadow: inset 1px 0 0 rgba(0,0,0,.15), inset 0 -1px 0 rgba(0,0,0,.15); | ||
4866 | } | ||
4867 | .progress-striped .bar { | ||
4868 | background-color: #149bdf; | ||
4869 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); | ||
4870 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4871 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4872 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4873 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4874 | -webkit-background-size: 40px 40px; | ||
4875 | -moz-background-size: 40px 40px; | ||
4876 | -o-background-size: 40px 40px; | ||
4877 | background-size: 40px 40px; | ||
4878 | } | ||
4879 | .progress.active .bar { | ||
4880 | -webkit-animation: progress-bar-stripes 2s linear infinite; | ||
4881 | -moz-animation: progress-bar-stripes 2s linear infinite; | ||
4882 | -ms-animation: progress-bar-stripes 2s linear infinite; | ||
4883 | -o-animation: progress-bar-stripes 2s linear infinite; | ||
4884 | animation: progress-bar-stripes 2s linear infinite; | ||
4885 | } | ||
4886 | .progress-danger .bar, | ||
4887 | .progress .bar-danger { | ||
4888 | background-color: #dd514c; | ||
4889 | background-image: -moz-linear-gradient(top, #ee5f5b, #c43c35); | ||
4890 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ee5f5b), to(#c43c35)); | ||
4891 | background-image: -webkit-linear-gradient(top, #ee5f5b, #c43c35); | ||
4892 | background-image: -o-linear-gradient(top, #ee5f5b, #c43c35); | ||
4893 | background-image: linear-gradient(to bottom, #ee5f5b, #c43c35); | ||
4894 | background-repeat: repeat-x; | ||
4895 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffee5f5b', endColorstr='#ffc43c35', GradientType=0); | ||
4896 | } | ||
4897 | .progress-danger.progress-striped .bar, | ||
4898 | .progress-striped .bar-danger { | ||
4899 | background-color: #ee5f5b; | ||
4900 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); | ||
4901 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4902 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4903 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4904 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4905 | } | ||
4906 | .progress-success .bar, | ||
4907 | .progress .bar-success { | ||
4908 | background-color: #5eb95e; | ||
4909 | background-image: -moz-linear-gradient(top, #62c462, #57a957); | ||
4910 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#62c462), to(#57a957)); | ||
4911 | background-image: -webkit-linear-gradient(top, #62c462, #57a957); | ||
4912 | background-image: -o-linear-gradient(top, #62c462, #57a957); | ||
4913 | background-image: linear-gradient(to bottom, #62c462, #57a957); | ||
4914 | background-repeat: repeat-x; | ||
4915 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff62c462', endColorstr='#ff57a957', GradientType=0); | ||
4916 | } | ||
4917 | .progress-success.progress-striped .bar, | ||
4918 | .progress-striped .bar-success { | ||
4919 | background-color: #62c462; | ||
4920 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); | ||
4921 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4922 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4923 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4924 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4925 | } | ||
4926 | .progress-info .bar, | ||
4927 | .progress .bar-info { | ||
4928 | background-color: #4bb1cf; | ||
4929 | background-image: -moz-linear-gradient(top, #5bc0de, #339bb9); | ||
4930 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#5bc0de), to(#339bb9)); | ||
4931 | background-image: -webkit-linear-gradient(top, #5bc0de, #339bb9); | ||
4932 | background-image: -o-linear-gradient(top, #5bc0de, #339bb9); | ||
4933 | background-image: linear-gradient(to bottom, #5bc0de, #339bb9); | ||
4934 | background-repeat: repeat-x; | ||
4935 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff5bc0de', endColorstr='#ff339bb9', GradientType=0); | ||
4936 | } | ||
4937 | .progress-info.progress-striped .bar, | ||
4938 | .progress-striped .bar-info { | ||
4939 | background-color: #5bc0de; | ||
4940 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); | ||
4941 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4942 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4943 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4944 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4945 | } | ||
4946 | .progress-warning .bar, | ||
4947 | .progress .bar-warning { | ||
4948 | background-color: #faa732; | ||
4949 | background-image: -moz-linear-gradient(top, #fbb450, #f89406); | ||
4950 | background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#fbb450), to(#f89406)); | ||
4951 | background-image: -webkit-linear-gradient(top, #fbb450, #f89406); | ||
4952 | background-image: -o-linear-gradient(top, #fbb450, #f89406); | ||
4953 | background-image: linear-gradient(to bottom, #fbb450, #f89406); | ||
4954 | background-repeat: repeat-x; | ||
4955 | filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fffbb450', endColorstr='#fff89406', GradientType=0); | ||
4956 | } | ||
4957 | .progress-warning.progress-striped .bar, | ||
4958 | .progress-striped .bar-warning { | ||
4959 | background-color: #fbb450; | ||
4960 | background-image: -webkit-gradient(linear, 0 100%, 100% 0, color-stop(0.25, rgba(255, 255, 255, 0.15)), color-stop(0.25, transparent), color-stop(0.5, transparent), color-stop(0.5, rgba(255, 255, 255, 0.15)), color-stop(0.75, rgba(255, 255, 255, 0.15)), color-stop(0.75, transparent), to(transparent)); | ||
4961 | background-image: -webkit-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4962 | background-image: -moz-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4963 | background-image: -o-linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4964 | background-image: linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent); | ||
4965 | } | ||
4966 | .accordion { | ||
4967 | margin-bottom: 20px; | ||
4968 | } | ||
4969 | .accordion-group { | ||
4970 | margin-bottom: 2px; | ||
4971 | border: 1px solid #e5e5e5; | ||
4972 | -webkit-border-radius: 4px; | ||
4973 | -moz-border-radius: 4px; | ||
4974 | border-radius: 4px; | ||
2465 | } | 4975 | } |
2466 | 4976 | .accordion-heading { | |
2467 | form.cardListSearchForm input { | 4977 | border-bottom: 0; |
2468 | margin: 7px; | ||
2469 | -webkit-appearance: searchfield; | ||
2470 | width: 200px; | ||
2471 | } | 4978 | } |
2472 | 4979 | .accordion-heading .accordion-toggle { | |
2473 | ul.cardListPanel { | 4980 | display: block; |
2474 | margin: 0px; | 4981 | padding: 8px 15px; |
2475 | padding: 0px; | ||
2476 | list-style-type: none; | ||
2477 | min-height: 372px; | ||
2478 | } | 4982 | } |
2479 | 4983 | .accordion-toggle { | |
2480 | li.cardListItem { | 4984 | cursor: pointer; |
2481 | height: 43px; | ||
2482 | border-bottom: 1px solid #cccccc; | ||
2483 | //background: url(./images/old/iPhone/listArrow.png) no-repeat right center; | ||
2484 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAUCAYAAAB4d5a9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKVJREFUeNpi/P//PwOtARMDHcDwsYQFRJSXl8P4dVC6CZvizs5O8i1BsqARid9Ei+BiQ2KDLKumhSU1QNyKxG+hlkXoEQ+yqAPNogpapK5KNIvaKbUIVxKeAsTvkPg5QCxETUukgfgAkqFPgdgBzVKKLIFZoIJmwR1qBRdNLEC2BJQpV9LCAmRL/gBxAtRwqlqAXqzcgRrOQE0LQIBxtNIiBQAEGAA7xCa2yF9zEgAAAABJRU5ErkJgggo=) no-repeat right center; | ||
2485 | |||
2486 | } | 4985 | } |
2487 | 4986 | .accordion-inner { | |
2488 | li.cardListItem a { | 4987 | padding: 9px 15px; |
4988 | border-top: 1px solid #e5e5e5; | ||
4989 | } | ||
4990 | .carousel { | ||
2489 | position: relative; | 4991 | position: relative; |
2490 | top: -22px; | 4992 | margin-bottom: 20px; |
2491 | left: 40px; | 4993 | line-height: 1; |
2492 | display: block; | 4994 | } |
2493 | white-space: nowrap; | 4995 | .carousel-inner { |
2494 | overflow: hidden; | 4996 | overflow: hidden; |
4997 | width: 100%; | ||
4998 | position: relative; | ||
2495 | } | 4999 | } |
2496 | 5000 | .carousel-inner > .item { | |
2497 | body[orientation="portrait"] li.cardListItem a { | 5001 | display: none; |
2498 | max-width: 250px; | 5002 | position: relative; |
5003 | -webkit-transition: 0.6s ease-in-out left; | ||
5004 | -moz-transition: 0.6s ease-in-out left; | ||
5005 | -o-transition: 0.6s ease-in-out left; | ||
5006 | transition: 0.6s ease-in-out left; | ||
2499 | } | 5007 | } |
2500 | 5008 | .carousel-inner > .item > img { | |
2501 | body[orientation="landscape"] li.cardListItem a { | 5009 | display: block; |
2502 | max-width: 400px; | 5010 | line-height: 1; |
2503 | } | 5011 | } |
2504 | 5012 | .carousel-inner > .active, | |
2505 | li.cardListItem img { | 5013 | .carousel-inner > .next, |
2506 | height: 20px; | 5014 | .carousel-inner > .prev { |
2507 | width: 20px; | 5015 | display: block; |
2508 | padding: 12px 10px 0px 10px; | ||
2509 | } | 5016 | } |
2510 | 5017 | .carousel-inner > .active { | |
2511 | li.cardListItem a { | 5018 | left: 0; |
5019 | } | ||
5020 | .carousel-inner > .next, | ||
5021 | .carousel-inner > .prev { | ||
5022 | position: absolute; | ||
5023 | top: 0; | ||
5024 | width: 100%; | ||
5025 | } | ||
5026 | .carousel-inner > .next { | ||
5027 | left: 100%; | ||
5028 | } | ||
5029 | .carousel-inner > .prev { | ||
5030 | left: -100%; | ||
5031 | } | ||
5032 | .carousel-inner > .next.left, | ||
5033 | .carousel-inner > .prev.right { | ||
5034 | left: 0; | ||
5035 | } | ||
5036 | .carousel-inner > .active.left { | ||
5037 | left: -100%; | ||
5038 | } | ||
5039 | .carousel-inner > .active.right { | ||
5040 | left: 100%; | ||
5041 | } | ||
5042 | .carousel-control { | ||
5043 | position: absolute; | ||
5044 | top: 40%; | ||
5045 | left: 15px; | ||
5046 | width: 40px; | ||
5047 | height: 40px; | ||
5048 | margin-top: -20px; | ||
5049 | font-size: 60px; | ||
5050 | font-weight: 100; | ||
5051 | line-height: 30px; | ||
5052 | color: #ffffff; | ||
5053 | text-align: center; | ||
5054 | background: #222222; | ||
5055 | border: 3px solid #ffffff; | ||
5056 | -webkit-border-radius: 23px; | ||
5057 | -moz-border-radius: 23px; | ||
5058 | border-radius: 23px; | ||
5059 | opacity: 0.5; | ||
5060 | filter: alpha(opacity=50); | ||
5061 | } | ||
5062 | .carousel-control.right { | ||
5063 | left: auto; | ||
5064 | right: 15px; | ||
5065 | } | ||
5066 | .carousel-control:hover { | ||
5067 | color: #ffffff; | ||
2512 | text-decoration: none; | 5068 | text-decoration: none; |
2513 | color: black; | 5069 | opacity: 0.9; |
2514 | font-weight: bold; | 5070 | filter: alpha(opacity=90); |
2515 | font-size: 14pt; | ||
2516 | vertical-align: 3px; | ||
2517 | } | 5071 | } |
2518 | 5072 | .carousel-caption { | |
2519 | |||
2520 | div.cardDetailPanel { | ||
2521 | position: absolute; | 5073 | position: absolute; |
2522 | top: 45px; | 5074 | left: 0; |
2523 | min-height: 372px; | 5075 | right: 0; |
2524 | 5076 | bottom: 0; | |
2525 | box-sizing: border-box; | 5077 | padding: 15px; |
5078 | background: #333333; | ||
5079 | background: rgba(0, 0, 0, 0.75); | ||
5080 | } | ||
5081 | .carousel-caption h4, | ||
5082 | .carousel-caption p { | ||
5083 | color: #ffffff; | ||
5084 | line-height: 20px; | ||
5085 | } | ||
5086 | .carousel-caption h4 { | ||
5087 | margin: 0 0 5px; | ||
5088 | } | ||
5089 | .carousel-caption p { | ||
5090 | margin-bottom: 0; | ||
5091 | } | ||
5092 | .hero-unit { | ||
5093 | padding: 60px; | ||
5094 | margin-bottom: 30px; | ||
5095 | font-size: 18px; | ||
5096 | font-weight: 200; | ||
5097 | line-height: 30px; | ||
5098 | color: inherit; | ||
5099 | background-color: #eeeeee; | ||
5100 | -webkit-border-radius: 6px; | ||
5101 | -moz-border-radius: 6px; | ||
5102 | border-radius: 6px; | ||
5103 | } | ||
5104 | .hero-unit h1 { | ||
5105 | margin-bottom: 0; | ||
5106 | font-size: 60px; | ||
5107 | line-height: 1; | ||
5108 | color: inherit; | ||
5109 | letter-spacing: -1px; | ||
5110 | } | ||
5111 | .hero-unit li { | ||
5112 | line-height: 30px; | ||
5113 | } | ||
5114 | .pull-right { | ||
5115 | float: right; | ||
5116 | } | ||
5117 | .pull-left { | ||
5118 | float: left; | ||
5119 | } | ||
5120 | .hide { | ||
5121 | display: none; | ||
5122 | } | ||
5123 | .show { | ||
5124 | display: block; | ||
5125 | } | ||
5126 | .invisible { | ||
5127 | visibility: hidden; | ||
5128 | } | ||
5129 | .affix { | ||
5130 | position: fixed; | ||
5131 | } | ||
5132 | .hidden { | ||
5133 | display: none; | ||
5134 | visibility: hidden; | ||
5135 | } | ||
5136 | .visible-phone { | ||
5137 | display: none !important; | ||
5138 | } | ||
5139 | .visible-tablet { | ||
5140 | display: none !important; | ||
5141 | } | ||
5142 | .hidden-desktop { | ||
5143 | display: none !important; | ||
5144 | } | ||
5145 | .visible-desktop { | ||
5146 | display: inherit !important; | ||
5147 | } | ||
5148 | @media (min-width: 768px) and (max-width: 979px) { | ||
5149 | .hidden-desktop { | ||
5150 | display: inherit !important; | ||
5151 | } | ||
5152 | .visible-desktop { | ||
5153 | display: none !important ; | ||
5154 | } | ||
5155 | .visible-tablet { | ||
5156 | display: inherit !important; | ||
5157 | } | ||
5158 | .hidden-tablet { | ||
5159 | display: none !important; | ||
5160 | } | ||
5161 | } | ||
5162 | @media (max-width: 767px) { | ||
5163 | .hidden-desktop { | ||
5164 | display: inherit !important; | ||
5165 | } | ||
5166 | .visible-desktop { | ||
5167 | display: none !important; | ||
5168 | } | ||
5169 | .visible-phone { | ||
5170 | display: inherit !important; | ||
5171 | } | ||
5172 | .hidden-phone { | ||
5173 | display: none !important; | ||
5174 | } | ||
5175 | } | ||
5176 | @media (min-width: 1200px) { | ||
5177 | .row { | ||
5178 | margin-left: -30px; | ||
5179 | *zoom: 1; | ||
5180 | } | ||
5181 | .row:before, | ||
5182 | .row:after { | ||
5183 | display: table; | ||
5184 | content: ""; | ||
5185 | line-height: 0; | ||
5186 | } | ||
5187 | .row:after { | ||
5188 | clear: both; | ||
5189 | } | ||
5190 | [class*="span"] { | ||
5191 | float: left; | ||
5192 | min-height: 1px; | ||
5193 | margin-left: 30px; | ||
5194 | } | ||
5195 | .container, | ||
5196 | .navbar-static-top .container, | ||
5197 | .navbar-fixed-top .container, | ||
5198 | .navbar-fixed-bottom .container { | ||
5199 | width: 1170px; | ||
5200 | } | ||
5201 | .span12 { | ||
5202 | width: 1170px; | ||
5203 | } | ||
5204 | .span11 { | ||
5205 | width: 1070px; | ||
5206 | } | ||
5207 | .span10 { | ||
5208 | width: 970px; | ||
5209 | } | ||
5210 | .span9 { | ||
5211 | width: 870px; | ||
5212 | } | ||
5213 | .span8 { | ||
5214 | width: 770px; | ||
5215 | } | ||
5216 | .span7 { | ||
5217 | width: 670px; | ||
5218 | } | ||
5219 | .span6 { | ||
5220 | width: 570px; | ||
5221 | } | ||
5222 | .span5 { | ||
5223 | width: 470px; | ||
5224 | } | ||
5225 | .span4 { | ||
5226 | width: 370px; | ||
5227 | } | ||
5228 | .span3 { | ||
5229 | width: 270px; | ||
5230 | } | ||
5231 | .span2 { | ||
5232 | width: 170px; | ||
5233 | } | ||
5234 | .span1 { | ||
5235 | width: 70px; | ||
5236 | } | ||
5237 | .offset12 { | ||
5238 | margin-left: 1230px; | ||
5239 | } | ||
5240 | .offset11 { | ||
5241 | margin-left: 1130px; | ||
5242 | } | ||
5243 | .offset10 { | ||
5244 | margin-left: 1030px; | ||
5245 | } | ||
5246 | .offset9 { | ||
5247 | margin-left: 930px; | ||
5248 | } | ||
5249 | .offset8 { | ||
5250 | margin-left: 830px; | ||
5251 | } | ||
5252 | .offset7 { | ||
5253 | margin-left: 730px; | ||
5254 | } | ||
5255 | .offset6 { | ||
5256 | margin-left: 630px; | ||
5257 | } | ||
5258 | .offset5 { | ||
5259 | margin-left: 530px; | ||
5260 | } | ||
5261 | .offset4 { | ||
5262 | margin-left: 430px; | ||
5263 | } | ||
5264 | .offset3 { | ||
5265 | margin-left: 330px; | ||
5266 | } | ||
5267 | .offset2 { | ||
5268 | margin-left: 230px; | ||
5269 | } | ||
5270 | .offset1 { | ||
5271 | margin-left: 130px; | ||
5272 | } | ||
5273 | .row-fluid { | ||
5274 | width: 100%; | ||
5275 | *zoom: 1; | ||
5276 | } | ||
5277 | .row-fluid:before, | ||
5278 | .row-fluid:after { | ||
5279 | display: table; | ||
5280 | content: ""; | ||
5281 | line-height: 0; | ||
5282 | } | ||
5283 | .row-fluid:after { | ||
5284 | clear: both; | ||
5285 | } | ||
5286 | .row-fluid [class*="span"] { | ||
5287 | display: block; | ||
5288 | width: 100%; | ||
5289 | min-height: 30px; | ||
5290 | -webkit-box-sizing: border-box; | ||
2526 | -moz-box-sizing: border-box; | 5291 | -moz-box-sizing: border-box; |
5292 | box-sizing: border-box; | ||
5293 | float: left; | ||
5294 | margin-left: 2.564102564102564%; | ||
5295 | *margin-left: 2.5109110747408616%; | ||
5296 | } | ||
5297 | .row-fluid [class*="span"]:first-child { | ||
5298 | margin-left: 0; | ||
5299 | } | ||
5300 | .row-fluid .controls-row [class*="span"] + [class*="span"] { | ||
5301 | margin-left: 2.564102564102564%; | ||
5302 | } | ||
5303 | .row-fluid .span12 { | ||
5304 | width: 100%; | ||
5305 | *width: 99.94680851063829%; | ||
5306 | } | ||
5307 | .row-fluid .span11 { | ||
5308 | width: 91.45299145299145%; | ||
5309 | *width: 91.39979996362975%; | ||
5310 | } | ||
5311 | .row-fluid .span10 { | ||
5312 | width: 82.90598290598291%; | ||
5313 | *width: 82.8527914166212%; | ||
5314 | } | ||
5315 | .row-fluid .span9 { | ||
5316 | width: 74.35897435897436%; | ||
5317 | *width: 74.30578286961266%; | ||
5318 | } | ||
5319 | .row-fluid .span8 { | ||
5320 | width: 65.81196581196582%; | ||
5321 | *width: 65.75877432260411%; | ||
5322 | } | ||
5323 | .row-fluid .span7 { | ||
5324 | width: 57.26495726495726%; | ||
5325 | *width: 57.21176577559556%; | ||
5326 | } | ||
5327 | .row-fluid .span6 { | ||
5328 | width: 48.717948717948715%; | ||
5329 | *width: 48.664757228587014%; | ||
5330 | } | ||
5331 | .row-fluid .span5 { | ||
5332 | width: 40.17094017094017%; | ||
5333 | *width: 40.11774868157847%; | ||
5334 | } | ||
5335 | .row-fluid .span4 { | ||
5336 | width: 31.623931623931625%; | ||
5337 | *width: 31.570740134569924%; | ||
5338 | } | ||
5339 | .row-fluid .span3 { | ||
5340 | width: 23.076923076923077%; | ||
5341 | *width: 23.023731587561375%; | ||
5342 | } | ||
5343 | .row-fluid .span2 { | ||
5344 | width: 14.52991452991453%; | ||
5345 | *width: 14.476723040552828%; | ||
5346 | } | ||
5347 | .row-fluid .span1 { | ||
5348 | width: 5.982905982905983%; | ||
5349 | *width: 5.929714493544281%; | ||
5350 | } | ||
5351 | .row-fluid .offset12 { | ||
5352 | margin-left: 105.12820512820512%; | ||
5353 | *margin-left: 105.02182214948171%; | ||
5354 | } | ||
5355 | .row-fluid .offset12:first-child { | ||
5356 | margin-left: 102.56410256410257%; | ||
5357 | *margin-left: 102.45771958537915%; | ||
5358 | } | ||
5359 | .row-fluid .offset11 { | ||
5360 | margin-left: 96.58119658119658%; | ||
5361 | *margin-left: 96.47481360247316%; | ||
5362 | } | ||
5363 | .row-fluid .offset11:first-child { | ||
5364 | margin-left: 94.01709401709402%; | ||
5365 | *margin-left: 93.91071103837061%; | ||
5366 | } | ||
5367 | .row-fluid .offset10 { | ||
5368 | margin-left: 88.03418803418803%; | ||
5369 | *margin-left: 87.92780505546462%; | ||
5370 | } | ||
5371 | .row-fluid .offset10:first-child { | ||
5372 | margin-left: 85.47008547008548%; | ||
5373 | *margin-left: 85.36370249136206%; | ||
5374 | } | ||
5375 | .row-fluid .offset9 { | ||
5376 | margin-left: 79.48717948717949%; | ||
5377 | *margin-left: 79.38079650845607%; | ||
5378 | } | ||
5379 | .row-fluid .offset9:first-child { | ||
5380 | margin-left: 76.92307692307693%; | ||
5381 | *margin-left: 76.81669394435352%; | ||
5382 | } | ||
5383 | .row-fluid .offset8 { | ||
5384 | margin-left: 70.94017094017094%; | ||
5385 | *margin-left: 70.83378796144753%; | ||
5386 | } | ||
5387 | .row-fluid .offset8:first-child { | ||
5388 | margin-left: 68.37606837606839%; | ||
5389 | *margin-left: 68.26968539734497%; | ||
5390 | } | ||
5391 | .row-fluid .offset7 { | ||
5392 | margin-left: 62.393162393162385%; | ||
5393 | *margin-left: 62.28677941443899%; | ||
5394 | } | ||
5395 | .row-fluid .offset7:first-child { | ||
5396 | margin-left: 59.82905982905982%; | ||
5397 | *margin-left: 59.72267685033642%; | ||
5398 | } | ||
5399 | .row-fluid .offset6 { | ||
5400 | margin-left: 53.84615384615384%; | ||
5401 | *margin-left: 53.739770867430444%; | ||
5402 | } | ||
5403 | .row-fluid .offset6:first-child { | ||
5404 | margin-left: 51.28205128205128%; | ||
5405 | *margin-left: 51.175668303327875%; | ||
5406 | } | ||
5407 | .row-fluid .offset5 { | ||
5408 | margin-left: 45.299145299145295%; | ||
5409 | *margin-left: 45.1927623204219%; | ||
5410 | } | ||
5411 | .row-fluid .offset5:first-child { | ||
5412 | margin-left: 42.73504273504273%; | ||
5413 | *margin-left: 42.62865975631933%; | ||
5414 | } | ||
5415 | .row-fluid .offset4 { | ||
5416 | margin-left: 36.75213675213675%; | ||
5417 | *margin-left: 36.645753773413354%; | ||
5418 | } | ||
5419 | .row-fluid .offset4:first-child { | ||
5420 | margin-left: 34.18803418803419%; | ||
5421 | *margin-left: 34.081651209310785%; | ||
5422 | } | ||
5423 | .row-fluid .offset3 { | ||
5424 | margin-left: 28.205128205128204%; | ||
5425 | *margin-left: 28.0987452264048%; | ||
5426 | } | ||
5427 | .row-fluid .offset3:first-child { | ||
5428 | margin-left: 25.641025641025642%; | ||
5429 | *margin-left: 25.53464266230224%; | ||
5430 | } | ||
5431 | .row-fluid .offset2 { | ||
5432 | margin-left: 19.65811965811966%; | ||
5433 | *margin-left: 19.551736679396257%; | ||
5434 | } | ||
5435 | .row-fluid .offset2:first-child { | ||
5436 | margin-left: 17.094017094017094%; | ||
5437 | *margin-left: 16.98763411529369%; | ||
5438 | } | ||
5439 | .row-fluid .offset1 { | ||
5440 | margin-left: 11.11111111111111%; | ||
5441 | *margin-left: 11.004728132387708%; | ||
5442 | } | ||
5443 | .row-fluid .offset1:first-child { | ||
5444 | margin-left: 8.547008547008547%; | ||
5445 | *margin-left: 8.440625568285142%; | ||
5446 | } | ||
5447 | input, | ||
5448 | textarea, | ||
5449 | .uneditable-input { | ||
5450 | margin-left: 0; | ||
5451 | } | ||
5452 | .controls-row [class*="span"] + [class*="span"] { | ||
5453 | margin-left: 30px; | ||
5454 | } | ||
5455 | input.span12, textarea.span12, .uneditable-input.span12 { | ||
5456 | width: 1156px; | ||
5457 | } | ||
5458 | input.span11, textarea.span11, .uneditable-input.span11 { | ||
5459 | width: 1056px; | ||
5460 | } | ||
5461 | input.span10, textarea.span10, .uneditable-input.span10 { | ||
5462 | width: 956px; | ||
5463 | } | ||
5464 | input.span9, textarea.span9, .uneditable-input.span9 { | ||
5465 | width: 856px; | ||
5466 | } | ||
5467 | input.span8, textarea.span8, .uneditable-input.span8 { | ||
5468 | width: 756px; | ||
5469 | } | ||
5470 | input.span7, textarea.span7, .uneditable-input.span7 { | ||
5471 | width: 656px; | ||
5472 | } | ||
5473 | input.span6, textarea.span6, .uneditable-input.span6 { | ||
5474 | width: 556px; | ||
5475 | } | ||
5476 | input.span5, textarea.span5, .uneditable-input.span5 { | ||
5477 | width: 456px; | ||
5478 | } | ||
5479 | input.span4, textarea.span4, .uneditable-input.span4 { | ||
5480 | width: 356px; | ||
5481 | } | ||
5482 | input.span3, textarea.span3, .uneditable-input.span3 { | ||
5483 | width: 256px; | ||
5484 | } | ||
5485 | input.span2, textarea.span2, .uneditable-input.span2 { | ||
5486 | width: 156px; | ||
5487 | } | ||
5488 | input.span1, textarea.span1, .uneditable-input.span1 { | ||
5489 | width: 56px; | ||
5490 | } | ||
5491 | .thumbnails { | ||
5492 | margin-left: -30px; | ||
5493 | } | ||
5494 | .thumbnails > li { | ||
5495 | margin-left: 30px; | ||
5496 | } | ||
5497 | .row-fluid .thumbnails { | ||
5498 | margin-left: 0; | ||
5499 | } | ||
5500 | } | ||
5501 | @media (min-width: 768px) and (max-width: 979px) { | ||
5502 | .row { | ||
5503 | margin-left: -20px; | ||
5504 | *zoom: 1; | ||
5505 | } | ||
5506 | .row:before, | ||
5507 | .row:after { | ||
5508 | display: table; | ||
5509 | content: ""; | ||
5510 | line-height: 0; | ||
5511 | } | ||
5512 | .row:after { | ||
5513 | clear: both; | ||
5514 | } | ||
5515 | [class*="span"] { | ||
5516 | float: left; | ||
5517 | min-height: 1px; | ||
5518 | margin-left: 20px; | ||
5519 | } | ||
5520 | .container, | ||
5521 | .navbar-static-top .container, | ||
5522 | .navbar-fixed-top .container, | ||
5523 | .navbar-fixed-bottom .container { | ||
5524 | width: 724px; | ||
5525 | } | ||
5526 | .span12 { | ||
5527 | width: 724px; | ||
5528 | } | ||
5529 | .span11 { | ||
5530 | width: 662px; | ||
5531 | } | ||
5532 | .span10 { | ||
5533 | width: 600px; | ||
5534 | } | ||
5535 | .span9 { | ||
5536 | width: 538px; | ||
5537 | } | ||
5538 | .span8 { | ||
5539 | width: 476px; | ||
5540 | } | ||
5541 | .span7 { | ||
5542 | width: 414px; | ||
5543 | } | ||
5544 | .span6 { | ||
5545 | width: 352px; | ||
5546 | } | ||
5547 | .span5 { | ||
5548 | width: 290px; | ||
5549 | } | ||
5550 | .span4 { | ||
5551 | width: 228px; | ||
5552 | } | ||
5553 | .span3 { | ||
5554 | width: 166px; | ||
5555 | } | ||
5556 | .span2 { | ||
5557 | width: 104px; | ||
5558 | } | ||
5559 | .span1 { | ||
5560 | width: 42px; | ||
5561 | } | ||
5562 | .offset12 { | ||
5563 | margin-left: 764px; | ||
5564 | } | ||
5565 | .offset11 { | ||
5566 | margin-left: 702px; | ||
5567 | } | ||
5568 | .offset10 { | ||
5569 | margin-left: 640px; | ||
5570 | } | ||
5571 | .offset9 { | ||
5572 | margin-left: 578px; | ||
5573 | } | ||
5574 | .offset8 { | ||
5575 | margin-left: 516px; | ||
5576 | } | ||
5577 | .offset7 { | ||
5578 | margin-left: 454px; | ||
5579 | } | ||
5580 | .offset6 { | ||
5581 | margin-left: 392px; | ||
5582 | } | ||
5583 | .offset5 { | ||
5584 | margin-left: 330px; | ||
5585 | } | ||
5586 | .offset4 { | ||
5587 | margin-left: 268px; | ||
5588 | } | ||
5589 | .offset3 { | ||
5590 | margin-left: 206px; | ||
5591 | } | ||
5592 | .offset2 { | ||
5593 | margin-left: 144px; | ||
5594 | } | ||
5595 | .offset1 { | ||
5596 | margin-left: 82px; | ||
5597 | } | ||
5598 | .row-fluid { | ||
5599 | width: 100%; | ||
5600 | *zoom: 1; | ||
5601 | } | ||
5602 | .row-fluid:before, | ||
5603 | .row-fluid:after { | ||
5604 | display: table; | ||
5605 | content: ""; | ||
5606 | line-height: 0; | ||
5607 | } | ||
5608 | .row-fluid:after { | ||
5609 | clear: both; | ||
5610 | } | ||
5611 | .row-fluid [class*="span"] { | ||
5612 | display: block; | ||
5613 | width: 100%; | ||
5614 | min-height: 30px; | ||
2527 | -webkit-box-sizing: border-box; | 5615 | -webkit-box-sizing: border-box; |
2528 | padding: 10px; | 5616 | -moz-box-sizing: border-box; |
2529 | //background: #c8c8c8 url(./images/old/iPhone/pinstripes.png); | 5617 | box-sizing: border-box; |
2530 | background: #c8c8c8 url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAABCAIAAACdaSOZAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpiPHrmCgMC/GNjYwNSAAEGADdNA3dnzPlQAAAAAElFTkSuQmCCCg==); | 5618 | float: left; |
5619 | margin-left: 2.7624309392265194%; | ||
5620 | *margin-left: 2.709239449864817%; | ||
2531 | } | 5621 | } |
2532 | 5622 | .row-fluid [class*="span"]:first-child { | |
2533 | div.cardDetailPanel > fieldset > div.row > span.directLogin { | 5623 | margin-left: 0; |
5624 | } | ||
5625 | .row-fluid .controls-row [class*="span"] + [class*="span"] { | ||
5626 | margin-left: 2.7624309392265194%; | ||
5627 | } | ||
5628 | .row-fluid .span12 { | ||
2534 | width: 100%; | 5629 | width: 100%; |
5630 | *width: 99.94680851063829%; | ||
5631 | } | ||
5632 | .row-fluid .span11 { | ||
5633 | width: 91.43646408839778%; | ||
5634 | *width: 91.38327259903608%; | ||
5635 | } | ||
5636 | .row-fluid .span10 { | ||
5637 | width: 82.87292817679558%; | ||
5638 | *width: 82.81973668743387%; | ||
5639 | } | ||
5640 | .row-fluid .span9 { | ||
5641 | width: 74.30939226519337%; | ||
5642 | *width: 74.25620077583166%; | ||
5643 | } | ||
5644 | .row-fluid .span8 { | ||
5645 | width: 65.74585635359117%; | ||
5646 | *width: 65.69266486422946%; | ||
5647 | } | ||
5648 | .row-fluid .span7 { | ||
5649 | width: 57.18232044198895%; | ||
5650 | *width: 57.12912895262725%; | ||
5651 | } | ||
5652 | .row-fluid .span6 { | ||
5653 | width: 48.61878453038674%; | ||
5654 | *width: 48.56559304102504%; | ||
5655 | } | ||
5656 | .row-fluid .span5 { | ||
5657 | width: 40.05524861878453%; | ||
5658 | *width: 40.00205712942283%; | ||
5659 | } | ||
5660 | .row-fluid .span4 { | ||
5661 | width: 31.491712707182323%; | ||
5662 | *width: 31.43852121782062%; | ||
5663 | } | ||
5664 | .row-fluid .span3 { | ||
5665 | width: 22.92817679558011%; | ||
5666 | *width: 22.87498530621841%; | ||
5667 | } | ||
5668 | .row-fluid .span2 { | ||
5669 | width: 14.3646408839779%; | ||
5670 | *width: 14.311449394616199%; | ||
5671 | } | ||
5672 | .row-fluid .span1 { | ||
5673 | width: 5.801104972375691%; | ||
5674 | *width: 5.747913483013988%; | ||
5675 | } | ||
5676 | .row-fluid .offset12 { | ||
5677 | margin-left: 105.52486187845304%; | ||
5678 | *margin-left: 105.41847889972962%; | ||
5679 | } | ||
5680 | .row-fluid .offset12:first-child { | ||
5681 | margin-left: 102.76243093922652%; | ||
5682 | *margin-left: 102.6560479605031%; | ||
5683 | } | ||
5684 | .row-fluid .offset11 { | ||
5685 | margin-left: 96.96132596685082%; | ||
5686 | *margin-left: 96.8549429881274%; | ||
5687 | } | ||
5688 | .row-fluid .offset11:first-child { | ||
5689 | margin-left: 94.1988950276243%; | ||
5690 | *margin-left: 94.09251204890089%; | ||
5691 | } | ||
5692 | .row-fluid .offset10 { | ||
5693 | margin-left: 88.39779005524862%; | ||
5694 | *margin-left: 88.2914070765252%; | ||
5695 | } | ||
5696 | .row-fluid .offset10:first-child { | ||
5697 | margin-left: 85.6353591160221%; | ||
5698 | *margin-left: 85.52897613729868%; | ||
5699 | } | ||
5700 | .row-fluid .offset9 { | ||
5701 | margin-left: 79.8342541436464%; | ||
5702 | *margin-left: 79.72787116492299%; | ||
5703 | } | ||
5704 | .row-fluid .offset9:first-child { | ||
5705 | margin-left: 77.07182320441989%; | ||
5706 | *margin-left: 76.96544022569647%; | ||
5707 | } | ||
5708 | .row-fluid .offset8 { | ||
5709 | margin-left: 71.2707182320442%; | ||
5710 | *margin-left: 71.16433525332079%; | ||
5711 | } | ||
5712 | .row-fluid .offset8:first-child { | ||
5713 | margin-left: 68.50828729281768%; | ||
5714 | *margin-left: 68.40190431409427%; | ||
5715 | } | ||
5716 | .row-fluid .offset7 { | ||
5717 | margin-left: 62.70718232044199%; | ||
5718 | *margin-left: 62.600799341718584%; | ||
5719 | } | ||
5720 | .row-fluid .offset7:first-child { | ||
5721 | margin-left: 59.94475138121547%; | ||
5722 | *margin-left: 59.838368402492065%; | ||
5723 | } | ||
5724 | .row-fluid .offset6 { | ||
5725 | margin-left: 54.14364640883978%; | ||
5726 | *margin-left: 54.037263430116376%; | ||
5727 | } | ||
5728 | .row-fluid .offset6:first-child { | ||
5729 | margin-left: 51.38121546961326%; | ||
5730 | *margin-left: 51.27483249088986%; | ||
5731 | } | ||
5732 | .row-fluid .offset5 { | ||
5733 | margin-left: 45.58011049723757%; | ||
5734 | *margin-left: 45.47372751851417%; | ||
5735 | } | ||
5736 | .row-fluid .offset5:first-child { | ||
5737 | margin-left: 42.81767955801105%; | ||
5738 | *margin-left: 42.71129657928765%; | ||
5739 | } | ||
5740 | .row-fluid .offset4 { | ||
5741 | margin-left: 37.01657458563536%; | ||
5742 | *margin-left: 36.91019160691196%; | ||
5743 | } | ||
5744 | .row-fluid .offset4:first-child { | ||
5745 | margin-left: 34.25414364640884%; | ||
5746 | *margin-left: 34.14776066768544%; | ||
5747 | } | ||
5748 | .row-fluid .offset3 { | ||
5749 | margin-left: 28.45303867403315%; | ||
5750 | *margin-left: 28.346655695309746%; | ||
5751 | } | ||
5752 | .row-fluid .offset3:first-child { | ||
5753 | margin-left: 25.69060773480663%; | ||
5754 | *margin-left: 25.584224756083227%; | ||
5755 | } | ||
5756 | .row-fluid .offset2 { | ||
5757 | margin-left: 19.88950276243094%; | ||
5758 | *margin-left: 19.783119783707537%; | ||
5759 | } | ||
5760 | .row-fluid .offset2:first-child { | ||
5761 | margin-left: 17.12707182320442%; | ||
5762 | *margin-left: 17.02068884448102%; | ||
5763 | } | ||
5764 | .row-fluid .offset1 { | ||
5765 | margin-left: 11.32596685082873%; | ||
5766 | *margin-left: 11.219583872105325%; | ||
5767 | } | ||
5768 | .row-fluid .offset1:first-child { | ||
5769 | margin-left: 8.56353591160221%; | ||
5770 | *margin-left: 8.457152932878806%; | ||
5771 | } | ||
5772 | input, | ||
5773 | textarea, | ||
5774 | .uneditable-input { | ||
5775 | margin-left: 0; | ||
5776 | } | ||
5777 | .controls-row [class*="span"] + [class*="span"] { | ||
5778 | margin-left: 20px; | ||
5779 | } | ||
5780 | input.span12, textarea.span12, .uneditable-input.span12 { | ||
5781 | width: 710px; | ||
5782 | } | ||
5783 | input.span11, textarea.span11, .uneditable-input.span11 { | ||
5784 | width: 648px; | ||
5785 | } | ||
5786 | input.span10, textarea.span10, .uneditable-input.span10 { | ||
5787 | width: 586px; | ||
5788 | } | ||
5789 | input.span9, textarea.span9, .uneditable-input.span9 { | ||
5790 | width: 524px; | ||
5791 | } | ||
5792 | input.span8, textarea.span8, .uneditable-input.span8 { | ||
5793 | width: 462px; | ||
5794 | } | ||
5795 | input.span7, textarea.span7, .uneditable-input.span7 { | ||
5796 | width: 400px; | ||
5797 | } | ||
5798 | input.span6, textarea.span6, .uneditable-input.span6 { | ||
5799 | width: 338px; | ||
5800 | } | ||
5801 | input.span5, textarea.span5, .uneditable-input.span5 { | ||
5802 | width: 276px; | ||
5803 | } | ||
5804 | input.span4, textarea.span4, .uneditable-input.span4 { | ||
5805 | width: 214px; | ||
5806 | } | ||
5807 | input.span3, textarea.span3, .uneditable-input.span3 { | ||
5808 | width: 152px; | ||
5809 | } | ||
5810 | input.span2, textarea.span2, .uneditable-input.span2 { | ||
5811 | width: 90px; | ||
5812 | } | ||
5813 | input.span1, textarea.span1, .uneditable-input.span1 { | ||
5814 | width: 28px; | ||
5815 | } | ||
5816 | } | ||
5817 | @media (max-width: 767px) { | ||
5818 | body { | ||
5819 | padding-left: 20px; | ||
5820 | padding-right: 20px; | ||
5821 | } | ||
5822 | .navbar-fixed-top, | ||
5823 | .navbar-fixed-bottom, | ||
5824 | .navbar-static-top { | ||
5825 | margin-left: -20px; | ||
5826 | margin-right: -20px; | ||
5827 | } | ||
5828 | .container-fluid { | ||
5829 | padding: 0; | ||
5830 | } | ||
5831 | .dl-horizontal dt { | ||
5832 | float: none; | ||
5833 | clear: none; | ||
5834 | width: auto; | ||
5835 | text-align: left; | ||
5836 | } | ||
5837 | .dl-horizontal dd { | ||
5838 | margin-left: 0; | ||
5839 | } | ||
5840 | .container { | ||
5841 | width: auto; | ||
5842 | } | ||
5843 | .row-fluid { | ||
5844 | width: 100%; | ||
5845 | } | ||
5846 | .row, | ||
5847 | .thumbnails { | ||
5848 | margin-left: 0; | ||
5849 | } | ||
5850 | .thumbnails > li { | ||
5851 | float: none; | ||
5852 | margin-left: 0; | ||
5853 | } | ||
5854 | [class*="span"], | ||
5855 | .uneditable-input[class*="span"], | ||
5856 | .row-fluid [class*="span"] { | ||
5857 | float: none; | ||
5858 | display: block; | ||
5859 | width: 100%; | ||
5860 | margin-left: 0; | ||
5861 | -webkit-box-sizing: border-box; | ||
5862 | -moz-box-sizing: border-box; | ||
2535 | box-sizing: border-box; | 5863 | box-sizing: border-box; |
5864 | } | ||
5865 | .span12, | ||
5866 | .row-fluid .span12 { | ||
5867 | width: 100%; | ||
5868 | -webkit-box-sizing: border-box; | ||
2536 | -moz-box-sizing: border-box; | 5869 | -moz-box-sizing: border-box; |
5870 | box-sizing: border-box; | ||
5871 | } | ||
5872 | .row-fluid [class*="offset"]:first-child { | ||
5873 | margin-left: 0; | ||
5874 | } | ||
5875 | .input-large, | ||
5876 | .input-xlarge, | ||
5877 | .input-xxlarge, | ||
5878 | input[class*="span"], | ||
5879 | select[class*="span"], | ||
5880 | textarea[class*="span"], | ||
5881 | .uneditable-input { | ||
5882 | display: block; | ||
5883 | width: 100%; | ||
5884 | min-height: 30px; | ||
2537 | -webkit-box-sizing: border-box; | 5885 | -webkit-box-sizing: border-box; |
5886 | -moz-box-sizing: border-box; | ||
5887 | box-sizing: border-box; | ||
5888 | } | ||
5889 | .input-prepend input, | ||
5890 | .input-append input, | ||
5891 | .input-prepend input[class*="span"], | ||
5892 | .input-append input[class*="span"] { | ||
5893 | display: inline-block; | ||
5894 | width: auto; | ||
5895 | } | ||
5896 | .controls-row [class*="span"] + [class*="span"] { | ||
5897 | margin-left: 0; | ||
5898 | } | ||
5899 | .modal { | ||
5900 | position: fixed; | ||
5901 | top: 20px; | ||
5902 | left: 20px; | ||
5903 | right: 20px; | ||
5904 | width: auto; | ||
2538 | margin: 0; | 5905 | margin: 0; |
2539 | border: none; | ||
2540 | padding: 12px 10px 0 110px; | ||
2541 | height: 42px; | ||
2542 | background: none; | ||
2543 | font-size: 16px; | ||
2544 | font-weight: normal; | ||
2545 | |||
2546 | padding-left: 40px; | ||
2547 | color: black; | ||
2548 | //background: url(./images/old/iPhone/listArrow.png) no-repeat right center; | ||
2549 | background: url(data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAAUCAYAAAB4d5a9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAKVJREFUeNpi/P//PwOtARMDHcDwsYQFRJSXl8P4dVC6CZvizs5O8i1BsqARid9Ei+BiQ2KDLKumhSU1QNyKxG+hlkXoEQ+yqAPNogpapK5KNIvaKbUIVxKeAsTvkPg5QCxETUukgfgAkqFPgdgBzVKKLIFZoIJmwR1qBRdNLEC2BJQpV9LCAmRL/gBxAtRwqlqAXqzcgRrOQE0LQIBxtNIiBQAEGAA7xCa2yF9zEgAAAABJRU5ErkJgggo=) no-repeat right center; | ||
2550 | } | 5906 | } |
2551 | 5907 | .modal.fade { | |
2552 | body[orientation="landscape"] div.cardDetailPanel > fieldset > div.row > span.directLogin { | 5908 | top: -100px; |
2553 | padding-left: 50px; | ||
2554 | } | 5909 | } |
2555 | 5910 | .modal.fade.in { | |
2556 | div.cardDetailPanel h2 { | 5911 | top: 20px; |
2557 | margin: 0 0 8px 14px; | 5912 | } |
2558 | font-size: inherit; | 5913 | } |
5914 | @media (max-width: 480px) { | ||
5915 | .nav-collapse { | ||
5916 | -webkit-transform: translate3d(0, 0, 0); | ||
5917 | } | ||
5918 | .page-header h1 small { | ||
5919 | display: block; | ||
5920 | line-height: 20px; | ||
5921 | } | ||
5922 | input[type="checkbox"], | ||
5923 | input[type="radio"] { | ||
5924 | border: 1px solid #ccc; | ||
5925 | } | ||
5926 | .form-horizontal .control-label { | ||
5927 | float: none; | ||
5928 | width: auto; | ||
5929 | padding-top: 0; | ||
5930 | text-align: left; | ||
5931 | } | ||
5932 | .form-horizontal .controls { | ||
5933 | margin-left: 0; | ||
5934 | } | ||
5935 | .form-horizontal .control-list { | ||
5936 | padding-top: 0; | ||
5937 | } | ||
5938 | .form-horizontal .form-actions { | ||
5939 | padding-left: 10px; | ||
5940 | padding-right: 10px; | ||
5941 | } | ||
5942 | .media .pull-left, | ||
5943 | .media .pull-right { | ||
5944 | float: none; | ||
5945 | display: block; | ||
5946 | margin-bottom: 10px; | ||
5947 | } | ||
5948 | .media-object { | ||
5949 | margin-right: 0; | ||
5950 | margin-left: 0; | ||
5951 | } | ||
5952 | .modal { | ||
5953 | top: 10px; | ||
5954 | left: 10px; | ||
5955 | right: 10px; | ||
5956 | } | ||
5957 | .modal-header .close { | ||
5958 | padding: 10px; | ||
5959 | margin: -10px; | ||
5960 | } | ||
5961 | .carousel-caption { | ||
5962 | position: static; | ||
5963 | } | ||
5964 | } | ||
5965 | @media (max-width: 979px) { | ||
5966 | body { | ||
5967 | padding-top: 0; | ||
5968 | } | ||
5969 | .navbar-fixed-top, | ||
5970 | .navbar-fixed-bottom { | ||
5971 | position: static; | ||
5972 | } | ||
5973 | .navbar-fixed-top { | ||
5974 | margin-bottom: 20px; | ||
5975 | } | ||
5976 | .navbar-fixed-bottom { | ||
5977 | margin-top: 20px; | ||
5978 | } | ||
5979 | .navbar-fixed-top .navbar-inner, | ||
5980 | .navbar-fixed-bottom .navbar-inner { | ||
5981 | padding: 5px; | ||
5982 | } | ||
5983 | .navbar .container { | ||
5984 | width: auto; | ||
5985 | padding: 0; | ||
5986 | } | ||
5987 | .navbar .brand { | ||
5988 | padding-left: 10px; | ||
5989 | padding-right: 10px; | ||
5990 | margin: 0 0 0 -5px; | ||
5991 | } | ||
5992 | .nav-collapse { | ||
5993 | clear: both; | ||
5994 | } | ||
5995 | .nav-collapse .nav { | ||
5996 | float: none; | ||
5997 | margin: 0 0 10px; | ||
5998 | } | ||
5999 | .nav-collapse .nav > li { | ||
6000 | float: none; | ||
6001 | } | ||
6002 | .nav-collapse .nav > li > a { | ||
6003 | margin-bottom: 2px; | ||
6004 | } | ||
6005 | .nav-collapse .nav > .divider-vertical { | ||
6006 | display: none; | ||
6007 | } | ||
6008 | .nav-collapse .nav .nav-header { | ||
6009 | color: #777777; | ||
6010 | text-shadow: none; | ||
6011 | } | ||
6012 | .nav-collapse .nav > li > a, | ||
6013 | .nav-collapse .dropdown-menu a { | ||
6014 | padding: 9px 15px; | ||
2559 | font-weight: bold; | 6015 | font-weight: bold; |
2560 | color: #4d4d70; | 6016 | color: #777777; |
2561 | text-shadow: rgba(255, 255, 255, 0.75) 1px 1px 0; | 6017 | -webkit-border-radius: 3px; |
6018 | -moz-border-radius: 3px; | ||
6019 | border-radius: 3px; | ||
2562 | } | 6020 | } |
2563 | 6021 | .nav-collapse .btn { | |
2564 | body[orientation="portrait"] > * { | 6022 | padding: 4px 10px 4px; |
2565 | width: 320px; | 6023 | font-weight: normal; |
6024 | -webkit-border-radius: 4px; | ||
6025 | -moz-border-radius: 4px; | ||
6026 | border-radius: 4px; | ||
6027 | } | ||
6028 | .nav-collapse .dropdown-menu li + li a { | ||
6029 | margin-bottom: 2px; | ||
6030 | } | ||
6031 | .nav-collapse .nav > li > a:hover, | ||
6032 | .nav-collapse .dropdown-menu a:hover { | ||
6033 | background-color: #f2f2f2; | ||
6034 | } | ||
6035 | .navbar-inverse .nav-collapse .nav > li > a, | ||
6036 | .navbar-inverse .nav-collapse .dropdown-menu a { | ||
6037 | color: #999999; | ||
6038 | } | ||
6039 | .navbar-inverse .nav-collapse .nav > li > a:hover, | ||
6040 | .navbar-inverse .nav-collapse .dropdown-menu a:hover { | ||
6041 | background-color: #111111; | ||
6042 | } | ||
6043 | .nav-collapse.in .btn-group { | ||
6044 | margin-top: 5px; | ||
6045 | padding: 0; | ||
6046 | } | ||
6047 | .nav-collapse .dropdown-menu { | ||
6048 | position: static; | ||
6049 | top: auto; | ||
6050 | left: auto; | ||
6051 | float: none; | ||
6052 | display: none; | ||
6053 | max-width: none; | ||
6054 | margin: 0 15px; | ||
6055 | padding: 0; | ||
6056 | background-color: transparent; | ||
6057 | border: none; | ||
6058 | -webkit-border-radius: 0; | ||
6059 | -moz-border-radius: 0; | ||
6060 | border-radius: 0; | ||
6061 | -webkit-box-shadow: none; | ||
6062 | -moz-box-shadow: none; | ||
6063 | box-shadow: none; | ||
6064 | } | ||
6065 | .nav-collapse .open > .dropdown-menu { | ||
6066 | display: block; | ||
6067 | } | ||
6068 | .nav-collapse .dropdown-menu:before, | ||
6069 | .nav-collapse .dropdown-menu:after { | ||
6070 | display: none; | ||
6071 | } | ||
6072 | .nav-collapse .dropdown-menu .divider { | ||
6073 | display: none; | ||
6074 | } | ||
6075 | .nav-collapse .nav > li > .dropdown-menu:before, | ||
6076 | .nav-collapse .nav > li > .dropdown-menu:after { | ||
6077 | display: none; | ||
6078 | } | ||
6079 | .nav-collapse .navbar-form, | ||
6080 | .nav-collapse .navbar-search { | ||
6081 | float: none; | ||
6082 | padding: 10px 15px; | ||
6083 | margin: 10px 0; | ||
6084 | border-top: 1px solid #f2f2f2; | ||
6085 | border-bottom: 1px solid #f2f2f2; | ||
6086 | -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1); | ||
6087 | -moz-box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1); | ||
6088 | box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1); | ||
6089 | } | ||
6090 | .navbar-inverse .nav-collapse .navbar-form, | ||
6091 | .navbar-inverse .nav-collapse .navbar-search { | ||
6092 | border-top-color: #111111; | ||
6093 | border-bottom-color: #111111; | ||
6094 | } | ||
6095 | .navbar .nav-collapse .nav.pull-right { | ||
6096 | float: none; | ||
6097 | margin-left: 0; | ||
6098 | } | ||
6099 | .nav-collapse, | ||
6100 | .nav-collapse.collapse { | ||
6101 | overflow: hidden; | ||
6102 | height: 0; | ||
6103 | } | ||
6104 | .navbar .btn-navbar { | ||
6105 | display: block; | ||
6106 | } | ||
6107 | .navbar-static .navbar-inner { | ||
6108 | padding-left: 10px; | ||
6109 | padding-right: 10px; | ||
6110 | } | ||
6111 | } | ||
6112 | @media (min-width: 980px) { | ||
6113 | .nav-collapse.collapse { | ||
6114 | height: auto !important; | ||
6115 | overflow: visible !important; | ||
6116 | } | ||
6117 | } | ||
6118 | div.spinner { | ||
6119 | position: relative; | ||
6120 | width: 100px; | ||
6121 | height: 100px; | ||
6122 | display: inline-block; | ||
6123 | } | ||
6124 | div.spinner div { | ||
6125 | width: 12%; | ||
6126 | height: 26%; | ||
6127 | background: #000; | ||
6128 | position: absolute; | ||
6129 | left: 44.5%; | ||
6130 | top: 37%; | ||
6131 | opacity: 0; | ||
6132 | -webkit-animation: fade 1s linear infinite; | ||
6133 | -webkit-border-radius: 50px; | ||
6134 | -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); | ||
6135 | } | ||
6136 | div.spinner div.bar01 { | ||
6137 | -webkit-transform: rotate(0deg) translate(0, -142%); | ||
6138 | -webkit-animation-delay: 0s; | ||
6139 | } | ||
6140 | div.spinner div.bar02 { | ||
6141 | -webkit-transform: rotate(30deg) translate(0, -142%); | ||
6142 | -webkit-animation-delay: -0.9167s; | ||
6143 | } | ||
6144 | div.spinner div.bar03 { | ||
6145 | -webkit-transform: rotate(60deg) translate(0, -142%); | ||
6146 | -webkit-animation-delay: -0.833s; | ||
6147 | } | ||
6148 | div.spinner div.bar04 { | ||
6149 | -webkit-transform: rotate(90deg) translate(0, -142%); | ||
6150 | -webkit-animation-delay: -0.75s; | ||
6151 | } | ||
6152 | div.spinner div.bar05 { | ||
6153 | -webkit-transform: rotate(120deg) translate(0, -142%); | ||
6154 | -webkit-animation-delay: -0.667s; | ||
6155 | } | ||
6156 | div.spinner div.bar06 { | ||
6157 | -webkit-transform: rotate(150deg) translate(0, -142%); | ||
6158 | -webkit-animation-delay: -0.5833s; | ||
6159 | } | ||
6160 | div.spinner div.bar07 { | ||
6161 | -webkit-transform: rotate(180deg) translate(0, -142%); | ||
6162 | -webkit-animation-delay: -0.5s; | ||
6163 | } | ||
6164 | div.spinner div.bar08 { | ||
6165 | -webkit-transform: rotate(210deg) translate(0, -142%); | ||
6166 | -webkit-animation-delay: -0.41667s; | ||
6167 | } | ||
6168 | div.spinner div.bar09 { | ||
6169 | -webkit-transform: rotate(240deg) translate(0, -142%); | ||
6170 | -webkit-animation-delay: -0.333s; | ||
6171 | } | ||
6172 | div.spinner div.bar10 { | ||
6173 | -webkit-transform: rotate(270deg) translate(0, -142%); | ||
6174 | -webkit-animation-delay: -0.25s; | ||
6175 | } | ||
6176 | div.spinner div.bar11 { | ||
6177 | -webkit-transform: rotate(300deg) translate(0, -142%); | ||
6178 | -webkit-animation-delay: -0.1667s; | ||
6179 | } | ||
6180 | div.spinner div.bar12 { | ||
6181 | -webkit-transform: rotate(330deg) translate(0, -142%); | ||
6182 | -webkit-animation-delay: -0.0833s; | ||
6183 | } | ||
6184 | @-webkit-keyframes fade { | ||
6185 | from { | ||
6186 | opacity: 1; | ||
6187 | } | ||
6188 | to { | ||
6189 | opacity: 0.25; | ||
2566 | } | 6190 | } |
2567 | |||
2568 | body[orientation="landscape"] > * { | ||
2569 | width: 480px; | ||
2570 | } | 6191 | } |
2571 | */ \ No newline at end of file | ||
diff --git a/frontend/gamma/css/static.css b/frontend/gamma/css/static.css index 9953a8d..81725c5 100644 --- a/frontend/gamma/css/static.css +++ b/frontend/gamma/css/static.css | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/css/web.css b/frontend/gamma/css/web.css index 5d8bc20..011831a 100644 --- a/frontend/gamma/css/web.css +++ b/frontend/gamma/css/web.css | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -214,6 +212,7 @@ div.tooltip div.tooltip_body { | |||
214 | -webkit-border-radius: 8px; | 212 | -webkit-border-radius: 8px; |
215 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bbbbbb), to(#555555)); | 213 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bbbbbb), to(#555555)); |
216 | background: -moz-linear-gradient(0% 100% 90deg, #555555, #bbbbbb); | 214 | background: -moz-linear-gradient(0% 100% 90deg, #555555, #bbbbbb); |
215 | background: linear-gradient(0deg, #555555, #bbbbbb); | ||
217 | -webkit-box-shadow: 4px 4px 10px #333333; | 216 | -webkit-box-shadow: 4px 4px 10px #333333; |
218 | -moz-box-shadow: 4px 4px 10px #333333; | 217 | -moz-box-shadow: 4px 4px 10px #333333; |
219 | box-shadow: 4px 4px 10px #333333; | 218 | box-shadow: 4px 4px 10px #333333; |
@@ -269,6 +268,7 @@ div.tooltip.RIGHT div.tooltip_body div.tooltip_text { | |||
269 | cursor: pointer; | 268 | cursor: pointer; |
270 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffa76f), to(#ff6622)); | 269 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffa76f), to(#ff6622)); |
271 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ffa76f); | 270 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ffa76f); |
271 | background: linear-gradient(0deg, #ff6622, #ffa76f); | ||
272 | border-radius: 5; | 272 | border-radius: 5; |
273 | -moz-border-radius: 5; | 273 | -moz-border-radius: 5; |
274 | -webkit-border-radius: 5; | 274 | -webkit-border-radius: 5; |
@@ -286,6 +286,7 @@ div.tooltip.RIGHT div.tooltip_body div.tooltip_text { | |||
286 | .button.default:hover { | 286 | .button.default:hover { |
287 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff8e46), to(#ff6622)); | 287 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff8e46), to(#ff6622)); |
288 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff8e46); | 288 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff8e46); |
289 | background: linear-gradient(0deg, #ff6622, #ff8e46); | ||
289 | } | 290 | } |
290 | .button { | 291 | .button { |
291 | display: inline-block; | 292 | display: inline-block; |
@@ -293,6 +294,7 @@ div.tooltip.RIGHT div.tooltip_body div.tooltip_text { | |||
293 | cursor: pointer; | 294 | cursor: pointer; |
294 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bfbfbf), to(#999999)); | 295 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#bfbfbf), to(#999999)); |
295 | background: -moz-linear-gradient(0% 100% 90deg, #999999, #bfbfbf); | 296 | background: -moz-linear-gradient(0% 100% 90deg, #999999, #bfbfbf); |
297 | background: linear-gradient(0deg, #999999, #bfbfbf); | ||
296 | border-radius: 5; | 298 | border-radius: 5; |
297 | -moz-border-radius: 5; | 299 | -moz-border-radius: 5; |
298 | -webkit-border-radius: 5; | 300 | -webkit-border-radius: 5; |
@@ -309,6 +311,7 @@ div.tooltip.RIGHT div.tooltip_body div.tooltip_text { | |||
309 | .button:hover { | 311 | .button:hover { |
310 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ababab), to(#999999)); | 312 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ababab), to(#999999)); |
311 | background: -moz-linear-gradient(0% 100% 90deg, #999999, #ababab); | 313 | background: -moz-linear-gradient(0% 100% 90deg, #999999, #ababab); |
314 | background: linear-gradient(0deg, #999999, #ababab); | ||
312 | } | 315 | } |
313 | /* | 316 | /* |
314 | 317 | ||
@@ -449,6 +452,7 @@ div.pageHeaderAndBody div.pageHeader div#featureTabs canvas.featureIcon { | |||
449 | float: left; | 452 | float: left; |
450 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffad79), to(#ff6622)); | 453 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ffad79), to(#ff6622)); |
451 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ffad79); | 454 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ffad79); |
455 | background: linear-gradient(0deg, #ff6622, #ffad79); | ||
452 | border-radius: 38px; | 456 | border-radius: 38px; |
453 | -moz-border-radius: 38px; | 457 | -moz-border-radius: 38px; |
454 | -webkit-border-radius: 38px; | 458 | -webkit-border-radius: 38px; |
@@ -615,6 +619,7 @@ div#loginBox div.header { | |||
615 | div#loginBox div.body { | 619 | div#loginBox div.body { |
616 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9b5a), to(#ff6622)); | 620 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9b5a), to(#ff6622)); |
617 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff9b5a); | 621 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff9b5a); |
622 | background: linear-gradient(0deg, #ff6622, #ff9b5a); | ||
618 | } | 623 | } |
619 | div#loginBox div.body h4 { | 624 | div#loginBox div.body h4 { |
620 | color: #ffffff; | 625 | color: #ffffff; |
@@ -892,6 +897,7 @@ div.userInfoBox { | |||
892 | background-color: #ff9955; | 897 | background-color: #ff9955; |
893 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9a56), to(#ff6723)); | 898 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9a56), to(#ff6723)); |
894 | background: -moz-linear-gradient(0% 100% 90deg, #ff6723, #ff9a56); | 899 | background: -moz-linear-gradient(0% 100% 90deg, #ff6723, #ff9a56); |
900 | background: linear-gradient(0deg, #ff6723, #ff9a56); | ||
895 | border-radius: 10px; | 901 | border-radius: 10px; |
896 | -moz-border-radius: 10px; | 902 | -moz-border-radius: 10px; |
897 | -webkit-border-radius: 10px; | 903 | -webkit-border-radius: 10px; |
@@ -1273,6 +1279,7 @@ div.subPanelContent ul li.selected { | |||
1273 | cursor: pointer; | 1279 | cursor: pointer; |
1274 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#59bc4c), to(#448833)); | 1280 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#59bc4c), to(#448833)); |
1275 | background: -moz-linear-gradient(0% 100% 90deg, #448833, #59bc4c); | 1281 | background: -moz-linear-gradient(0% 100% 90deg, #448833, #59bc4c); |
1282 | background: linear-gradient(0deg, #448833, #59bc4c); | ||
1276 | border-radius: 5; | 1283 | border-radius: 5; |
1277 | -moz-border-radius: 5; | 1284 | -moz-border-radius: 5; |
1278 | -webkit-border-radius: 5; | 1285 | -webkit-border-radius: 5; |
@@ -1289,6 +1296,7 @@ div.subPanelContent ul li.selected { | |||
1289 | .downloadOfflineCopy:hover { | 1296 | .downloadOfflineCopy:hover { |
1290 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#49a23d), to(#448833)); | 1297 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#49a23d), to(#448833)); |
1291 | background: -moz-linear-gradient(0% 100% 90deg, #448833, #49a23d); | 1298 | background: -moz-linear-gradient(0% 100% 90deg, #448833, #49a23d); |
1299 | background: linear-gradient(0deg, #448833, #49a23d); | ||
1292 | } | 1300 | } |
1293 | div.SimpleMessagePanel { | 1301 | div.SimpleMessagePanel { |
1294 | position: relative; | 1302 | position: relative; |
@@ -1322,6 +1330,7 @@ div.SimpleMessagePanel div.body div.img { | |||
1322 | margin-right: 15px; | 1330 | margin-right: 15px; |
1323 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9b5a), to(#ff6622)); | 1331 | background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#ff9b5a), to(#ff6622)); |
1324 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff9b5a); | 1332 | background: -moz-linear-gradient(0% 100% 90deg, #ff6622, #ff9b5a); |
1333 | background: linear-gradient(0deg, #ff6622, #ff9b5a); | ||
1325 | border-radius: 25px; | 1334 | border-radius: 25px; |
1326 | -moz-border-radius: 25px; | 1335 | -moz-border-radius: 25px; |
1327 | -webkit-border-radius: 25px; | 1336 | -webkit-border-radius: 25px; |
diff --git a/frontend/gamma/html/mobile_template.html b/frontend/gamma/html/mobile_template.html index 184fbd9..935fbe5 100644 --- a/frontend/gamma/html/mobile_template.html +++ b/frontend/gamma/html/mobile_template.html | |||
@@ -1,4 +1,4 @@ | |||
1 | <!doctype html> | 1 | <!DOCTYPE html> |
2 | <!-- Conditional comment for mobile ie7 blogs.msdn.com/b/iemobile/ --> | 2 | <!-- Conditional comment for mobile ie7 blogs.msdn.com/b/iemobile/ --> |
3 | <!--[if IEMobile 7 ]> <html class="no-js iem7" lang="en"> <![endif]--> | 3 | <!--[if IEMobile 7 ]> <html class="no-js iem7" lang="en"> <![endif]--> |
4 | <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js" lang="en" manifest="mobile.appcache"> <!--<![endif]--> | 4 | <!--[if (gt IEMobile 7)|!(IEMobile)]><!--> <html class="no-js" lang="en" manifest="mobile.appcache"> <!--<![endif]--> |
@@ -8,7 +8,8 @@ | |||
8 | 8 | ||
9 | <meta name="HandheldFriendly" content="True"> | 9 | <meta name="HandheldFriendly" content="True"> |
10 | <meta name="MobileOptimized" content="320"> | 10 | <meta name="MobileOptimized" content="320"> |
11 | <meta name="viewport" content="width=device-width"> | 11 | <!-- meta name="viewport" content="width=device-width" --> |
12 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
12 | 13 | ||
13 | <!-- link rel="apple-touch-icon-precomposed" ... --> | 14 | <!-- link rel="apple-touch-icon-precomposed" ... --> |
14 | <link rel="apple-touch-icon" sizes="114x114" href="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAByCAIAAAAAvxIqAAAD8GlDQ1BJQ0MgUHJvZmlsZQAAKJGNVd1v21QUP4lvXKQWP6Cxjg4Vi69VU1u5GxqtxgZJk6XpQhq5zdgqpMl1bhpT1za2021Vn/YCbwz4A4CyBx6QeEIaDMT2su0BtElTQRXVJKQ9dNpAaJP2gqpwrq9Tu13GuJGvfznndz7v0TVAx1ea45hJGWDe8l01n5GPn5iWO1YhCc9BJ/RAp6Z7TrpcLgIuxoVH1sNfIcHeNwfa6/9zdVappwMknkJsVz19HvFpgJSpO64PIN5G+fAp30Hc8TziHS4miFhheJbjLMMzHB8POFPqKGKWi6TXtSriJcT9MzH5bAzzHIK1I08t6hq6zHpRdu2aYdJYuk9Q/881bzZa8Xrx6fLmJo/iu4/VXnfH1BB/rmu5ScQvI77m+BkmfxXxvcZcJY14L0DymZp7pML5yTcW61PvIN6JuGr4halQvmjNlCa4bXJ5zj6qhpxrujeKPYMXEd+q00KR5yNAlWZzrF+Ie+uNsdC/MO4tTOZafhbroyXuR3Df08bLiHsQf+ja6gTPWVimZl7l/oUrjl8OcxDWLbNU5D6JRL2gxkDu16fGuC054OMhclsyXTOOFEL+kmMGs4i5kfNuQ62EnBuam8tzP+Q+tSqhz9SuqpZlvR1EfBiOJTSgYMMM7jpYsAEyqJCHDL4dcFFTAwNMlFDUUpQYiadhDmXteeWAw3HEmA2s15k1RmnP4RHuhBybdBOF7MfnICmSQ2SYjIBM3iRvkcMki9IRcnDTthyLz2Ld2fTzPjTQK+Mdg8y5nkZfFO+se9LQr3/09xZr+5GcaSufeAfAww60mAPx+q8u/bAr8rFCLrx7s+vqEkw8qb+p26n11Aruq6m1iJH6PbWGv1VIY25mkNE8PkaQhxfLIF7DZXx80HD/A3l2jLclYs061xNpWCfoB6WHJTjbH0mV35Q/lRXlC+W8cndbl9t2SfhU+Fb4UfhO+F74GWThknBZ+Em4InwjXIyd1ePnY/Psg3pb1TJNu15TMKWMtFt6ScpKL0ivSMXIn9QtDUlj0h7U7N48t3i8eC0GnMC91dX2sTivgloDTgUVeEGHLTizbf5Da9JLhkhh29QOs1luMcScmBXTIIt7xRFxSBxnuJWfuAd1I7jntkyd/pgKaIwVr3MgmDo2q8x6IdB5QH162mcX7ajtnHGN2bov71OU1+U0fqqoXLD0wX5ZM005UHmySz3qLtDqILDvIL+iH6jB9y2x83ok898GOPQX3lk3Itl0A+BrD6D7tUjWh3fis58BXDigN9yF8M5PJH4B8Gr79/F/XRm8m241mw/wvur4BGDj42bzn+Vmc+NL9L8GcMn8F1kAcXjEKMJAAAAACXBIWXMAAAsTAAALEwEAmpwYAAABbmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iPgogICAgICAgICA8ZGM6c3ViamVjdD4KICAgICAgICAgICAgPHJkZjpCYWcvPgogICAgICAgICA8L2RjOnN1YmplY3Q+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrlPw1BAAAd7klEQVR4nO19eZQV13nn797a3tr7yg5ikxCIHRohkACBEFqsJY4z8T52nPHYPp74JJ54bMfOsRMf2Z44OZ7EJ16iDLIsS5ZlydJY+2Ii1haiAQFCNGvTNHS/9/pt9Wq93/xRb+9u6OU1wif9O3Wq6223bv3qu7/vu9+9txqYwAQmMIEJTGACE5jABCbwnxTs/a4AHnjggY0bNwohxl4U5/xnP/tZe3v72Iv6g8fDDz9MlcOHP/zh9/uCAEB+vysA27YBkHAh7KK3aSRlMIDAFcZl13UrW73R4f2nNQvXYGYMjANUROkVyWXZvbBIDcLXOH4VHBGuGVoBgAMMYGAAERhAeekfyC8r+svA3n8nUYxrilYXxAFkScz6sKENlgHkfc5AYmSyMc64dmglEOW4pOyOUSlZxS9Y4RVjIHeEcjy+uGZoJYBErmlTdk/5V0NQxnLkUgXiswrimqEVAIkcTQU685+BioJsyikAkDXbCVqHABWslcpopcJfopIuTIFZMSECQ0GAWBGJA2j13mQspw8MeRumayJczeNaorVMW7MxVqkUgIEox6Yo7CdEYAhQji+UuKxyWgcFA0SWWbompODaoRUD7K40Hri8dJIgIVjRt99fXEu0FhNKpWabbfulYJTthjGAXLqW5PVapRUYwGyuj1AcGGTBQAJiQgQGotDFQkFkBwkGcpZbiAK8nqsgEsC10te6FmglAESCeZFAltPiMGvQSAtALhYAsrSSmLDWLIg8Wt0iQgdoa7nXKupm5TuvwgW5NEFrFp6kilyEVGAWGERSvT0rsWgwkEtZeZ2g1YNnX1llRIHNYlq9Dy6Tc4EgciHcPzwRuP/++9Pp9KuvvuoNk1QKRAQIKjBSrABFx9l2P2jvgIFcCAFyxyNunTVj2h/dt82nad/8zg+G+ZPh0ur3+7/70HdnXTdrz54927dvf+qpp7q7u0dbzxJkaaVSESjYbFHbz3NKJSksIOuySFTSZQX8/lvWrPjQg3dvWr92UktTV/eFH/30kYu9fcP57XBpXbOmbebMGURi1apVq1at+upX/9czTz+9/ZGf79q1a8yjciKrjCgKPEvcF8o7tRggBiRIuCQqE2DNnjXjvrs2P3jvHTfMn6sosmmayWSiqaF2w/q2X/zqt8MpYbi0Pvjgg4xzYaXgpIhrLY31f/aZP//EJz6+e/fu7du3P/3Ms5cuXRrlRQjynHhRp55KDgbpdJUIQDbf6hnsGKw1FAysu3nlnzxw94Z1bfX1dY5tO44BV6gwDVcmId+7dWMlaa2urr5j8+0kXLgW4yoTJukpwSQu+2+5Ze0t69Z9/aunnvnts9t//os9e/aO/MIIwi2JBMqZ9YS1zGXlDgRlIwHhQjijE4F5c2Y9eM8dH7hr8/Vzr+MSt03TTPerkutTuCSrINW2kpaptK1YNG3KpLNdV1a/YdG6fv26GTNnuJbByQWTwRQmSZKwyYoLMya4Nqml4bOf+++f/PhHd+7c9cijjz373O96+4alQQCIBIQrhFuqrQNsVgwwWO/TbEfLJRJCjEyOqsKhDevaPnT/tnVrVtbVVlu27ZhpmVl+iWRNYpIMcIDAFZU5KcdsrK3efNuan2z/1RVLHhatD95/Hxgn12CMgbw0vgBjjKuMXC4M0pOOLklycMNt6zZsuPXUyZO/efq3jz72RPv+t69culegtxXKH0DrQB3wDgi5/quLgt+7AhbMn/PgvVvu2bpp7uyZnDPbNKx0ROW2ooBzCVwCGIQAIxCBQ1EVltZdV7l787qfPvLkFVvklWltbGzccNt6YWUYOeBK9pqLXQqXGeOycMiOuWZEcN/USY3/44uf+/QnP/YfO3c98ugvf/fiy9FobKjyCUTCpWy/s6jkkoNSqS3skR0vIEFCkHAvf7011VWb1q/54/vvXLt6WU11tW2ZrpngyAS5KyscXAI4iCBcMMpOWgBBEJd9CqKm6Vu2aP6cWdOOd54ZK60bb1s/eXKrldEVr7kVsZGj2LMRxrgqMUcSGaEnbV1SpNDmjetu33jric7Op37z7GNP/Lrj0DuD8SqyXU+IrHqW8VvSNSjrdCH7KYmsvA4RCSxaMO/Be7bcs3XDdTOnc8ZsM+2kuzVmKpwYl8A4gKx5gmXbfvYAAIFLqkyGaVZXBbfc2lYBWh+47wMggrCYoiBvU0DBlLIXKbLHTOIS4+SQExHxXof5Zk5p/PKXPv+ZT33s9zvefPTxJ198+fX+eKLAKuWttcxlDTDYEmXIcQoAjMj1rLXMZdXX1tx+25oPfmDrmpVLqsJh28oIIyKTHuK2JDEwzzxF1iVmzbOYU++MHIIpisYyumPL226/+V8efsK5bFh5BVqnTpmybm2bbegcAkzKznIgKr0wkXtHZAc/iAAwLktMSCIjMklHl/xSeNuWW7du3nj8vfd+/fRzv3zymSPHjgPw4k0ityhuHZTZPK2D9LgYuQRBJNyc11qy6Po/uueOu7asnzl9GgM5ZkKkzviZoXABzzwJIBdMADyXEfemKnnH3mwwBpY9KVc0hSVM01w0f9YN82YdPPLe6GndvOm2pqYGQ0+qipQjseiCy7qSVEqHRzTjXFI4OYrb5yZ6BfPNmd70lb/8/H/79Eff2LHz4UceD/h9wnUgRDmVA5kt7hqIXMo1a7ACwhWO01BX88cf2PpfHty2avnicDDgWDrpFxSk/MzmHGBSzr95I7gsSxwxMAbGQBxEYLl9Yd4CgUk+hWUyZtAf2Lph9eVpvdyMMMbYs089dsfmjbaR0nwhICthOZPMbdmXOUdMBLjZg8KnORUWthC2Q7LLw5K/1rJhGBlVVbmTCIme3J27jPvK39ocoV7YKpwENTtyfSaTqQqHOBPCjMsirrGMxAisaNJc9oCVHGT3vGjPAF7yDpfITvdG01wJH363c+uffskwraGou5y1zr5u1uoVSy0jI3MGzpF3CESFrcRsaWhNyHk2xjlXVHIh+pxkrwyfxqtclzMigmBe4UPSivLj3I6RICJBIqQJnjmnIqkwh/Gcz/ES5IUpiGzAxnPdNZ4z5LywMoDAOASYrGk8plvW/FlTFi+YvXv/kdHQeueWjbU11YaelNRAzsGW+qtyTUCRBytuy6LoHuQsl0myRDLpqptwhOxCAs9rqyj9eZk4oLQO3idCdmM+iqtM53nz9NpNfg4s5ayVsQK/xLPBMssJQj6uyjLLCxVgkk9T0knDFwjcuWHVaGiVJeneu7Y4tsVATFJzjRrZRsGkrBV4zV84gAPk55rJhebPvD6lneUUZVwzzmWVuSCzkJwelNlifoGi9gGAGEOIp4rUMN8pYIWDPJtULAI5YSWWlVTPeIlyFFPhJUHVfFKy3zLljWsWPxTwp/TMyGi94fp5S2+60TIzmqqAK1lCyYGdgHEJ+jlkeqB3I9MFMwonBWHBixaYDK5BqYIShlYPtR5qPbQGyAFwDRAQTqny5oKY7LG4HLNsqN6Bd0fzg4zFhKJgsN5Bll9WOChQyQr+iigXJOReCmKy6pPchG3Omtq84qZ5r+06MDJa7966KRTwZwxD0kIw+hB/B5G30H8QyfeQPgs7CVE6U7d4CmUxOMBlKGH4WhCYjPBchGbBPwVKFZgMYQFOSc+isC8S2WJmB0lxFZ14YAWGVFWAeM6JFcWqlJvmhXw8kL/xAJP9fiWRMWUlsO225SOjVVXVbXdstB3B4wfZwR8jfgiZbm9MpETlhwlyYMZgxNB/FHgZnEFrRGg2ahai5kb4WsEVCCvX0Sp2WZcV2QKzrNxy84QWuGalNpu3guIDzzsxEM/63oIs5E4toGh+hfWZlrxu5Q211aFYPDVcWpfedOON82dbtu07sx3nXoAMMEAaNo8DwQrXCBCMS8hcQu9OyBpCs1G/HLVL4WsGOMgqUl5RwmNJQrbIa5U4MZQ2HFa6L9PWHJvFzT8byeZdmWe2yPcLmKT6VYrp1pTm2jVL5z/32iDLwAan6rOf+si6taudZLev8/uM9MtGt6NC3mLIRaYXsQ707kD6JJgMrR5czWW1Sw22oLmicFDwhKUDt1lac28ylN+M4o0V3R42YI+8TXg/55ysVNqQZcVx3f/3+lsDr28Qaw0GA1s23mLarhTbzY3eETT20cEr30mjdw/69iA0E03rUbccchCuVS61JRRjQGCAIXWgzGAHD12pYLnFCpv3ltnvQPUFVClhWmbb4tnNDTUX+/rLrmkQa13btvxzn/pTx3H8p34o6acrb6qDIn91Vj+iB9D/NiDga4akFSVSS0W2kJbNezYxiCWiKH4o2CYKRoqylyh6M49SlyjJZCXTGVETDhzpPH/kRFfZ1Qxiivdu3SjLEqwos/rAclW9avDsJnMBpx7Fse8hsjuX3i7rK3sKkGfcBTyP5w6yCe99J7sXInec/0L+uLgXXlaOyKVmBFxTljiERcLdesvCgYvCyq21vq7277/2xYBPcUmyGjba1ctJDjA3ye1EiQ8Yb3iWaycQexv6afiaoNYOYrPFCuvZLyu24sGkEwXnM0iSM29BeYvOvvT8mG0Z6VS8Pxrpj6dcIsZITGqpf+a1t+NJvbj65dpaU1PTr4sWpgb8ZJrMrl5pVa9mdkxJHVajv1fi+ySjuxCNjDe8U/QfReokmtajcT0kDcIq19ZiOkRx+82FBPluqxdpZV96LTUfsRYrbD4lyMEIwrIsR8/YaUOYFhPEOGc+nyakQHfMfvPAKcMub86DcOMPBJctWXzX1k0bb1k5e3qzyoVlmrZgIMacmJI8rMb+Q020S2bP1eMXgABC0zH5bgSmQtil6RgM5rtQFJaiaPVmPmWFLI8exWVJLAYIsmxHN9y0CdOWXMEkiWmaRrK/O+buPnT2+df37W7viEUHGQy9HCWBYGjZ0sXbNm/YtG7ldVMbFeaYpukIBjBmx+TUEV//m2qyXTIvXSV+CZA0tNyO+lUA5TJqZfkt76v5lFXRz7MdqhyhJblBno1bGSCEabm6ibTJTVcWgnHONE2D7L8QFzs7zjz/RvvetzqikcsNLQ+LiVAovHz50js337rx5uUzJ9fJcEzTyPOrpo9o8Z1a8m3J6h13fj2aapegdQskX26tvCgIAkoNtpjZgoWiQKuXnQFBkGmLtMl1SzZdxSUmsSybPQnadfDM82+8tbu9IxrpHU41R0ZAuKp6xfKl225ff9vNS6a31Mhk5+2X21FFP+KL79bSHZLVN778CiA4FVPugVoHYZcSStkeUZmdUqm1slyClYRpU9qS05ZquqogLnFoqgol0JOgXYfOvfBG++72jkjfsNgsPuFoUFVds3LF0m2333rr6oXTmqs4WZZh2h6/TlRNH/Un92rpg5IdGdt5hgYBai0m3w3/lFzWsTgILRNZrw4sqwwgEmTZSFtK2tZMVxPEOSefpkEO9CRo9+FzL/x+/659HZG+Uc6AGuvlVtfUrlq5bNumdetWLpjaFOaukbNfcCem6cd8qX0+/bBkRytxtlIQIPsx6S6EZmXDg9IkbHZNYtZIyWPTdFjaUnXbbwgtZ5sKU4IXE9j9zrnn39i/u72jr3e088lyqNiF1tTWrV65bNumW25ZccOUBj9cwzQMhyQQSU5Myxzzp9p9maOSE6vkaT0n1roFoTmlNlv8DUFCmLaUtrW07TeFTxCXGGmaytTgxQT2HDn//Bv7d+07MHY286i8+NXW1betXHbnprVrl82bXOeHq5uG6RAHSLKjmvFuIH3AZxyR3HhlzkcAV9C6BaHZEFbuLQJAwjVsnra1tBOwXJ8LLjFomsKU4KUk9h7pfmHH2zv3Hui9dLEyNSnCOMZEdfUNa1Yvv3PjzTcvnt1aq1qZpG074DKE3dLzkM94r6I2q6J1CwLTiz2YcO2uRH1a1HLmSpxrgareFPYevfDCjgM79x64dLGnQqcfBFcjlG9oaFq9atmXPrF1drNmu7y2/8ma+PPjo7NboTVCONm3GExTnE22giu9Kf7dR/fs2nfgYs+Fip54cIx31g8A+vouvXfkQLWccYgH0vuqEy+NSwLXyaDnFVj9YJRPoGiq0+S7IFwnLOvxC+9eHU4xtoz/cFFbFfzJ331mxtRWlulqivxUEplxaSQMcE1YUQSn5YYLCUQ+2XZs02Hhm2+asWP/yUhcv3JRY8a408oY+9YXP7ipbaFppJqjD2t29zgKDwPsFIQF/6RszhAEICDrKZ35/eEFsxqf33ncssd90fG40/qRe9d+/sO3G5Zbl3gmnNk/7mLOACsCOQC1Nve4IcE480vpaEqZ3FRXHVJff+vUOFdinGldcv2M7//Vh7ikBvX2huSzjF2tfLjRC18zJBVwvTFwWRYK9IjuWzS7uTemHz5ZsRB1UIwjrXXVwX/+2kcmN9dzs6s18XNO5vidqxzChZNCYFJhDJHIp9iObacs36oFre3HLlzoG2QgulIYL1o5Y9/6wn23rZxvGqnW5KOqc+kqpWU9MMBOg6vQaiGc7AgCQ1DNJHXGJf+S2Y0vt59OG5VcDlmM8aL1o/e0ffZD6zOW25j+Xdg8dFU59cAAKw5/E7iUHxtnHAFFj6TkxprQpMbgK+1nhRgXXRoXWpfdMP2hv7iPMTlk7G/KvPg+cOpBuCAbvgbAzU/LlWWhwuhLaXOn1tiOaD82LiJbeVrra0I//OsPtjTUSGbXJP1JjiHn1g4fBObCx71JicOHJwVqFSStMEWDyKfZruP069ryufXHz/Wf7kmOvYZlqDCtnLNvf+6utUuvs8zU5MyTmohc+TfDQIJd183XVtNJjhGGnEQQJnz12bHu7KA3hTQjlWGuUJfNrdtxsKc/VYF7X4wK0/qxu1f+2QOrM6bbYr4Udt6tSJk2AmfZBh2NAAujfKLDFcAA14AczAVb3ui3YJyCqh5JKOGgOnty+OX9F2ynkg8oqyStyxdM/fvP30lMqrY7mqw3KlXsebQl0crI1NHoR9THRphRJIAs+Gqy8oqcyCpC40ZvXJveHPCr0puHRzascnlUjNaGmuA//dU9TXXVitU9xXp2xDo4BGI0s4dukmVFVv2upaepqYadldhIAiMGuBYUPyRvAVQu3iLh1yzhuNGUsmhWuCdqvNtVMZGtDK0SZ9/+7Ja2hdMcMznV+q1K5VO9RgcLwTNiraJoz3ck955yls/UdJMsBGt5F8NIAiMCIKAGQE7OYL2NQj4jpTPDkpbPDe873t8br4zIVobWT9y97JP3LDFMp9V5vYoq1eNmZ90VGTREDPVLP3jx1Z2Hbm5b0RpIJu2QDCvEoyMpCRA2VB84gRzABhwv6mJMhLRMJKFqsnTjjMArB6KGVQGRrQCtqxZM+daf3yZIqnEONou9Yy/QQ8Sd2ePMUzXtO788tq/juOvYh08n7ly3ULEjSVEX5n0qN0ZQHBE4QeagHKdwAAfkyIrjk81Lca2lRmmslt84FB84aDtSjJXWxtrgD/5iS311UHW6p4lXRhwADQGTQqesFYqqvPKO+Y+PvE4kAPT1RVJUs2Fxo5nRdVFdJ1/gbNiWxQC4UBhgAhZgASZgAzbI8fsM4VJfUp0/WdNN9+DpseZkx0SrJPFvf+bWlTe0OlZqOr2soTKST2Cn7SWGqIrZvr/84Y54vOD63zl+dsacBTe0WClDEiTVKMN9GAQACIJsg9s5g/U2G8wCOeFAOq3L6Yy89DrtaFemKzKmdMGYBl0+vm3hllXTM4bZSrsDGMkVXha99rSY1aCoyv95uvPc+ZJhEhLOd37y4ul0k8rNi2ZzxGoaQc+YADu3uqx4E4AQnNmzWroVnpK58+X7aifVjekJYaO31tU3TvrGJ9oEsTpxpIV1jKUSxciI0CljoSrLb7wn/uHnO2jAv9DJ6OnOXtq6ZiYykYRTXadEZD68YM67AXLpxKwiyIrwK+bFqFwToBmN/LXDpjta7zVKWptrg//7C+trw37N7ZkuvclRmS4KgZ/M3GC4wYQT/PKP9sX6B4/8z3f3SOFpa+aqum4YQmvwRYdrsjQ0rQQQ/D4HwrnUL2Y2urIk9p4Y5XWNhlZZ4t/6dNuyeQ2ulZol7VBZhQbdGHrMKT3GJJ9P/YdnL7751rHLfLfj3a6FixbPDEcSpswhqrT0cM/C8wsrSk6dR1XQSet2Im0vnCbOR9E5qrkZo9HWj985f9Oy1kzGnCy95WeVifwBpJ3QeX2KT3Z3nMCTLw6+Oi8P28x8+2c7+9gMmTLnUnVxMzBckXUGW7UhChtjmDtFaDKRiy9sYXNaRnMtI7bWpddP/btPLXcsUxAx2CEek1gF+qkC/ERytumqKVH11z85FIld+W4lEvGLRvj2pXVWui9l+xr8aWk4Y2UMkIdeZMIAwsUI+uLMcRFWae7U0IsdrjvCbPeIrTWq4534ZH+4hgkjYk9512hLuA0jLaQcDN16c9wMaKr845d6T545P8zfvfjavicO+INBLWWIU7HwsAw299C9QWyWwbJw5CSOnWa2RTKRG75+b3SRSyNmacTW2h9PPPf7w0r93KXzW5lx0XDkqNMCICTHR9ZPz4MhaQVPJqZqktjdFfrez9tH8pQw6jjeu2rFTc3y6f4MfLIb0obhZNhgXoujP4nDJ1kkwRmRX9N6fau/+ZT79ItvjfSpZRidy3Jsa+e+g8f7fCuWLq6VopZlxp26tBsKyYnhxjpFcIkf759qOUxntV95+L2+yJBPzBoUlmUcvcC2tE3imZP9GdQHSLlixMkHLIslnL2Io6eZYUEiClQ37+xf/pV/e+/YuydGejkeRh+3njp99qW3umdcv2JOM3P0vrQTiNl1Gjf88uBPLhgcDOcS9Zf0kN+n/vOr9ut7j4+iJn19EV2etm6+m0kldIs1hYfxT8nywQCHaeHoaZy5yEmQwsFqb/zZ/inff2RvMj6SbE4pxtR5TSbiz+84bIfmLF8wVTZ7TIeiVp0jpLCS5nxY3iNu+Dr76zXJab9Q/71fHBLuKL3fkc7emfOWzavp6U/ZnKE2dKWVj7k1WdF+HOpk0QTjRH6fv0dr+8avjedebSd3TJ3XsaZaSDhvdRw90MWXLl3WpMYsI5mwwgk7EFJ0VboCR47g70ZqLUeYvP6rj1y41Dey5l9aD/dAp75+9Y1V7tlomlX74fddllkJRDjTjSNnmGlBAgVqWndEl3714WMnOk+OvhqF4iuB890XXth7rmX2iuunqK7ek3HkSCascCekmkN6Z4bTsWBvSgoElH/dob2yp3OMdcjo6dPx6s3L6p1UbyLDmqsgDXVxHIaNd07iTA8jQSpnVLfox+0t//iLPelkZcLwig26ZPT0SzuP9MszVy6aqVldluVEjYDh8CrNlAYKAkNMlzojiipnDvRO/u5jJ12nAhNMzl/oleuuXzU1nUzoloOmmsG+xHEphoOdLJZgnCjgD5z3tf3Nr1Mv7dhPojIDRajwyCuJw0dP7OmkhUtWTQpGLD2SsNRYRgkqtk8pinsYbAdHLjLbMS25+euPGT2XRu8cynD4RN/Cm5ZNVbqiCfKpqCoWWQZBONHFjp1llg0Z5K+d/Fp0ydf+/cjp06crVQEPlZ9+0dvb+7td56qmrVw0Q6X0qYzt9qXBmQj7Csv4Tvay3hQF/P5/293y0q5KTot0Xftwl7tx1Vw10xVNsoYqaJq3bAO6gYOd7HwfANIkJuoX/6i98YeP7zbSiSsWO1KMy2Qh28rs2HOsy565csnsoHPaMs1omqUtVPkgK+hLoLOXaRIO9c9+6JdnnUo0/2Ik4vE+0brhBl8mEUtnWEs9uISLEXScYHEdEigYCp1V277+ZPy1nW+P07+FG7+JmPRe55nfH8W8m9ZPr07YeiJlskiKSRyne5ltk6O2fuMJ58LFykx7KcPJsxfrpy++qSHSnzCFYLEEjp5ljoDCyF8/7YWLi/7m3w+eO3duPE7tYXynDff3x17YdU5qWr1kTg1Lnzcs9CWY7SDg9/3f/a0v7By/WdHU0RlbvWJJI85GkoimGAP5ZG7XLf2nndU//tVu0xjHya24CpPcXcfae+D48cSU5cuWVotuy7RUiR1NXvfQ4+ccp8Izn4phW8a7vcqWldOYfoERgqGqTrnta4/3vrn3ICqUdL8MrsZKFwBnz51/9VBm+oL1cxuMjKt+8zfifE/Fxr6GQl8kmvHNXD9HSP7a57pv/NvtHd3dw82N/SGBy75P/cmW//rA6qv1xAwwSf2fn77z3ttXXBP/FGiccTXW2L1/p5vABCYwgQlMYAL/2fH/AdkCEQl+/Ar/AAAAAElFTkSuQmCCCg=="> | 15 | <link rel="apple-touch-icon" sizes="114x114" href="data:image/png;charset=utf-8;base64,iVBORw0KGgoAAAANSUhEUgAAAHIAAAByCAIAAAAAvxIqAAAD8GlDQ1BJQ0MgUHJvZmlsZQAAKJGNVd1v21QUP4lvXKQWP6Cxjg4Vi69VU1u5GxqtxgZJk6XpQhq5zdgqpMl1bhpT1za2021Vn/YCbwz4A4CyBx6QeEIaDMT2su0BtElTQRXVJKQ9dNpAaJP2gqpwrq9Tu13GuJGvfznndz7v0TVAx1ea45hJGWDe8l01n5GPn5iWO1YhCc9BJ/RAp6Z7TrpcLgIuxoVH1sNfIcHeNwfa6/9zdVappwMknkJsVz19HvFpgJSpO64PIN5G+fAp30Hc8TziHS4miFhheJbjLMMzHB8POFPqKGKWi6TXtSriJcT9MzH5bAzzHIK1I08t6hq6zHpRdu2aYdJYuk9Q/881bzZa8Xrx6fLmJo/iu4/VXnfH1BB/rmu5ScQvI77m+BkmfxXxvcZcJY14L0DymZp7pML5yTcW61PvIN6JuGr4halQvmjNlCa4bXJ5zj6qhpxrujeKPYMXEd+q00KR5yNAlWZzrF+Ie+uNsdC/MO4tTOZafhbroyXuR3Df08bLiHsQf+ja6gTPWVimZl7l/oUrjl8OcxDWLbNU5D6JRL2gxkDu16fGuC054OMhclsyXTOOFEL+kmMGs4i5kfNuQ62EnBuam8tzP+Q+tSqhz9SuqpZlvR1EfBiOJTSgYMMM7jpYsAEyqJCHDL4dcFFTAwNMlFDUUpQYiadhDmXteeWAw3HEmA2s15k1RmnP4RHuhBybdBOF7MfnICmSQ2SYjIBM3iRvkcMki9IRcnDTthyLz2Ld2fTzPjTQK+Mdg8y5nkZfFO+se9LQr3/09xZr+5GcaSufeAfAww60mAPx+q8u/bAr8rFCLrx7s+vqEkw8qb+p26n11Aruq6m1iJH6PbWGv1VIY25mkNE8PkaQhxfLIF7DZXx80HD/A3l2jLclYs061xNpWCfoB6WHJTjbH0mV35Q/lRXlC+W8cndbl9t2SfhU+Fb4UfhO+F74GWThknBZ+Em4InwjXIyd1ePnY/Psg3pb1TJNu15TMKWMtFt6ScpKL0ivSMXIn9QtDUlj0h7U7N48t3i8eC0GnMC91dX2sTivgloDTgUVeEGHLTizbf5Da9JLhkhh29QOs1luMcScmBXTIIt7xRFxSBxnuJWfuAd1I7jntkyd/pgKaIwVr3MgmDo2q8x6IdB5QH162mcX7ajtnHGN2bov71OU1+U0fqqoXLD0wX5ZM005UHmySz3qLtDqILDvIL+iH6jB9y2x83ok898GOPQX3lk3Itl0A+BrD6D7tUjWh3fis58BXDigN9yF8M5PJH4B8Gr79/F/XRm8m241mw/wvur4BGDj42bzn+Vmc+NL9L8GcMn8F1kAcXjEKMJAAAAACXBIWXMAAAsTAAALEwEAmpwYAAABbmlUWHRYTUw6Y29tLmFkb2JlLnhtcAAAAAAAPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iWE1QIENvcmUgNC40LjAiPgogICA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPgogICAgICA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iPgogICAgICAgICA8ZGM6c3ViamVjdD4KICAgICAgICAgICAgPHJkZjpCYWcvPgogICAgICAgICA8L2RjOnN1YmplY3Q+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgrlPw1BAAAd7klEQVR4nO19eZQV13nn797a3tr7yg5ikxCIHRohkACBEFqsJY4z8T52nPHYPp74JJ54bMfOsRMf2Z44OZ7EJ16iDLIsS5ZlydJY+2Ii1haiAQFCNGvTNHS/9/pt9Wq93/xRb+9u6OU1wif9O3Wq6223bv3qu7/vu9+9txqYwAQmMIEJTGACE5jABCbwnxTs/a4AHnjggY0bNwohxl4U5/xnP/tZe3v72Iv6g8fDDz9MlcOHP/zh9/uCAEB+vysA27YBkHAh7KK3aSRlMIDAFcZl13UrW73R4f2nNQvXYGYMjANUROkVyWXZvbBIDcLXOH4VHBGuGVoBgAMMYGAAERhAeekfyC8r+svA3n8nUYxrilYXxAFkScz6sKENlgHkfc5AYmSyMc64dmglEOW4pOyOUSlZxS9Y4RVjIHeEcjy+uGZoJYBErmlTdk/5V0NQxnLkUgXiswrimqEVAIkcTQU685+BioJsyikAkDXbCVqHABWslcpopcJfopIuTIFZMSECQ0GAWBGJA2j13mQspw8MeRumayJczeNaorVMW7MxVqkUgIEox6Yo7CdEYAhQji+UuKxyWgcFA0SWWbompODaoRUD7K40Hri8dJIgIVjRt99fXEu0FhNKpWabbfulYJTthjGAXLqW5PVapRUYwGyuj1AcGGTBQAJiQgQGotDFQkFkBwkGcpZbiAK8nqsgEsC10te6FmglAESCeZFAltPiMGvQSAtALhYAsrSSmLDWLIg8Wt0iQgdoa7nXKupm5TuvwgW5NEFrFp6kilyEVGAWGERSvT0rsWgwkEtZeZ2g1YNnX1llRIHNYlq9Dy6Tc4EgciHcPzwRuP/++9Pp9KuvvuoNk1QKRAQIKjBSrABFx9l2P2jvgIFcCAFyxyNunTVj2h/dt82nad/8zg+G+ZPh0ur3+7/70HdnXTdrz54927dvf+qpp7q7u0dbzxJkaaVSESjYbFHbz3NKJSksIOuySFTSZQX8/lvWrPjQg3dvWr92UktTV/eFH/30kYu9fcP57XBpXbOmbebMGURi1apVq1at+upX/9czTz+9/ZGf79q1a8yjciKrjCgKPEvcF8o7tRggBiRIuCQqE2DNnjXjvrs2P3jvHTfMn6sosmmayWSiqaF2w/q2X/zqt8MpYbi0Pvjgg4xzYaXgpIhrLY31f/aZP//EJz6+e/fu7du3P/3Ms5cuXRrlRQjynHhRp55KDgbpdJUIQDbf6hnsGKw1FAysu3nlnzxw94Z1bfX1dY5tO44BV6gwDVcmId+7dWMlaa2urr5j8+0kXLgW4yoTJukpwSQu+2+5Ze0t69Z9/aunnvnts9t//os9e/aO/MIIwi2JBMqZ9YS1zGXlDgRlIwHhQjijE4F5c2Y9eM8dH7hr8/Vzr+MSt03TTPerkutTuCSrINW2kpaptK1YNG3KpLNdV1a/YdG6fv26GTNnuJbByQWTwRQmSZKwyYoLMya4Nqml4bOf+++f/PhHd+7c9cijjz373O96+4alQQCIBIQrhFuqrQNsVgwwWO/TbEfLJRJCjEyOqsKhDevaPnT/tnVrVtbVVlu27ZhpmVl+iWRNYpIMcIDAFZU5KcdsrK3efNuan2z/1RVLHhatD95/Hxgn12CMgbw0vgBjjKuMXC4M0pOOLklycMNt6zZsuPXUyZO/efq3jz72RPv+t69culegtxXKH0DrQB3wDgi5/quLgt+7AhbMn/PgvVvu2bpp7uyZnDPbNKx0ROW2ooBzCVwCGIQAIxCBQ1EVltZdV7l787qfPvLkFVvklWltbGzccNt6YWUYOeBK9pqLXQqXGeOycMiOuWZEcN/USY3/44uf+/QnP/YfO3c98ugvf/fiy9FobKjyCUTCpWy/s6jkkoNSqS3skR0vIEFCkHAvf7011VWb1q/54/vvXLt6WU11tW2ZrpngyAS5KyscXAI4iCBcMMpOWgBBEJd9CqKm6Vu2aP6cWdOOd54ZK60bb1s/eXKrldEVr7kVsZGj2LMRxrgqMUcSGaEnbV1SpNDmjetu33jric7Op37z7GNP/Lrj0DuD8SqyXU+IrHqW8VvSNSjrdCH7KYmsvA4RCSxaMO/Be7bcs3XDdTOnc8ZsM+2kuzVmKpwYl8A4gKx5gmXbfvYAAIFLqkyGaVZXBbfc2lYBWh+47wMggrCYoiBvU0DBlLIXKbLHTOIS4+SQExHxXof5Zk5p/PKXPv+ZT33s9zvefPTxJ198+fX+eKLAKuWttcxlDTDYEmXIcQoAjMj1rLXMZdXX1tx+25oPfmDrmpVLqsJh28oIIyKTHuK2JDEwzzxF1iVmzbOYU++MHIIpisYyumPL226/+V8efsK5bFh5BVqnTpmybm2bbegcAkzKznIgKr0wkXtHZAc/iAAwLktMSCIjMklHl/xSeNuWW7du3nj8vfd+/fRzv3zymSPHjgPw4k0ityhuHZTZPK2D9LgYuQRBJNyc11qy6Po/uueOu7asnzl9GgM5ZkKkzviZoXABzzwJIBdMADyXEfemKnnH3mwwBpY9KVc0hSVM01w0f9YN82YdPPLe6GndvOm2pqYGQ0+qipQjseiCy7qSVEqHRzTjXFI4OYrb5yZ6BfPNmd70lb/8/H/79Eff2LHz4UceD/h9wnUgRDmVA5kt7hqIXMo1a7ACwhWO01BX88cf2PpfHty2avnicDDgWDrpFxSk/MzmHGBSzr95I7gsSxwxMAbGQBxEYLl9Yd4CgUk+hWUyZtAf2Lph9eVpvdyMMMbYs089dsfmjbaR0nwhICthOZPMbdmXOUdMBLjZg8KnORUWthC2Q7LLw5K/1rJhGBlVVbmTCIme3J27jPvK39ocoV7YKpwENTtyfSaTqQqHOBPCjMsirrGMxAisaNJc9oCVHGT3vGjPAF7yDpfITvdG01wJH363c+uffskwraGou5y1zr5u1uoVSy0jI3MGzpF3CESFrcRsaWhNyHk2xjlXVHIh+pxkrwyfxqtclzMigmBe4UPSivLj3I6RICJBIqQJnjmnIqkwh/Gcz/ES5IUpiGzAxnPdNZ4z5LywMoDAOASYrGk8plvW/FlTFi+YvXv/kdHQeueWjbU11YaelNRAzsGW+qtyTUCRBytuy6LoHuQsl0myRDLpqptwhOxCAs9rqyj9eZk4oLQO3idCdmM+iqtM53nz9NpNfg4s5ayVsQK/xLPBMssJQj6uyjLLCxVgkk9T0knDFwjcuWHVaGiVJeneu7Y4tsVATFJzjRrZRsGkrBV4zV84gAPk55rJhebPvD6lneUUZVwzzmWVuSCzkJwelNlifoGi9gGAGEOIp4rUMN8pYIWDPJtULAI5YSWWlVTPeIlyFFPhJUHVfFKy3zLljWsWPxTwp/TMyGi94fp5S2+60TIzmqqAK1lCyYGdgHEJ+jlkeqB3I9MFMwonBWHBixaYDK5BqYIShlYPtR5qPbQGyAFwDRAQTqny5oKY7LG4HLNsqN6Bd0fzg4zFhKJgsN5Bll9WOChQyQr+iigXJOReCmKy6pPchG3Omtq84qZ5r+06MDJa7966KRTwZwxD0kIw+hB/B5G30H8QyfeQPgs7CVE6U7d4CmUxOMBlKGH4WhCYjPBchGbBPwVKFZgMYQFOSc+isC8S2WJmB0lxFZ14YAWGVFWAeM6JFcWqlJvmhXw8kL/xAJP9fiWRMWUlsO225SOjVVXVbXdstB3B4wfZwR8jfgiZbm9MpETlhwlyYMZgxNB/FHgZnEFrRGg2ahai5kb4WsEVCCvX0Sp2WZcV2QKzrNxy84QWuGalNpu3guIDzzsxEM/63oIs5E4toGh+hfWZlrxu5Q211aFYPDVcWpfedOON82dbtu07sx3nXoAMMEAaNo8DwQrXCBCMS8hcQu9OyBpCs1G/HLVL4WsGOMgqUl5RwmNJQrbIa5U4MZQ2HFa6L9PWHJvFzT8byeZdmWe2yPcLmKT6VYrp1pTm2jVL5z/32iDLwAan6rOf+si6taudZLev8/uM9MtGt6NC3mLIRaYXsQ707kD6JJgMrR5czWW1Sw22oLmicFDwhKUDt1lac28ylN+M4o0V3R42YI+8TXg/55ysVNqQZcVx3f/3+lsDr28Qaw0GA1s23mLarhTbzY3eETT20cEr30mjdw/69iA0E03rUbccchCuVS61JRRjQGCAIXWgzGAHD12pYLnFCpv3ltnvQPUFVClhWmbb4tnNDTUX+/rLrmkQa13btvxzn/pTx3H8p34o6acrb6qDIn91Vj+iB9D/NiDga4akFSVSS0W2kJbNezYxiCWiKH4o2CYKRoqylyh6M49SlyjJZCXTGVETDhzpPH/kRFfZ1Qxiivdu3SjLEqwos/rAclW9avDsJnMBpx7Fse8hsjuX3i7rK3sKkGfcBTyP5w6yCe99J7sXInec/0L+uLgXXlaOyKVmBFxTljiERcLdesvCgYvCyq21vq7277/2xYBPcUmyGjba1ctJDjA3ye1EiQ8Yb3iWaycQexv6afiaoNYOYrPFCuvZLyu24sGkEwXnM0iSM29BeYvOvvT8mG0Z6VS8Pxrpj6dcIsZITGqpf+a1t+NJvbj65dpaU1PTr4sWpgb8ZJrMrl5pVa9mdkxJHVajv1fi+ySjuxCNjDe8U/QfReokmtajcT0kDcIq19ZiOkRx+82FBPluqxdpZV96LTUfsRYrbD4lyMEIwrIsR8/YaUOYFhPEOGc+nyakQHfMfvPAKcMub86DcOMPBJctWXzX1k0bb1k5e3qzyoVlmrZgIMacmJI8rMb+Q020S2bP1eMXgABC0zH5bgSmQtil6RgM5rtQFJaiaPVmPmWFLI8exWVJLAYIsmxHN9y0CdOWXMEkiWmaRrK/O+buPnT2+df37W7viEUHGQy9HCWBYGjZ0sXbNm/YtG7ldVMbFeaYpukIBjBmx+TUEV//m2qyXTIvXSV+CZA0tNyO+lUA5TJqZfkt76v5lFXRz7MdqhyhJblBno1bGSCEabm6ibTJTVcWgnHONE2D7L8QFzs7zjz/RvvetzqikcsNLQ+LiVAovHz50js337rx5uUzJ9fJcEzTyPOrpo9o8Z1a8m3J6h13fj2aapegdQskX26tvCgIAkoNtpjZgoWiQKuXnQFBkGmLtMl1SzZdxSUmsSybPQnadfDM82+8tbu9IxrpHU41R0ZAuKp6xfKl225ff9vNS6a31Mhk5+2X21FFP+KL79bSHZLVN778CiA4FVPugVoHYZcSStkeUZmdUqm1slyClYRpU9qS05ZquqogLnFoqgol0JOgXYfOvfBG++72jkjfsNgsPuFoUFVds3LF0m2333rr6oXTmqs4WZZh2h6/TlRNH/Un92rpg5IdGdt5hgYBai0m3w3/lFzWsTgILRNZrw4sqwwgEmTZSFtK2tZMVxPEOSefpkEO9CRo9+FzL/x+/659HZG+Uc6AGuvlVtfUrlq5bNumdetWLpjaFOaukbNfcCem6cd8qX0+/bBkRytxtlIQIPsx6S6EZmXDg9IkbHZNYtZIyWPTdFjaUnXbbwgtZ5sKU4IXE9j9zrnn39i/u72jr3e088lyqNiF1tTWrV65bNumW25ZccOUBj9cwzQMhyQQSU5Myxzzp9p9maOSE6vkaT0n1roFoTmlNlv8DUFCmLaUtrW07TeFTxCXGGmaytTgxQT2HDn//Bv7d+07MHY286i8+NXW1betXHbnprVrl82bXOeHq5uG6RAHSLKjmvFuIH3AZxyR3HhlzkcAV9C6BaHZEFbuLQJAwjVsnra1tBOwXJ8LLjFomsKU4KUk9h7pfmHH2zv3Hui9dLEyNSnCOMZEdfUNa1Yvv3PjzTcvnt1aq1qZpG074DKE3dLzkM94r6I2q6J1CwLTiz2YcO2uRH1a1HLmSpxrgareFPYevfDCjgM79x64dLGnQqcfBFcjlG9oaFq9atmXPrF1drNmu7y2/8ma+PPjo7NboTVCONm3GExTnE22giu9Kf7dR/fs2nfgYs+Fip54cIx31g8A+vouvXfkQLWccYgH0vuqEy+NSwLXyaDnFVj9YJRPoGiq0+S7IFwnLOvxC+9eHU4xtoz/cFFbFfzJ331mxtRWlulqivxUEplxaSQMcE1YUQSn5YYLCUQ+2XZs02Hhm2+asWP/yUhcv3JRY8a408oY+9YXP7ipbaFppJqjD2t29zgKDwPsFIQF/6RszhAEICDrKZ35/eEFsxqf33ncssd90fG40/qRe9d+/sO3G5Zbl3gmnNk/7mLOACsCOQC1Nve4IcE480vpaEqZ3FRXHVJff+vUOFdinGldcv2M7//Vh7ikBvX2huSzjF2tfLjRC18zJBVwvTFwWRYK9IjuWzS7uTemHz5ZsRB1UIwjrXXVwX/+2kcmN9dzs6s18XNO5vidqxzChZNCYFJhDJHIp9iObacs36oFre3HLlzoG2QgulIYL1o5Y9/6wn23rZxvGqnW5KOqc+kqpWU9MMBOg6vQaiGc7AgCQ1DNJHXGJf+S2Y0vt59OG5VcDlmM8aL1o/e0ffZD6zOW25j+Xdg8dFU59cAAKw5/E7iUHxtnHAFFj6TkxprQpMbgK+1nhRgXXRoXWpfdMP2hv7iPMTlk7G/KvPg+cOpBuCAbvgbAzU/LlWWhwuhLaXOn1tiOaD82LiJbeVrra0I//OsPtjTUSGbXJP1JjiHn1g4fBObCx71JicOHJwVqFSStMEWDyKfZruP069ryufXHz/Wf7kmOvYZlqDCtnLNvf+6utUuvs8zU5MyTmohc+TfDQIJd183XVtNJjhGGnEQQJnz12bHu7KA3hTQjlWGuUJfNrdtxsKc/VYF7X4wK0/qxu1f+2QOrM6bbYr4Udt6tSJk2AmfZBh2NAAujfKLDFcAA14AczAVb3ui3YJyCqh5JKOGgOnty+OX9F2ynkg8oqyStyxdM/fvP30lMqrY7mqw3KlXsebQl0crI1NHoR9THRphRJIAs+Gqy8oqcyCpC40ZvXJveHPCr0puHRzascnlUjNaGmuA//dU9TXXVitU9xXp2xDo4BGI0s4dukmVFVv2upaepqYadldhIAiMGuBYUPyRvAVQu3iLh1yzhuNGUsmhWuCdqvNtVMZGtDK0SZ9/+7Ja2hdMcMznV+q1K5VO9RgcLwTNiraJoz3ck955yls/UdJMsBGt5F8NIAiMCIKAGQE7OYL2NQj4jpTPDkpbPDe873t8br4zIVobWT9y97JP3LDFMp9V5vYoq1eNmZ90VGTREDPVLP3jx1Z2Hbm5b0RpIJu2QDCvEoyMpCRA2VB84gRzABhwv6mJMhLRMJKFqsnTjjMArB6KGVQGRrQCtqxZM+daf3yZIqnEONou9Yy/QQ8Sd2ePMUzXtO788tq/juOvYh08n7ly3ULEjSVEX5n0qN0ZQHBE4QeagHKdwAAfkyIrjk81Lca2lRmmslt84FB84aDtSjJXWxtrgD/5iS311UHW6p4lXRhwADQGTQqesFYqqvPKO+Y+PvE4kAPT1RVJUs2Fxo5nRdVFdJ1/gbNiWxQC4UBhgAhZgASZgAzbI8fsM4VJfUp0/WdNN9+DpseZkx0SrJPFvf+bWlTe0OlZqOr2soTKST2Cn7SWGqIrZvr/84Y54vOD63zl+dsacBTe0WClDEiTVKMN9GAQACIJsg9s5g/U2G8wCOeFAOq3L6Yy89DrtaFemKzKmdMGYBl0+vm3hllXTM4bZSrsDGMkVXha99rSY1aCoyv95uvPc+ZJhEhLOd37y4ul0k8rNi2ZzxGoaQc+YADu3uqx4E4AQnNmzWroVnpK58+X7aifVjekJYaO31tU3TvrGJ9oEsTpxpIV1jKUSxciI0CljoSrLb7wn/uHnO2jAv9DJ6OnOXtq6ZiYykYRTXadEZD68YM67AXLpxKwiyIrwK+bFqFwToBmN/LXDpjta7zVKWptrg//7C+trw37N7ZkuvclRmS4KgZ/M3GC4wYQT/PKP9sX6B4/8z3f3SOFpa+aqum4YQmvwRYdrsjQ0rQQQ/D4HwrnUL2Y2urIk9p4Y5XWNhlZZ4t/6dNuyeQ2ulZol7VBZhQbdGHrMKT3GJJ9P/YdnL7751rHLfLfj3a6FixbPDEcSpswhqrT0cM/C8wsrSk6dR1XQSet2Im0vnCbOR9E5qrkZo9HWj985f9Oy1kzGnCy95WeVifwBpJ3QeX2KT3Z3nMCTLw6+Oi8P28x8+2c7+9gMmTLnUnVxMzBckXUGW7UhChtjmDtFaDKRiy9sYXNaRnMtI7bWpddP/btPLXcsUxAx2CEek1gF+qkC/ERytumqKVH11z85FIld+W4lEvGLRvj2pXVWui9l+xr8aWk4Y2UMkIdeZMIAwsUI+uLMcRFWae7U0IsdrjvCbPeIrTWq4534ZH+4hgkjYk9512hLuA0jLaQcDN16c9wMaKr845d6T545P8zfvfjavicO+INBLWWIU7HwsAw299C9QWyWwbJw5CSOnWa2RTKRG75+b3SRSyNmacTW2h9PPPf7w0r93KXzW5lx0XDkqNMCICTHR9ZPz4MhaQVPJqZqktjdFfrez9tH8pQw6jjeu2rFTc3y6f4MfLIb0obhZNhgXoujP4nDJ1kkwRmRX9N6fau/+ZT79ItvjfSpZRidy3Jsa+e+g8f7fCuWLq6VopZlxp26tBsKyYnhxjpFcIkf759qOUxntV95+L2+yJBPzBoUlmUcvcC2tE3imZP9GdQHSLlixMkHLIslnL2Io6eZYUEiClQ37+xf/pV/e+/YuydGejkeRh+3njp99qW3umdcv2JOM3P0vrQTiNl1Gjf88uBPLhgcDOcS9Zf0kN+n/vOr9ut7j4+iJn19EV2etm6+m0kldIs1hYfxT8nywQCHaeHoaZy5yEmQwsFqb/zZ/inff2RvMj6SbE4pxtR5TSbiz+84bIfmLF8wVTZ7TIeiVp0jpLCS5nxY3iNu+Dr76zXJab9Q/71fHBLuKL3fkc7emfOWzavp6U/ZnKE2dKWVj7k1WdF+HOpk0QTjRH6fv0dr+8avjedebSd3TJ3XsaZaSDhvdRw90MWXLl3WpMYsI5mwwgk7EFJ0VboCR47g70ZqLUeYvP6rj1y41Dey5l9aD/dAp75+9Y1V7tlomlX74fddllkJRDjTjSNnmGlBAgVqWndEl3714WMnOk+OvhqF4iuB890XXth7rmX2iuunqK7ek3HkSCascCekmkN6Z4bTsWBvSgoElH/dob2yp3OMdcjo6dPx6s3L6p1UbyLDmqsgDXVxHIaNd07iTA8jQSpnVLfox+0t//iLPelkZcLwig26ZPT0SzuP9MszVy6aqVldluVEjYDh8CrNlAYKAkNMlzojiipnDvRO/u5jJ12nAhNMzl/oleuuXzU1nUzoloOmmsG+xHEphoOdLJZgnCjgD5z3tf3Nr1Mv7dhPojIDRajwyCuJw0dP7OmkhUtWTQpGLD2SsNRYRgkqtk8pinsYbAdHLjLbMS25+euPGT2XRu8cynD4RN/Cm5ZNVbqiCfKpqCoWWQZBONHFjp1llg0Z5K+d/Fp0ydf+/cjp06crVQEPlZ9+0dvb+7td56qmrVw0Q6X0qYzt9qXBmQj7Csv4Tvay3hQF/P5/293y0q5KTot0Xftwl7tx1Vw10xVNsoYqaJq3bAO6gYOd7HwfANIkJuoX/6i98YeP7zbSiSsWO1KMy2Qh28rs2HOsy565csnsoHPaMs1omqUtVPkgK+hLoLOXaRIO9c9+6JdnnUo0/2Ik4vE+0brhBl8mEUtnWEs9uISLEXScYHEdEigYCp1V277+ZPy1nW+P07+FG7+JmPRe55nfH8W8m9ZPr07YeiJlskiKSRyne5ltk6O2fuMJ58LFykx7KcPJsxfrpy++qSHSnzCFYLEEjp5ljoDCyF8/7YWLi/7m3w+eO3duPE7tYXynDff3x17YdU5qWr1kTg1Lnzcs9CWY7SDg9/3f/a0v7By/WdHU0RlbvWJJI85GkoimGAP5ZG7XLf2nndU//tVu0xjHya24CpPcXcfae+D48cSU5cuWVotuy7RUiR1NXvfQ4+ccp8Izn4phW8a7vcqWldOYfoERgqGqTrnta4/3vrn3ICqUdL8MrsZKFwBnz51/9VBm+oL1cxuMjKt+8zfifE/Fxr6GQl8kmvHNXD9HSP7a57pv/NvtHd3dw82N/SGBy75P/cmW//rA6qv1xAwwSf2fn77z3ttXXBP/FGiccTXW2L1/p5vABCYwgQlMYAL/2fH/AdkCEQl+/Ar/AAAAAElFTkSuQmCCCg=="> |
diff --git a/frontend/gamma/js/Bookmarklet.js b/frontend/gamma/js/Bookmarklet.js index bcdcc46..9e74ae9 100644 --- a/frontend/gamma/js/Bookmarklet.js +++ b/frontend/gamma/js/Bookmarklet.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/BookmarkletHash.js b/frontend/gamma/js/BookmarkletHash.js index c3039f5..11b472f 100644 --- a/frontend/gamma/js/BookmarkletHash.js +++ b/frontend/gamma/js/BookmarkletHash.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Bookmarklet_1.js b/frontend/gamma/js/Bookmarklet_1.js index c7c7ae6..89b83b1 100644 --- a/frontend/gamma/js/Bookmarklet_1.js +++ b/frontend/gamma/js/Bookmarklet_1.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Bookmarklet_2.js b/frontend/gamma/js/Bookmarklet_2.js index 02f7de8..de1bbfa 100644 --- a/frontend/gamma/js/Bookmarklet_2.js +++ b/frontend/gamma/js/Bookmarklet_2.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-affix.js b/frontend/gamma/js/Bootstrap/bootstrap-affix.js new file mode 100644 index 0000000..052ecad --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-affix.js | |||
@@ -0,0 +1,140 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ========================================================== | ||
25 | * bootstrap-affix.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#affix | ||
27 | * ========================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* AFFIX CLASS DEFINITION | ||
50 | * ====================== */ | ||
51 | |||
52 | var Affix = function (element, options) { | ||
53 | this.options = $.extend({}, $.fn.affix.defaults, options) | ||
54 | this.$window = $(window) | ||
55 | .on('scroll.affix.data-api', $.proxy(this.checkPosition, this)) | ||
56 | .on('click.affix.data-api', $.proxy(function () { setTimeout($.proxy(this.checkPosition, this), 1) }, this)) | ||
57 | this.$element = $(element) | ||
58 | this.checkPosition() | ||
59 | } | ||
60 | |||
61 | Affix.prototype.checkPosition = function () { | ||
62 | if (!this.$element.is(':visible')) return | ||
63 | |||
64 | var scrollHeight = $(document).height() | ||
65 | , scrollTop = this.$window.scrollTop() | ||
66 | , position = this.$element.offset() | ||
67 | , offset = this.options.offset | ||
68 | , offsetBottom = offset.bottom | ||
69 | , offsetTop = offset.top | ||
70 | , reset = 'affix affix-top affix-bottom' | ||
71 | , affix | ||
72 | |||
73 | if (typeof offset != 'object') offsetBottom = offsetTop = offset | ||
74 | if (typeof offsetTop == 'function') offsetTop = offset.top() | ||
75 | if (typeof offsetBottom == 'function') offsetBottom = offset.bottom() | ||
76 | |||
77 | affix = this.unpin != null && (scrollTop + this.unpin <= position.top) ? | ||
78 | false : offsetBottom != null && (position.top + this.$element.height() >= scrollHeight - offsetBottom) ? | ||
79 | 'bottom' : offsetTop != null && scrollTop <= offsetTop ? | ||
80 | 'top' : false | ||
81 | |||
82 | if (this.affixed === affix) return | ||
83 | |||
84 | this.affixed = affix | ||
85 | this.unpin = affix == 'bottom' ? position.top - scrollTop : null | ||
86 | |||
87 | this.$element.removeClass(reset).addClass('affix' + (affix ? '-' + affix : '')) | ||
88 | } | ||
89 | |||
90 | |||
91 | /* AFFIX PLUGIN DEFINITION | ||
92 | * ======================= */ | ||
93 | |||
94 | var old = $.fn.affix | ||
95 | |||
96 | $.fn.affix = function (option) { | ||
97 | return this.each(function () { | ||
98 | var $this = $(this) | ||
99 | , data = $this.data('affix') | ||
100 | , options = typeof option == 'object' && option | ||
101 | if (!data) $this.data('affix', (data = new Affix(this, options))) | ||
102 | if (typeof option == 'string') data[option]() | ||
103 | }) | ||
104 | } | ||
105 | |||
106 | $.fn.affix.Constructor = Affix | ||
107 | |||
108 | $.fn.affix.defaults = { | ||
109 | offset: 0 | ||
110 | } | ||
111 | |||
112 | |||
113 | /* AFFIX NO CONFLICT | ||
114 | * ================= */ | ||
115 | |||
116 | $.fn.affix.noConflict = function () { | ||
117 | $.fn.affix = old | ||
118 | return this | ||
119 | } | ||
120 | |||
121 | |||
122 | /* AFFIX DATA-API | ||
123 | * ============== */ | ||
124 | |||
125 | $(window).on('load', function () { | ||
126 | $('[data-spy="affix"]').each(function () { | ||
127 | var $spy = $(this) | ||
128 | , data = $spy.data() | ||
129 | |||
130 | data.offset = data.offset || {} | ||
131 | |||
132 | data.offsetBottom && (data.offset.bottom = data.offsetBottom) | ||
133 | data.offsetTop && (data.offset.top = data.offsetTop) | ||
134 | |||
135 | $spy.affix(data) | ||
136 | }) | ||
137 | }) | ||
138 | |||
139 | |||
140 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-alert.js b/frontend/gamma/js/Bootstrap/bootstrap-alert.js new file mode 100644 index 0000000..63028f2 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-alert.js | |||
@@ -0,0 +1,122 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ========================================================== | ||
25 | * bootstrap-alert.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#alerts | ||
27 | * ========================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* ALERT CLASS DEFINITION | ||
50 | * ====================== */ | ||
51 | |||
52 | var dismiss = '[data-dismiss="alert"]' | ||
53 | , Alert = function (el) { | ||
54 | $(el).on('click', dismiss, this.close) | ||
55 | } | ||
56 | |||
57 | Alert.prototype.close = function (e) { | ||
58 | var $this = $(this) | ||
59 | , selector = $this.attr('data-target') | ||
60 | , $parent | ||
61 | |||
62 | if (!selector) { | ||
63 | selector = $this.attr('href') | ||
64 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 | ||
65 | } | ||
66 | |||
67 | $parent = $(selector) | ||
68 | |||
69 | e && e.preventDefault() | ||
70 | |||
71 | $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent()) | ||
72 | |||
73 | $parent.trigger(e = $.Event('close')) | ||
74 | |||
75 | if (e.isDefaultPrevented()) return | ||
76 | |||
77 | $parent.removeClass('in') | ||
78 | |||
79 | function removeElement() { | ||
80 | $parent | ||
81 | .trigger('closed') | ||
82 | .remove() | ||
83 | } | ||
84 | |||
85 | $.support.transition && $parent.hasClass('fade') ? | ||
86 | $parent.on($.support.transition.end, removeElement) : | ||
87 | removeElement() | ||
88 | } | ||
89 | |||
90 | |||
91 | /* ALERT PLUGIN DEFINITION | ||
92 | * ======================= */ | ||
93 | |||
94 | var old = $.fn.alert | ||
95 | |||
96 | $.fn.alert = function (option) { | ||
97 | return this.each(function () { | ||
98 | var $this = $(this) | ||
99 | , data = $this.data('alert') | ||
100 | if (!data) $this.data('alert', (data = new Alert(this))) | ||
101 | if (typeof option == 'string') data[option].call($this) | ||
102 | }) | ||
103 | } | ||
104 | |||
105 | $.fn.alert.Constructor = Alert | ||
106 | |||
107 | |||
108 | /* ALERT NO CONFLICT | ||
109 | * ================= */ | ||
110 | |||
111 | $.fn.alert.noConflict = function () { | ||
112 | $.fn.alert = old | ||
113 | return this | ||
114 | } | ||
115 | |||
116 | |||
117 | /* ALERT DATA-API | ||
118 | * ============== */ | ||
119 | |||
120 | $(document).on('click.alert.data-api', dismiss, Alert.prototype.close) | ||
121 | |||
122 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-button.js b/frontend/gamma/js/Bootstrap/bootstrap-button.js new file mode 100644 index 0000000..2c1226e --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-button.js | |||
@@ -0,0 +1,128 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ============================================================ | ||
25 | * bootstrap-button.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#buttons | ||
27 | * ============================================================ | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ============================================================ */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* BUTTON PUBLIC CLASS DEFINITION | ||
50 | * ============================== */ | ||
51 | |||
52 | var Button = function (element, options) { | ||
53 | this.$element = $(element) | ||
54 | this.options = $.extend({}, $.fn.button.defaults, options) | ||
55 | } | ||
56 | |||
57 | Button.prototype.setState = function (state) { | ||
58 | var d = 'disabled' | ||
59 | , $el = this.$element | ||
60 | , data = $el.data() | ||
61 | , val = $el.is('input') ? 'val' : 'html' | ||
62 | |||
63 | state = state + 'Text' | ||
64 | data.resetText || $el.data('resetText', $el[val]()) | ||
65 | |||
66 | $el[val](data[state] || this.options[state]) | ||
67 | |||
68 | // push to event loop to allow forms to submit | ||
69 | setTimeout(function () { | ||
70 | state == 'loadingText' ? | ||
71 | $el.addClass(d).attr(d, d) : | ||
72 | $el.removeClass(d).removeAttr(d) | ||
73 | }, 0) | ||
74 | } | ||
75 | |||
76 | Button.prototype.toggle = function () { | ||
77 | var $parent = this.$element.closest('[data-toggle="buttons-radio"]') | ||
78 | |||
79 | $parent && $parent | ||
80 | .find('.active') | ||
81 | .removeClass('active') | ||
82 | |||
83 | this.$element.toggleClass('active') | ||
84 | } | ||
85 | |||
86 | |||
87 | /* BUTTON PLUGIN DEFINITION | ||
88 | * ======================== */ | ||
89 | |||
90 | var old = $.fn.button | ||
91 | |||
92 | $.fn.button = function (option) { | ||
93 | return this.each(function () { | ||
94 | var $this = $(this) | ||
95 | , data = $this.data('button') | ||
96 | , options = typeof option == 'object' && option | ||
97 | if (!data) $this.data('button', (data = new Button(this, options))) | ||
98 | if (option == 'toggle') data.toggle() | ||
99 | else if (option) data.setState(option) | ||
100 | }) | ||
101 | } | ||
102 | |||
103 | $.fn.button.defaults = { | ||
104 | loadingText: 'loading...' | ||
105 | } | ||
106 | |||
107 | $.fn.button.Constructor = Button | ||
108 | |||
109 | |||
110 | /* BUTTON NO CONFLICT | ||
111 | * ================== */ | ||
112 | |||
113 | $.fn.button.noConflict = function () { | ||
114 | $.fn.button = old | ||
115 | return this | ||
116 | } | ||
117 | |||
118 | |||
119 | /* BUTTON DATA-API | ||
120 | * =============== */ | ||
121 | |||
122 | $(document).on('click.button.data-api', '[data-toggle^=button]', function (e) { | ||
123 | var $btn = $(e.target) | ||
124 | if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn') | ||
125 | $btn.button('toggle') | ||
126 | }) | ||
127 | |||
128 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-carousel.js b/frontend/gamma/js/Bootstrap/bootstrap-carousel.js new file mode 100644 index 0000000..e127bc7 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-carousel.js | |||
@@ -0,0 +1,208 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ========================================================== | ||
25 | * bootstrap-carousel.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#carousel | ||
27 | * ========================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* CAROUSEL CLASS DEFINITION | ||
50 | * ========================= */ | ||
51 | |||
52 | var Carousel = function (element, options) { | ||
53 | this.$element = $(element) | ||
54 | this.options = options | ||
55 | this.options.pause == 'hover' && this.$element | ||
56 | .on('mouseenter', $.proxy(this.pause, this)) | ||
57 | .on('mouseleave', $.proxy(this.cycle, this)) | ||
58 | } | ||
59 | |||
60 | Carousel.prototype = { | ||
61 | |||
62 | cycle: function (e) { | ||
63 | if (!e) this.paused = false | ||
64 | this.options.interval | ||
65 | && !this.paused | ||
66 | && (this.interval = setInterval($.proxy(this.next, this), this.options.interval)) | ||
67 | return this | ||
68 | } | ||
69 | |||
70 | , to: function (pos) { | ||
71 | var $active = this.$element.find('.item.active') | ||
72 | , children = $active.parent().children() | ||
73 | , activePos = children.index($active) | ||
74 | , that = this | ||
75 | |||
76 | if (pos > (children.length - 1) || pos < 0) return | ||
77 | |||
78 | if (this.sliding) { | ||
79 | return this.$element.one('slid', function () { | ||
80 | that.to(pos) | ||
81 | }) | ||
82 | } | ||
83 | |||
84 | if (activePos == pos) { | ||
85 | return this.pause().cycle() | ||
86 | } | ||
87 | |||
88 | return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos])) | ||
89 | } | ||
90 | |||
91 | , pause: function (e) { | ||
92 | if (!e) this.paused = true | ||
93 | if (this.$element.find('.next, .prev').length && $.support.transition.end) { | ||
94 | this.$element.trigger($.support.transition.end) | ||
95 | this.cycle() | ||
96 | } | ||
97 | clearInterval(this.interval) | ||
98 | this.interval = null | ||
99 | return this | ||
100 | } | ||
101 | |||
102 | , next: function () { | ||
103 | if (this.sliding) return | ||
104 | return this.slide('next') | ||
105 | } | ||
106 | |||
107 | , prev: function () { | ||
108 | if (this.sliding) return | ||
109 | return this.slide('prev') | ||
110 | } | ||
111 | |||
112 | , slide: function (type, next) { | ||
113 | var $active = this.$element.find('.item.active') | ||
114 | , $next = next || $active[type]() | ||
115 | , isCycling = this.interval | ||
116 | , direction = type == 'next' ? 'left' : 'right' | ||
117 | , fallback = type == 'next' ? 'first' : 'last' | ||
118 | , that = this | ||
119 | , e | ||
120 | |||
121 | this.sliding = true | ||
122 | |||
123 | isCycling && this.pause() | ||
124 | |||
125 | $next = $next.length ? $next : this.$element.find('.item')[fallback]() | ||
126 | |||
127 | e = $.Event('slide', { | ||
128 | relatedTarget: $next[0] | ||
129 | }) | ||
130 | |||
131 | if ($next.hasClass('active')) return | ||
132 | |||
133 | if ($.support.transition && this.$element.hasClass('slide')) { | ||
134 | this.$element.trigger(e) | ||
135 | if (e.isDefaultPrevented()) return | ||
136 | $next.addClass(type) | ||
137 | $next[0].offsetWidth // force reflow | ||
138 | $active.addClass(direction) | ||
139 | $next.addClass(direction) | ||
140 | this.$element.one($.support.transition.end, function () { | ||
141 | $next.removeClass([type, direction].join(' ')).addClass('active') | ||
142 | $active.removeClass(['active', direction].join(' ')) | ||
143 | that.sliding = false | ||
144 | setTimeout(function () { that.$element.trigger('slid') }, 0) | ||
145 | }) | ||
146 | } else { | ||
147 | this.$element.trigger(e) | ||
148 | if (e.isDefaultPrevented()) return | ||
149 | $active.removeClass('active') | ||
150 | $next.addClass('active') | ||
151 | this.sliding = false | ||
152 | this.$element.trigger('slid') | ||
153 | } | ||
154 | |||
155 | isCycling && this.cycle() | ||
156 | |||
157 | return this | ||
158 | } | ||
159 | |||
160 | } | ||
161 | |||
162 | |||
163 | /* CAROUSEL PLUGIN DEFINITION | ||
164 | * ========================== */ | ||
165 | |||
166 | var old = $.fn.carousel | ||
167 | |||
168 | $.fn.carousel = function (option) { | ||
169 | return this.each(function () { | ||
170 | var $this = $(this) | ||
171 | , data = $this.data('carousel') | ||
172 | , options = $.extend({}, $.fn.carousel.defaults, typeof option == 'object' && option) | ||
173 | , action = typeof option == 'string' ? option : options.slide | ||
174 | if (!data) $this.data('carousel', (data = new Carousel(this, options))) | ||
175 | if (typeof option == 'number') data.to(option) | ||
176 | else if (action) data[action]() | ||
177 | else if (options.interval) data.cycle() | ||
178 | }) | ||
179 | } | ||
180 | |||
181 | $.fn.carousel.defaults = { | ||
182 | interval: 5000 | ||
183 | , pause: 'hover' | ||
184 | } | ||
185 | |||
186 | $.fn.carousel.Constructor = Carousel | ||
187 | |||
188 | |||
189 | /* CAROUSEL NO CONFLICT | ||
190 | * ==================== */ | ||
191 | |||
192 | $.fn.carousel.noConflict = function () { | ||
193 | $.fn.carousel = old | ||
194 | return this | ||
195 | } | ||
196 | |||
197 | /* CAROUSEL DATA-API | ||
198 | * ================= */ | ||
199 | |||
200 | $(document).on('click.carousel.data-api', '[data-slide]', function (e) { | ||
201 | var $this = $(this), href | ||
202 | , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 | ||
203 | , options = $.extend({}, $target.data(), $this.data()) | ||
204 | $target.carousel(options) | ||
205 | e.preventDefault() | ||
206 | }) | ||
207 | |||
208 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-collapse.js b/frontend/gamma/js/Bootstrap/bootstrap-collapse.js new file mode 100644 index 0000000..31b7168 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-collapse.js | |||
@@ -0,0 +1,190 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ============================================================= | ||
25 | * bootstrap-collapse.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#collapse | ||
27 | * ============================================================= | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ============================================================ */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* COLLAPSE PUBLIC CLASS DEFINITION | ||
50 | * ================================ */ | ||
51 | |||
52 | var Collapse = function (element, options) { | ||
53 | this.$element = $(element) | ||
54 | this.options = $.extend({}, $.fn.collapse.defaults, options) | ||
55 | |||
56 | if (this.options.parent) { | ||
57 | this.$parent = $(this.options.parent) | ||
58 | } | ||
59 | |||
60 | this.options.toggle && this.toggle() | ||
61 | } | ||
62 | |||
63 | Collapse.prototype = { | ||
64 | |||
65 | constructor: Collapse | ||
66 | |||
67 | , dimension: function () { | ||
68 | var hasWidth = this.$element.hasClass('width') | ||
69 | return hasWidth ? 'width' : 'height' | ||
70 | } | ||
71 | |||
72 | , show: function () { | ||
73 | var dimension | ||
74 | , scroll | ||
75 | , actives | ||
76 | , hasData | ||
77 | |||
78 | if (this.transitioning) return | ||
79 | |||
80 | dimension = this.dimension() | ||
81 | scroll = $.camelCase(['scroll', dimension].join('-')) | ||
82 | actives = this.$parent && this.$parent.find('> .accordion-group > .in') | ||
83 | |||
84 | if (actives && actives.length) { | ||
85 | hasData = actives.data('collapse') | ||
86 | if (hasData && hasData.transitioning) return | ||
87 | actives.collapse('hide') | ||
88 | hasData || actives.data('collapse', null) | ||
89 | } | ||
90 | |||
91 | this.$element[dimension](0) | ||
92 | this.transition('addClass', $.Event('show'), 'shown') | ||
93 | $.support.transition && this.$element[dimension](this.$element[0][scroll]) | ||
94 | } | ||
95 | |||
96 | , hide: function () { | ||
97 | var dimension | ||
98 | if (this.transitioning) return | ||
99 | dimension = this.dimension() | ||
100 | this.reset(this.$element[dimension]()) | ||
101 | this.transition('removeClass', $.Event('hide'), 'hidden') | ||
102 | this.$element[dimension](0) | ||
103 | } | ||
104 | |||
105 | , reset: function (size) { | ||
106 | var dimension = this.dimension() | ||
107 | |||
108 | this.$element | ||
109 | .removeClass('collapse') | ||
110 | [dimension](size || 'auto') | ||
111 | [0].offsetWidth | ||
112 | |||
113 | this.$element[size !== null ? 'addClass' : 'removeClass']('collapse') | ||
114 | |||
115 | return this | ||
116 | } | ||
117 | |||
118 | , transition: function (method, startEvent, completeEvent) { | ||
119 | var that = this | ||
120 | , complete = function () { | ||
121 | if (startEvent.type == 'show') that.reset() | ||
122 | that.transitioning = 0 | ||
123 | that.$element.trigger(completeEvent) | ||
124 | } | ||
125 | |||
126 | this.$element.trigger(startEvent) | ||
127 | |||
128 | if (startEvent.isDefaultPrevented()) return | ||
129 | |||
130 | this.transitioning = 1 | ||
131 | |||
132 | this.$element[method]('in') | ||
133 | |||
134 | $.support.transition && this.$element.hasClass('collapse') ? | ||
135 | this.$element.one($.support.transition.end, complete) : | ||
136 | complete() | ||
137 | } | ||
138 | |||
139 | , toggle: function () { | ||
140 | this[this.$element.hasClass('in') ? 'hide' : 'show']() | ||
141 | } | ||
142 | |||
143 | } | ||
144 | |||
145 | |||
146 | /* COLLAPSE PLUGIN DEFINITION | ||
147 | * ========================== */ | ||
148 | |||
149 | var old = $.fn.collapse | ||
150 | |||
151 | $.fn.collapse = function (option) { | ||
152 | return this.each(function () { | ||
153 | var $this = $(this) | ||
154 | , data = $this.data('collapse') | ||
155 | , options = typeof option == 'object' && option | ||
156 | if (!data) $this.data('collapse', (data = new Collapse(this, options))) | ||
157 | if (typeof option == 'string') data[option]() | ||
158 | }) | ||
159 | } | ||
160 | |||
161 | $.fn.collapse.defaults = { | ||
162 | toggle: true | ||
163 | } | ||
164 | |||
165 | $.fn.collapse.Constructor = Collapse | ||
166 | |||
167 | |||
168 | /* COLLAPSE NO CONFLICT | ||
169 | * ==================== */ | ||
170 | |||
171 | $.fn.collapse.noConflict = function () { | ||
172 | $.fn.collapse = old | ||
173 | return this | ||
174 | } | ||
175 | |||
176 | |||
177 | /* COLLAPSE DATA-API | ||
178 | * ================= */ | ||
179 | |||
180 | $(document).on('click.collapse.data-api', '[data-toggle=collapse]', function (e) { | ||
181 | var $this = $(this), href | ||
182 | , target = $this.attr('data-target') | ||
183 | || e.preventDefault() | ||
184 | || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '') //strip for ie7 | ||
185 | , option = $(target).data('collapse') ? 'toggle' : $this.data() | ||
186 | $this[$(target).hasClass('in') ? 'addClass' : 'removeClass']('collapsed') | ||
187 | $(target).collapse(option) | ||
188 | }) | ||
189 | |||
190 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-dropdown.js b/frontend/gamma/js/Bootstrap/bootstrap-dropdown.js new file mode 100644 index 0000000..3b77bb3 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-dropdown.js | |||
@@ -0,0 +1,184 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ============================================================ | ||
25 | * bootstrap-dropdown.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#dropdowns | ||
27 | * ============================================================ | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ============================================================ */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* DROPDOWN CLASS DEFINITION | ||
50 | * ========================= */ | ||
51 | |||
52 | var toggle = '[data-toggle=dropdown]' | ||
53 | , Dropdown = function (element) { | ||
54 | var $el = $(element).on('click.dropdown.data-api', this.toggle) | ||
55 | $('html').on('click.dropdown.data-api', function () { | ||
56 | $el.parent().removeClass('open') | ||
57 | }) | ||
58 | } | ||
59 | |||
60 | Dropdown.prototype = { | ||
61 | |||
62 | constructor: Dropdown | ||
63 | |||
64 | , toggle: function (e) { | ||
65 | var $this = $(this) | ||
66 | , $parent | ||
67 | , isActive | ||
68 | |||
69 | if ($this.is('.disabled, :disabled')) return | ||
70 | |||
71 | $parent = getParent($this) | ||
72 | |||
73 | isActive = $parent.hasClass('open') | ||
74 | |||
75 | clearMenus() | ||
76 | |||
77 | if (!isActive) { | ||
78 | $parent.toggleClass('open') | ||
79 | } | ||
80 | |||
81 | $this.focus() | ||
82 | |||
83 | return false | ||
84 | } | ||
85 | |||
86 | , keydown: function (e) { | ||
87 | var $this | ||
88 | , $items | ||
89 | , $active | ||
90 | , $parent | ||
91 | , isActive | ||
92 | , index | ||
93 | |||
94 | if (!/(38|40|27)/.test(e.keyCode)) return | ||
95 | |||
96 | $this = $(this) | ||
97 | |||
98 | e.preventDefault() | ||
99 | e.stopPropagation() | ||
100 | |||
101 | if ($this.is('.disabled, :disabled')) return | ||
102 | |||
103 | $parent = getParent($this) | ||
104 | |||
105 | isActive = $parent.hasClass('open') | ||
106 | |||
107 | if (!isActive || (isActive && e.keyCode == 27)) return $this.click() | ||
108 | |||
109 | $items = $('[role=menu] li:not(.divider):visible a', $parent) | ||
110 | |||
111 | if (!$items.length) return | ||
112 | |||
113 | index = $items.index($items.filter(':focus')) | ||
114 | |||
115 | if (e.keyCode == 38 && index > 0) index-- // up | ||
116 | if (e.keyCode == 40 && index < $items.length - 1) index++ // down | ||
117 | if (!~index) index = 0 | ||
118 | |||
119 | $items | ||
120 | .eq(index) | ||
121 | .focus() | ||
122 | } | ||
123 | |||
124 | } | ||
125 | |||
126 | function clearMenus() { | ||
127 | $(toggle).each(function () { | ||
128 | getParent($(this)).removeClass('open') | ||
129 | }) | ||
130 | } | ||
131 | |||
132 | function getParent($this) { | ||
133 | var selector = $this.attr('data-target') | ||
134 | , $parent | ||
135 | |||
136 | if (!selector) { | ||
137 | selector = $this.attr('href') | ||
138 | selector = selector && /#/.test(selector) && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 | ||
139 | } | ||
140 | |||
141 | $parent = $(selector) | ||
142 | $parent.length || ($parent = $this.parent()) | ||
143 | |||
144 | return $parent | ||
145 | } | ||
146 | |||
147 | |||
148 | /* DROPDOWN PLUGIN DEFINITION | ||
149 | * ========================== */ | ||
150 | |||
151 | var old = $.fn.dropdown | ||
152 | |||
153 | $.fn.dropdown = function (option) { | ||
154 | return this.each(function () { | ||
155 | var $this = $(this) | ||
156 | , data = $this.data('dropdown') | ||
157 | if (!data) $this.data('dropdown', (data = new Dropdown(this))) | ||
158 | if (typeof option == 'string') data[option].call($this) | ||
159 | }) | ||
160 | } | ||
161 | |||
162 | $.fn.dropdown.Constructor = Dropdown | ||
163 | |||
164 | |||
165 | /* DROPDOWN NO CONFLICT | ||
166 | * ==================== */ | ||
167 | |||
168 | $.fn.dropdown.noConflict = function () { | ||
169 | $.fn.dropdown = old | ||
170 | return this | ||
171 | } | ||
172 | |||
173 | |||
174 | /* APPLY TO STANDARD DROPDOWN ELEMENTS | ||
175 | * =================================== */ | ||
176 | |||
177 | $(document) | ||
178 | .on('click.dropdown.data-api touchstart.dropdown.data-api', clearMenus) | ||
179 | .on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() }) | ||
180 | .on('touchstart.dropdown.data-api', '.dropdown-menu', function (e) { e.stopPropagation() }) | ||
181 | .on('click.dropdown.data-api touchstart.dropdown.data-api' , toggle, Dropdown.prototype.toggle) | ||
182 | .on('keydown.dropdown.data-api touchstart.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown) | ||
183 | |||
184 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-modal.js b/frontend/gamma/js/Bootstrap/bootstrap-modal.js new file mode 100644 index 0000000..fd7e337 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-modal.js | |||
@@ -0,0 +1,268 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ========================================================= | ||
25 | * bootstrap-modal.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#modals | ||
27 | * ========================================================= | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ========================================================= */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* MODAL CLASS DEFINITION | ||
50 | * ====================== */ | ||
51 | |||
52 | var Modal = function (element, options) { | ||
53 | this.options = options | ||
54 | this.$element = $(element) | ||
55 | .delegate('[data-dismiss="modal"]', 'click.dismiss.modal', $.proxy(this.hide, this)) | ||
56 | this.options.remote && this.$element.find('.modal-body').load(this.options.remote) | ||
57 | } | ||
58 | |||
59 | Modal.prototype = { | ||
60 | |||
61 | constructor: Modal | ||
62 | |||
63 | , toggle: function () { | ||
64 | return this[!this.isShown ? 'show' : 'hide']() | ||
65 | } | ||
66 | |||
67 | , show: function () { | ||
68 | var that = this | ||
69 | , e = $.Event('show') | ||
70 | |||
71 | this.$element.trigger(e) | ||
72 | |||
73 | if (this.isShown || e.isDefaultPrevented()) return | ||
74 | |||
75 | this.isShown = true | ||
76 | |||
77 | this.escape() | ||
78 | |||
79 | this.backdrop(function () { | ||
80 | var transition = $.support.transition && that.$element.hasClass('fade') | ||
81 | |||
82 | if (!that.$element.parent().length) { | ||
83 | that.$element.appendTo(document.body) //don't move modals dom position | ||
84 | } | ||
85 | |||
86 | that.$element | ||
87 | .show() | ||
88 | |||
89 | if (transition) { | ||
90 | that.$element[0].offsetWidth // force reflow | ||
91 | } | ||
92 | |||
93 | that.$element | ||
94 | .addClass('in') | ||
95 | .attr('aria-hidden', false) | ||
96 | |||
97 | that.enforceFocus() | ||
98 | |||
99 | transition ? | ||
100 | that.$element.one($.support.transition.end, function () { that.$element.focus().trigger('shown') }) : | ||
101 | that.$element.focus().trigger('shown') | ||
102 | |||
103 | }) | ||
104 | } | ||
105 | |||
106 | , hide: function (e) { | ||
107 | e && e.preventDefault() | ||
108 | |||
109 | var that = this | ||
110 | |||
111 | e = $.Event('hide') | ||
112 | |||
113 | this.$element.trigger(e) | ||
114 | |||
115 | if (!this.isShown || e.isDefaultPrevented()) return | ||
116 | |||
117 | this.isShown = false | ||
118 | |||
119 | this.escape() | ||
120 | |||
121 | $(document).off('focusin.modal') | ||
122 | |||
123 | this.$element | ||
124 | .removeClass('in') | ||
125 | .attr('aria-hidden', true) | ||
126 | |||
127 | $.support.transition && this.$element.hasClass('fade') ? | ||
128 | this.hideWithTransition() : | ||
129 | this.hideModal() | ||
130 | } | ||
131 | |||
132 | , enforceFocus: function () { | ||
133 | var that = this | ||
134 | $(document).on('focusin.modal', function (e) { | ||
135 | if (that.$element[0] !== e.target && !that.$element.has(e.target).length) { | ||
136 | that.$element.focus() | ||
137 | } | ||
138 | }) | ||
139 | } | ||
140 | |||
141 | , escape: function () { | ||
142 | var that = this | ||
143 | if (this.isShown && this.options.keyboard) { | ||
144 | this.$element.on('keyup.dismiss.modal', function ( e ) { | ||
145 | e.which == 27 && that.hide() | ||
146 | }) | ||
147 | } else if (!this.isShown) { | ||
148 | this.$element.off('keyup.dismiss.modal') | ||
149 | } | ||
150 | } | ||
151 | |||
152 | , hideWithTransition: function () { | ||
153 | var that = this | ||
154 | , timeout = setTimeout(function () { | ||
155 | that.$element.off($.support.transition.end) | ||
156 | that.hideModal() | ||
157 | }, 500) | ||
158 | |||
159 | this.$element.one($.support.transition.end, function () { | ||
160 | clearTimeout(timeout) | ||
161 | that.hideModal() | ||
162 | }) | ||
163 | } | ||
164 | |||
165 | , hideModal: function (that) { | ||
166 | this.$element | ||
167 | .hide() | ||
168 | .trigger('hidden') | ||
169 | |||
170 | this.backdrop() | ||
171 | } | ||
172 | |||
173 | , removeBackdrop: function () { | ||
174 | this.$backdrop.remove() | ||
175 | this.$backdrop = null | ||
176 | } | ||
177 | |||
178 | , backdrop: function (callback) { | ||
179 | var that = this | ||
180 | , animate = this.$element.hasClass('fade') ? 'fade' : '' | ||
181 | |||
182 | if (this.isShown && this.options.backdrop) { | ||
183 | var doAnimate = $.support.transition && animate | ||
184 | |||
185 | this.$backdrop = $('<div class="modal-backdrop ' + animate + '" />') | ||
186 | .appendTo(document.body) | ||
187 | |||
188 | this.$backdrop.click( | ||
189 | this.options.backdrop == 'static' ? | ||
190 | $.proxy(this.$element[0].focus, this.$element[0]) | ||
191 | : $.proxy(this.hide, this) | ||
192 | ) | ||
193 | |||
194 | if (doAnimate) this.$backdrop[0].offsetWidth // force reflow | ||
195 | |||
196 | this.$backdrop.addClass('in') | ||
197 | |||
198 | doAnimate ? | ||
199 | this.$backdrop.one($.support.transition.end, callback) : | ||
200 | callback() | ||
201 | |||
202 | } else if (!this.isShown && this.$backdrop) { | ||
203 | this.$backdrop.removeClass('in') | ||
204 | |||
205 | $.support.transition && this.$element.hasClass('fade')? | ||
206 | this.$backdrop.one($.support.transition.end, $.proxy(this.removeBackdrop, this)) : | ||
207 | this.removeBackdrop() | ||
208 | |||
209 | } else if (callback) { | ||
210 | callback() | ||
211 | } | ||
212 | } | ||
213 | } | ||
214 | |||
215 | |||
216 | /* MODAL PLUGIN DEFINITION | ||
217 | * ======================= */ | ||
218 | |||
219 | var old = $.fn.modal | ||
220 | |||
221 | $.fn.modal = function (option) { | ||
222 | return this.each(function () { | ||
223 | var $this = $(this) | ||
224 | , data = $this.data('modal') | ||
225 | , options = $.extend({}, $.fn.modal.defaults, $this.data(), typeof option == 'object' && option) | ||
226 | if (!data) $this.data('modal', (data = new Modal(this, options))) | ||
227 | if (typeof option == 'string') data[option]() | ||
228 | else if (options.show) data.show() | ||
229 | }) | ||
230 | } | ||
231 | |||
232 | $.fn.modal.defaults = { | ||
233 | backdrop: true | ||
234 | , keyboard: true | ||
235 | , show: true | ||
236 | } | ||
237 | |||
238 | $.fn.modal.Constructor = Modal | ||
239 | |||
240 | |||
241 | /* MODAL NO CONFLICT | ||
242 | * ================= */ | ||
243 | |||
244 | $.fn.modal.noConflict = function () { | ||
245 | $.fn.modal = old | ||
246 | return this | ||
247 | } | ||
248 | |||
249 | |||
250 | /* MODAL DATA-API | ||
251 | * ============== */ | ||
252 | |||
253 | $(document).on('click.modal.data-api', '[data-toggle="modal"]', function (e) { | ||
254 | var $this = $(this) | ||
255 | , href = $this.attr('href') | ||
256 | , $target = $($this.attr('data-target') || (href && href.replace(/.*(?=#[^\s]+$)/, ''))) //strip for ie7 | ||
257 | , option = $target.data('modal') ? 'toggle' : $.extend({ remote:!/#/.test(href) && href }, $target.data(), $this.data()) | ||
258 | |||
259 | e.preventDefault() | ||
260 | |||
261 | $target | ||
262 | .modal(option) | ||
263 | .one('hide', function () { | ||
264 | $this.focus() | ||
265 | }) | ||
266 | }) | ||
267 | |||
268 | }(window.jQuery); | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-popover.js b/frontend/gamma/js/Bootstrap/bootstrap-popover.js new file mode 100644 index 0000000..89e1edb --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-popover.js | |||
@@ -0,0 +1,137 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* =========================================================== | ||
25 | * bootstrap-popover.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#popovers | ||
27 | * =========================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * =========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* POPOVER PUBLIC CLASS DEFINITION | ||
50 | * =============================== */ | ||
51 | |||
52 | var Popover = function (element, options) { | ||
53 | this.init('popover', element, options) | ||
54 | } | ||
55 | |||
56 | |||
57 | /* NOTE: POPOVER EXTENDS BOOTSTRAP-TOOLTIP.js | ||
58 | ========================================== */ | ||
59 | |||
60 | Popover.prototype = $.extend({}, $.fn.tooltip.Constructor.prototype, { | ||
61 | |||
62 | constructor: Popover | ||
63 | |||
64 | , setContent: function () { | ||
65 | var $tip = this.tip() | ||
66 | , title = this.getTitle() | ||
67 | , content = this.getContent() | ||
68 | |||
69 | $tip.find('.popover-title')[this.options.html ? 'html' : 'text'](title) | ||
70 | $tip.find('.popover-content')[this.options.html ? 'html' : 'text'](content) | ||
71 | |||
72 | $tip.removeClass('fade top bottom left right in') | ||
73 | } | ||
74 | |||
75 | , hasContent: function () { | ||
76 | return this.getTitle() || this.getContent() | ||
77 | } | ||
78 | |||
79 | , getContent: function () { | ||
80 | var content | ||
81 | , $e = this.$element | ||
82 | , o = this.options | ||
83 | |||
84 | content = $e.attr('data-content') | ||
85 | || (typeof o.content == 'function' ? o.content.call($e[0]) : o.content) | ||
86 | |||
87 | return content | ||
88 | } | ||
89 | |||
90 | , tip: function () { | ||
91 | if (!this.$tip) { | ||
92 | this.$tip = $(this.options.template) | ||
93 | } | ||
94 | return this.$tip | ||
95 | } | ||
96 | |||
97 | , destroy: function () { | ||
98 | this.hide().$element.off('.' + this.type).removeData(this.type) | ||
99 | } | ||
100 | |||
101 | }) | ||
102 | |||
103 | |||
104 | /* POPOVER PLUGIN DEFINITION | ||
105 | * ======================= */ | ||
106 | |||
107 | var old = $.fn.popover | ||
108 | |||
109 | $.fn.popover = function (option) { | ||
110 | return this.each(function () { | ||
111 | var $this = $(this) | ||
112 | , data = $this.data('popover') | ||
113 | , options = typeof option == 'object' && option | ||
114 | if (!data) $this.data('popover', (data = new Popover(this, options))) | ||
115 | if (typeof option == 'string') data[option]() | ||
116 | }) | ||
117 | } | ||
118 | |||
119 | $.fn.popover.Constructor = Popover | ||
120 | |||
121 | $.fn.popover.defaults = $.extend({} , $.fn.tooltip.defaults, { | ||
122 | placement: 'right' | ||
123 | , trigger: 'click' | ||
124 | , content: '' | ||
125 | , template: '<div class="popover"><div class="arrow"></div><div class="popover-inner"><h3 class="popover-title"></h3><div class="popover-content"></div></div></div>' | ||
126 | }) | ||
127 | |||
128 | |||
129 | /* POPOVER NO CONFLICT | ||
130 | * =================== */ | ||
131 | |||
132 | $.fn.popover.noConflict = function () { | ||
133 | $.fn.popover = old | ||
134 | return this | ||
135 | } | ||
136 | |||
137 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-scrollspy.js b/frontend/gamma/js/Bootstrap/bootstrap-scrollspy.js new file mode 100644 index 0000000..4366f26 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-scrollspy.js | |||
@@ -0,0 +1,185 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ============================================================= | ||
25 | * bootstrap-scrollspy.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#scrollspy | ||
27 | * ============================================================= | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ============================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* SCROLLSPY CLASS DEFINITION | ||
50 | * ========================== */ | ||
51 | |||
52 | function ScrollSpy(element, options) { | ||
53 | var process = $.proxy(this.process, this) | ||
54 | , $element = $(element).is('body') ? $(window) : $(element) | ||
55 | , href | ||
56 | this.options = $.extend({}, $.fn.scrollspy.defaults, options) | ||
57 | this.$scrollElement = $element.on('scroll.scroll-spy.data-api', process) | ||
58 | this.selector = (this.options.target | ||
59 | || ((href = $(element).attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7 | ||
60 | || '') + ' .nav li > a' | ||
61 | this.$body = $('body') | ||
62 | this.refresh() | ||
63 | this.process() | ||
64 | } | ||
65 | |||
66 | ScrollSpy.prototype = { | ||
67 | |||
68 | constructor: ScrollSpy | ||
69 | |||
70 | , refresh: function () { | ||
71 | var self = this | ||
72 | , $targets | ||
73 | |||
74 | this.offsets = $([]) | ||
75 | this.targets = $([]) | ||
76 | |||
77 | $targets = this.$body | ||
78 | .find(this.selector) | ||
79 | .map(function () { | ||
80 | var $el = $(this) | ||
81 | , href = $el.data('target') || $el.attr('href') | ||
82 | , $href = /^#\w/.test(href) && $(href) | ||
83 | return ( $href | ||
84 | && $href.length | ||
85 | && [[ $href.position().top + self.$scrollElement.scrollTop(), href ]] ) || null | ||
86 | }) | ||
87 | .sort(function (a, b) { return a[0] - b[0] }) | ||
88 | .each(function () { | ||
89 | self.offsets.push(this[0]) | ||
90 | self.targets.push(this[1]) | ||
91 | }) | ||
92 | } | ||
93 | |||
94 | , process: function () { | ||
95 | var scrollTop = this.$scrollElement.scrollTop() + this.options.offset | ||
96 | , scrollHeight = this.$scrollElement[0].scrollHeight || this.$body[0].scrollHeight | ||
97 | , maxScroll = scrollHeight - this.$scrollElement.height() | ||
98 | , offsets = this.offsets | ||
99 | , targets = this.targets | ||
100 | , activeTarget = this.activeTarget | ||
101 | , i | ||
102 | |||
103 | if (scrollTop >= maxScroll) { | ||
104 | return activeTarget != (i = targets.last()[0]) | ||
105 | && this.activate ( i ) | ||
106 | } | ||
107 | |||
108 | for (i = offsets.length; i--;) { | ||
109 | activeTarget != targets[i] | ||
110 | && scrollTop >= offsets[i] | ||
111 | && (!offsets[i + 1] || scrollTop <= offsets[i + 1]) | ||
112 | && this.activate( targets[i] ) | ||
113 | } | ||
114 | } | ||
115 | |||
116 | , activate: function (target) { | ||
117 | var active | ||
118 | , selector | ||
119 | |||
120 | this.activeTarget = target | ||
121 | |||
122 | $(this.selector) | ||
123 | .parent('.active') | ||
124 | .removeClass('active') | ||
125 | |||
126 | selector = this.selector | ||
127 | + '[data-target="' + target + '"],' | ||
128 | + this.selector + '[href="' + target + '"]' | ||
129 | |||
130 | active = $(selector) | ||
131 | .parent('li') | ||
132 | .addClass('active') | ||
133 | |||
134 | if (active.parent('.dropdown-menu').length) { | ||
135 | active = active.closest('li.dropdown').addClass('active') | ||
136 | } | ||
137 | |||
138 | active.trigger('activate') | ||
139 | } | ||
140 | |||
141 | } | ||
142 | |||
143 | |||
144 | /* SCROLLSPY PLUGIN DEFINITION | ||
145 | * =========================== */ | ||
146 | |||
147 | var old = $.fn.scrollspy | ||
148 | |||
149 | $.fn.scrollspy = function (option) { | ||
150 | return this.each(function () { | ||
151 | var $this = $(this) | ||
152 | , data = $this.data('scrollspy') | ||
153 | , options = typeof option == 'object' && option | ||
154 | if (!data) $this.data('scrollspy', (data = new ScrollSpy(this, options))) | ||
155 | if (typeof option == 'string') data[option]() | ||
156 | }) | ||
157 | } | ||
158 | |||
159 | $.fn.scrollspy.Constructor = ScrollSpy | ||
160 | |||
161 | $.fn.scrollspy.defaults = { | ||
162 | offset: 10 | ||
163 | } | ||
164 | |||
165 | |||
166 | /* SCROLLSPY NO CONFLICT | ||
167 | * ===================== */ | ||
168 | |||
169 | $.fn.scrollspy.noConflict = function () { | ||
170 | $.fn.scrollspy = old | ||
171 | return this | ||
172 | } | ||
173 | |||
174 | |||
175 | /* SCROLLSPY DATA-API | ||
176 | * ================== */ | ||
177 | |||
178 | $(window).on('load', function () { | ||
179 | $('[data-spy="scroll"]').each(function () { | ||
180 | var $spy = $(this) | ||
181 | $spy.scrollspy($spy.data()) | ||
182 | }) | ||
183 | }) | ||
184 | |||
185 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-tab.js b/frontend/gamma/js/Bootstrap/bootstrap-tab.js new file mode 100644 index 0000000..d7c7fc7 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-tab.js | |||
@@ -0,0 +1,167 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ======================================================== | ||
25 | * bootstrap-tab.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#tabs | ||
27 | * ======================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ======================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* TAB CLASS DEFINITION | ||
50 | * ==================== */ | ||
51 | |||
52 | var Tab = function (element) { | ||
53 | this.element = $(element) | ||
54 | } | ||
55 | |||
56 | Tab.prototype = { | ||
57 | |||
58 | constructor: Tab | ||
59 | |||
60 | , show: function () { | ||
61 | var $this = this.element | ||
62 | , $ul = $this.closest('ul:not(.dropdown-menu)') | ||
63 | , selector = $this.attr('data-target') | ||
64 | , previous | ||
65 | , $target | ||
66 | , e | ||
67 | |||
68 | if (!selector) { | ||
69 | selector = $this.attr('href') | ||
70 | selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7 | ||
71 | } | ||
72 | |||
73 | if ( $this.parent('li').hasClass('active') ) return | ||
74 | |||
75 | previous = $ul.find('.active:last a')[0] | ||
76 | |||
77 | e = $.Event('show', { | ||
78 | relatedTarget: previous | ||
79 | }) | ||
80 | |||
81 | $this.trigger(e) | ||
82 | |||
83 | if (e.isDefaultPrevented()) return | ||
84 | |||
85 | $target = $(selector) | ||
86 | |||
87 | this.activate($this.parent('li'), $ul) | ||
88 | this.activate($target, $target.parent(), function () { | ||
89 | $this.trigger({ | ||
90 | type: 'shown' | ||
91 | , relatedTarget: previous | ||
92 | }) | ||
93 | }) | ||
94 | } | ||
95 | |||
96 | , activate: function ( element, container, callback) { | ||
97 | var $active = container.find('> .active') | ||
98 | , transition = callback | ||
99 | && $.support.transition | ||
100 | && $active.hasClass('fade') | ||
101 | |||
102 | function next() { | ||
103 | $active | ||
104 | .removeClass('active') | ||
105 | .find('> .dropdown-menu > .active') | ||
106 | .removeClass('active') | ||
107 | |||
108 | element.addClass('active') | ||
109 | |||
110 | if (transition) { | ||
111 | element[0].offsetWidth // reflow for transition | ||
112 | element.addClass('in') | ||
113 | } else { | ||
114 | element.removeClass('fade') | ||
115 | } | ||
116 | |||
117 | if ( element.parent('.dropdown-menu') ) { | ||
118 | element.closest('li.dropdown').addClass('active') | ||
119 | } | ||
120 | |||
121 | callback && callback() | ||
122 | } | ||
123 | |||
124 | transition ? | ||
125 | $active.one($.support.transition.end, next) : | ||
126 | next() | ||
127 | |||
128 | $active.removeClass('in') | ||
129 | } | ||
130 | } | ||
131 | |||
132 | |||
133 | /* TAB PLUGIN DEFINITION | ||
134 | * ===================== */ | ||
135 | |||
136 | var old = $.fn.tab | ||
137 | |||
138 | $.fn.tab = function ( option ) { | ||
139 | return this.each(function () { | ||
140 | var $this = $(this) | ||
141 | , data = $this.data('tab') | ||
142 | if (!data) $this.data('tab', (data = new Tab(this))) | ||
143 | if (typeof option == 'string') data[option]() | ||
144 | }) | ||
145 | } | ||
146 | |||
147 | $.fn.tab.Constructor = Tab | ||
148 | |||
149 | |||
150 | /* TAB NO CONFLICT | ||
151 | * =============== */ | ||
152 | |||
153 | $.fn.tab.noConflict = function () { | ||
154 | $.fn.tab = old | ||
155 | return this | ||
156 | } | ||
157 | |||
158 | |||
159 | /* TAB DATA-API | ||
160 | * ============ */ | ||
161 | |||
162 | $(document).on('click.tab.data-api', '[data-toggle="tab"], [data-toggle="pill"]', function (e) { | ||
163 | e.preventDefault() | ||
164 | $(this).tab('show') | ||
165 | }) | ||
166 | |||
167 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-tooltip.js b/frontend/gamma/js/Bootstrap/bootstrap-tooltip.js new file mode 100644 index 0000000..bdcff7d --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-tooltip.js | |||
@@ -0,0 +1,310 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* =========================================================== | ||
25 | * bootstrap-tooltip.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#tooltips | ||
27 | * Inspired by the original jQuery.tipsy by Jason Frame | ||
28 | * =========================================================== | ||
29 | * Copyright 2012 Twitter, Inc. | ||
30 | * | ||
31 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
32 | * you may not use this file except in compliance with the License. | ||
33 | * You may obtain a copy of the License at | ||
34 | * | ||
35 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
36 | * | ||
37 | * Unless required by applicable law or agreed to in writing, software | ||
38 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
39 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
40 | * See the License for the specific language governing permissions and | ||
41 | * limitations under the License. | ||
42 | * ========================================================== */ | ||
43 | |||
44 | |||
45 | !function ($) { | ||
46 | |||
47 | "use strict"; // jshint ;_; | ||
48 | |||
49 | |||
50 | /* TOOLTIP PUBLIC CLASS DEFINITION | ||
51 | * =============================== */ | ||
52 | |||
53 | var Tooltip = function (element, options) { | ||
54 | this.init('tooltip', element, options) | ||
55 | } | ||
56 | |||
57 | Tooltip.prototype = { | ||
58 | |||
59 | constructor: Tooltip | ||
60 | |||
61 | , init: function (type, element, options) { | ||
62 | var eventIn | ||
63 | , eventOut | ||
64 | |||
65 | this.type = type | ||
66 | this.$element = $(element) | ||
67 | this.options = this.getOptions(options) | ||
68 | this.enabled = true | ||
69 | |||
70 | if (this.options.trigger == 'click') { | ||
71 | this.$element.on('click.' + this.type, this.options.selector, $.proxy(this.toggle, this)) | ||
72 | } else if (this.options.trigger != 'manual') { | ||
73 | eventIn = this.options.trigger == 'hover' ? 'mouseenter' : 'focus' | ||
74 | eventOut = this.options.trigger == 'hover' ? 'mouseleave' : 'blur' | ||
75 | this.$element.on(eventIn + '.' + this.type, this.options.selector, $.proxy(this.enter, this)) | ||
76 | this.$element.on(eventOut + '.' + this.type, this.options.selector, $.proxy(this.leave, this)) | ||
77 | } | ||
78 | |||
79 | this.options.selector ? | ||
80 | (this._options = $.extend({}, this.options, { trigger: 'manual', selector: '' })) : | ||
81 | this.fixTitle() | ||
82 | } | ||
83 | |||
84 | , getOptions: function (options) { | ||
85 | options = $.extend({}, $.fn[this.type].defaults, options, this.$element.data()) | ||
86 | |||
87 | if (options.delay && typeof options.delay == 'number') { | ||
88 | options.delay = { | ||
89 | show: options.delay | ||
90 | , hide: options.delay | ||
91 | } | ||
92 | } | ||
93 | |||
94 | return options | ||
95 | } | ||
96 | |||
97 | , enter: function (e) { | ||
98 | var self = $(e.currentTarget)[this.type](this._options).data(this.type) | ||
99 | |||
100 | if (!self.options.delay || !self.options.delay.show) return self.show() | ||
101 | |||
102 | clearTimeout(this.timeout) | ||
103 | self.hoverState = 'in' | ||
104 | this.timeout = setTimeout(function() { | ||
105 | if (self.hoverState == 'in') self.show() | ||
106 | }, self.options.delay.show) | ||
107 | } | ||
108 | |||
109 | , leave: function (e) { | ||
110 | var self = $(e.currentTarget)[this.type](this._options).data(this.type) | ||
111 | |||
112 | if (this.timeout) clearTimeout(this.timeout) | ||
113 | if (!self.options.delay || !self.options.delay.hide) return self.hide() | ||
114 | |||
115 | self.hoverState = 'out' | ||
116 | this.timeout = setTimeout(function() { | ||
117 | if (self.hoverState == 'out') self.hide() | ||
118 | }, self.options.delay.hide) | ||
119 | } | ||
120 | |||
121 | , show: function () { | ||
122 | var $tip | ||
123 | , inside | ||
124 | , pos | ||
125 | , actualWidth | ||
126 | , actualHeight | ||
127 | , placement | ||
128 | , tp | ||
129 | |||
130 | if (this.hasContent() && this.enabled) { | ||
131 | $tip = this.tip() | ||
132 | this.setContent() | ||
133 | |||
134 | if (this.options.animation) { | ||
135 | $tip.addClass('fade') | ||
136 | } | ||
137 | |||
138 | placement = typeof this.options.placement == 'function' ? | ||
139 | this.options.placement.call(this, $tip[0], this.$element[0]) : | ||
140 | this.options.placement | ||
141 | |||
142 | inside = /in/.test(placement) | ||
143 | |||
144 | $tip | ||
145 | .detach() | ||
146 | .css({ top: 0, left: 0, display: 'block' }) | ||
147 | .insertAfter(this.$element) | ||
148 | |||
149 | pos = this.getPosition(inside) | ||
150 | |||
151 | actualWidth = $tip[0].offsetWidth | ||
152 | actualHeight = $tip[0].offsetHeight | ||
153 | |||
154 | switch (inside ? placement.split(' ')[1] : placement) { | ||
155 | case 'bottom': | ||
156 | tp = {top: pos.top + pos.height, left: pos.left + pos.width / 2 - actualWidth / 2} | ||
157 | break | ||
158 | case 'top': | ||
159 | tp = {top: pos.top - actualHeight, left: pos.left + pos.width / 2 - actualWidth / 2} | ||
160 | break | ||
161 | case 'left': | ||
162 | tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left - actualWidth} | ||
163 | break | ||
164 | case 'right': | ||
165 | tp = {top: pos.top + pos.height / 2 - actualHeight / 2, left: pos.left + pos.width} | ||
166 | break | ||
167 | } | ||
168 | |||
169 | $tip | ||
170 | .offset(tp) | ||
171 | .addClass(placement) | ||
172 | .addClass('in') | ||
173 | } | ||
174 | } | ||
175 | |||
176 | , setContent: function () { | ||
177 | var $tip = this.tip() | ||
178 | , title = this.getTitle() | ||
179 | |||
180 | $tip.find('.tooltip-inner')[this.options.html ? 'html' : 'text'](title) | ||
181 | $tip.removeClass('fade in top bottom left right') | ||
182 | } | ||
183 | |||
184 | , hide: function () { | ||
185 | var that = this | ||
186 | , $tip = this.tip() | ||
187 | |||
188 | $tip.removeClass('in') | ||
189 | |||
190 | function removeWithAnimation() { | ||
191 | var timeout = setTimeout(function () { | ||
192 | $tip.off($.support.transition.end).detach() | ||
193 | }, 500) | ||
194 | |||
195 | $tip.one($.support.transition.end, function () { | ||
196 | clearTimeout(timeout) | ||
197 | $tip.detach() | ||
198 | }) | ||
199 | } | ||
200 | |||
201 | $.support.transition && this.$tip.hasClass('fade') ? | ||
202 | removeWithAnimation() : | ||
203 | $tip.detach() | ||
204 | |||
205 | return this | ||
206 | } | ||
207 | |||
208 | , fixTitle: function () { | ||
209 | var $e = this.$element | ||
210 | if ($e.attr('title') || typeof($e.attr('data-original-title')) != 'string') { | ||
211 | $e.attr('data-original-title', $e.attr('title') || '').removeAttr('title') | ||
212 | } | ||
213 | } | ||
214 | |||
215 | , hasContent: function () { | ||
216 | return this.getTitle() | ||
217 | } | ||
218 | |||
219 | , getPosition: function (inside) { | ||
220 | return $.extend({}, (inside ? {top: 0, left: 0} : this.$element.offset()), { | ||
221 | width: this.$element[0].offsetWidth | ||
222 | , height: this.$element[0].offsetHeight | ||
223 | }) | ||
224 | } | ||
225 | |||
226 | , getTitle: function () { | ||
227 | var title | ||
228 | , $e = this.$element | ||
229 | , o = this.options | ||
230 | |||
231 | title = $e.attr('data-original-title') | ||
232 | || (typeof o.title == 'function' ? o.title.call($e[0]) : o.title) | ||
233 | |||
234 | return title | ||
235 | } | ||
236 | |||
237 | , tip: function () { | ||
238 | return this.$tip = this.$tip || $(this.options.template) | ||
239 | } | ||
240 | |||
241 | , validate: function () { | ||
242 | if (!this.$element[0].parentNode) { | ||
243 | this.hide() | ||
244 | this.$element = null | ||
245 | this.options = null | ||
246 | } | ||
247 | } | ||
248 | |||
249 | , enable: function () { | ||
250 | this.enabled = true | ||
251 | } | ||
252 | |||
253 | , disable: function () { | ||
254 | this.enabled = false | ||
255 | } | ||
256 | |||
257 | , toggleEnabled: function () { | ||
258 | this.enabled = !this.enabled | ||
259 | } | ||
260 | |||
261 | , toggle: function (e) { | ||
262 | var self = $(e.currentTarget)[this.type](this._options).data(this.type) | ||
263 | self[self.tip().hasClass('in') ? 'hide' : 'show']() | ||
264 | } | ||
265 | |||
266 | , destroy: function () { | ||
267 | this.hide().$element.off('.' + this.type).removeData(this.type) | ||
268 | } | ||
269 | |||
270 | } | ||
271 | |||
272 | |||
273 | /* TOOLTIP PLUGIN DEFINITION | ||
274 | * ========================= */ | ||
275 | |||
276 | var old = $.fn.tooltip | ||
277 | |||
278 | $.fn.tooltip = function ( option ) { | ||
279 | return this.each(function () { | ||
280 | var $this = $(this) | ||
281 | , data = $this.data('tooltip') | ||
282 | , options = typeof option == 'object' && option | ||
283 | if (!data) $this.data('tooltip', (data = new Tooltip(this, options))) | ||
284 | if (typeof option == 'string') data[option]() | ||
285 | }) | ||
286 | } | ||
287 | |||
288 | $.fn.tooltip.Constructor = Tooltip | ||
289 | |||
290 | $.fn.tooltip.defaults = { | ||
291 | animation: true | ||
292 | , placement: 'top' | ||
293 | , selector: false | ||
294 | , template: '<div class="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>' | ||
295 | , trigger: 'hover' | ||
296 | , title: '' | ||
297 | , delay: 0 | ||
298 | , html: false | ||
299 | } | ||
300 | |||
301 | |||
302 | /* TOOLTIP NO CONFLICT | ||
303 | * =================== */ | ||
304 | |||
305 | $.fn.tooltip.noConflict = function () { | ||
306 | $.fn.tooltip = old | ||
307 | return this | ||
308 | } | ||
309 | |||
310 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-transition.js b/frontend/gamma/js/Bootstrap/bootstrap-transition.js new file mode 100644 index 0000000..820d232 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-transition.js | |||
@@ -0,0 +1,83 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* =================================================== | ||
25 | * bootstrap-transition.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#transitions | ||
27 | * =================================================== | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ========================================================== */ | ||
42 | |||
43 | |||
44 | !function ($) { | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* CSS TRANSITION SUPPORT (http://www.modernizr.com/) | ||
50 | * ======================================================= */ | ||
51 | |||
52 | $(function () { | ||
53 | |||
54 | $.support.transition = (function () { | ||
55 | |||
56 | var transitionEnd = (function () { | ||
57 | |||
58 | var el = document.createElement('bootstrap') | ||
59 | , transEndEventNames = { | ||
60 | 'WebkitTransition' : 'webkitTransitionEnd' | ||
61 | , 'MozTransition' : 'transitionend' | ||
62 | , 'OTransition' : 'oTransitionEnd otransitionend' | ||
63 | , 'transition' : 'transitionend' | ||
64 | } | ||
65 | , name | ||
66 | |||
67 | for (name in transEndEventNames){ | ||
68 | if (el.style[name] !== undefined) { | ||
69 | return transEndEventNames[name] | ||
70 | } | ||
71 | } | ||
72 | |||
73 | }()) | ||
74 | |||
75 | return transitionEnd && { | ||
76 | end: transitionEnd | ||
77 | } | ||
78 | |||
79 | })() | ||
80 | |||
81 | }) | ||
82 | |||
83 | }(window.jQuery); \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Bootstrap/bootstrap-typeahead.js b/frontend/gamma/js/Bootstrap/bootstrap-typeahead.js new file mode 100644 index 0000000..d3d8d32 --- a/dev/null +++ b/frontend/gamma/js/Bootstrap/bootstrap-typeahead.js | |||
@@ -0,0 +1,346 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | /* ============================================================= | ||
25 | * bootstrap-typeahead.js v2.2.2 | ||
26 | * http://twitter.github.com/bootstrap/javascript.html#typeahead | ||
27 | * ============================================================= | ||
28 | * Copyright 2012 Twitter, Inc. | ||
29 | * | ||
30 | * Licensed under the Apache License, Version 2.0 (the "License"); | ||
31 | * you may not use this file except in compliance with the License. | ||
32 | * You may obtain a copy of the License at | ||
33 | * | ||
34 | * http://www.apache.org/licenses/LICENSE-2.0 | ||
35 | * | ||
36 | * Unless required by applicable law or agreed to in writing, software | ||
37 | * distributed under the License is distributed on an "AS IS" BASIS, | ||
38 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
39 | * See the License for the specific language governing permissions and | ||
40 | * limitations under the License. | ||
41 | * ============================================================ */ | ||
42 | |||
43 | |||
44 | !function($){ | ||
45 | |||
46 | "use strict"; // jshint ;_; | ||
47 | |||
48 | |||
49 | /* TYPEAHEAD PUBLIC CLASS DEFINITION | ||
50 | * ================================= */ | ||
51 | |||
52 | var Typeahead = function (element, options) { | ||
53 | this.$element = $(element) | ||
54 | this.options = $.extend({}, $.fn.typeahead.defaults, options) | ||
55 | this.matcher = this.options.matcher || this.matcher | ||
56 | this.sorter = this.options.sorter || this.sorter | ||
57 | this.highlighter = this.options.highlighter || this.highlighter | ||
58 | this.updater = this.options.updater || this.updater | ||
59 | this.source = this.options.source | ||
60 | this.$menu = $(this.options.menu) | ||
61 | this.shown = false | ||
62 | this.listen() | ||
63 | } | ||
64 | |||
65 | Typeahead.prototype = { | ||
66 | |||
67 | constructor: Typeahead | ||
68 | |||
69 | , select: function () { | ||
70 | var val = this.$menu.find('.active').attr('data-value') | ||
71 | this.$element | ||
72 | .val(this.updater(val)) | ||
73 | .change() | ||
74 | return this.hide() | ||
75 | } | ||
76 | |||
77 | , updater: function (item) { | ||
78 | return item | ||
79 | } | ||
80 | |||
81 | , show: function () { | ||
82 | var pos = $.extend({}, this.$element.position(), { | ||
83 | height: this.$element[0].offsetHeight | ||
84 | }) | ||
85 | |||
86 | this.$menu | ||
87 | .insertAfter(this.$element) | ||
88 | .css({ | ||
89 | top: pos.top + pos.height | ||
90 | , left: pos.left | ||
91 | }) | ||
92 | .show() | ||
93 | |||
94 | this.shown = true | ||
95 | return this | ||
96 | } | ||
97 | |||
98 | , hide: function () { | ||
99 | this.$menu.hide() | ||
100 | this.shown = false | ||
101 | return this | ||
102 | } | ||
103 | |||
104 | , lookup: function (event) { | ||
105 | var items | ||
106 | |||
107 | this.query = this.$element.val() | ||
108 | |||
109 | if (!this.query || this.query.length < this.options.minLength) { | ||
110 | return this.shown ? this.hide() : this | ||
111 | } | ||
112 | |||
113 | items = $.isFunction(this.source) ? this.source(this.query, $.proxy(this.process, this)) : this.source | ||
114 | |||
115 | return items ? this.process(items) : this | ||
116 | } | ||
117 | |||
118 | , process: function (items) { | ||
119 | var that = this | ||
120 | |||
121 | items = $.grep(items, function (item) { | ||
122 | return that.matcher(item) | ||
123 | }) | ||
124 | |||
125 | items = this.sorter(items) | ||
126 | |||
127 | if (!items.length) { | ||
128 | return this.shown ? this.hide() : this | ||
129 | } | ||
130 | |||
131 | return this.render(items.slice(0, this.options.items)).show() | ||
132 | } | ||
133 | |||
134 | , matcher: function (item) { | ||
135 | return ~item.toLowerCase().indexOf(this.query.toLowerCase()) | ||
136 | } | ||
137 | |||
138 | , sorter: function (items) { | ||
139 | var beginswith = [] | ||
140 | , caseSensitive = [] | ||
141 | , caseInsensitive = [] | ||
142 | , item | ||
143 | |||
144 | while (item = items.shift()) { | ||
145 | if (!item.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(item) | ||
146 | else if (~item.indexOf(this.query)) caseSensitive.push(item) | ||
147 | else caseInsensitive.push(item) | ||
148 | } | ||
149 | |||
150 | return beginswith.concat(caseSensitive, caseInsensitive) | ||
151 | } | ||
152 | |||
153 | , highlighter: function (item) { | ||
154 | var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&') | ||
155 | return item.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) { | ||
156 | return '<strong>' + match + '</strong>' | ||
157 | }) | ||
158 | } | ||
159 | |||
160 | , render: function (items) { | ||
161 | var that = this | ||
162 | |||
163 | items = $(items).map(function (i, item) { | ||
164 | i = $(that.options.item).attr('data-value', item) | ||
165 | i.find('a').html(that.highlighter(item)) | ||
166 | return i[0] | ||
167 | }) | ||
168 | |||
169 | items.first().addClass('active') | ||
170 | this.$menu.html(items) | ||
171 | return this | ||
172 | } | ||
173 | |||
174 | , next: function (event) { | ||
175 | var active = this.$menu.find('.active').removeClass('active') | ||
176 | , next = active.next() | ||
177 | |||
178 | if (!next.length) { | ||
179 | next = $(this.$menu.find('li')[0]) | ||
180 | } | ||
181 | |||
182 | next.addClass('active') | ||
183 | } | ||
184 | |||
185 | , prev: function (event) { | ||
186 | var active = this.$menu.find('.active').removeClass('active') | ||
187 | , prev = active.prev() | ||
188 | |||
189 | if (!prev.length) { | ||
190 | prev = this.$menu.find('li').last() | ||
191 | } | ||
192 | |||
193 | prev.addClass('active') | ||
194 | } | ||
195 | |||
196 | , listen: function () { | ||
197 | this.$element | ||
198 | .on('blur', $.proxy(this.blur, this)) | ||
199 | .on('keypress', $.proxy(this.keypress, this)) | ||
200 | .on('keyup', $.proxy(this.keyup, this)) | ||
201 | |||
202 | if (this.eventSupported('keydown')) { | ||
203 | this.$element.on('keydown', $.proxy(this.keydown, this)) | ||
204 | } | ||
205 | |||
206 | this.$menu | ||
207 | .on('click', $.proxy(this.click, this)) | ||
208 | .on('mouseenter', 'li', $.proxy(this.mouseenter, this)) | ||
209 | } | ||
210 | |||
211 | , eventSupported: function(eventName) { | ||
212 | var isSupported = eventName in this.$element | ||
213 | if (!isSupported) { | ||
214 | this.$element.setAttribute(eventName, 'return;') | ||
215 | isSupported = typeof this.$element[eventName] === 'function' | ||
216 | } | ||
217 | return isSupported | ||
218 | } | ||
219 | |||
220 | , move: function (e) { | ||
221 | if (!this.shown) return | ||
222 | |||
223 | switch(e.keyCode) { | ||
224 | case 9: // tab | ||
225 | case 13: // enter | ||
226 | case 27: // escape | ||
227 | e.preventDefault() | ||
228 | break | ||
229 | |||
230 | case 38: // up arrow | ||
231 | e.preventDefault() | ||
232 | this.prev() | ||
233 | break | ||
234 | |||
235 | case 40: // down arrow | ||
236 | e.preventDefault() | ||
237 | this.next() | ||
238 | break | ||
239 | } | ||
240 | |||
241 | e.stopPropagation() | ||
242 | } | ||
243 | |||
244 | , keydown: function (e) { | ||
245 | this.suppressKeyPressRepeat = ~$.inArray(e.keyCode, [40,38,9,13,27]) | ||
246 | this.move(e) | ||
247 | } | ||
248 | |||
249 | , keypress: function (e) { | ||
250 | if (this.suppressKeyPressRepeat) return | ||
251 | this.move(e) | ||
252 | } | ||
253 | |||
254 | , keyup: function (e) { | ||
255 | switch(e.keyCode) { | ||
256 | case 40: // down arrow | ||
257 | case 38: // up arrow | ||
258 | case 16: // shift | ||
259 | case 17: // ctrl | ||
260 | case 18: // alt | ||
261 | break | ||
262 | |||
263 | case 9: // tab | ||
264 | case 13: // enter | ||
265 | if (!this.shown) return | ||
266 | this.select() | ||
267 | break | ||
268 | |||
269 | case 27: // escape | ||
270 | if (!this.shown) return | ||
271 | this.hide() | ||
272 | break | ||
273 | |||
274 | default: | ||
275 | this.lookup() | ||
276 | } | ||
277 | |||
278 | e.stopPropagation() | ||
279 | e.preventDefault() | ||
280 | } | ||
281 | |||
282 | , blur: function (e) { | ||
283 | var that = this | ||
284 | setTimeout(function () { that.hide() }, 150) | ||
285 | } | ||
286 | |||
287 | , click: function (e) { | ||
288 | e.stopPropagation() | ||
289 | e.preventDefault() | ||
290 | this.select() | ||
291 | } | ||
292 | |||
293 | , mouseenter: function (e) { | ||
294 | this.$menu.find('.active').removeClass('active') | ||
295 | $(e.currentTarget).addClass('active') | ||
296 | } | ||
297 | |||
298 | } | ||
299 | |||
300 | |||
301 | /* TYPEAHEAD PLUGIN DEFINITION | ||
302 | * =========================== */ | ||
303 | |||
304 | var old = $.fn.typeahead | ||
305 | |||
306 | $.fn.typeahead = function (option) { | ||
307 | return this.each(function () { | ||
308 | var $this = $(this) | ||
309 | , data = $this.data('typeahead') | ||
310 | , options = typeof option == 'object' && option | ||
311 | if (!data) $this.data('typeahead', (data = new Typeahead(this, options))) | ||
312 | if (typeof option == 'string') data[option]() | ||
313 | }) | ||
314 | } | ||
315 | |||
316 | $.fn.typeahead.defaults = { | ||
317 | source: [] | ||
318 | , items: 8 | ||
319 | , menu: '<ul class="typeahead dropdown-menu"></ul>' | ||
320 | , item: '<li><a href="#"></a></li>' | ||
321 | , minLength: 1 | ||
322 | } | ||
323 | |||
324 | $.fn.typeahead.Constructor = Typeahead | ||
325 | |||
326 | |||
327 | /* TYPEAHEAD NO CONFLICT | ||
328 | * =================== */ | ||
329 | |||
330 | $.fn.typeahead.noConflict = function () { | ||
331 | $.fn.typeahead = old | ||
332 | return this | ||
333 | } | ||
334 | |||
335 | |||
336 | /* TYPEAHEAD DATA-API | ||
337 | * ================== */ | ||
338 | |||
339 | $(document).on('focus.typeahead.data-api', '[data-provide="typeahead"]', function (e) { | ||
340 | var $this = $(this) | ||
341 | if ($this.data('typeahead')) return | ||
342 | e.preventDefault() | ||
343 | $this.typeahead($this.data()) | ||
344 | }) | ||
345 | |||
346 | }(window.jQuery); | ||
diff --git a/frontend/gamma/js/Clipperz/Async.js b/frontend/gamma/js/Clipperz/Async.js index f7a9517..d525453 100644 --- a/frontend/gamma/js/Clipperz/Async.js +++ b/frontend/gamma/js/Clipperz/Async.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -62,8 +60,7 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
62 | 60 | ||
63 | 'callback': function (aValue) { | 61 | 'callback': function (aValue) { |
64 | if (this._shouldTrace) { | 62 | if (this._shouldTrace) { |
65 | //Clipperz.log("CALLBACK " + this._name, aValue); | 63 | Clipperz.log("CALLBACK " + this._name, aValue); |
66 | console.log("CALLBACK " + this._name, aValue); | ||
67 | } | 64 | } |
68 | 65 | ||
69 | if (this.chained == false) { | 66 | if (this.chained == false) { |
@@ -83,9 +80,7 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
83 | resultMessage = "RESULT " + this._name + " <=="; | 80 | resultMessage = "RESULT " + this._name + " <=="; |
84 | // this.addCallback(function(aResult) { | 81 | // this.addCallback(function(aResult) { |
85 | Clipperz.Async.Deferred.superclass.addCallback.call(this, function(aResult) { | 82 | Clipperz.Async.Deferred.superclass.addCallback.call(this, function(aResult) { |
86 | //Clipperz.log(resultMessage, aResult); | 83 | Clipperz.log(resultMessage, aResult); |
87 | console.log(resultMessage, aResult); | ||
88 | |||
89 | return aResult; | 84 | return aResult; |
90 | }); | 85 | }); |
91 | } | 86 | } |
@@ -108,10 +103,8 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
108 | message = "[" + this._count + "] " + this._name + " "; | 103 | message = "[" + this._count + "] " + this._name + " "; |
109 | // this.addBoth(function(aResult) {Clipperz.log(message + "-->", aResult); return aResult;}); | 104 | // this.addBoth(function(aResult) {Clipperz.log(message + "-->", aResult); return aResult;}); |
110 | this.addCallbacks( | 105 | this.addCallbacks( |
111 | //function(aResult) {Clipperz.log("-OK- " + message + "-->"/*, aResult*/); return aResult;}, | 106 | function(aResult) {Clipperz.log("-OK- " + message + "-->"/*, aResult*/); return aResult;}, |
112 | function(aResult) {console.log("-OK- " + message + "-->"/*, aResult*/); return aResult;}, | 107 | function(aResult) {Clipperz.log("FAIL " + message + "-->"/*, aResult*/); return aResult;} |
113 | //function(aResult) {Clipperz.log("FAIL " + message + "-->"/*, aResult*/); return aResult;} | ||
114 | function(aResult) {console.log("FAIL " + message + "-->"/*, aResult*/); return aResult;} | ||
115 | ); | 108 | ); |
116 | } | 109 | } |
117 | 110 | ||
@@ -120,10 +113,8 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
120 | if (this._shouldTrace) { | 113 | if (this._shouldTrace) { |
121 | // this.addBoth(function(aResult) {Clipperz.log(message + "<--", aResult); return aResult;}); | 114 | // this.addBoth(function(aResult) {Clipperz.log(message + "<--", aResult); return aResult;}); |
122 | this.addCallbacks( | 115 | this.addCallbacks( |
123 | //function(aResult) {Clipperz.log("-OK- " + message + "<--", aResult); return aResult;}, | 116 | function(aResult) {Clipperz.log("-OK- " + message + "<--", aResult); return aResult;}, |
124 | function(aResult) {console.log("-OK- " + message + "<--", aResult); return aResult;}, | 117 | function(aResult) {Clipperz.log("FAIL " + message + "<--", aResult); return aResult;} |
125 | //function(aResult) {Clipperz.log("FAIL " + message + "<--", aResult); return aResult;} | ||
126 | function(aResult) {console.log("FAIL " + message + "<--", aResult); return aResult;} | ||
127 | ); | 118 | ); |
128 | } | 119 | } |
129 | }, | 120 | }, |
@@ -212,7 +203,6 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
212 | 'addLog': function (aLog) { | 203 | 'addLog': function (aLog) { |
213 | if (CLIPPERZ_DEFERRED_LOGGING_ENABLED) { | 204 | if (CLIPPERZ_DEFERRED_LOGGING_ENABLED) { |
214 | this.addBothPass(function(res) {Clipperz.log(aLog + " ", res);}); | 205 | this.addBothPass(function(res) {Clipperz.log(aLog + " ", res);}); |
215 | // this.addBothPass(function(res) {console.log(aLog + " ", res);}); | ||
216 | } | 206 | } |
217 | }, | 207 | }, |
218 | 208 | ||
@@ -237,7 +227,7 @@ Clipperz.Base.extend(Clipperz.Async.Deferred, MochiKit.Async.Deferred, { | |||
237 | // ], {trace:false}); | 227 | // ], {trace:false}); |
238 | // }); | 228 | // }); |
239 | // this.addErrback(function (aResult) { | 229 | // this.addErrback(function (aResult) { |
240 | ///console.log("releaseLock.addErrback:", aResult); | 230 | ///Clipperz.log("releaseLock.addErrback:", aResult); |
241 | // return Clipperz.Async.callbacks("Clipperz.Async.release <fail>", [ | 231 | // return Clipperz.Async.callbacks("Clipperz.Async.release <fail>", [ |
242 | // MochiKit.Base.method(aLock, 'release'), | 232 | // MochiKit.Base.method(aLock, 'release'), |
243 | // MochiKit.Base.partial(MochiKit.Async.fail, aResult) | 233 | // MochiKit.Base.partial(MochiKit.Async.fail, aResult) |
@@ -377,7 +367,7 @@ MochiKit.Base.update(Clipperz.Async.DeferredSynchronizer.prototype, { | |||
377 | varmethodCalls; | 367 | varmethodCalls; |
378 | var ii, cc; | 368 | var ii, cc; |
379 | 369 | ||
380 | //console.log("TYPEOF", typeof(this.methods()[i])); | 370 | //Clipperz.log("TYPEOF", typeof(this.methods()[i])); |
381 | if (typeof(this.methods()[i]) == 'function') { | 371 | if (typeof(this.methods()[i]) == 'function') { |
382 | methodCalls = [ this.methods()[i] ]; | 372 | methodCalls = [ this.methods()[i] ]; |
383 | } else { | 373 | } else { |
@@ -637,7 +627,7 @@ MochiKit.Base.update(Clipperz.Async, { | |||
637 | for (i=0; i<c; i++) { | 627 | for (i=0; i<c; i++) { |
638 | deferredResult.addCallback(Clipperz.Async.insertIntoSortedArray, someObjects[i], aDeferredComparator); | 628 | deferredResult.addCallback(Clipperz.Async.insertIntoSortedArray, someObjects[i], aDeferredComparator); |
639 | if ((i % 50) == 0) { | 629 | if ((i % 50) == 0) { |
640 | //console.log("######### sort wait ##########"); | 630 | //Clipperz.log("######### sort wait ##########"); |
641 | deferredResult.addCallback(MochiKit.Async.wait, 0.5); | 631 | deferredResult.addCallback(MochiKit.Async.wait, 0.5); |
642 | } | 632 | } |
643 | } | 633 | } |
@@ -688,7 +678,7 @@ MochiKit.Base.update(Clipperz.Async, { | |||
688 | return Clipperz.Async.callbacks("Clipperz.Async.or", [ | 678 | return Clipperz.Async.callbacks("Clipperz.Async.or", [ |
689 | MochiKit.Base.values, | 679 | MochiKit.Base.values, |
690 | MochiKit.Base.flattenArguments, | 680 | MochiKit.Base.flattenArguments, |
691 | //function (aValue) { console.log("Record.hasAnyCleanTextData - flatten", aValue); return aValue; }, | 681 | //function (aValue) { Clipperz.log("Record.hasAnyCleanTextData - flatten", aValue); return aValue; }, |
692 | function(someInnerValues) { | 682 | function(someInnerValues) { |
693 | return MochiKit.Iter.some(someInnerValues, MochiKit.Base.operator.identity); | 683 | return MochiKit.Iter.some(someInnerValues, MochiKit.Base.operator.identity); |
694 | } | 684 | } |
diff --git a/frontend/gamma/js/Clipperz/Base.js b/frontend/gamma/js/Clipperz/Base.js index 9d399d9..84b2172 100644 --- a/frontend/gamma/js/Clipperz/Base.js +++ b/frontend/gamma/js/Clipperz/Base.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -441,7 +439,6 @@ MochiKit.Base.update(Clipperz.Base, { | |||
441 | // if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } | 439 | // if (typeof(Clipperz.PM) == 'undefined') { Clipperz.PM = {}; } |
442 | // if (typeof(Clipperz.PM.UI.Common.Components) == 'undefined') { Clipperz.PM.UI.Common.Components = {}; } | 440 | // if (typeof(Clipperz.PM.UI.Common.Components) == 'undefined') { Clipperz.PM.UI.Common.Components = {}; } |
443 | 441 | ||
444 | //console.log(">>> module: " + aValue); | ||
445 | var currentScope; | 442 | var currentScope; |
446 | var pathElements; | 443 | var pathElements; |
447 | var i,c; | 444 | var i,c; |
@@ -450,8 +447,6 @@ MochiKit.Base.update(Clipperz.Base, { | |||
450 | pathElements = aValue.split('.'); | 447 | pathElements = aValue.split('.'); |
451 | c = pathElements.length; | 448 | c = pathElements.length; |
452 | for (i=0; i<c; i++) { | 449 | for (i=0; i<c; i++) { |
453 | //console.log("--- current path element: " + pathElements[i]); | ||
454 | //console.log("--- current scope", currentScope); | ||
455 | if (typeof(currentScope[pathElements[i]]) == 'undefined') { | 450 | if (typeof(currentScope[pathElements[i]]) == 'undefined') { |
456 | currentScope[pathElements[i]] = {}; | 451 | currentScope[pathElements[i]] = {}; |
457 | } | 452 | } |
@@ -500,33 +495,19 @@ MochiKit.Base.registerComparator('Object dummy comparator', | |||
500 | var aKeys; | 495 | var aKeys; |
501 | var bKeys; | 496 | var bKeys; |
502 | 497 | ||
503 | //MochiKit.Logging.logDebug(">>> comparator"); | ||
504 | //MochiKit.Logging.logDebug("- a: " + Clipperz.Base.serializeJSON(a)); | ||
505 | //MochiKit.Logging.logDebug("- b: " + Clipperz.Base.serializeJSON(a)); | ||
506 | aKeys = MochiKit.Base.keys(a).sort(); | 498 | aKeys = MochiKit.Base.keys(a).sort(); |
507 | bKeys = MochiKit.Base.keys(b).sort(); | 499 | bKeys = MochiKit.Base.keys(b).sort(); |
508 | |||
509 | result = MochiKit.Base.compare(aKeys, bKeys); | 500 | result = MochiKit.Base.compare(aKeys, bKeys); |
510 | //if (result != 0) { | 501 | |
511 | //MochiKit.Logging.logDebug("- comparator 'keys':"); | ||
512 | //MochiKit.Logging.logDebug("- comparator aKeys: " + Clipperz.Base.serializeJSON(aKeys)); | ||
513 | //MochiKit.Logging.logDebug("- comparator bKeys: " + Clipperz.Base.serializeJSON(bKeys)); | ||
514 | //} | ||
515 | if (result == 0) { | 502 | if (result == 0) { |
516 | vari, c; | 503 | vari, c; |
517 | 504 | ||
518 | c = aKeys.length; | 505 | c = aKeys.length; |
519 | for (i=0; (i<c) && (result == 0); i++) { | 506 | for (i=0; (i<c) && (result == 0); i++) { |
520 | result = MochiKit.Base.compare(a[aKeys[i]], b[bKeys[i]]); | 507 | result = MochiKit.Base.compare(a[aKeys[i]], b[bKeys[i]]); |
521 | //if (result != 0) { | ||
522 | //MochiKit.Logging.logDebug("- comparator 'values':"); | ||
523 | //MochiKit.Logging.logDebug("- comparator a[aKeys[i]]: " + Clipperz.Base.serializeJSON(a[aKeys[i]])); | ||
524 | //MochiKit.Logging.logDebug("- comparator b[bKeys[i]]: " + Clipperz.Base.serializeJSON(b[bKeys[i]])); | ||
525 | //} | ||
526 | } | 508 | } |
527 | } | 509 | } |
528 | 510 | ||
529 | //MochiKit.Logging.logDebug("<<< comparator - result: " + result); | ||
530 | return result; | 511 | return result; |
531 | }, | 512 | }, |
532 | true | 513 | true |
diff --git a/frontend/gamma/js/Clipperz/ByteArray.js b/frontend/gamma/js/Clipperz/ByteArray.js index ae586e7..22c7c6e 100644 --- a/frontend/gamma/js/Clipperz/ByteArray.js +++ b/frontend/gamma/js/Clipperz/ByteArray.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -89,11 +87,8 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
89 | //------------------------------------------------------------------------- | 87 | //------------------------------------------------------------------------- |
90 | 88 | ||
91 | 'checkByteValue': function(aValue) { | 89 | 'checkByteValue': function(aValue) { |
92 | //Clipperz.log("aValue", aValue.toString(16)); | ||
93 | //Clipperz.log("(aValue & 0xff)", (aValue & 0xff).toString(16)); | ||
94 | |||
95 | if ((aValue & 0xff) != aValue) { | 90 | if ((aValue & 0xff) != aValue) { |
96 | MochiKit.Logging.logError("Clipperz.ByteArray.appendByte: the provided value (0x" + aValue.toString(16) + ") is not a byte value."); | 91 | Clipperz.logError("Clipperz.ByteArray.appendByte: the provided value (0x" + aValue.toString(16) + ") is not a byte value."); |
97 | throw Clipperz.ByteArray.exception.InvalidValue; | 92 | throw Clipperz.ByteArray.exception.InvalidValue; |
98 | } | 93 | } |
99 | }, | 94 | }, |
@@ -144,8 +139,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
144 | } | 139 | } |
145 | } | 140 | } |
146 | 141 | ||
147 | |||
148 | // result = new Clipperz.ByteArray(); | ||
149 | result = this.newInstance(); | 142 | result = this.newInstance(); |
150 | c = a.length(); | 143 | c = a.length(); |
151 | for (i=0; i<c; i++) { | 144 | for (i=0; i<c; i++) { |
@@ -156,16 +149,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
156 | }, | 149 | }, |
157 | 150 | ||
158 | //------------------------------------------------------------------------- | 151 | //------------------------------------------------------------------------- |
159 | /* | ||
160 | 'shiftLeft': function(aNumberOfBitsToShift) { | ||
161 | var result; | ||
162 | |||
163 | result = this.clone(); //??????????? | ||
164 | |||
165 | return result; | ||
166 | }, | ||
167 | */ | ||
168 | //------------------------------------------------------------------------- | ||
169 | 152 | ||
170 | 'appendBlock': function(aBlock) { | 153 | 'appendBlock': function(aBlock) { |
171 | throw Clipperz.Base.exception.AbstractMethod; | 154 | throw Clipperz.Base.exception.AbstractMethod; |
@@ -292,7 +275,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
292 | selectedByteMask = 1; | 275 | selectedByteMask = 1; |
293 | } | 276 | } |
294 | result = selectedByte & selectedByteMask ? 1 : 0; | 277 | result = selectedByte & selectedByteMask ? 1 : 0; |
295 | //console.log("aBitPosition: " + aBitPosition + ", length: " + this.length() + ", bytePosition: " + bytePosition + ", bitPositionInSelectedByte: " + bitPositionInSelectedByte + ", selectedByteMask: " + selectedByteMask); | ||
296 | 278 | ||
297 | return result; | 279 | return result; |
298 | }, | 280 | }, |
@@ -321,9 +303,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
321 | varlength; | 303 | varlength; |
322 | vari; | 304 | vari; |
323 | 305 | ||
324 | //var startTime = new Date(); | ||
325 | |||
326 | //# result = ""; | ||
327 | result = []; | 306 | result = []; |
328 | 307 | ||
329 | i = 0; | 308 | i = 0; |
@@ -365,14 +344,10 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
365 | currentCharacter = String.fromCharCode(unicode); | 344 | currentCharacter = String.fromCharCode(unicode); |
366 | } | 345 | } |
367 | 346 | ||
368 | // result += currentCharacter; | ||
369 | result.push(currentCharacter); | 347 | result.push(currentCharacter); |
370 | i++; | 348 | i++; |
371 | } | 349 | } |
372 | 350 | ||
373 | //MochiKit.Logging.logDebug("[" + (new Date() - startTime) + "] ByteArray.asString"); | ||
374 | |||
375 | // return result; | ||
376 | return result.join(""); | 351 | return result.join(""); |
377 | }, | 352 | }, |
378 | 353 | ||
@@ -386,15 +361,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
386 | 361 | ||
387 | 'base64map': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", | 362 | 'base64map': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", |
388 | 'base64mapIndex': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(''), | 363 | 'base64mapIndex': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(''), |
389 | //'base64mapInvertedIndex': { | ||
390 | // 'A': 0, 'B': 1, 'C': 2, 'D': 3, 'E': 4, 'F': 5, 'G': 6, 'H': 7, 'I': 8, 'J': 9, | ||
391 | // 'K': 10, 'L': 11, 'M': 12, 'N': 13, 'O': 14, 'P': 15, 'Q': 16, 'R': 17, 'S': 18, 'T': 19, | ||
392 | // 'U': 20, 'V': 21, 'W': 22, 'X': 23, 'Y': 24, 'Z': 25, 'a': 26, 'b': 27, 'c': 28, 'd': 29, | ||
393 | // 'e': 30, 'f': 31, 'g': 32, 'h': 33, 'i': 34, 'j': 35, 'k': 36, 'l': 37, 'm': 38, 'n': 39, | ||
394 | // 'o': 40, 'p': 41, 'q': 42, 'r': 43, 's': 44, 't': 45, 'u': 46, 'v': 47, 'w': 48, 'x': 49, | ||
395 | // 'y': 50, 'z': 51, '0': 52, '1': 53, '2': 54, '3': 55, '4': 56, '5': 57, '6': 58, '7': 59, | ||
396 | // '8': 60, '9': 61, '+': 62, '/': 63, | ||
397 | // "=": -1}, | ||
398 | 364 | ||
399 | //------------------------------------------------------------------------- | 365 | //------------------------------------------------------------------------- |
400 | 366 | ||
@@ -405,7 +371,7 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
405 | length = aValue.length; | 371 | length = aValue.length; |
406 | 372 | ||
407 | if ((length % 4) != 0) { | 373 | if ((length % 4) != 0) { |
408 | MochiKit.Logging.logError("the value passed to the 'ByteArray.setBase64Value' is not correct"); | 374 | Clipperz.logError("the value passed to the 'ByteArray.setBase64Value' is not correct"); |
409 | throw Clipperz.ByteArray.exception.InvalidValue; | 375 | throw Clipperz.ByteArray.exception.InvalidValue; |
410 | } | 376 | } |
411 | 377 | ||
@@ -419,11 +385,6 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
419 | value3 = this.base64map.indexOf(aValue.charAt(i+2)); | 385 | value3 = this.base64map.indexOf(aValue.charAt(i+2)); |
420 | value4 = this.base64map.indexOf(aValue.charAt(i+3)); | 386 | value4 = this.base64map.indexOf(aValue.charAt(i+3)); |
421 | 387 | ||
422 | // value1 = this.base64mapInvertedIndex[aValue.charAt(i)]; | ||
423 | // value2 = this.base64mapInvertedIndex[aValue.charAt(i+1)]; | ||
424 | // value3 = this.base64mapInvertedIndex[aValue.charAt(i+2)]; | ||
425 | // value4 = this.base64mapInvertedIndex[aValue.charAt(i+3)]; | ||
426 | |||
427 | byte1 = (value1 << 2) | ((value2 & 0x30) >> 4); | 388 | byte1 = (value1 << 2) | ((value2 & 0x30) >> 4); |
428 | if (value3 != -1) { | 389 | if (value3 != -1) { |
429 | byte2 = ((value2 & 0x0f) << 4) | ((value3 & 0x3c) >> 2); | 390 | byte2 = ((value2 & 0x0f) << 4) | ((value3 & 0x3c) >> 2); |
@@ -520,7 +481,7 @@ Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | |||
520 | length = value.length; | 481 | length = value.length; |
521 | 482 | ||
522 | if ((length % 8) != 0) { | 483 | if ((length % 8) != 0) { |
523 | MochiKit.Logging.logError("the value passed to the 'ByteArray.setBase32Value' is not correct"); | 484 | Clipperz.logError("the value passed to the 'ByteArray.setBase32Value' is not correct"); |
524 | throw Clipperz.ByteArray.exception.InvalidValue; | 485 | throw Clipperz.ByteArray.exception.InvalidValue; |
525 | } | 486 | } |
526 | 487 | ||
@@ -728,7 +689,7 @@ Clipperz.ByteArray_hex = function (args) { | |||
728 | this._value = "0" + value; | 689 | this._value = "0" + value; |
729 | } | 690 | } |
730 | } else { | 691 | } else { |
731 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | 692 | Clipperz.logError("Clipperz.ByteArray should be inizialized with an hex string."); |
732 | throw Clipperz.ByteArray.exception.InvalidValue; | 693 | throw Clipperz.ByteArray.exception.InvalidValue; |
733 | } | 694 | } |
734 | } else { | 695 | } else { |
@@ -914,7 +875,7 @@ Clipperz.ByteArray_array = function (args) { | |||
914 | value = "0" + value; | 875 | value = "0" + value; |
915 | } | 876 | } |
916 | } else { | 877 | } else { |
917 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | 878 | Clipperz.logError("Clipperz.ByteArray should be inizialized with an hex string."); |
918 | throw Clipperz.ByteArray.exception.InvalidValue; | 879 | throw Clipperz.ByteArray.exception.InvalidValue; |
919 | } | 880 | } |
920 | 881 | ||
@@ -1115,7 +1076,7 @@ Clipperz.ByteArray_string = function (args) { | |||
1115 | value = "0" + value; | 1076 | value = "0" + value; |
1116 | } | 1077 | } |
1117 | } else { | 1078 | } else { |
1118 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | 1079 | Clipperz.logError("Clipperz.ByteArray should be inizialized with an hex string."); |
1119 | throw Clipperz.ByteArray.exception.InvalidValue; | 1080 | throw Clipperz.ByteArray.exception.InvalidValue; |
1120 | } | 1081 | } |
1121 | } else { | 1082 | } else { |
diff --git a/frontend/gamma/js/Clipperz/CSVProcessor.js b/frontend/gamma/js/Clipperz/CSVProcessor.js index 0b18731..1288ed7 100644 --- a/frontend/gamma/js/Clipperz/CSVProcessor.js +++ b/frontend/gamma/js/Clipperz/CSVProcessor.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -95,7 +93,7 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
95 | var lines; | 93 | var lines; |
96 | var parameter; | 94 | var parameter; |
97 | 95 | ||
98 | //MochiKit.Logging.logDebug(">>> CSVProcessor.parse"); | 96 | //Clipperz.logDebug(">>> CSVProcessor.parse"); |
99 | result = []; | 97 | result = []; |
100 | 98 | ||
101 | lines = aValue.replace(/\r?\n/g, "\n").replace(/^\n* /g, "").replace(/\n$/g, "");; | 99 | lines = aValue.replace(/\r?\n/g, "\n").replace(/^\n* /g, "").replace(/\n$/g, "");; |
@@ -114,10 +112,10 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
114 | 112 | ||
115 | parameter.line = parameter.line.replace(/^\n* /g, "").replace(/\n$/g, ""); | 113 | parameter.line = parameter.line.replace(/^\n* /g, "").replace(/\n$/g, ""); |
116 | 114 | ||
117 | //MochiKit.Logging.logDebug("line: '" + parameter.line + "'"); | 115 | //Clipperz.logDebug("line: '" + parameter.line + "'"); |
118 | } while (parameter.line != ""); | 116 | } while (parameter.line != ""); |
119 | //MochiKit.Logging.logDebug("--- CSVProcessor.parse - result: " + Clipperz.Base.serializeJSON(result)); | 117 | //Clipperz.logDebug("--- CSVProcessor.parse - result: " + Clipperz.Base.serializeJSON(result)); |
120 | //MochiKit.Logging.logDebug("<<< CSVProcessor.parse"); | 118 | //Clipperz.logDebug("<<< CSVProcessor.parse"); |
121 | 119 | ||
122 | return result; | 120 | return result; |
123 | }, | 121 | }, |
@@ -216,7 +214,7 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
216 | 214 | ||
217 | inQuotes = false; | 215 | inQuotes = false; |
218 | 216 | ||
219 | //MochiKit.Logging.logDebug("#################################### '" + aParameter.line + "'"); | 217 | //Clipperz.logDebug("#################################### '" + aParameter.line + "'"); |
220 | if (aParameter.line == "") { | 218 | if (aParameter.line == "") { |
221 | if (aParameter.isThereAnEmptyFinalField == true) { | 219 | if (aParameter.isThereAnEmptyFinalField == true) { |
222 | aParameter.isThereAnEmptyFinalField = false; | 220 | aParameter.isThereAnEmptyFinalField = false; |
@@ -240,31 +238,31 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
240 | 238 | ||
241 | while (!done) { | 239 | while (!done) { |
242 | if (aParameter.line.length < 1) { | 240 | if (aParameter.line.length < 1) { |
243 | //MochiKit.Logging.logDebug("---> 1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 241 | //Clipperz.logDebug("---> 1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
244 | if (inQuotes == true) { | 242 | if (inQuotes == true) { |
245 | //MochiKit.Logging.logDebug("---> 1.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 243 | //Clipperz.logDebug("---> 1.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
246 | throw new Error("CSV Parsing error; end of string, missing closing double-quote..."); | 244 | throw new Error("CSV Parsing error; end of string, missing closing double-quote..."); |
247 | } else { | 245 | } else { |
248 | //MochiKit.Logging.logDebug("---> 1.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 246 | //Clipperz.logDebug("---> 1.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
249 | done = true; | 247 | done = true; |
250 | } | 248 | } |
251 | } else if (escapedQuoteBeginRegexp.test(aParameter.line)) { | 249 | } else if (escapedQuoteBeginRegexp.test(aParameter.line)) { |
252 | //MochiKit.Logging.logDebug("---> 2.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 250 | //Clipperz.logDebug("---> 2.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
253 | result += this.quoteChar(); | 251 | result += this.quoteChar(); |
254 | aParameter.line = aParameter.line.substr(2, aParameter.line.length - 1); | 252 | aParameter.line = aParameter.line.substr(2, aParameter.line.length - 1); |
255 | //MochiKit.Logging.logDebug("<--- 2.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 253 | //Clipperz.logDebug("<--- 2.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
256 | } else if (singleQuoteBeginRegexp.test(aParameter.line)) { | 254 | } else if (singleQuoteBeginRegexp.test(aParameter.line)) { |
257 | //MochiKit.Logging.logDebug("---> 3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 255 | //Clipperz.logDebug("---> 3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
258 | if (inQuotes == true) { | 256 | if (inQuotes == true) { |
259 | if (aParameter.line.length == 1) { | 257 | if (aParameter.line.length == 1) { |
260 | //MochiKit.Logging.logDebug("---> 3.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 258 | //Clipperz.logDebug("---> 3.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
261 | aParameter.line = ''; | 259 | aParameter.line = ''; |
262 | done = true; | 260 | done = true; |
263 | } else if (singleQuoteCommaEndRegexp.test(aParameter.line)) { | 261 | } else if (singleQuoteCommaEndRegexp.test(aParameter.line)) { |
264 | //MochiKit.Logging.logDebug("---> 3.3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 262 | //Clipperz.logDebug("---> 3.3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
265 | aParameter.line = aParameter.line.substr(2, aParameter.line.length - 1); | 263 | aParameter.line = aParameter.line.substr(2, aParameter.line.length - 1); |
266 | done = true; | 264 | done = true; |
267 | //MochiKit.Logging.logDebug("<--- 3.3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 265 | //Clipperz.logDebug("<--- 3.3: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
268 | } else if (singleQuoteNewLineEndRegexp.test(aParameter.line)) { | 266 | } else if (singleQuoteNewLineEndRegexp.test(aParameter.line)) { |
269 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); | 267 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); |
270 | done = true; | 268 | done = true; |
@@ -272,38 +270,38 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
272 | throw new Error("CSV Parsing error; double-quote, followed by undesirable character (bad character sequence)... " + aParameter.line); | 270 | throw new Error("CSV Parsing error; double-quote, followed by undesirable character (bad character sequence)... " + aParameter.line); |
273 | } | 271 | } |
274 | } else { | 272 | } else { |
275 | //MochiKit.Logging.logDebug("---> 4: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 273 | //Clipperz.logDebug("---> 4: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
276 | if (result == "") { | 274 | if (result == "") { |
277 | //MochiKit.Logging.logDebug("---> 4.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 275 | //Clipperz.logDebug("---> 4.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
278 | inQuotes = true; | 276 | inQuotes = true; |
279 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); | 277 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); |
280 | //MochiKit.Logging.logDebug("<--- 4.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 278 | //Clipperz.logDebug("<--- 4.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
281 | } else { | 279 | } else { |
282 | throw new Error("CSV Parsing error; double-quote, outside of double-quotes (bad character sequence)..."); | 280 | throw new Error("CSV Parsing error; double-quote, outside of double-quotes (bad character sequence)..."); |
283 | } | 281 | } |
284 | } | 282 | } |
285 | } else if (commaBeginRegexp.test(aParameter.line)) { | 283 | } else if (commaBeginRegexp.test(aParameter.line)) { |
286 | //MochiKit.Logging.logDebug("---> 5: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 284 | //Clipperz.logDebug("---> 5: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
287 | if (inQuotes) { | 285 | if (inQuotes) { |
288 | //MochiKit.Logging.logDebug("---> 5.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 286 | //Clipperz.logDebug("---> 5.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
289 | result += aParameter.line.substr(0 ,1); | 287 | result += aParameter.line.substr(0 ,1); |
290 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); | 288 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); |
291 | //MochiKit.Logging.logDebug("<--- 5.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 289 | //Clipperz.logDebug("<--- 5.1: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
292 | } else { | 290 | } else { |
293 | //MochiKit.Logging.logDebug("---> 5.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 291 | //Clipperz.logDebug("---> 5.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
294 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); | 292 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); |
295 | if (newlineRegexp.test(aParameter.line) || aParameter.line == "") { | 293 | if (newlineRegexp.test(aParameter.line) || aParameter.line == "") { |
296 | //MochiKit.Logging.logDebug("######"); | 294 | //Clipperz.logDebug("######"); |
297 | aParameter.isThereAnEmptyFinalField = true; | 295 | aParameter.isThereAnEmptyFinalField = true; |
298 | }; | 296 | }; |
299 | done = true; | 297 | done = true; |
300 | //MochiKit.Logging.logDebug("<--- 5.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 298 | //Clipperz.logDebug("<--- 5.2: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
301 | } | 299 | } |
302 | } else if (validRegexp.test(aParameter.line)) { | 300 | } else if (validRegexp.test(aParameter.line)) { |
303 | //MochiKit.Logging.logDebug("---> 6: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 301 | //Clipperz.logDebug("---> 6: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
304 | result += aParameter.line.substr(0, 1); | 302 | result += aParameter.line.substr(0, 1); |
305 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); | 303 | aParameter.line = aParameter.line.substr(1, aParameter.line.length - 1); |
306 | //MochiKit.Logging.logDebug("<--- 6: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); | 304 | //Clipperz.logDebug("<--- 6: '" + aParameter.line.replace(/\n/g, "\\n") + "'"); |
307 | } else if (newlineRegexp.test(aParameter.line)) { | 305 | } else if (newlineRegexp.test(aParameter.line)) { |
308 | if (inQuotes == true) { | 306 | if (inQuotes == true) { |
309 | result += aParameter.line.substr(0 ,1); | 307 | result += aParameter.line.substr(0 ,1); |
@@ -324,16 +322,16 @@ Clipperz.CSVProcessor.prototype = MochiKit.Base.update(null, { | |||
324 | } | 322 | } |
325 | } | 323 | } |
326 | } catch(exception) { | 324 | } catch(exception) { |
327 | MochiKit.Logging.logError(exception.message); | 325 | Clipperz.logError(exception.message); |
328 | // result = null; | 326 | // result = null; |
329 | throw exception; | 327 | throw exception; |
330 | } | 328 | } |
331 | } | 329 | } |
332 | 330 | ||
333 | //if (result != null) { | 331 | //if (result != null) { |
334 | //MochiKit.Logging.logDebug("<=== result: '" + result.replace(/\n/g, "\\n") + "'"); | 332 | //Clipperz.logDebug("<=== result: '" + result.replace(/\n/g, "\\n") + "'"); |
335 | //} else { | 333 | //} else { |
336 | //MochiKit.Logging.logDebug("<=== result: NULL"); | 334 | //Clipperz.logDebug("<=== result: NULL"); |
337 | //} | 335 | //} |
338 | 336 | ||
339 | return result; | 337 | return result; |
diff --git a/frontend/gamma/js/Clipperz/Crypto/AES.js b/frontend/gamma/js/Clipperz/Crypto/AES.js index c811f1c..cb56f11 100644 --- a/frontend/gamma/js/Clipperz/Crypto/AES.js +++ b/frontend/gamma/js/Clipperz/Crypto/AES.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -120,7 +118,6 @@ Clipperz.Crypto.AES.DeferredExecutionContext.prototype = MochiKit.Base.update(nu | |||
120 | }, | 118 | }, |
121 | 119 | ||
122 | 'isDone': function () { | 120 | 'isDone': function () { |
123 | //console.log("isDone", this.executionStep(), this.messageLength()); | ||
124 | return (this._executionStep >= this._messageLength); | 121 | return (this._executionStep >= this._messageLength); |
125 | }, | 122 | }, |
126 | 123 | ||
@@ -144,7 +141,7 @@ Clipperz.Crypto.AES.Key = function(args) { | |||
144 | this._b = 240; | 141 | this._b = 240; |
145 | this._numberOfRounds = 14; | 142 | this._numberOfRounds = 14; |
146 | } else { | 143 | } else { |
147 | MochiKit.Logging.logError("AES unsupported key size: " + (this.keySize() * 8) + " bits"); | 144 | Clipperz.logError("AES unsupported key size: " + (this.keySize() * 8) + " bits"); |
148 | throw Clipperz.Crypto.AES.exception.UnsupportedKeySize; | 145 | throw Clipperz.Crypto.AES.exception.UnsupportedKeySize; |
149 | } | 146 | } |
150 | 147 | ||
@@ -808,7 +805,6 @@ MochiKit.Base.update(Clipperz.Crypto.AES, { | |||
808 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:someData, nonce:nonce}); | 805 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:someData, nonce:nonce}); |
809 | 806 | ||
810 | deferredResult = new Clipperz.Async.Deferred("AES.deferredEncrypt"); | 807 | deferredResult = new Clipperz.Async.Deferred("AES.deferredEncrypt"); |
811 | //deferredResult.addCallback(function (aValue) { console.log(">>> deferredEncrypt"); return aValue; }); | ||
812 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); | 808 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); |
813 | deferredResult.addCallback(function(anExecutionContext) { | 809 | deferredResult.addCallback(function(anExecutionContext) { |
814 | var result; | 810 | var result; |
@@ -818,7 +814,6 @@ MochiKit.Base.update(Clipperz.Crypto.AES, { | |||
818 | 814 | ||
819 | return result; | 815 | return result; |
820 | }); | 816 | }); |
821 | //deferredResult.addCallback(function (aValue) { console.log("<<< deferredEncrypt"); return aValue; }); | ||
822 | deferredResult.callback(executionContext) | 817 | deferredResult.callback(executionContext) |
823 | 818 | ||
824 | return deferredResult; | 819 | return deferredResult; |
@@ -838,12 +833,10 @@ MochiKit.Base.update(Clipperz.Crypto.AES, { | |||
838 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:message, nonce:nonce}); | 833 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:message, nonce:nonce}); |
839 | 834 | ||
840 | deferredResult = new Clipperz.Async.Deferred("AES.deferredDecrypt"); | 835 | deferredResult = new Clipperz.Async.Deferred("AES.deferredDecrypt"); |
841 | //deferredResult.addCallback(function (aValue) { console.log(">>> deferredDecrypt"); return aValue; }); | ||
842 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); | 836 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); |
843 | deferredResult.addCallback(function(anExecutionContext) { | 837 | deferredResult.addCallback(function(anExecutionContext) { |
844 | return anExecutionContext.result(); | 838 | return anExecutionContext.result(); |
845 | }); | 839 | }); |
846 | //deferredResult.addCallback(function (aValue) { console.log("<<< deferredDecrypt"); return aValue; }); | ||
847 | deferredResult.callback(executionContext); | 840 | deferredResult.callback(executionContext); |
848 | 841 | ||
849 | return deferredResult; | 842 | return deferredResult; |
diff --git a/frontend/gamma/js/Clipperz/Crypto/Base.js b/frontend/gamma/js/Clipperz/Crypto/Base.js index d3a8e36..9acfc49 100644 --- a/frontend/gamma/js/Clipperz/Crypto/Base.js +++ b/frontend/gamma/js/Clipperz/Crypto/Base.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/BigInt.js b/frontend/gamma/js/Clipperz/Crypto/BigInt.js index 41483a3..031ed30 100644 --- a/frontend/gamma/js/Clipperz/Crypto/BigInt.js +++ b/frontend/gamma/js/Clipperz/Crypto/BigInt.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -1477,7 +1475,6 @@ MochiKit.Base.update(Clipperz.Crypto.BigInt.prototype, { | |||
1477 | 1475 | ||
1478 | if ((typeof(minimumLength) != 'undefined') && (result.length < minimumLength)) { | 1476 | if ((typeof(minimumLength) != 'undefined') && (result.length < minimumLength)) { |
1479 | var i, c; | 1477 | var i, c; |
1480 | //MochiKit.Logging.logDebug(">>> FIXING BigInt.asString length issue") | ||
1481 | c = (minimumLength - result.length); | 1478 | c = (minimumLength - result.length); |
1482 | for (i=0; i<c; i++) { | 1479 | for (i=0; i<c; i++) { |
1483 | result = '0' + result; | 1480 | result = '0' + result; |
diff --git a/frontend/gamma/js/Clipperz/Crypto/BigInt_scoped.js b/frontend/gamma/js/Clipperz/Crypto/BigInt_scoped.js index f91c7e9..bc60330 100644 --- a/frontend/gamma/js/Clipperz/Crypto/BigInt_scoped.js +++ b/frontend/gamma/js/Clipperz/Crypto/BigInt_scoped.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Curve.js b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Curve.js index 19f19c2..0d76b9c 100644 --- a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Curve.js +++ b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Curve.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -102,22 +100,13 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
102 | 'add': function(aPointA, aPointB) { | 100 | 'add': function(aPointA, aPointB) { |
103 | var result; | 101 | var result; |
104 | 102 | ||
105 | //console.log(">>> ECC.BinaryField.Curve.add"); | ||
106 | if (aPointA.isZero()) { | 103 | if (aPointA.isZero()) { |
107 | //console.log("--- pointA == zero"); | ||
108 | result = aPointB; | 104 | result = aPointB; |
109 | } else if (aPointB.isZero()) { | 105 | } else if (aPointB.isZero()) { |
110 | //console.log("--- pointB == zero"); | ||
111 | result = aPointA; | 106 | result = aPointA; |
112 | } else if ((aPointA.x().compare(aPointB.x()) == 0) && ((aPointA.y().compare(aPointB.y()) != 0) || aPointB.x().isZero())) { | 107 | } else if ((aPointA.x().compare(aPointB.x()) == 0) && ((aPointA.y().compare(aPointB.y()) != 0) || aPointB.x().isZero())) { |
113 | //console.log("compare A.x - B.x: ", aPointA.x().compare(aPointB.x())); | ||
114 | //console.log("compare A.y - B.y: ", (aPointA.y().compare(aPointB.y()) != 0)); | ||
115 | //console.log("compare B.x.isZero(): ", aPointB.x().isZero()); | ||
116 | |||
117 | //console.log("--- result = zero"); | ||
118 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | 108 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); |
119 | } else { | 109 | } else { |
120 | //console.log("--- result = ELSE"); | ||
121 | varf2m; | 110 | varf2m; |
122 | var x, y; | 111 | var x, y; |
123 | var lambda; | 112 | var lambda; |
@@ -131,7 +120,6 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
131 | f2m = this.finiteField(); | 120 | f2m = this.finiteField(); |
132 | 121 | ||
133 | if (aPointA.x().compare(aPointB.x()) != 0) { | 122 | if (aPointA.x().compare(aPointB.x()) != 0) { |
134 | //console.log(" a.x != b.x"); | ||
135 | lambda =f2m._fastMultiply( | 123 | lambda =f2m._fastMultiply( |
136 | f2m._add(aY, bY), | 124 | f2m._add(aY, bY), |
137 | f2m._inverse(f2m._add(aX, bX)) | 125 | f2m._inverse(f2m._add(aX, bX)) |
@@ -141,25 +129,17 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
141 | f2m._overwriteAdd(x, aX); | 129 | f2m._overwriteAdd(x, aX); |
142 | f2m._overwriteAdd(x, bX); | 130 | f2m._overwriteAdd(x, bX); |
143 | } else { | 131 | } else { |
144 | //console.log(" a.x == b.x"); | ||
145 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); | 132 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); |
146 | //console.log(" lambda: " + lambda.asString(16)); | ||
147 | x = f2m._add(this.a()._value, f2m._square(lambda)); | 133 | x = f2m._add(this.a()._value, f2m._square(lambda)); |
148 | //console.log(" x (step 1): " + x.asString(16)); | ||
149 | f2m._overwriteAdd(x, lambda); | 134 | f2m._overwriteAdd(x, lambda); |
150 | //console.log(" x (step 2): " + x.asString(16)); | ||
151 | } | 135 | } |
152 | 136 | ||
153 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); | 137 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); |
154 | //console.log(" y (step 1): " + y.asString(16)); | ||
155 | f2m._overwriteAdd(y, x); | 138 | f2m._overwriteAdd(y, x); |
156 | //console.log(" y (step 2): " + y.asString(16)); | ||
157 | f2m._overwriteAdd(y, bY); | 139 | f2m._overwriteAdd(y, bY); |
158 | //console.log(" y (step 3): " + y.asString(16)); | ||
159 | 140 | ||
160 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) | 141 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) |
161 | } | 142 | } |
162 | //console.log("<<< ECC.BinaryField.Curve.add"); | ||
163 | 143 | ||
164 | return result; | 144 | return result; |
165 | }, | 145 | }, |
@@ -197,7 +177,6 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
197 | f2m = this.finiteField(); | 177 | f2m = this.finiteField(); |
198 | 178 | ||
199 | if (aPointA.x().compare(aPointB.x()) != 0) { | 179 | if (aPointA.x().compare(aPointB.x()) != 0) { |
200 | //console.log(" a.x != b.x"); | ||
201 | lambda =f2m._fastMultiply( | 180 | lambda =f2m._fastMultiply( |
202 | f2m._add(aY, bY), | 181 | f2m._add(aY, bY), |
203 | f2m._inverse(f2m._add(aX, bX)) | 182 | f2m._inverse(f2m._add(aX, bX)) |
@@ -207,28 +186,20 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
207 | f2m._overwriteAdd(x, aX); | 186 | f2m._overwriteAdd(x, aX); |
208 | f2m._overwriteAdd(x, bX); | 187 | f2m._overwriteAdd(x, bX); |
209 | } else { | 188 | } else { |
210 | //console.log(" a.x == b.x"); | ||
211 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); | 189 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); |
212 | //console.log(" lambda: " + lambda.asString(16)); | ||
213 | x = f2m._add(this.a()._value, f2m._square(lambda)); | 190 | x = f2m._add(this.a()._value, f2m._square(lambda)); |
214 | //console.log(" x (step 1): " + x.asString(16)); | ||
215 | f2m._overwriteAdd(x, lambda); | 191 | f2m._overwriteAdd(x, lambda); |
216 | //console.log(" x (step 2): " + x.asString(16)); | ||
217 | } | 192 | } |
218 | 193 | ||
219 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); | 194 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); |
220 | //console.log(" y (step 1): " + y.asString(16)); | ||
221 | f2m._overwriteAdd(y, x); | 195 | f2m._overwriteAdd(y, x); |
222 | //console.log(" y (step 2): " + y.asString(16)); | ||
223 | f2m._overwriteAdd(y, bY); | 196 | f2m._overwriteAdd(y, bY); |
224 | //console.log(" y (step 3): " + y.asString(16)); | ||
225 | 197 | ||
226 | // result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) | 198 | // result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) |
227 | aPointA._x._value = x; | 199 | aPointA._x._value = x; |
228 | aPointA._y._value = y; | 200 | aPointA._y._value = y; |
229 | 201 | ||
230 | } | 202 | } |
231 | //console.log("<<< ECC.BinaryField.Curve.add"); | ||
232 | 203 | ||
233 | return result; | 204 | return result; |
234 | }, | 205 | }, |
@@ -250,13 +221,11 @@ Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | |||
250 | k = aValue; | 221 | k = aValue; |
251 | Q = aPoint; | 222 | Q = aPoint; |
252 | } else { | 223 | } else { |
253 | MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); | 224 | Clipperz.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); |
254 | k = aValue.negate(); | 225 | k = aValue.negate(); |
255 | Q = this.negate(aPoint); | 226 | Q = this.negate(aPoint); |
256 | } | 227 | } |
257 | 228 | ||
258 | //console.log("k: " + k.toString(16)); | ||
259 | //console.log("k.bitSize: " + k.bitSize()); | ||
260 | for (i=k.bitSize()-1; i>=0; i--) { | 229 | for (i=k.bitSize()-1; i>=0; i--) { |
261 | result = this.add(result, result); | 230 | result = this.add(result, result); |
262 | // this.overwriteAdd(result, result); | 231 | // this.overwriteAdd(result, result); |
@@ -265,7 +234,7 @@ MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not w | |||
265 | // this.overwriteAdd(result, Q); | 234 | // this.overwriteAdd(result, Q); |
266 | } | 235 | } |
267 | 236 | ||
268 | // if (countIndex==100) {console.log("multiply.break"); break;} else countIndex++; | 237 | // if (countIndex==100) {Clipperz.log("multiply.break"); break;} else countIndex++; |
269 | } | 238 | } |
270 | } | 239 | } |
271 | //console.profileEnd(); | 240 | //console.profileEnd(); |
@@ -279,14 +248,14 @@ MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not w | |||
279 | var deferredResult; | 248 | var deferredResult; |
280 | var result; | 249 | var result; |
281 | 250 | ||
282 | MochiKit.Logging.logDebug(">>> deferredMultiply - value: " + aValue + ", point: " + aPoint); | 251 | Clipperz.log(">>> deferredMultiply - value: " + aValue + ", point: " + aPoint); |
283 | //console.profile("ECC.Curve.multiply"); | 252 | //console.profile("ECC.Curve.multiply"); |
284 | deferredResult = new MochiKit.Async.Deferred(); | 253 | deferredResult = new MochiKit.Async.Deferred(); |
285 | //deferredResult.addCallback(function(res) {console.profile("ECC.Curve.deferredMultiply"); return res;} ); | 254 | //deferredResult.addCallback(function(res) {console.profile("ECC.Curve.deferredMultiply"); return res;} ); |
286 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 1: " + res); return res;}); | 255 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("# 1: " + res); return res;}); |
287 | 256 | ||
288 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | 257 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); |
289 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 2: " + res); return res;}); | 258 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("# 2: " + res); return res;}); |
290 | 259 | ||
291 | if (aValue.isZero() == false) { | 260 | if (aValue.isZero() == false) { |
292 | var k, Q; | 261 | var k, Q; |
@@ -297,18 +266,13 @@ MochiKit.Logging.logDebug(">>> deferredMultiply - value: " + aValue + ", point: | |||
297 | k = aValue; | 266 | k = aValue; |
298 | Q = aPoint; | 267 | Q = aPoint; |
299 | } else { | 268 | } else { |
300 | MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); | 269 | Clipperz.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); |
301 | k = aValue.negate(); | 270 | k = aValue.negate(); |
302 | Q = this.negate(aPoint); | 271 | Q = this.negate(aPoint); |
303 | } | 272 | } |
304 | 273 | ||
305 | //console.log("k: " + k.toString(16)); | ||
306 | //console.log("k.bitSize: " + k.bitSize()); | ||
307 | 274 | ||
308 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 3: " + res); return res;}); | ||
309 | for (i=k.bitSize()-1; i>=0; i--) { | 275 | for (i=k.bitSize()-1; i>=0; i--) { |
310 | //MochiKit.Logging.logDebug("====> " + i); | ||
311 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4 > i = " + i + ": " + res); return res;}); | ||
312 | deferredResult.addMethod(this, "addTwice"); | 276 | deferredResult.addMethod(this, "addTwice"); |
313 | //# result = this.add(result, result); | 277 | //# result = this.add(result, result); |
314 | // this.overwriteAdd(result, result); | 278 | // this.overwriteAdd(result, result); |
@@ -318,16 +282,10 @@ MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not w | |||
318 | // this.overwriteAdd(result, Q); | 282 | // this.overwriteAdd(result, Q); |
319 | } | 283 | } |
320 | if (i%20 == 0) {deferredResult.addCallback(MochiKit.Async.wait, 0.1);} | 284 | if (i%20 == 0) {deferredResult.addCallback(MochiKit.Async.wait, 0.1);} |
321 | |||
322 | // if (countIndex==100) {console.log("multiply.break"); break;} else countIndex++; | ||
323 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4 < i = " + i + ": " + res); return res;}); | ||
324 | } | 285 | } |
325 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4: " + res); return res;}); | ||
326 | } | 286 | } |
327 | //#console.profileEnd(); | 287 | //#console.profileEnd(); |
328 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 5: " + res); return res;}); | ||
329 | //deferredResult.addBoth(function(res) {console.profileEnd(); return res;}); | 288 | //deferredResult.addBoth(function(res) {console.profileEnd(); return res;}); |
330 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 6: " + res); return res;}); | ||
331 | deferredResult.callback(result); | 289 | deferredResult.callback(result); |
332 | 290 | ||
333 | //# return result; | 291 | //# return result; |
@@ -441,14 +399,12 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
441 | varresult; | 399 | varresult; |
442 | 400 | ||
443 | if (aValue.bitSize() > 1140) { | 401 | if (aValue.bitSize() > 1140) { |
444 | MochiKit.Logging.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); | 402 | Clipperz.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); |
445 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); | 403 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); |
446 | } else { | 404 | } else { |
447 | varC, T; | 405 | varC, T; |
448 | var i; | 406 | var i; |
449 | 407 | ||
450 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
451 | // C = aValue.value().slice(0); | ||
452 | C = aValue._value.slice(0); | 408 | C = aValue._value.slice(0); |
453 | for (i=35; i>=18; i--) { | 409 | for (i=35; i>=18; i--) { |
454 | T = C[i]; | 410 | T = C[i]; |
@@ -464,7 +420,6 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
464 | } | 420 | } |
465 | 421 | ||
466 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | 422 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); |
467 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
468 | } | 423 | } |
469 | 424 | ||
470 | return result; | 425 | return result; |
@@ -507,13 +462,12 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
507 | varresult; | 462 | varresult; |
508 | 463 | ||
509 | if (aValue.bitSize() > 564) { | 464 | if (aValue.bitSize() > 564) { |
510 | MochiKit.Logging.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); | 465 | Clipperz.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); |
511 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); | 466 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); |
512 | } else { | 467 | } else { |
513 | varC, T; | 468 | varC, T; |
514 | var i; | 469 | var i; |
515 | 470 | ||
516 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
517 | C = aValue._value.slice(0); | 471 | C = aValue._value.slice(0); |
518 | for (i=17; i>=9; i--) { | 472 | for (i=17; i>=9; i--) { |
519 | T = C[i]; | 473 | T = C[i]; |
@@ -529,7 +483,6 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
529 | } | 483 | } |
530 | 484 | ||
531 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | 485 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); |
532 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
533 | } | 486 | } |
534 | 487 | ||
535 | return result; | 488 | return result; |
diff --git a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js index 56f257a..7b7c2c6 100644 --- a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js +++ b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/FiniteField.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -53,7 +51,6 @@ Clipperz.Crypto.ECC.BinaryField.FiniteField.prototype = MochiKit.Base.update(nul | |||
53 | '_module': function(aValue) { | 51 | '_module': function(aValue) { |
54 | varresult; | 52 | varresult; |
55 | var modulusComparison; | 53 | var modulusComparison; |
56 | //console.log(">>> binaryField.finiteField.(standard)module"); | ||
57 | 54 | ||
58 | modulusComparison = Clipperz.Crypto.ECC.BinaryField.Value._compare(aValue, this.modulus()._value); | 55 | modulusComparison = Clipperz.Crypto.ECC.BinaryField.Value._compare(aValue, this.modulus()._value); |
59 | 56 | ||
@@ -74,7 +71,6 @@ Clipperz.Crypto.ECC.BinaryField.FiniteField.prototype = MochiKit.Base.update(nul | |||
74 | resultBitSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(result); | 71 | resultBitSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(result); |
75 | } | 72 | } |
76 | } | 73 | } |
77 | //console.log("<<< binaryField.finiteField.(standard)module"); | ||
78 | 74 | ||
79 | return result; | 75 | return result; |
80 | }, | 76 | }, |
diff --git a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Point.js b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Point.js index ffe287b..fef3220 100644 --- a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Point.js +++ b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Point.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Value.js b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Value.js index b705a20..634772a 100644 --- a/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Value.js +++ b/frontend/gamma/js/Clipperz/Crypto/ECC/BinaryField/Value.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -368,8 +366,6 @@ Clipperz.Crypto.ECC.BinaryField.Value._compare = function(a,b) { | |||
368 | 366 | ||
369 | c = a.length; | 367 | c = a.length; |
370 | for (i=0; (i<c) && (result==0); i++) { | 368 | for (i=0; (i<c) && (result==0); i++) { |
371 | //console.log("compare[" + c + " - " + i + " - 1] " + this.value()[c-i-1] + ", " + aValue.value()[c-i-1]); | ||
372 | // result = MochiKit.Base.compare(this.value()[c-i-1], aValue.value()[c-i-1]); | ||
373 | result = MochiKit.Base.compare(a[c-i-1], b[c-i-1]); | 369 | result = MochiKit.Base.compare(a[c-i-1], b[c-i-1]); |
374 | } | 370 | } |
375 | 371 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/ECC/StandardCurves.js b/frontend/gamma/js/Clipperz/Crypto/ECC/StandardCurves.js index be197e3..239e264 100644 --- a/frontend/gamma/js/Clipperz/Crypto/ECC/StandardCurves.js +++ b/frontend/gamma/js/Clipperz/Crypto/ECC/StandardCurves.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -134,14 +132,12 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
134 | varresult; | 132 | varresult; |
135 | 133 | ||
136 | if (aValue.bitSize() > 1140) { | 134 | if (aValue.bitSize() > 1140) { |
137 | MochiKit.Logging.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); | 135 | Clipperz.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); |
138 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); | 136 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); |
139 | } else { | 137 | } else { |
140 | varC, T; | 138 | varC, T; |
141 | var i; | 139 | var i; |
142 | 140 | ||
143 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
144 | // C = aValue.value().slice(0); | ||
145 | C = aValue._value.slice(0); | 141 | C = aValue._value.slice(0); |
146 | for (i=35; i>=18; i--) { | 142 | for (i=35; i>=18; i--) { |
147 | T = C[i]; | 143 | T = C[i]; |
@@ -157,7 +153,6 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
157 | } | 153 | } |
158 | 154 | ||
159 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | 155 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); |
160 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
161 | } | 156 | } |
162 | 157 | ||
163 | return result; | 158 | return result; |
@@ -196,13 +191,12 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
196 | varresult; | 191 | varresult; |
197 | 192 | ||
198 | if (aValue.bitSize() > 564) { | 193 | if (aValue.bitSize() > 564) { |
199 | MochiKit.Logging.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); | 194 | Clipperz.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); |
200 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); | 195 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); |
201 | } else { | 196 | } else { |
202 | varC, T; | 197 | varC, T; |
203 | var i; | 198 | var i; |
204 | 199 | ||
205 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
206 | C = aValue._value.slice(0); | 200 | C = aValue._value.slice(0); |
207 | for (i=17; i>=9; i--) { | 201 | for (i=17; i>=9; i--) { |
208 | T = C[i]; | 202 | T = C[i]; |
@@ -218,7 +212,6 @@ MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | |||
218 | } | 212 | } |
219 | 213 | ||
220 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | 214 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); |
221 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
222 | } | 215 | } |
223 | 216 | ||
224 | return result; | 217 | return result; |
diff --git a/frontend/gamma/js/Clipperz/Crypto/PRNG.js b/frontend/gamma/js/Clipperz/Crypto/PRNG.js index adfdb16..c539f06 100644 --- a/frontend/gamma/js/Clipperz/Crypto/PRNG.js +++ b/frontend/gamma/js/Clipperz/Crypto/PRNG.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -489,7 +487,6 @@ Clipperz.Crypto.PRNG.Fortuna.prototype = MochiKit.Base.update(null, { | |||
489 | 487 | ||
490 | this.setKey(Clipperz.Crypto.SHA.sha_d256(newKeySeed)); | 488 | this.setKey(Clipperz.Crypto.SHA.sha_d256(newKeySeed)); |
491 | if (reseedCounter == 1) { | 489 | if (reseedCounter == 1) { |
492 | //MochiKit.Logging.logDebug("### PRNG.readyToGenerateRandomBytes"); | ||
493 | Clipperz.log("### PRNG.readyToGenerateRandomBytes"); | 490 | Clipperz.log("### PRNG.readyToGenerateRandomBytes"); |
494 | MochiKit.Signal.signal(this, 'readyToGenerateRandomBytes'); | 491 | MochiKit.Signal.signal(this, 'readyToGenerateRandomBytes'); |
495 | } | 492 | } |
@@ -560,7 +557,7 @@ Clipperz.log("### PRNG.readyToGenerateRandomBytes"); | |||
560 | newKey = this.getRandomBlock().appendBlock(this.getRandomBlock()); | 557 | newKey = this.getRandomBlock().appendBlock(this.getRandomBlock()); |
561 | this.setKey(newKey); | 558 | this.setKey(newKey); |
562 | } else { | 559 | } else { |
563 | MochiKit.Logging.logWarning("Fortuna generator has not enough entropy, yet!"); | 560 | Clipperz.logWarning("Fortuna generator has not enough entropy, yet!"); |
564 | throw Clipperz.Crypto.PRNG.exception.NotEnoughEntropy; | 561 | throw Clipperz.Crypto.PRNG.exception.NotEnoughEntropy; |
565 | } | 562 | } |
566 | 563 | ||
@@ -610,21 +607,14 @@ MochiKit.Logging.logWarning("Fortuna generator has not enough entropy, yet!"); | |||
610 | 'deferredEntropyCollection': function(aValue) { | 607 | 'deferredEntropyCollection': function(aValue) { |
611 | var result; | 608 | var result; |
612 | 609 | ||
613 | //MochiKit.Logging.logDebug(">>> PRNG.deferredEntropyCollection"); | ||
614 | 610 | ||
615 | if (this.isReadyToGenerateRandomValues()) { | 611 | if (this.isReadyToGenerateRandomValues()) { |
616 | //MochiKit.Logging.logDebug("--- PRNG.deferredEntropyCollection - 1"); | ||
617 | result = aValue; | 612 | result = aValue; |
618 | } else { | 613 | } else { |
619 | //MochiKit.Logging.logDebug("--- PRNG.deferredEntropyCollection - 2"); | ||
620 | var deferredResult; | 614 | var deferredResult; |
621 | 615 | ||
622 | // Clipperz.NotificationCenter.notify(this, 'updatedProgressState', 'collectingEntropy', true); | ||
623 | |||
624 | deferredResult = new Clipperz.Async.Deferred("PRNG.deferredEntropyCollection"); | 616 | deferredResult = new Clipperz.Async.Deferred("PRNG.deferredEntropyCollection"); |
625 | // deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("1.2.1 - PRNG.deferredEntropyCollection - 1: " + res); return res;}); | ||
626 | deferredResult.addCallback(MochiKit.Base.partial(MochiKit.Async.succeed, aValue)); | 617 | deferredResult.addCallback(MochiKit.Base.partial(MochiKit.Async.succeed, aValue)); |
627 | // deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("1.2.2 - PRNG.deferredEntropyCollection - 2: " + res); return res;}); | ||
628 | MochiKit.Signal.connect(this, | 618 | MochiKit.Signal.connect(this, |
629 | 'readyToGenerateRandomBytes', | 619 | 'readyToGenerateRandomBytes', |
630 | deferredResult, | 620 | deferredResult, |
@@ -632,7 +622,6 @@ MochiKit.Logging.logWarning("Fortuna generator has not enough entropy, yet!"); | |||
632 | 622 | ||
633 | result = deferredResult; | 623 | result = deferredResult; |
634 | } | 624 | } |
635 | //MochiKit.Logging.logDebug("<<< PRNG.deferredEntropyCollection - result: " + result); | ||
636 | 625 | ||
637 | return result; | 626 | return result; |
638 | }, | 627 | }, |
diff --git a/frontend/gamma/js/Clipperz/Crypto/RSA.js b/frontend/gamma/js/Clipperz/Crypto/RSA.js index 6844dba..5a480f1 100644 --- a/frontend/gamma/js/Clipperz/Crypto/RSA.js +++ b/frontend/gamma/js/Clipperz/Crypto/RSA.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/SHA.js b/frontend/gamma/js/Clipperz/Crypto/SHA.js index b07fa85..f8bfe6e 100644 --- a/frontend/gamma/js/Clipperz/Crypto/SHA.js +++ b/frontend/gamma/js/Clipperz/Crypto/SHA.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Crypto/SRP.js b/frontend/gamma/js/Clipperz/Crypto/SRP.js index 3b25275..597e72d 100644 --- a/frontend/gamma/js/Clipperz/Crypto/SRP.js +++ b/frontend/gamma/js/Clipperz/Crypto/SRP.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -131,7 +129,6 @@ Clipperz.Crypto.SRP.Connection.prototype = MochiKit.Base.update(null, { | |||
131 | if (this._a == null) { | 129 | if (this._a == null) { |
132 | this._a = new Clipperz.Crypto.BigInt(Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(32).toHexString().substring(2), 16); | 130 | this._a = new Clipperz.Crypto.BigInt(Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(32).toHexString().substring(2), 16); |
133 | // this._a = new Clipperz.Crypto.BigInt("37532428169486597638072888476611365392249575518156687476805936694442691012367", 10); | 131 | // this._a = new Clipperz.Crypto.BigInt("37532428169486597638072888476611365392249575518156687476805936694442691012367", 10); |
134 | //MochiKit.Logging.logDebug("SRP a: " + this._a); | ||
135 | } | 132 | } |
136 | 133 | ||
137 | return this._a; | 134 | return this._a; |
@@ -145,10 +142,9 @@ Clipperz.Crypto.SRP.Connection.prototype = MochiKit.Base.update(null, { | |||
145 | this._A = Clipperz.Crypto.SRP.g().powerModule(this.a(), Clipperz.Crypto.SRP.n()); | 142 | this._A = Clipperz.Crypto.SRP.g().powerModule(this.a(), Clipperz.Crypto.SRP.n()); |
146 | 143 | ||
147 | if (this._A.equals(0)) { | 144 | if (this._A.equals(0)) { |
148 | MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'A' to 0."); | 145 | Clipperz.logError("Clipperz.Crypto.SRP.Connection: trying to set 'A' to 0."); |
149 | throw Clipperz.Crypto.SRP.exception.InvalidValue; | 146 | throw Clipperz.Crypto.SRP.exception.InvalidValue; |
150 | } | 147 | } |
151 | //MochiKit.Logging.logDebug("SRP A: " + this._A); | ||
152 | } | 148 | } |
153 | 149 | ||
154 | return this._A; | 150 | return this._A; |
@@ -158,7 +154,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'A' to | |||
158 | 154 | ||
159 | 's': function () { | 155 | 's': function () { |
160 | return this._s; | 156 | return this._s; |
161 | //MochiKit.Logging.logDebug("SRP s: " + this._S); | ||
162 | }, | 157 | }, |
163 | 158 | ||
164 | 'set_s': function(aValue) { | 159 | 'set_s': function(aValue) { |
@@ -175,9 +170,8 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'A' to | |||
175 | //Warning: this value should be strictly greater than zero: how should we perform this check? | 170 | //Warning: this value should be strictly greater than zero: how should we perform this check? |
176 | if (! aValue.equals(0)) { | 171 | if (! aValue.equals(0)) { |
177 | this._B = aValue; | 172 | this._B = aValue; |
178 | //MochiKit.Logging.logDebug("SRP B: " + this._B); | ||
179 | } else { | 173 | } else { |
180 | MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to 0."); | 174 | Clipperz.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to 0."); |
181 | throw Clipperz.Crypto.SRP.exception.InvalidValue; | 175 | throw Clipperz.Crypto.SRP.exception.InvalidValue; |
182 | } | 176 | } |
183 | }, | 177 | }, |
@@ -187,7 +181,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
187 | 'x': function () { | 181 | 'x': function () { |
188 | if (this._x == null) { | 182 | if (this._x == null) { |
189 | this._x = new Clipperz.Crypto.BigInt(this.stringHash(this.s().asString(16, 64) + this.P()), 16); | 183 | this._x = new Clipperz.Crypto.BigInt(this.stringHash(this.s().asString(16, 64) + this.P()), 16); |
190 | //MochiKit.Logging.logDebug("SRP x: " + this._x); | ||
191 | } | 184 | } |
192 | 185 | ||
193 | return this._x; | 186 | return this._x; |
@@ -198,7 +191,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
198 | 'u': function () { | 191 | 'u': function () { |
199 | if (this._u == null) { | 192 | if (this._u == null) { |
200 | this._u = new Clipperz.Crypto.BigInt(this.stringHash(this.B().asString()), 16); | 193 | this._u = new Clipperz.Crypto.BigInt(this.stringHash(this.B().asString()), 16); |
201 | //MochiKit.Logging.logDebug("SRP u: " + this._u); | ||
202 | } | 194 | } |
203 | 195 | ||
204 | return this._u; | 196 | return this._u; |
@@ -219,7 +211,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
219 | bigint.add(this.a(), bigint.multiply(this.u(), this.x())), | 211 | bigint.add(this.a(), bigint.multiply(this.u(), this.x())), |
220 | srp.n() | 212 | srp.n() |
221 | ) | 213 | ) |
222 | //MochiKit.Logging.logDebug("SRP S: " + this._S); | ||
223 | } | 214 | } |
224 | 215 | ||
225 | return this._S; | 216 | return this._S; |
@@ -230,7 +221,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
230 | 'K': function () { | 221 | 'K': function () { |
231 | if (this._K == null) { | 222 | if (this._K == null) { |
232 | this._K = this.stringHash(this.S().asString()); | 223 | this._K = this.stringHash(this.S().asString()); |
233 | //MochiKit.Logging.logDebug("SRP K: " + this._K); | ||
234 | } | 224 | } |
235 | 225 | ||
236 | return this._K; | 226 | return this._K; |
@@ -241,7 +231,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
241 | 'M1': function () { | 231 | 'M1': function () { |
242 | if (this._M1 == null) { | 232 | if (this._M1 == null) { |
243 | this._M1 = this.stringHash(this.A().asString(10) + this.B().asString(10) + this.K()); | 233 | this._M1 = this.stringHash(this.A().asString(10) + this.B().asString(10) + this.K()); |
244 | //MochiKit.Logging.logDebug("SRP M1: " + this._M1); | ||
245 | } | 234 | } |
246 | 235 | ||
247 | return this._M1; | 236 | return this._M1; |
@@ -252,7 +241,6 @@ MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to | |||
252 | 'M2': function () { | 241 | 'M2': function () { |
253 | if (this._M2 == null) { | 242 | if (this._M2 == null) { |
254 | this._M2 = this.stringHash(this.A().asString(10) + this.M1() + this.K()); | 243 | this._M2 = this.stringHash(this.A().asString(10) + this.M1() + this.K()); |
255 | //MochiKit.Logging.logDebug("SRP M2: " + this._M2); | ||
256 | } | 244 | } |
257 | 245 | ||
258 | return this._M2; | 246 | return this._M2; |
diff --git a/frontend/gamma/js/Clipperz/DOM.js b/frontend/gamma/js/Clipperz/DOM.js index 8f24653..1d52a4b 100644 --- a/frontend/gamma/js/Clipperz/DOM.js +++ b/frontend/gamma/js/Clipperz/DOM.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -106,7 +104,7 @@ MochiKit.Base.update(Clipperz.DOM, { | |||
106 | if (aNode.type == "select-one") { | 104 | if (aNode.type == "select-one") { |
107 | Clipperz.DOM.selectOptionMatchingValue(aNode, values[name]); | 105 | Clipperz.DOM.selectOptionMatchingValue(aNode, values[name]); |
108 | } else { //aNode.type == "select-multiple" | 106 | } else { //aNode.type == "select-multiple" |
109 | MochiKit.Logging.logWarning("### unhandled Select.type = 'select-multiple' condition"); | 107 | Clipperz.logWarning("### unhandled Select.type = 'select-multiple' condition"); |
110 | } | 108 | } |
111 | } else if (tagName === "FORM" || tagName === "P" || tagName === "SPAN" || tagName === "DIV") { | 109 | } else if (tagName === "FORM" || tagName === "P" || tagName === "SPAN" || tagName === "DIV") { |
112 | result = aNode.childNodes; | 110 | result = aNode.childNodes; |
diff --git a/frontend/gamma/js/Clipperz/Date.js b/frontend/gamma/js/Clipperz/Date.js index 020d77b..163790e 100644 --- a/frontend/gamma/js/Clipperz/Date.js +++ b/frontend/gamma/js/Clipperz/Date.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -239,7 +237,6 @@ MochiKit.Base.update(Clipperz.Date, { | |||
239 | var formatter; | 237 | var formatter; |
240 | var i,c; | 238 | var i,c; |
241 | 239 | ||
242 | //MochiKit.Logging.logDebug(">>> Clipperz.Date.formatDateWithPHPLikeTemplateAndLocale"); | ||
243 | formatterCode = "Clipperz.Date.__scratchFormatter = function(aDate, aLocale){return ''"; | 240 | formatterCode = "Clipperz.Date.__scratchFormatter = function(aDate, aLocale){return ''"; |
244 | 241 | ||
245 | c = aFormat.length; | 242 | c = aFormat.length; |
@@ -261,12 +258,10 @@ MochiKit.Base.update(Clipperz.Date, { | |||
261 | } | 258 | } |
262 | 259 | ||
263 | formatterCode += ";}"; | 260 | formatterCode += ";}"; |
264 | //MochiKit.Logging.logDebug("--- Clipperz.Date.formatDateWithPHPLikeTemplateAndLocale - formatterCode: " + formatterCode); | ||
265 | eval(formatterCode); | 261 | eval(formatterCode); |
266 | 262 | ||
267 | result = Clipperz.Date.__scratchFormatter.call(this, aDate, aLocale); | 263 | result = Clipperz.Date.__scratchFormatter.call(this, aDate, aLocale); |
268 | delete Clipperz.Date.__scratchFormatter; | 264 | delete Clipperz.Date.__scratchFormatter; |
269 | //MochiKit.Logging.logDebug("<<< Clipperz.Date.formatDateWithPHPLikeTemplateAndLocale"); | ||
270 | 265 | ||
271 | return result; | 266 | return result; |
272 | }, | 267 | }, |
diff --git a/frontend/gamma/js/Clipperz/KeePassExportProcessor.js b/frontend/gamma/js/Clipperz/KeePassExportProcessor.js index a3c10c8..e35d729 100644 --- a/frontend/gamma/js/Clipperz/KeePassExportProcessor.js +++ b/frontend/gamma/js/Clipperz/KeePassExportProcessor.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/KeyValueObjectStore.js b/frontend/gamma/js/Clipperz/KeyValueObjectStore.js index 36cda88..8bc125b 100644 --- a/frontend/gamma/js/Clipperz/KeyValueObjectStore.js +++ b/frontend/gamma/js/Clipperz/KeyValueObjectStore.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -33,7 +31,6 @@ Clipperz.KeyValueObjectStore = function(args) { | |||
33 | //this._name = args['name'] || "unnamed KeyValueObjectStore"; | 31 | //this._name = args['name'] || "unnamed KeyValueObjectStore"; |
34 | this._values = args['values'] || {}; | 32 | this._values = args['values'] || {}; |
35 | //this._referenceObjectStore = null; | 33 | //this._referenceObjectStore = null; |
36 | //console.log("new KeyValueObjectStore", args, this._values); | ||
37 | 34 | ||
38 | return this; | 35 | return this; |
39 | } | 36 | } |
@@ -50,7 +47,6 @@ Clipperz.KeyValueObjectStore.prototype = MochiKit.Base.update(null, { | |||
50 | }, | 47 | }, |
51 | 48 | ||
52 | 'setValues': function (someValues) { | 49 | 'setValues': function (someValues) { |
53 | //console.log("KeyValueObjectStore.setValues", someValues); | ||
54 | this._values = someValues; | 50 | this._values = someValues; |
55 | return this; | 51 | return this; |
56 | }, | 52 | }, |
@@ -96,12 +92,10 @@ Clipperz.KeyValueObjectStore.prototype = MochiKit.Base.update(null, { | |||
96 | var keys; | 92 | var keys; |
97 | var i,c; | 93 | var i,c; |
98 | 94 | ||
99 | //console.log(">>> KeyValueObjectStore.setValue", this, this.values(), aKeyPath, aValue); | ||
100 | targetObject = this.values(); | 95 | targetObject = this.values(); |
101 | keys = (aKeyPath + '').split('.'); | 96 | keys = (aKeyPath + '').split('.'); |
102 | c = keys.length - 1; | 97 | c = keys.length - 1; |
103 | for (i=0; i<c; i++) { | 98 | for (i=0; i<c; i++) { |
104 | //console.log("--- KeyValueObjectStore.setValue", i, targetObject, keys[i]); | ||
105 | if (typeof targetObject[keys[i]] == 'undefined') { | 99 | if (typeof targetObject[keys[i]] == 'undefined') { |
106 | targetObject[keys[i]] = {} | 100 | targetObject[keys[i]] = {} |
107 | } | 101 | } |
@@ -110,7 +104,6 @@ Clipperz.KeyValueObjectStore.prototype = MochiKit.Base.update(null, { | |||
110 | } | 104 | } |
111 | 105 | ||
112 | targetObject[keys[c]] = aValue; | 106 | targetObject[keys[c]] = aValue; |
113 | //console.log("<<< KeyValueObjectStore.setValue"); | ||
114 | 107 | ||
115 | return aValue; | 108 | return aValue; |
116 | }, | 109 | }, |
diff --git a/frontend/gamma/js/Clipperz/Logging.js b/frontend/gamma/js/Clipperz/Logging.js index 77a0896..b6b806a 100644 --- a/frontend/gamma/js/Clipperz/Logging.js +++ b/frontend/gamma/js/Clipperz/Logging.js | |||
@@ -1,39 +1,32 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
26 | Clipperz.Base.module('Clipperz'); | 24 | Clipperz.Base.module('Clipperz'); |
27 | 25 | ||
28 | if (typeof console == 'undefined') { | ||
29 | Clipperz.log = MochiKit.Logging.logDebug; | ||
30 | // Safari/WebKit 4 | ||
31 | } else if (navigator.userAgent.match(/WebKit/)) { | ||
32 | //Clipperz.log = console.log; | ||
33 | Clipperz.log = MochiKit.Logging.logDebug; | ||
34 | } else if (navigator.userAgent.match(/Gecko/)) { | ||
35 | Clipperz.log = function () { | 26 | Clipperz.log = function () { |
36 | // firebug 1.3 bug see http://code.google.com/p/fbug/issues/detail?id=1347 | 27 | console.log.apply(console, arguments); |
37 | console.log.apply(window._firebug, arguments); | ||
38 | }; | ||
39 | } \ No newline at end of file | 28 | } \ No newline at end of file |
29 | |||
30 | Clipperz.logError= Clipperz.log; | ||
31 | Clipperz.logWarning= Clipperz.log; | ||
32 | Clipperz.logDebug= Clipperz.log; \ No newline at end of file | ||
diff --git a/frontend/gamma/js/Clipperz/PM/BookmarkletProcessor.js b/frontend/gamma/js/Clipperz/PM/BookmarkletProcessor.js index 897beed..4818b76 100644 --- a/frontend/gamma/js/Clipperz/PM/BookmarkletProcessor.js +++ b/frontend/gamma/js/Clipperz/PM/BookmarkletProcessor.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Connection.js b/frontend/gamma/js/Clipperz/PM/Connection.js index a05a310..6a8f15e 100644 --- a/frontend/gamma/js/Clipperz/PM/Connection.js +++ b/frontend/gamma/js/Clipperz/PM/Connection.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -86,7 +84,8 @@ Clipperz.PM.Connection.prototype = MochiKit.Base.update(null, { | |||
86 | //------------------------------------------------------------------------- | 84 | //------------------------------------------------------------------------- |
87 | 85 | ||
88 | 'defaultErrorHandler': function(anErrorString, anException) { | 86 | 'defaultErrorHandler': function(anErrorString, anException) { |
89 | MochiKit.Logging.logError("### Connection.defaultErrorHandler: " + anErrorString + " (" + anException + ")"); | 87 | // Clipperz.logError("### Connection.defaultErrorHandler: " + anErrorString, anException); |
88 | Clipperz.logError("### Connection.defaultErrorHandler: " + anErrorString + " (" + anException + ")"); | ||
90 | }, | 89 | }, |
91 | 90 | ||
92 | //------------------------------------------------------------------------- | 91 | //------------------------------------------------------------------------- |
@@ -273,7 +272,6 @@ Clipperz.PM.Connection.SRP['1.0'].prototype = MochiKit.Base.update(new Clipperz. | |||
273 | //========================================================================= | 272 | //========================================================================= |
274 | 273 | ||
275 | 'redeemOneTimePassword': function (someParameters) { | 274 | 'redeemOneTimePassword': function (someParameters) { |
276 | //console.log("Connections.redeemOneTimePassword", someParameters['username'], someParameters['password']); | ||
277 | /* | 275 | /* |
278 | //========================================================================= | 276 | //========================================================================= |
279 | //LOGIN WITH PASSPHRASE, extracted from the TRUNK version (LoginPanel.js) | 277 | //LOGIN WITH PASSPHRASE, extracted from the TRUNK version (LoginPanel.js) |
@@ -453,7 +451,6 @@ Clipperz.PM.Connection.SRP['1.0'].prototype = MochiKit.Base.update(new Clipperz. | |||
453 | parameters['user']['lock'] = this.serverLockValue(); | 451 | parameters['user']['lock'] = this.serverLockValue(); |
454 | } | 452 | } |
455 | 453 | ||
456 | //console.log(">>> Connection.message", aMessageName, someParameters); | ||
457 | args = { | 454 | args = { |
458 | message: aMessageName, | 455 | message: aMessageName, |
459 | srpSharedSecret: this.sharedSecret(), | 456 | srpSharedSecret: this.sharedSecret(), |
@@ -489,7 +486,7 @@ Clipperz.PM.Connection.SRP['1.0'].prototype = MochiKit.Base.update(new Clipperz. | |||
489 | 'messageExceptionHandler': function(anOriginalMessageArguments, anError) { | 486 | 'messageExceptionHandler': function(anOriginalMessageArguments, anError) { |
490 | var result; | 487 | var result; |
491 | 488 | ||
492 | console.log(">>> Connection.messageExceptionHandler", anError, anError.message); | 489 | Clipperz.log(">>> Connection.messageExceptionHandler: " + anError.message, anError); |
493 | if (anError instanceof MochiKit.Async.CancelledError) { | 490 | if (anError instanceof MochiKit.Async.CancelledError) { |
494 | result = anError; | 491 | result = anError; |
495 | } else { | 492 | } else { |
@@ -503,7 +500,7 @@ console.log(">>> Connection.messageExceptionHandler", anError, anError.message); | |||
503 | result = anError; | 500 | result = anError; |
504 | } | 501 | } |
505 | } | 502 | } |
506 | console.log("<<< Connection.messageExceptionHandler", anError) | 503 | Clipperz.log("<<< Connection.messageExceptionHandler") |
507 | 504 | ||
508 | return result;; | 505 | return result;; |
509 | }, | 506 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/Crypto.js b/frontend/gamma/js/Clipperz/PM/Crypto.js index 31fe349..cd10e33 100644 --- a/frontend/gamma/js/Clipperz/PM/Crypto.js +++ b/frontend/gamma/js/Clipperz/PM/Crypto.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -174,7 +172,7 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
174 | try { | 172 | try { |
175 | result = Clipperz.Base.evalJSON(decryptedValue.asString()); | 173 | result = Clipperz.Base.evalJSON(decryptedValue.asString()); |
176 | } catch (exception) { | 174 | } catch (exception) { |
177 | MochiKit.Logging.logError("Error while decrypting data [1]"); | 175 | Clipperz.logError("Error while decrypting data [1]"); |
178 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | 176 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; |
179 | } | 177 | } |
180 | } else { | 178 | } else { |
@@ -206,7 +204,7 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
206 | try { | 204 | try { |
207 | result = Clipperz.Base.evalJSON(decryptedData.asString()); | 205 | result = Clipperz.Base.evalJSON(decryptedData.asString()); |
208 | } catch (exception) { | 206 | } catch (exception) { |
209 | MochiKit.Logging.logError("Error while decrypting data [2]"); | 207 | Clipperz.logError("Error while decrypting data [2]"); |
210 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | 208 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; |
211 | } | 209 | } |
212 | 210 | ||
@@ -291,7 +289,7 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
291 | try { | 289 | try { |
292 | result = Clipperz.Base.evalJSON(value); | 290 | result = Clipperz.Base.evalJSON(value); |
293 | } catch (exception) { | 291 | } catch (exception) { |
294 | MochiKit.Logging.logError("Error while decrypting data [3]"); | 292 | Clipperz.logError("Error while decrypting data [3]"); |
295 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | 293 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; |
296 | } | 294 | } |
297 | } else { | 295 | } else { |
@@ -322,7 +320,7 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
322 | deferredResult.addCallback(MochiKit.Async.wait, 0.1); | 320 | deferredResult.addCallback(MochiKit.Async.wait, 0.1); |
323 | deferredResult.addCallback(Clipperz.Base.evalJSON); | 321 | deferredResult.addCallback(Clipperz.Base.evalJSON); |
324 | deferredResult.addErrback(function(anError) { | 322 | deferredResult.addErrback(function(anError) { |
325 | MochiKit.Logging.logError("Error while decrypting data [4]"); | 323 | Clipperz.logError("Error while decrypting data [4]"); |
326 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | 324 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; |
327 | }) | 325 | }) |
328 | } else { | 326 | } else { |
@@ -359,27 +357,27 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
359 | var dataToEncrypt; | 357 | var dataToEncrypt; |
360 | var encryptedData; | 358 | var encryptedData; |
361 | 359 | ||
362 | //MochiKit.Logging.logDebug(">>> [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt"); | 360 | //Clipperz.logDebug(">>> [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt"); |
363 | key = Clipperz.Crypto.SHA.sha_d256(new Clipperz.ByteArray(aKey)); | 361 | key = Clipperz.Crypto.SHA.sha_d256(new Clipperz.ByteArray(aKey)); |
364 | //MochiKit.Logging.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 1"); | 362 | //Clipperz.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 1"); |
365 | value = Clipperz.Base.serializeJSON(aValue); | 363 | value = Clipperz.Base.serializeJSON(aValue); |
366 | //MochiKit.Logging.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 2"); | 364 | //Clipperz.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 2"); |
367 | / * | 365 | / * |
368 | //MochiKit.Logging.logDebug("--> encrypt.fullSize: " + value.length); | 366 | //Clipperz.logDebug("--> encrypt.fullSize: " + value.length); |
369 | value = value.replace(/":{"label":"/g, '":{l:"'); | 367 | value = value.replace(/":{"label":"/g, '":{l:"'); |
370 | value = value.replace(/":{"key":"/g, '":{k:"'); | 368 | value = value.replace(/":{"key":"/g, '":{k:"'); |
371 | value = value.replace(/":{"notes":"/g, '":{n:"'); | 369 | value = value.replace(/":{"notes":"/g, '":{n:"'); |
372 | value = value.replace(/":{"record":"/g, '":{r:"'); | 370 | value = value.replace(/":{"record":"/g, '":{r:"'); |
373 | value = value.replace(/", "label":"/g, '",l:"'); | 371 | value = value.replace(/", "label":"/g, '",l:"'); |
374 | value = value.replace(/", "favicon":"/g,'",f:"'); | 372 | value = value.replace(/", "favicon":"/g,'",f:"'); |
375 | //MochiKit.Logging.logDebug("<-- encrypt.compressed: " + value.length); | 373 | //Clipperz.logDebug("<-- encrypt.compressed: " + value.length); |
376 | * / | 374 | * / |
377 | data = new Clipperz.ByteArray(value); | 375 | data = new Clipperz.ByteArray(value); |
378 | //MochiKit.Logging.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 3"); | 376 | //Clipperz.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 3"); |
379 | encryptedData = Clipperz.Crypto.AES.encrypt(key, data, aNonce); | 377 | encryptedData = Clipperz.Crypto.AES.encrypt(key, data, aNonce); |
380 | //MochiKit.Logging.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 4"); | 378 | //Clipperz.logDebug("--- [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt - 4"); |
381 | result = encryptedData.toBase64String(); | 379 | result = encryptedData.toBase64String(); |
382 | //MochiKit.Logging.logDebug("<<< [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt"); | 380 | //Clipperz.logDebug("<<< [" + (new Date()).valueOf() + "] Clipperz.PM.Crypto.versions[0.3].encrypt"); |
383 | 381 | ||
384 | return result; | 382 | return result; |
385 | }, | 383 | }, |
@@ -408,7 +406,7 @@ MochiKit.Base.update(Clipperz.PM.Crypto, { | |||
408 | try { | 406 | try { |
409 | result = Clipperz.Base.evalJSON(value); | 407 | result = Clipperz.Base.evalJSON(value); |
410 | } catch (exception) { | 408 | } catch (exception) { |
411 | MochiKit.Logging.logError("Error while decrypting data"); | 409 | Clipperz.logError("Error while decrypting data"); |
412 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | 410 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; |
413 | } | 411 | } |
414 | 412 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLogin.js b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLogin.js index 8f8696d..507ee31 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLogin.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLogin.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -329,7 +327,7 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.DirectLogin, Object, { | |||
329 | 327 | ||
330 | fixedConfiguration = Clipperz.Base.deepClone(aConfiguration); | 328 | fixedConfiguration = Clipperz.Base.deepClone(aConfiguration); |
331 | 329 | ||
332 | //console.log("PROCESS CONFIGURATION", aConfiguration); | 330 | //Clipperz.log("PROCESS CONFIGURATION", aConfiguration); |
333 | switch (aConfiguration['bookmarkletVersion']) { | 331 | switch (aConfiguration['bookmarkletVersion']) { |
334 | case '0.1': | 332 | case '0.1': |
335 | fixedConfiguration['formData'] = this.fixFormDataFromBookmarkletVersion_0_1(aConfiguration['formData']); | 333 | fixedConfiguration['formData'] = this.fixFormDataFromBookmarkletVersion_0_1(aConfiguration['formData']); |
@@ -481,10 +479,9 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.DirectLogin, Object, { | |||
481 | var bookmarkletConfiguration; | 479 | var bookmarkletConfiguration; |
482 | 480 | ||
483 | bookmarkletConfiguration = Clipperz.PM.DataModel.DirectLogin.checkBookmarkletConfiguration(aValue); | 481 | bookmarkletConfiguration = Clipperz.PM.DataModel.DirectLogin.checkBookmarkletConfiguration(aValue); |
484 | //console.log("BOOKMARKLET CONFIGURATION", bookmarkletConfiguration); | 482 | |
485 | return Clipperz.Async.callbacks("DirectLogin.setBookmarkletConfiguration", [ | 483 | return Clipperz.Async.callbacks("DirectLogin.setBookmarkletConfiguration", [ |
486 | MochiKit.Base.method(this, 'setValue', 'formData', bookmarkletConfiguration['form']), | 484 | MochiKit.Base.method(this, 'setValue', 'formData', bookmarkletConfiguration['form']), |
487 | //function (aValue) { console.log("SET VALUE - formData", aValue); return aValue; }, | ||
488 | MochiKit.Base.method(this, 'setValue', 'bookmarkletVersion', bookmarkletConfiguration['version']), | 485 | MochiKit.Base.method(this, 'setValue', 'bookmarkletVersion', bookmarkletConfiguration['version']), |
489 | 486 | ||
490 | MochiKit.Base.method(this, 'favicon'), | 487 | MochiKit.Base.method(this, 'favicon'), |
@@ -536,10 +533,7 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.DirectLogin, Object, { | |||
536 | 533 | ||
537 | 'updateInputsAfterChangingBookmarkletConfiguration': function () { | 534 | 'updateInputsAfterChangingBookmarkletConfiguration': function () { |
538 | return Clipperz.Async.callbacks("DirectLogin.updateInputsAfterChangingBookmarkletConfiguration", [ | 535 | return Clipperz.Async.callbacks("DirectLogin.updateInputsAfterChangingBookmarkletConfiguration", [ |
539 | // MochiKit.Base.method(this, 'getValue', ''), | ||
540 | //function (aValue) { console.log("VALUE", aValue); return aValue }, | ||
541 | MochiKit.Base.method(this, 'getValue', 'formData'), | 536 | MochiKit.Base.method(this, 'getValue', 'formData'), |
542 | //function (aValue) { console.log("FORM DATA", aValue); return aValue }, | ||
543 | MochiKit.Base.method(this, 'setInputWithFormDataConfiguration') | 537 | MochiKit.Base.method(this, 'setInputWithFormDataConfiguration') |
544 | ], {trace:false}); | 538 | ], {trace:false}); |
545 | }, | 539 | }, |
@@ -550,7 +544,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.DirectLogin, Object, { | |||
550 | return Clipperz.Async.callbacks("DirectLogin.inputValues", [ | 544 | return Clipperz.Async.callbacks("DirectLogin.inputValues", [ |
551 | MochiKit.Base.method(this, 'inputs'), | 545 | MochiKit.Base.method(this, 'inputs'), |
552 | MochiKit.Base.values, | 546 | MochiKit.Base.values, |
553 | //function (aValue) { console.log("INPUTS", aValue); return aValue; }, | ||
554 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.partial(MochiKit.Base.method(this, 'inputValue'))), | 547 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.partial(MochiKit.Base.method(this, 'inputValue'))), |
555 | Clipperz.Async.collectAll, | 548 | Clipperz.Async.collectAll, |
556 | Clipperz.Base.mergeItems | 549 | Clipperz.Base.mergeItems |
@@ -674,19 +667,16 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.DirectLogin, Object, { | |||
674 | 667 | ||
675 | this._bindings[anInput.name()] = newBinding; | 668 | this._bindings[anInput.name()] = newBinding; |
676 | }, this)) | 669 | }, this)) |
677 | //console.log("THIS._BINDINGS", this._bindings); | ||
678 | 670 | ||
679 | return newBindingValues; | 671 | return newBindingValues; |
680 | 672 | ||
681 | /* | 673 | /* |
682 | this._bindings = {}; | 674 | this._bindings = {}; |
683 | //console.log("CONFIGURATION", aConfiguration); | ||
684 | 675 | ||
685 | if (someValues['currentValues'] != null) { | 676 | if (someValues['currentValues'] != null) { |
686 | if (someValues['currentValues']['bindingData'] != null) { | 677 | if (someValues['currentValues']['bindingData'] != null) { |
687 | var bindingKey; | 678 | var bindingKey; |
688 | 679 | ||
689 | //console.log("BINDING DATA", someValues['currentValues']['bindingData']); | ||
690 | for (bindingKey in someValues['currentValues']['bindingData']) { | 680 | for (bindingKey in someValues['currentValues']['bindingData']) { |
691 | var newBinding; | 681 | var newBinding; |
692 | 682 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginBinding.js b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginBinding.js index 4377853..a8ebb97 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginBinding.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginBinding.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginFormValue.js b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginFormValue.js index a461197..2429f88 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginFormValue.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginFormValue.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -87,7 +85,6 @@ Clipperz.PM.DataModel.DirectLoginFormValue.prototype = MochiKit.Base.update(null | |||
87 | }, | 85 | }, |
88 | 86 | ||
89 | 'setValue': function (aValue) { | 87 | 'setValue': function (aValue) { |
90 | //console.log("DirectLoginFormValue.setValue", aValue); | ||
91 | this._value = aValue; | 88 | this._value = aValue; |
92 | return this.directLogin().setValue('formValues' + '.' + this.key(), aValue); | 89 | return this.directLogin().setValue('formValues' + '.' + this.key(), aValue); |
93 | }, | 90 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginInput.js b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginInput.js index 8188389..d9995fc 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginInput.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/DirectLoginInput.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -76,7 +74,7 @@ Clipperz.PM.DataModel.DirectLoginInput.prototype = MochiKit.Base.update(null, { | |||
76 | /* | 74 | /* |
77 | 'formConfiguration': function(someFormValues, someBindings, someFields) { | 75 | 'formConfiguration': function(someFormValues, someBindings, someFields) { |
78 | var result; | 76 | var result; |
79 | //console.log("### DirectLoginInput.formConfiguration", someFields); | 77 | |
80 | if (this.shouldSetValue()) { | 78 | if (this.shouldSetValue()) { |
81 | switch (this.type()) { | 79 | switch (this.type()) { |
82 | case 'select': | 80 | case 'select': |
@@ -154,12 +152,6 @@ Clipperz.PM.DataModel.DirectLoginInput.prototype = MochiKit.Base.update(null, { | |||
154 | // binding = this.directLogin().bindings()[this.name()]; | 152 | // binding = this.directLogin().bindings()[this.name()]; |
155 | binding = someBindings[this.name()]; | 153 | binding = someBindings[this.name()]; |
156 | 154 | ||
157 | //console.log("### binding", binding); | ||
158 | //if (binding != null) { | ||
159 | ///console.log(" binding.field()", binding.field()); | ||
160 | ///console.log(" binding.field().value()", binding.field().value()); | ||
161 | //console.log(" someFields[binding.fieldKey()].value()", someFields[binding.fieldKey()].value()); | ||
162 | //} | ||
163 | result = MochiKit.DOM.INPUT({ | 155 | result = MochiKit.DOM.INPUT({ |
164 | type:((this.type() != 'password') ? this.type() : 'text'), | 156 | type:((this.type() != 'password') ? this.type() : 'text'), |
165 | name:this.name(), | 157 | name:this.name(), |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/EncryptedRemoteObject.js b/frontend/gamma/js/Clipperz/PM/DataModel/EncryptedRemoteObject.js index cdeec8b..1aa7a52 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/EncryptedRemoteObject.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/EncryptedRemoteObject.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -411,10 +409,6 @@ Clipperz.PM.DataModel.EncryptedRemoteObject.prototype = MochiKit.Base.update(nul | |||
411 | ] | 409 | ] |
412 | }); | 410 | }); |
413 | deferredResult.addCallback(function (someValues) { | 411 | deferredResult.addCallback(function (someValues) { |
414 | //if (someValues['decryptedData'] != someValues['objectData']) { | ||
415 | //console.log("ORIGINAL DATA", '[[[' + someValues['decryptedData'] + ']]]'); | ||
416 | //console.log("CURRENT DATA", '>>>' + someValues['objectData'] + '<<<'); | ||
417 | //} | ||
418 | return (someValues['decryptedData'] != someValues['objectData']); | 412 | return (someValues['decryptedData'] != someValues['objectData']); |
419 | }); | 413 | }); |
420 | deferredResult.callback(); | 414 | deferredResult.callback(); |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/OneTimePassword.js b/frontend/gamma/js/Clipperz/PM/DataModel/OneTimePassword.js index 834e21b..fbca1ff 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/OneTimePassword.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/OneTimePassword.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -143,12 +141,12 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
143 | getRandomBytes = MochiKit.Base.method(Clipperz.Crypto.PRNG.defaultRandomGenerator(), 'getRandomBytes'); | 141 | getRandomBytes = MochiKit.Base.method(Clipperz.Crypto.PRNG.defaultRandomGenerator(), 'getRandomBytes'); |
144 | 142 | ||
145 | encodedPassphrase = new Clipperz.ByteArray(this.user().passphrase()).toBase64String(); | 143 | encodedPassphrase = new Clipperz.ByteArray(this.user().passphrase()).toBase64String(); |
146 | //MochiKit.Logging.logDebug("--- encodedPassphrase.length: " + encodedPassphrase.length); | 144 | //Clipperz.logDebug("--- encodedPassphrase.length: " + encodedPassphrase.length); |
147 | prefixPadding = getRandomBytes(getRandomBytes(1).byteAtIndex(0)).toBase64String(); | 145 | prefixPadding = getRandomBytes(getRandomBytes(1).byteAtIndex(0)).toBase64String(); |
148 | //MochiKit.Logging.logDebug("--- prefixPadding.length: " + prefixPadding.length); | 146 | //Clipperz.logDebug("--- prefixPadding.length: " + prefixPadding.length); |
149 | suffixPadding = getRandomBytes((500 - prefixPadding.length - encodedPassphrase.length) * 6 / 8).toBase64String(); | 147 | suffixPadding = getRandomBytes((500 - prefixPadding.length - encodedPassphrase.length) * 6 / 8).toBase64String(); |
150 | //MochiKit.Logging.logDebug("--- suffixPadding.length: " + suffixPadding.length); | 148 | //Clipperz.logDebug("--- suffixPadding.length: " + suffixPadding.length); |
151 | //MochiKit.Logging.logDebug("--- total.length: " + (prefixPadding.length + encodedPassphrase.length + suffixPadding.length)); | 149 | //Clipperz.logDebug("--- total.length: " + (prefixPadding.length + encodedPassphrase.length + suffixPadding.length)); |
152 | 150 | ||
153 | packedPassphrase = { | 151 | packedPassphrase = { |
154 | 'prefix': prefixPadding, | 152 | 'prefix': prefixPadding, |
@@ -158,8 +156,8 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
158 | 156 | ||
159 | // result = Clipperz.Base.serializeJSON(packedPassphrase); | 157 | // result = Clipperz.Base.serializeJSON(packedPassphrase); |
160 | result = packedPassphrase; | 158 | result = packedPassphrase; |
161 | //MochiKit.Logging.logDebug("===== OTP packedPassprase: [" + result.length + "]" + result); | 159 | //Clipperz.logDebug("===== OTP packedPassprase: [" + result.length + "]" + result); |
162 | //MochiKit.Logging.logDebug("<<< OneTimePassword.packedPassphrase"); | 160 | //Clipperz.logDebug("<<< OneTimePassword.packedPassphrase"); |
163 | 161 | ||
164 | return result; | 162 | return result; |
165 | }, | 163 | }, |
@@ -176,8 +174,8 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
176 | var deferredResult; | 174 | var deferredResult; |
177 | varresult; | 175 | varresult; |
178 | 176 | ||
179 | //MochiKit.Logging.logDebug(">>> OneTimePassword.encryptedData"); | 177 | //Clipperz.logDebug(">>> OneTimePassword.encryptedData"); |
180 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - id: " + this.reference()); | 178 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - id: " + this.reference()); |
181 | result = { | 179 | result = { |
182 | 'reference': this.reference(), | 180 | 'reference': this.reference(), |
183 | 'key': this.key(), | 181 | 'key': this.key(), |
@@ -185,22 +183,22 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
185 | 'data': "", | 183 | 'data': "", |
186 | 'version': Clipperz.PM.Crypto.encryptingFunctions.currentVersion | 184 | 'version': Clipperz.PM.Crypto.encryptingFunctions.currentVersion |
187 | } | 185 | } |
188 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - 2: " + Clipperz.Base.serializeJSON(result)); | 186 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - 2: " + Clipperz.Base.serializeJSON(result)); |
189 | deferredResult = new MochiKit.Async.Deferred(); | 187 | deferredResult = new MochiKit.Async.Deferred(); |
190 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - 3"); | 188 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - 3"); |
191 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.encryptedData - 1: " + res); return res;}); | 189 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.encryptedData - 1: " + res); return res;}); |
192 | //# deferredResult.addCallback(Clipperz.PM.Crypto.deferredEncryptWithCurrentVersion, this.passwordValue(), this.packedPassphrase()); | 190 | //# deferredResult.addCallback(Clipperz.PM.Crypto.deferredEncryptWithCurrentVersion, this.passwordValue(), this.packedPassphrase()); |
193 | deferredResult.addCallback(MochiKit.Base.method(this, 'encryptedPackedPassphrase')); | 191 | deferredResult.addCallback(MochiKit.Base.method(this, 'encryptedPackedPassphrase')); |
194 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - 4"); | 192 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - 4"); |
195 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.encryptedData - 2: [" + res.length + "]" + res); return res;}); | 193 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.encryptedData - 2: [" + res.length + "]" + res); return res;}); |
196 | deferredResult.addCallback(function(aResult, res) { | 194 | deferredResult.addCallback(function(aResult, res) { |
197 | aResult['data'] = res; | 195 | aResult['data'] = res; |
198 | return aResult; | 196 | return aResult; |
199 | }, result); | 197 | }, result); |
200 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - 5"); | 198 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - 5"); |
201 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.encryptedData - 3: " + Clipperz.Base.serializeJSON(res)); return res;}); | 199 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.encryptedData - 3: " + Clipperz.Base.serializeJSON(res)); return res;}); |
202 | deferredResult.callback(); | 200 | deferredResult.callback(); |
203 | //MochiKit.Logging.logDebug("--- OneTimePassword.encryptedData - 6"); | 201 | //Clipperz.logDebug("--- OneTimePassword.encryptedData - 6"); |
204 | 202 | ||
205 | return deferredResult; | 203 | return deferredResult; |
206 | }, | 204 | }, |
@@ -211,7 +209,7 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
211 | var deferredResult; | 209 | var deferredResult; |
212 | varresult; | 210 | varresult; |
213 | 211 | ||
214 | //MochiKit.Logging.logDebug(">>> OneTimePassword.saveChanges"); | 212 | //Clipperz.logDebug(">>> OneTimePassword.saveChanges"); |
215 | result = {}; | 213 | result = {}; |
216 | deferredResult = new MochiKit.Async.Deferred(); | 214 | deferredResult = new MochiKit.Async.Deferred(); |
217 | 215 | ||
@@ -230,16 +228,16 @@ Clipperz.PM.DataModel.OneTimePassword.prototype = MochiKit.Base.update(null, { | |||
230 | }, result); | 228 | }, result); |
231 | 229 | ||
232 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'saveOTP_sendingData'); | 230 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'saveOTP_sendingData'); |
233 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.saveChanges - 1: " + Clipperz.Base.serializeJSON(res)); return res;}); | 231 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.saveChanges - 1: " + Clipperz.Base.serializeJSON(res)); return res;}); |
234 | deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'addNewOneTimePassword'); | 232 | deferredResult.addCallback(MochiKit.Base.method(this.user().connection(), 'message'), 'addNewOneTimePassword'); |
235 | 233 | ||
236 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'saveOTP_updatingInterface'); | 234 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'updatedProgressState', 'saveOTP_updatingInterface'); |
237 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.saveChanges - 2: " + res); return res;}); | 235 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.saveChanges - 2: " + res); return res;}); |
238 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'notify', 'OTPUpdated'); | 236 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'notify', 'OTPUpdated'); |
239 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'oneTimePassword_saveChanges_done', null); | 237 | deferredResult.addCallback(Clipperz.NotificationCenter.deferredNotification, this, 'oneTimePassword_saveChanges_done', null); |
240 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("OneTimePassword.saveChanges - 2: " + res); return res;}); | 238 | //deferredResult.addBoth(function(res) {Clipperz.logDebug("OneTimePassword.saveChanges - 2: " + res); return res;}); |
241 | deferredResult.callback(); | 239 | deferredResult.callback(); |
242 | //MochiKit.Logging.logDebug("<<< OneTimePassword.saveChanges"); | 240 | //Clipperz.logDebug("<<< OneTimePassword.saveChanges"); |
243 | 241 | ||
244 | return deferredResult; | 242 | return deferredResult; |
245 | }, | 243 | }, |
@@ -308,7 +306,6 @@ Clipperz.PM.DataModel.OneTimePassword.isValidOneTimePasswordValue = function(aPa | |||
308 | var result; | 306 | var result; |
309 | 307 | ||
310 | //"yaxx k7ww - f8y6 tqz5 - 58b6 th44 - 9cwv q0fg" | 308 | //"yaxx k7ww - f8y6 tqz5 - 58b6 th44 - 9cwv q0fg" |
311 | //console.log("Clipperz.PM.DataModel.OneTimePassword.isValidOneTimePasswordValue", aPassword); | ||
312 | if (aPassword.replace(/[\s\-]/g, '').length == 32) { | 309 | if (aPassword.replace(/[\s\-]/g, '').length == 32) { |
313 | try { | 310 | try { |
314 | var passwordByteArray; | 311 | var passwordByteArray; |
@@ -347,7 +344,6 @@ Clipperz.PM.DataModel.OneTimePassword.normalizedOneTimePassword = function(aPass | |||
347 | result = aPassword; | 344 | result = aPassword; |
348 | } | 345 | } |
349 | 346 | ||
350 | //console.log("Clipperz.PM.DataModel.OneTimePassword.normalizedOneTimePassword", aPassword, result); | ||
351 | return result; | 347 | return result; |
352 | } | 348 | } |
353 | 349 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.Field.js b/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.Field.js index f51bbc2..986db40 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.Field.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.Field.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.js b/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.js index dd35fc9..87b319c 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/Record.Version.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -28,7 +26,6 @@ try { if (typeof(Clipperz.PM.DataModel.Record) == 'undefined') { throw ""; }} ca | |||
28 | } | 26 | } |
29 | 27 | ||
30 | Clipperz.PM.DataModel.Record.Version = function(args) { | 28 | Clipperz.PM.DataModel.Record.Version = function(args) { |
31 | //console.log(">>> Record.new"); | ||
32 | Clipperz.PM.DataModel.Record.Version.superclass.constructor.apply(this, arguments); | 29 | Clipperz.PM.DataModel.Record.Version.superclass.constructor.apply(this, arguments); |
33 | 30 | ||
34 | this._getVersionFunction = args.getVersion|| Clipperz.Base.exception.raise('MandatoryParameter'); | 31 | this._getVersionFunction = args.getVersion|| Clipperz.Base.exception.raise('MandatoryParameter'); |
@@ -99,7 +96,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record.Version, Clipperz.PM.DataModel | |||
99 | 'unpackData': function (someData) { //++ | 96 | 'unpackData': function (someData) { //++ |
100 | varresult; | 97 | varresult; |
101 | 98 | ||
102 | //console.log("Record.Version - UNPACK DATA", this, someData); | ||
103 | result = someData; | 99 | result = someData; |
104 | if ((someData['fields'] != null) && (someData['fields'] instanceof Array)) { | 100 | if ((someData['fields'] != null) && (someData['fields'] instanceof Array)) { |
105 | varfields; | 101 | varfields; |
@@ -292,7 +288,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record.Version, Clipperz.PM.DataModel | |||
292 | 288 | ||
293 | result = {}; | 289 | result = {}; |
294 | 290 | ||
295 | //console.log("prepareRemoteDataWithKey", aKey); | ||
296 | deferredResult = new Clipperz.Async.Deferred("Record.Version.prepareRemoteDataWithKey", {trace:false}); | 291 | deferredResult = new Clipperz.Async.Deferred("Record.Version.prepareRemoteDataWithKey", {trace:false}); |
297 | if (this.isBrandNew() == false) { | 292 | if (this.isBrandNew() == false) { |
298 | this.transientState()['originalReference'] = this.reference(); | 293 | this.transientState()['originalReference'] = this.reference(); |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/Record.js b/frontend/gamma/js/Clipperz/PM/DataModel/Record.js index b816f80..3fc1813 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/Record.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/Record.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -29,7 +27,6 @@ if (typeof(Clipperz.PM.DataModel) == 'undefined') { Clipperz.PM.DataModel = {}; | |||
29 | 27 | ||
30 | 28 | ||
31 | Clipperz.PM.DataModel.Record = function(args) { | 29 | Clipperz.PM.DataModel.Record = function(args) { |
32 | //console.log(">>> new Clipperz.PM.DataModel.Record", args); | ||
33 | Clipperz.PM.DataModel.Record.superclass.constructor.apply(this, arguments); | 30 | Clipperz.PM.DataModel.Record.superclass.constructor.apply(this, arguments); |
34 | 31 | ||
35 | this._updateDate = (args.updateDate ? Clipperz.PM.Date.parse(args.updateDate) : Clipperz.Base.exception.raise('MandatoryParameter')); | 32 | this._updateDate = (args.updateDate ? Clipperz.PM.Date.parse(args.updateDate) : Clipperz.Base.exception.raise('MandatoryParameter')); |
@@ -62,8 +59,6 @@ Clipperz.PM.DataModel.Record = function(args) { | |||
62 | // this.setLabel(''); | 59 | // this.setLabel(''); |
63 | } | 60 | } |
64 | 61 | ||
65 | //console.log("<<< new Clipperz.PM.DataModel.Record", args); | ||
66 | |||
67 | return this; | 62 | return this; |
68 | } | 63 | } |
69 | 64 | ||
@@ -210,7 +205,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
210 | 'searchableContent': function () { | 205 | 'searchableContent': function () { |
211 | var deferredResult; | 206 | var deferredResult; |
212 | 207 | ||
213 | //console.log(">>> searchableContent"); | ||
214 | deferredResult = new Clipperz.Async.Deferred("Record.searchableContent", {trace:false}); | 208 | deferredResult = new Clipperz.Async.Deferred("Record.searchableContent", {trace:false}); |
215 | 209 | ||
216 | deferredResult.collectResults({ | 210 | deferredResult.collectResults({ |
@@ -224,7 +218,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
224 | return someValues['recordLabel'] + ' ' + someValues['directLoginLabels'].join(' '); | 218 | return someValues['recordLabel'] + ' ' + someValues['directLoginLabels'].join(' '); |
225 | }); | 219 | }); |
226 | deferredResult.callback(); | 220 | deferredResult.callback(); |
227 | //console.log("<<< searchableContent"); | ||
228 | 221 | ||
229 | return deferredResult; | 222 | return deferredResult; |
230 | }, | 223 | }, |
@@ -270,7 +263,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
270 | 'saveOriginalDirectLoginStatusToTransientState': function () { | 263 | 'saveOriginalDirectLoginStatusToTransientState': function () { |
271 | if (this.transientState().getValue('directLogins') == null) { | 264 | if (this.transientState().getValue('directLogins') == null) { |
272 | // this.transientState().setValue('directLogins', this._directLogins) | 265 | // this.transientState().setValue('directLogins', this._directLogins) |
273 | //console.log("SET TRANSIENT STATE", Clipperz.Base.serializeJSON(MochiKit.Base.keys(this.transientState().getValue('directLogins')))) | ||
274 | MochiKit.Iter.forEach(MochiKit.Base.keys(this._directLogins), MochiKit.Base.bind(function(aKey) { | 266 | MochiKit.Iter.forEach(MochiKit.Base.keys(this._directLogins), MochiKit.Base.bind(function(aKey) { |
275 | this.transientState().setValue('directLogins' + '.' + aKey, this._directLogins[aKey]) | 267 | this.transientState().setValue('directLogins' + '.' + aKey, this._directLogins[aKey]) |
276 | }, this)) | 268 | }, this)) |
@@ -329,7 +321,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
329 | 'unpackRemoteData': function (someData) { | 321 | 'unpackRemoteData': function (someData) { |
330 | var result; | 322 | var result; |
331 | 323 | ||
332 | //console.log("new Clipperz.PM.DataModel.Record.Version [2]"); | ||
333 | /* | 324 | /* |
334 | this._currentRecordVersion = new Clipperz.PM.DataModel.Record.Version({ | 325 | this._currentRecordVersion = new Clipperz.PM.DataModel.Record.Version({ |
335 | 'reference': someData['currentVersion']['reference'], | 326 | 'reference': someData['currentVersion']['reference'], |
@@ -340,7 +331,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
340 | var versionKey; | 331 | var versionKey; |
341 | 332 | ||
342 | for (versionKey in someData['versions']) { | 333 | for (versionKey in someData['versions']) { |
343 | //console.log("### versionKey", versionKey); | ||
344 | this._versions[versionKey] = new Clipperz.PM.DataModel.Record.Version({ | 334 | this._versions[versionKey] = new Clipperz.PM.DataModel.Record.Version({ |
345 | 'reference': versionKey, | 335 | 'reference': versionKey, |
346 | 'retrieveKeyFunction':MochiKit.Base.method(this, 'getVersionKey'), | 336 | 'retrieveKeyFunction':MochiKit.Base.method(this, 'getVersionKey'), |
@@ -351,7 +341,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
351 | 341 | ||
352 | // this._currentVersionReference = someData['currentVersion']['reference']; | 342 | // this._currentVersionReference = someData['currentVersion']['reference']; |
353 | this._currentVersionReference = someData['currentVersion']; | 343 | this._currentVersionReference = someData['currentVersion']; |
354 | //console.log("=== currentVersionReference", this._currentVersionReference, someData); | ||
355 | 344 | ||
356 | result = Clipperz.PM.DataModel.Record.superclass.unpackRemoteData.apply(this, arguments); | 345 | result = Clipperz.PM.DataModel.Record.superclass.unpackRemoteData.apply(this, arguments); |
357 | 346 | ||
@@ -536,7 +525,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
536 | //......................................................................... | 525 | //......................................................................... |
537 | 526 | ||
538 | 'currentVersionReference': function () { | 527 | 'currentVersionReference': function () { |
539 | //console.log("currentVersionReference"); | ||
540 | return this._currentVersionReference; | 528 | return this._currentVersionReference; |
541 | }, | 529 | }, |
542 | 530 | ||
@@ -585,7 +573,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
585 | //------------------------------------------------------------------------- | 573 | //------------------------------------------------------------------------- |
586 | 574 | ||
587 | 'getCurrentRecordVersionKey': function () { | 575 | 'getCurrentRecordVersionKey': function () { |
588 | //console.log("getCurrentRecordVersionKey"); | ||
589 | return Clipperz.Async.callbacks("Record.getCurrentRecordVersionKey", [ | 576 | return Clipperz.Async.callbacks("Record.getCurrentRecordVersionKey", [ |
590 | MochiKit.Base.method(this, 'getValue', 'currentVersionKey'), | 577 | MochiKit.Base.method(this, 'getValue', 'currentVersionKey'), |
591 | Clipperz.Async.deferredIf("currentVersionKey is NOT null", [ | 578 | Clipperz.Async.deferredIf("currentVersionKey is NOT null", [ |
@@ -606,10 +593,8 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
606 | //------------------------------------------------------------------------- | 593 | //------------------------------------------------------------------------- |
607 | 594 | ||
608 | 'invokeCurrentRecordVersionMethod': function (aMethodName, someValues) { | 595 | 'invokeCurrentRecordVersionMethod': function (aMethodName, someValues) { |
609 | //console.log(">>> invokeCurrentRecordVersionMethod", aMethodName); | ||
610 | return Clipperz.Async.callbacks("Record.invokeCurrentRecordVersionMethod", [ | 596 | return Clipperz.Async.callbacks("Record.invokeCurrentRecordVersionMethod", [ |
611 | MochiKit.Base.method(this, 'getCurrentRecordVersion'), | 597 | MochiKit.Base.method(this, 'getCurrentRecordVersion'), |
612 | //function (aValue) { console.log("=== getCurrentRecordVersion", aValue); return aValue}, | ||
613 | MochiKit.Base.methodcaller(aMethodName, someValues) | 598 | MochiKit.Base.methodcaller(aMethodName, someValues) |
614 | ], {trace:false}); | 599 | ], {trace:false}); |
615 | }, | 600 | }, |
@@ -618,16 +603,11 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
618 | 'lazilyinvokeCurrentRecordVersionMethod': function (aMethodName, someValues, defaultResult) { | 603 | 'lazilyinvokeCurrentRecordVersionMethod': function (aMethodName, someValues, defaultResult) { |
619 | return Clipperz.Async.callbacks("Record.lazilyinvokeCurrentRecordVersionMethod", [ | 604 | return Clipperz.Async.callbacks("Record.lazilyinvokeCurrentRecordVersionMethod", [ |
620 | MochiKit.Base.method(this, 'currentVersionReference'), | 605 | MochiKit.Base.method(this, 'currentVersionReference'), |
621 | //function (aValue) { console.log("LAZY -> versions", aValue); return aValue; }, | ||
622 | Clipperz.Async.deferredIf("versions has been loaded", [ | 606 | Clipperz.Async.deferredIf("versions has been loaded", [ |
623 | //function (aValue) { console.log("LAZY -> then"); return aValue; }, | ||
624 | MochiKit.Base.method(this, 'getCurrentRecordVersion'), | 607 | MochiKit.Base.method(this, 'getCurrentRecordVersion'), |
625 | MochiKit.Base.methodcaller(aMethodName, someValues), | 608 | MochiKit.Base.methodcaller(aMethodName, someValues), |
626 | //function (aValue) { console.log("LAZY <- then"); return aValue; } | ||
627 | ], [ | 609 | ], [ |
628 | //function (aValue) { console.log("LAZY -> else"); return aValue; }, | ||
629 | MochiKit.Base.partial(MochiKit.Async.succeed, defaultResult), | 610 | MochiKit.Base.partial(MochiKit.Async.succeed, defaultResult), |
630 | //function (aValue) { console.log("LAZY <- else"); return aValue; } | ||
631 | ]) | 611 | ]) |
632 | ], {trace:false}); | 612 | ], {trace:false}); |
633 | }, | 613 | }, |
@@ -648,7 +628,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
648 | ], | 628 | ], |
649 | 'directLogins': [ | 629 | 'directLogins': [ |
650 | MochiKit.Base.method(this, 'directLogins'), | 630 | MochiKit.Base.method(this, 'directLogins'), |
651 | //function (aValue) { console.log("Record.directLogins", aValue); return aValue; }, | ||
652 | MochiKit.Base.values, | 631 | MochiKit.Base.values, |
653 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.methodcaller('hasPendingChanges')), | 632 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.methodcaller('hasPendingChanges')), |
654 | Clipperz.Async.collectAll, | 633 | Clipperz.Async.collectAll, |
@@ -658,7 +637,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
658 | // } | 637 | // } |
659 | ] | 638 | ] |
660 | }); | 639 | }); |
661 | //deferredResult.addCallback(function (aValue) { console.log("Record.hasPendingResults", aValue); return aValue; }); | ||
662 | deferredResult.addCallback(MochiKit.Base.values); | 640 | deferredResult.addCallback(MochiKit.Base.values); |
663 | deferredResult.addCallback(MochiKit.Base.bind(function(someValues) { | 641 | deferredResult.addCallback(MochiKit.Base.bind(function(someValues) { |
664 | var result; | 642 | var result; |
@@ -776,7 +754,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
776 | MochiKit.Base.method(this, 'lazilyinvokeCurrentRecordVersionMethod', 'resetTransientState'), | 754 | MochiKit.Base.method(this, 'lazilyinvokeCurrentRecordVersionMethod', 'resetTransientState'), |
777 | 755 | ||
778 | MochiKit.Base.method(this, 'directLogins'), | 756 | MochiKit.Base.method(this, 'directLogins'), |
779 | //function (aValue) { console.log("resetTransientState - directLogins", aValue); return aValue; }, | ||
780 | MochiKit.Base.values, | 757 | MochiKit.Base.values, |
781 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.methodcaller('resetTransientState')), | 758 | MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.methodcaller('resetTransientState')), |
782 | 759 | ||
@@ -816,7 +793,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.Record, Clipperz.PM.DataModel.Encrypt | |||
816 | //========================================================================= | 793 | //========================================================================= |
817 | 794 | ||
818 | 'retrieveDirectLoginIndexDataFunction': function () { | 795 | 'retrieveDirectLoginIndexDataFunction': function () { |
819 | //console.log("Record.retrieveDirectLoginIndexDataFunction", this._retrieveDirectLoginIndexDataFunction); | ||
820 | return this._retrieveDirectLoginIndexDataFunction; | 796 | return this._retrieveDirectLoginIndexDataFunction; |
821 | }, | 797 | }, |
822 | 798 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Legacy.js b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Legacy.js index d6202ff..cda5a41 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Legacy.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Legacy.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.OneTimePasswords.js b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.OneTimePasswords.js index 3528db6..e82da47 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.OneTimePasswords.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.OneTimePasswords.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -51,9 +49,7 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User.Header.OneTimePasswords, Clipper | |||
51 | 'packData': function (someData) { //++ | 49 | 'packData': function (someData) { //++ |
52 | var result; | 50 | var result; |
53 | 51 | ||
54 | console.log(">>> OneTimePasswords.packData", someData); | ||
55 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.packData.apply(this, arguments); | 52 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.packData.apply(this, arguments); |
56 | console.log("<<< OneTimePasswords.packData"); | ||
57 | 53 | ||
58 | return result; | 54 | return result; |
59 | }, | 55 | }, |
@@ -63,9 +59,7 @@ console.log("<<< OneTimePasswords.packData"); | |||
63 | 'packRemoteData': function (someData) { | 59 | 'packRemoteData': function (someData) { |
64 | var result; | 60 | var result; |
65 | 61 | ||
66 | console.log(">>> OneTimePasswords.packRemoteData", someData); | ||
67 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.packRemoteData.apply(this, arguments); | 62 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.packRemoteData.apply(this, arguments); |
68 | console.log("<<< OneTimePasswords.packRemoteData"); | ||
69 | 63 | ||
70 | return result; | 64 | return result; |
71 | }, | 65 | }, |
@@ -75,9 +69,7 @@ console.log("<<< OneTimePasswords.packRemoteData"); | |||
75 | 'prepareRemoteDataWithKey': function (aKey) { | 69 | 'prepareRemoteDataWithKey': function (aKey) { |
76 | var result; | 70 | var result; |
77 | 71 | ||
78 | console.log(">>> OneTimePasswords.prepareRemoteDataWithKey"); | ||
79 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.prepareRemoteDataWithKey.apply(this, arguments); | 72 | result = Clipperz.PM.DataModel.User.Header.OneTimePasswords.superclass.prepareRemoteDataWithKey.apply(this, arguments); |
80 | console.log("<<< OneTimePasswords.prepareRemoteDataWithKey"); | ||
81 | 73 | ||
82 | return result; | 74 | return result; |
83 | }, | 75 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Preferences.js b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Preferences.js index b164889..f1f95e8 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Preferences.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.Preferences.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.RecordIndex.js b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.RecordIndex.js index f77ea80..5681f70 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.RecordIndex.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/User.Header.RecordIndex.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -32,7 +30,6 @@ if (typeof(Clipperz.PM.DataModel.User.Header) == 'undefined') { Clipperz.PM.Data | |||
32 | Clipperz.PM.DataModel.User.Header.RecordIndex = function(args) { | 30 | Clipperz.PM.DataModel.User.Header.RecordIndex = function(args) { |
33 | Clipperz.PM.DataModel.User.Header.RecordIndex.superclass.constructor.apply(this, arguments); | 31 | Clipperz.PM.DataModel.User.Header.RecordIndex.superclass.constructor.apply(this, arguments); |
34 | 32 | ||
35 | //console.log("NEW Clipperz.PM.DataModel.User.Header.RecordIndex", args); | ||
36 | this._recordsData = new Clipperz.PM.DataModel.EncryptedRemoteObject({ | 33 | this._recordsData = new Clipperz.PM.DataModel.EncryptedRemoteObject({ |
37 | 'name':'recordsData', | 34 | 'name':'recordsData', |
38 | 'retrieveKeyFunction': args.retrieveKeyFunction, | 35 | 'retrieveKeyFunction': args.retrieveKeyFunction, |
@@ -118,7 +115,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User.Header.RecordIndex, Object, { | |||
118 | }, | 115 | }, |
119 | 116 | ||
120 | 'resetTransientState': function (isCommitting) { | 117 | 'resetTransientState': function (isCommitting) { |
121 | //console.log("######## UserHeaderRecordIndex - resetTransientState", Clipperz.Base.deepClone(this._transientState)); | ||
122 | if (this._transientState != null) { | 118 | if (this._transientState != null) { |
123 | this._transientState.removeAllData(); | 119 | this._transientState.removeAllData(); |
124 | } | 120 | } |
@@ -158,7 +154,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User.Header.RecordIndex, Object, { | |||
158 | }, | 154 | }, |
159 | 155 | ||
160 | 'setDirectLoginIndexData': function (aDirectLoginReference, aKey, aValue) { | 156 | 'setDirectLoginIndexData': function (aDirectLoginReference, aKey, aValue) { |
161 | //console.log("UserHeaderRecordIndex.setDirectLoginIndexData", aDirectLoginReference, this.directLoginsIndex()[aDirectLoginReference], aKey); | ||
162 | //if (MochiKit.Base.isUndefinedOrNull(this.directLoginsIndex()[aDirectLoginReference])) { | 157 | //if (MochiKit.Base.isUndefinedOrNull(this.directLoginsIndex()[aDirectLoginReference])) { |
163 | //throw "PIPPO"; | 158 | //throw "PIPPO"; |
164 | //} | 159 | //} |
@@ -166,7 +161,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User.Header.RecordIndex, Object, { | |||
166 | }, | 161 | }, |
167 | 162 | ||
168 | 'addDirectLoginIndexData': function (aDirectLoginReference) { | 163 | 'addDirectLoginIndexData': function (aDirectLoginReference) { |
169 | //console.log("UserHeaderRecordIndex.addDirectLoginIndexData", aDirectLoginReference, this.directLoginsIndex()[aDirectLoginReference]); | ||
170 | return this.directLoginsData().setValue(this.directLoginsIndex()[aDirectLoginReference], {}); | 164 | return this.directLoginsData().setValue(this.directLoginsIndex()[aDirectLoginReference], {}); |
171 | }, | 165 | }, |
172 | 166 | ||
@@ -261,12 +255,7 @@ Clipperz.log("SKIPPING record " + reference + " as there are no stas associated | |||
261 | 'record': record | 255 | 'record': record |
262 | }); | 256 | }); |
263 | } else { | 257 | } else { |
264 | Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | 258 | Clipperz.logWarning("WARNING: DIRECT LOGIN without a matching RECORD!!"); |
265 | //console.log("direct login data", someData['directLogins']); | ||
266 | //console.log("current direct login data", someData['directLogins'][indexReference]) | ||
267 | //console.log("reference", reference); | ||
268 | //console.log("record index", this.recordsIndex()); | ||
269 | //console.log("record inverted index", recordsInvertedIndex); | ||
270 | } | 259 | } |
271 | } | 260 | } |
272 | 261 | ||
@@ -305,7 +294,6 @@ Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | |||
305 | var deferredResult; | 294 | var deferredResult; |
306 | var newRecord; | 295 | var newRecord; |
307 | 296 | ||
308 | //console.log("#### new Clipperz.PM.DataModel.Record [4]"); | ||
309 | newRecord = new Clipperz.PM.DataModel.Record({ | 297 | newRecord = new Clipperz.PM.DataModel.Record({ |
310 | 'retrieveKeyFunction': MochiKit.Base.method(this, 'getRecordKey'), | 298 | 'retrieveKeyFunction': MochiKit.Base.method(this, 'getRecordKey'), |
311 | 'retrieveRemoteDataFunction':this.retrieveRecordDetailFunction(), | 299 | 'retrieveRemoteDataFunction':this.retrieveRecordDetailFunction(), |
@@ -386,9 +374,7 @@ Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | |||
386 | 374 | ||
387 | this.transientState().setValue('newDirectLoginReferences' + '.' + newDirectLogin.reference(), newDirectLogin); | 375 | this.transientState().setValue('newDirectLoginReferences' + '.' + newDirectLogin.reference(), newDirectLogin); |
388 | 376 | ||
389 | //console.log("UserHeaderRecordIndex.createNewDirectLogin [1]", newDirectLogin.reference(), newDirectLoginIndexValue); | ||
390 | this.directLoginsIndex()[newDirectLogin.reference()] = newDirectLoginIndexValue; | 377 | this.directLoginsIndex()[newDirectLogin.reference()] = newDirectLoginIndexValue; |
391 | //console.log("UserHeaderRecordIndex.createNewDirectLogin [2]", newDirectLogin.reference(), this.directLoginsIndex()[newDirectLogin.reference()]); | ||
392 | this.directLoginsData().setValue(this.directLoginsIndex()[newDirectLogin.reference()], {'record': this.recordsIndex()[aRecord.reference()]}); | 378 | this.directLoginsData().setValue(this.directLoginsIndex()[newDirectLogin.reference()], {'record': this.recordsIndex()[aRecord.reference()]}); |
393 | 379 | ||
394 | return newDirectLogin; | 380 | return newDirectLogin; |
@@ -431,7 +417,6 @@ Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | |||
431 | // Clipperz.Async.collectAll | 417 | // Clipperz.Async.collectAll |
432 | // ] | 418 | // ] |
433 | }); | 419 | }); |
434 | //deferredResult.addCallback(function (aValue) { console.log("USER.Header.RecordIndex.hasAnyCleanTextData", aValue); return aValue}); | ||
435 | 420 | ||
436 | // deferredResult.addCallback(MochiKit.Base.values); | 421 | // deferredResult.addCallback(MochiKit.Base.values); |
437 | // deferredResult.addCallback(MochiKit.Base.flattenArguments); | 422 | // deferredResult.addCallback(MochiKit.Base.flattenArguments); |
@@ -461,7 +446,6 @@ Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | |||
461 | MochiKit.Base.methodcaller('hasPendingChanges') | 446 | MochiKit.Base.methodcaller('hasPendingChanges') |
462 | ] | 447 | ] |
463 | }); | 448 | }); |
464 | //deferredResult.addCallback(function (aValue) { console.log("UserHeaderIndex.hasPendingResults", aValue); return aValue; }); | ||
465 | deferredResult.addCallback(Clipperz.Async.or); | 449 | deferredResult.addCallback(Clipperz.Async.or); |
466 | // deferredResult.addCallback(MochiKit.Base.values); | 450 | // deferredResult.addCallback(MochiKit.Base.values); |
467 | // deferredResult.addCallback(MochiKit.Base.flattenArguments); | 451 | // deferredResult.addCallback(MochiKit.Base.flattenArguments); |
@@ -570,7 +554,6 @@ Clipperz.log("WARNING: DIRECT LOGIN without a matching RECORD!!"); | |||
570 | var deferredResult; | 554 | var deferredResult; |
571 | var result; | 555 | var result; |
572 | 556 | ||
573 | //console.log("recordsIndex", this.recordsIndex()); | ||
574 | result = {}; | 557 | result = {}; |
575 | 558 | ||
576 | deferredResult = new Clipperz.Async.Deferred("User.Header.RecordIndex.prepareRemoteDataWithKey", {trace:false}); | 559 | deferredResult = new Clipperz.Async.Deferred("User.Header.RecordIndex.prepareRemoteDataWithKey", {trace:false}); |
diff --git a/frontend/gamma/js/Clipperz/PM/DataModel/User.js b/frontend/gamma/js/Clipperz/PM/DataModel/User.js index 646ce21..fd18faf 100644 --- a/frontend/gamma/js/Clipperz/PM/DataModel/User.js +++ b/frontend/gamma/js/Clipperz/PM/DataModel/User.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -328,7 +326,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User, Object, { | |||
328 | var preferences; | 326 | var preferences; |
329 | var oneTimePasswords; | 327 | var oneTimePasswords; |
330 | 328 | ||
331 | //console.log(">>> ***************** user.unpackServerData", someServerData); | ||
332 | // this.setServerLockValue(someServerData['lock']); | 329 | // this.setServerLockValue(someServerData['lock']); |
333 | 330 | ||
334 | headerVersion = this.headerFormatVersion(someServerData['header']); | 331 | headerVersion = this.headerFormatVersion(someServerData['header']); |
@@ -417,7 +414,6 @@ Clipperz.Base.extend(Clipperz.PM.DataModel.User, Object, { | |||
417 | }; | 414 | }; |
418 | 415 | ||
419 | this._serverData = unpackedData; | 416 | this._serverData = unpackedData; |
420 | //console.log("<<< ***************** user.unpackServerData", this._serverData); | ||
421 | 417 | ||
422 | return this._serverData; | 418 | return this._serverData; |
423 | }, | 419 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/Date.js b/frontend/gamma/js/Clipperz/PM/Date.js index 96a2700..a62857e 100644 --- a/frontend/gamma/js/Clipperz/PM/Date.js +++ b/frontend/gamma/js/Clipperz/PM/Date.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/PIN.js b/frontend/gamma/js/Clipperz/PM/PIN.js index bc932b2..a32889a 100644 --- a/frontend/gamma/js/Clipperz/PM/PIN.js +++ b/frontend/gamma/js/Clipperz/PM/PIN.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy.js b/frontend/gamma/js/Clipperz/PM/Proxy.js index 190bffd..a5eaae6 100644 --- a/frontend/gamma/js/Clipperz/PM/Proxy.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -69,7 +67,6 @@ Clipperz.PM.Proxy.prototype = MochiKit.Base.update(null, { | |||
69 | 'payToll': function(aRequestType, someParameters) { | 67 | 'payToll': function(aRequestType, someParameters) { |
70 | vardeferredResult; | 68 | vardeferredResult; |
71 | 69 | ||
72 | //console.log(">>> Proxy.payToll", aRequestType, someParameters); | ||
73 | if (this.shouldPayTolls()) { | 70 | if (this.shouldPayTolls()) { |
74 | deferredResult = new Clipperz.Async.Deferred("Proxy.payToll", {trace:false}); | 71 | deferredResult = new Clipperz.Async.Deferred("Proxy.payToll", {trace:false}); |
75 | 72 | ||
@@ -94,7 +91,6 @@ Clipperz.PM.Proxy.prototype = MochiKit.Base.update(null, { | |||
94 | } else { | 91 | } else { |
95 | deferredResult = MochiKit.Async.succeed({parameters:someParameters}); | 92 | deferredResult = MochiKit.Async.succeed({parameters:someParameters}); |
96 | } | 93 | } |
97 | //console.log("<<< Proxy.payToll"); | ||
98 | 94 | ||
99 | return deferredResult; | 95 | return deferredResult; |
100 | }, | 96 | }, |
@@ -102,20 +98,16 @@ Clipperz.PM.Proxy.prototype = MochiKit.Base.update(null, { | |||
102 | //------------------------------------------------------------------------- | 98 | //------------------------------------------------------------------------- |
103 | 99 | ||
104 | 'addToll': function(aToll) { | 100 | 'addToll': function(aToll) { |
105 | //console.log(">>> Proxy.addToll", aToll); | ||
106 | this.tolls()[aToll.requestType()].push(aToll); | 101 | this.tolls()[aToll.requestType()].push(aToll); |
107 | //console.log("<<< Proxy.addToll"); | ||
108 | }, | 102 | }, |
109 | 103 | ||
110 | //========================================================================= | 104 | //========================================================================= |
111 | 105 | ||
112 | 'setTollCallback': function(someParameters) { | 106 | 'setTollCallback': function(someParameters) { |
113 | //console.log(">>> Proxy.setTollCallback", someParameters); | ||
114 | if (typeof(someParameters['toll']) != 'undefined') { | 107 | if (typeof(someParameters['toll']) != 'undefined') { |
115 | //console.log("added a new toll", someParameters['toll']); | ||
116 | this.addToll(new Clipperz.PM.Toll(someParameters['toll'])); | 108 | this.addToll(new Clipperz.PM.Toll(someParameters['toll'])); |
117 | } | 109 | } |
118 | //console.log("<<< Proxy.setTallCallback", someParameters['result']); | 110 | |
119 | return someParameters['result']; | 111 | return someParameters['result']; |
120 | }, | 112 | }, |
121 | 113 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js index 5b39b4a..7d10dd4 100755 --- a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.JSON.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js index 01ba122..326022c 100644 --- a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.DataStore.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -107,7 +105,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
107 | 105 | ||
108 | deferredResult.addMethod(this, 'userSerializedEncryptedData', someData['users'][i]); | 106 | deferredResult.addMethod(this, 'userSerializedEncryptedData', someData['users'][i]); |
109 | deferredResult.addCallback(MochiKit.Base.bind(function(aUserSerializationContext) { | 107 | deferredResult.addCallback(MochiKit.Base.bind(function(aUserSerializationContext) { |
110 | //console.log("SERIALIZED USER", aUserSerializationContext); | ||
111 | resultData['users'][aUserSerializationContext['credentials']['C']] = { | 108 | resultData['users'][aUserSerializationContext['credentials']['C']] = { |
112 | 's': aUserSerializationContext['credentials']['s'], | 109 | 's': aUserSerializationContext['credentials']['s'], |
113 | 'v': aUserSerializationContext['credentials']['v'], | 110 | 'v': aUserSerializationContext['credentials']['v'], |
@@ -122,7 +119,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
122 | } | 119 | } |
123 | 120 | ||
124 | deferredResult.addCallback(MochiKit.Base.bind(function() { | 121 | deferredResult.addCallback(MochiKit.Base.bind(function() { |
125 | //console.log("this._data", resultData); | ||
126 | this._data = resultData; | 122 | this._data = resultData; |
127 | }, this)); | 123 | }, this)); |
128 | 124 | ||
@@ -395,7 +391,7 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
395 | } | 391 | } |
396 | nextTollRequestType = 'CONNECT'; | 392 | nextTollRequestType = 'CONNECT'; |
397 | } else { | 393 | } else { |
398 | MochiKit.Logging.logError("Clipperz.PM.Proxy.Test.handshake - unhandled message: " + someParameters.message); | 394 | Clipperz.logError("Clipperz.PM.Proxy.Test.handshake - unhandled message: " + someParameters.message); |
399 | } | 395 | } |
400 | 396 | ||
401 | result = { | 397 | result = { |
@@ -525,9 +521,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
525 | if (this.isReadOnly() == false) { | 521 | if (this.isReadOnly() == false) { |
526 | var i, c; | 522 | var i, c; |
527 | 523 | ||
528 | //console.log("###==============================================================="); | ||
529 | //console.log("###>>>", Clipperz.Base.serializeJSON(someParameters)); | ||
530 | //console.log("###--- userData", Clipperz.Base.serializeJSON(this.userData())); | ||
531 | if (this.userData()['lock']!= someParameters['parameters']['user']['lock']) { | 524 | if (this.userData()['lock']!= someParameters['parameters']['user']['lock']) { |
532 | throw "the lock attribute is not processed correctly" | 525 | throw "the lock attribute is not processed correctly" |
533 | } | 526 | } |
@@ -562,7 +555,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
562 | this.userData()['lock'] = Clipperz.PM.Crypto.randomKey(); | 555 | this.userData()['lock'] = Clipperz.PM.Crypto.randomKey(); |
563 | result['lock'] = this.userData()['lock']; | 556 | result['lock'] = this.userData()['lock']; |
564 | result['result'] = 'done'; | 557 | result['result'] = 'done'; |
565 | //console.log("###<<< userData", Clipperz.Base.serializeJSON(this.userData())); | ||
566 | } else { | 558 | } else { |
567 | throw Clipperz.PM.Proxy.Offline.DataStore.exception.ReadOnly; | 559 | throw Clipperz.PM.Proxy.Offline.DataStore.exception.ReadOnly; |
568 | } | 560 | } |
@@ -571,13 +563,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
571 | if (this.isReadOnly() == false) { | 563 | if (this.isReadOnly() == false) { |
572 | var i, c; | 564 | var i, c; |
573 | 565 | ||
574 | //console.log("###==============================================================="); | ||
575 | //console.log("###>>>", someParameters); | ||
576 | //console.log("###>>>", Clipperz.Base.serializeJSON(someParameters)); | ||
577 | //console.log("###--- userData", Clipperz.Base.serializeJSON(this.userData())); | ||
578 | //console.log("###==============================================================="); | ||
579 | //console.log("--- userData.lock ", this.userData()['lock']); | ||
580 | //console.log("--- parameters.lock", someParameters['parameters']['user']['lock']); | ||
581 | if (aConnection['userData']['lock']!= someParameters['parameters']['user']['lock']) { | 566 | if (aConnection['userData']['lock']!= someParameters['parameters']['user']['lock']) { |
582 | throw "the lock attribute is not processed correctly" | 567 | throw "the lock attribute is not processed correctly" |
583 | } | 568 | } |
@@ -599,7 +584,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
599 | && | 584 | && |
600 | (typeof(currentRecordData['currentRecordVersion']) == 'undefined') | 585 | (typeof(currentRecordData['currentRecordVersion']) == 'undefined') |
601 | ) { | 586 | ) { |
602 | //console.log("######## SHIT HAPPENS"); | ||
603 | throw "Record added without a recordVersion"; | 587 | throw "Record added without a recordVersion"; |
604 | } | 588 | } |
605 | 589 | ||
@@ -635,14 +619,12 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
635 | var currentRecordReference; | 619 | var currentRecordReference; |
636 | 620 | ||
637 | currentRecordReference = someParameters['parameters']['records']['deleted'][i]; | 621 | currentRecordReference = someParameters['parameters']['records']['deleted'][i]; |
638 | //console.log("DELETING records", currentRecordReference); | ||
639 | delete aConnection['userData']['records'][currentRecordReference]; | 622 | delete aConnection['userData']['records'][currentRecordReference]; |
640 | } | 623 | } |
641 | 624 | ||
642 | aConnection['userData']['lock'] = Clipperz.PM.Crypto.randomKey(); | 625 | aConnection['userData']['lock'] = Clipperz.PM.Crypto.randomKey(); |
643 | result['lock'] = aConnection['userData']['lock']; | 626 | result['lock'] = aConnection['userData']['lock']; |
644 | result['result'] = 'done'; | 627 | result['result'] = 'done'; |
645 | //console.log("###<<< userData", Clipperz.Base.serializeJSON(this.userData())); | ||
646 | } else { | 628 | } else { |
647 | throw Clipperz.PM.Proxy.Offline.DataStore.exception.ReadOnly; | 629 | throw Clipperz.PM.Proxy.Offline.DataStore.exception.ReadOnly; |
648 | } | 630 | } |
@@ -653,7 +635,7 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
653 | // | 635 | // |
654 | //===================================================================== | 636 | //===================================================================== |
655 | } else { | 637 | } else { |
656 | MochiKit.Logging.logError("Clipperz.PM.Proxy.Test.message - unhandled message: " + someParameters.message); | 638 | Clipperz.logError("Clipperz.PM.Proxy.Test.message - unhandled message: " + someParameters.message); |
657 | } | 639 | } |
658 | 640 | ||
659 | result = { | 641 | result = { |
@@ -686,12 +668,12 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
686 | var serializedHeader; | 668 | var serializedHeader; |
687 | var version; | 669 | var version; |
688 | 670 | ||
689 | //MochiKit.Logging.logDebug("### test data"); | 671 | //Clipperz.logDebug("### test data"); |
690 | version = aConnection['userData']['userDetailsVersion']; | 672 | version = aConnection['userData']['userDetailsVersion']; |
691 | serializedHeader = Clipperz.Base.serializeJSON(aConnection['userData']['userDetails']); | 673 | serializedHeader = Clipperz.Base.serializeJSON(aConnection['userData']['userDetails']); |
692 | result = Clipperz.PM.Crypto.encryptingFunctions.versions[version].encrypt(aConnection['userData']['__masterkey_test_value__'], serializedHeader); | 674 | result = Clipperz.PM.Crypto.encryptingFunctions.versions[version].encrypt(aConnection['userData']['__masterkey_test_value__'], serializedHeader); |
693 | } else { | 675 | } else { |
694 | //MochiKit.Logging.logDebug("### NOT test data"); | 676 | //Clipperz.logDebug("### NOT test data"); |
695 | result = aConnection['userData']['userDetails']; | 677 | result = aConnection['userData']['userDetails']; |
696 | } | 678 | } |
697 | 679 | ||
@@ -749,11 +731,9 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Offline.DataStore, Object, { | |||
749 | }); | 731 | }); |
750 | 732 | ||
751 | // deferredResult.addCallback(function(aDeferredContext) { | 733 | // deferredResult.addCallback(function(aDeferredContext) { |
752 | //console.log("#-#-#-#-#", aDeferredContext); | ||
753 | // return aDeferredContext['user'].serializedDataUsingVersion(MochiKit.Base.values(aDeferredContext['user'].records()), aDeferredContext['data']['version']); | 734 | // return aDeferredContext['user'].serializedDataUsingVersion(MochiKit.Base.values(aDeferredContext['user'].records()), aDeferredContext['data']['version']); |
754 | // }, deferredContext); | 735 | // }, deferredContext); |
755 | // deferredResult.addCallback(function(aUserSerializedData) { | 736 | // deferredResult.addCallback(function(aUserSerializedData) { |
756 | //console.log("USER SERIALIZED DATA", aUserSerializedData); | ||
757 | // }); | 737 | // }); |
758 | // | 738 | // |
759 | // deferredResult.addCallback(MochiKit.Async.succeed, deferredContext); | 739 | // deferredResult.addCallback(MochiKit.Async.succeed, deferredContext); |
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.js b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.js index a86ac4f..5764bda 100644 --- a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Offline.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.OfflineCache.js b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.OfflineCache.js index 803c590..f628975 100644 --- a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.OfflineCache.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.OfflineCache.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Test.js b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Test.js index d554c6a..d459726 100644 --- a/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Test.js +++ b/frontend/gamma/js/Clipperz/PM/Proxy/Proxy.Test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -98,7 +96,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Test, Clipperz.PM.Proxy.Offline, { | |||
98 | 96 | ||
99 | 'testExpectedRequestParameters': function (aPath, anActualRequest, anExpectedRequest) { | 97 | 'testExpectedRequestParameters': function (aPath, anActualRequest, anExpectedRequest) { |
100 | var aKey; | 98 | var aKey; |
101 | //console.log(">>> Proxy.testExpectedRequestParameters [" + aPath + "]", anActualRequest, anExpectedRequest); | ||
102 | for (aKey in anExpectedRequest) { | 99 | for (aKey in anExpectedRequest) { |
103 | if (typeof(anActualRequest[aKey]) == 'undefined') { | 100 | if (typeof(anActualRequest[aKey]) == 'undefined') { |
104 | throw "the expected paramter [" + aKey + "] is missing from the actual request"; | 101 | throw "the expected paramter [" + aKey + "] is missing from the actual request"; |
@@ -111,7 +108,6 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Test, Clipperz.PM.Proxy.Offline, { | |||
111 | } | 108 | } |
112 | } | 109 | } |
113 | } | 110 | } |
114 | //console.log("<<< Proxy.testExpectedRequestParameters"); | ||
115 | }, | 111 | }, |
116 | 112 | ||
117 | //------------------------------------------------------------------------- | 113 | //------------------------------------------------------------------------- |
@@ -120,9 +116,7 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Test, Clipperz.PM.Proxy.Offline, { | |||
120 | if (this.shouldCheckExpectedRequests()) { | 116 | if (this.shouldCheckExpectedRequests()) { |
121 | var expectedRequest; | 117 | var expectedRequest; |
122 | 118 | ||
123 | //console.log(">>> Proxy.Test.checkRequest - " + aFunctionName, someParameters); | ||
124 | expectedRequest = this.expectedRequests().pop(); | 119 | expectedRequest = this.expectedRequests().pop(); |
125 | //console.log("--- Proxy.Test.checkRequest - expectedRequest", expectedRequest); | ||
126 | if (expectedRequest == null) { | 120 | if (expectedRequest == null) { |
127 | throw "Proxy.Test.sentMessage: no expected result specified. Got request '" + aFunctionName + "': " + someParameters; | 121 | throw "Proxy.Test.sentMessage: no expected result specified. Got request '" + aFunctionName + "': " + someParameters; |
128 | } | 122 | } |
@@ -134,11 +128,9 @@ Clipperz.Base.extend(Clipperz.PM.Proxy.Test, Clipperz.PM.Proxy.Offline, { | |||
134 | 128 | ||
135 | this.testExpectedRequestParameters("parameters", someParameters, expectedRequest.parameters); | 129 | this.testExpectedRequestParameters("parameters", someParameters, expectedRequest.parameters); |
136 | } catch(exception) { | 130 | } catch(exception) { |
137 | //console.log("EXCEPTION: Proxy.Test.sentMessage[" + expectedRequest.name + "]", exception) | ||
138 | throw "Proxy.Test.sentMessage[" + expectedRequest.name + "]: " + exception; | 131 | throw "Proxy.Test.sentMessage[" + expectedRequest.name + "]: " + exception; |
139 | } | 132 | } |
140 | } | 133 | } |
141 | //console.log("<<< Proxy.Test.checkRequest"); | ||
142 | }, | 134 | }, |
143 | 135 | ||
144 | //========================================================================= | 136 | //========================================================================= |
diff --git a/frontend/gamma/js/Clipperz/PM/Strings.js b/frontend/gamma/js/Clipperz/PM/Strings.js index a051365..7e855ff 100644 --- a/frontend/gamma/js/Clipperz/PM/Strings.js +++ b/frontend/gamma/js/Clipperz/PM/Strings.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -241,22 +239,17 @@ Clipperz.PM.Strings.getValue = function (aKeyPath, someKeyValues) { | |||
241 | 239 | ||
242 | result = Clipperz.PM.Strings.stringsObjectStore.getValue(aKeyPath); | 240 | result = Clipperz.PM.Strings.stringsObjectStore.getValue(aKeyPath); |
243 | 241 | ||
244 | //try { | ||
245 | if (typeof(result) == 'string') { | 242 | if (typeof(result) == 'string') { |
246 | if (typeof (someKeyValues) != 'undefined') { | 243 | if (typeof (someKeyValues) != 'undefined') { |
247 | varkey; | 244 | varkey; |
248 | 245 | ||
249 | for (key in someKeyValues) { | 246 | for (key in someKeyValues) { |
250 | result = result.replace( new RegExp(key), someKeyValues[key]); | 247 | result = result.replace( new RegExp(key), someKeyValues[key]); |
251 | // result.replace(, ''); | ||
252 | } | 248 | } |
253 | } | 249 | } |
254 | 250 | ||
255 | result = result.replace(new RegExp('\n'), '<br>'); | 251 | result = result.replace(new RegExp('\n'), '<br>'); |
256 | } | 252 | } |
257 | //} catch (exception) { | ||
258 | //console.log("####", result, aKeyPath, someKeyValues, exception); | ||
259 | //} | ||
260 | 253 | ||
261 | return result; | 254 | return result; |
262 | } | 255 | } |
diff --git a/frontend/gamma/js/Clipperz/PM/Strings/MessagePanelConfigurations.js b/frontend/gamma/js/Clipperz/PM/Strings/MessagePanelConfigurations.js index 7f6c52f..7565d2d 100644 --- a/frontend/gamma/js/Clipperz/PM/Strings/MessagePanelConfigurations.js +++ b/frontend/gamma/js/Clipperz/PM/Strings/MessagePanelConfigurations.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Strings/Strings_defaults.js b/frontend/gamma/js/Clipperz/PM/Strings/Strings_defaults.js index 101ed3f..aefd94a 100644 --- a/frontend/gamma/js/Clipperz/PM/Strings/Strings_defaults.js +++ b/frontend/gamma/js/Clipperz/PM/Strings/Strings_defaults.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Strings/Strings_en-US.js b/frontend/gamma/js/Clipperz/PM/Strings/Strings_en-US.js index b540633..85d55c0 100644 --- a/frontend/gamma/js/Clipperz/PM/Strings/Strings_en-US.js +++ b/frontend/gamma/js/Clipperz/PM/Strings/Strings_en-US.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/Toll.js b/frontend/gamma/js/Clipperz/PM/Toll.js index bb31c43..e9c3092 100644 --- a/frontend/gamma/js/Clipperz/PM/Toll.js +++ b/frontend/gamma/js/Clipperz/PM/Toll.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/download.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/download.js index 25e82ca..f667526 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/download.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/download.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/look.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/look.js index ba425ec..dae5a2d 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/look.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/CoverActions/look.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js index 5c1f860..497fd05 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/directLogin.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/protect.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/protect.js index b829ed6..f015535 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/protect.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/protect.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/share.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/share.js index 8d73cc7..47972fc 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/share.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/share.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/store.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/store.js index 572d9be..a4f30b2 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/store.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Features/store.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/GraphicFunctions.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/GraphicFunctions.js index b9443bd..dccefab 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/GraphicFunctions.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/GraphicFunctions.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Logo/normal.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Logo/normal.js index cc60bba..24c0bc3 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Logo/normal.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Logo/normal.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js index 02f2f80..5982f0d 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/exclamationMark.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/info.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/info.js index fad5c10..2501992 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/info.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/info.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/questionMark.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/questionMark.js index 5842828..9a8ac7d 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/questionMark.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Marks/questionMark.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js index 2462d0e..65e5ca6 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/RegisterButton/normal.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Star/normal.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Star/normal.js index cf475c6..5b344ef 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Star/normal.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Star/normal.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/close.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/close.js index cd7ed90..21dfcc0 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/close.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/close.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/open.js b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/open.js index 30c1c69..9c76865 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/open.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Canvas/Tips/open.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/BaseComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/BaseComponent.js index b9d7adf..58b7593 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/BaseComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/BaseComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -123,7 +121,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.BaseComponent, /*Ext.Compo | |||
123 | //------------------------------------------------------------------------- | 121 | //------------------------------------------------------------------------- |
124 | 122 | ||
125 | 'element': function() { | 123 | 'element': function() { |
126 | //MochiKit.Logging.logDebug(">>> BaseComponent.element"); | ||
127 | return MochiKit.DOM.getElement(this._element); | 124 | return MochiKit.DOM.getElement(this._element); |
128 | }, | 125 | }, |
129 | 126 | ||
@@ -313,11 +310,8 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.BaseComponent, /*Ext.Compo | |||
313 | //----------------------------------------------------- | 310 | //----------------------------------------------------- |
314 | /* | 311 | /* |
315 | 'purgeListeners': function() { | 312 | 'purgeListeners': function() { |
316 | //MochiKit.Logging.logDebug(">>> Clipperz.PM.UI.Common.Components.BaseComponent.purgeListeners [" + this + "]"); | ||
317 | //MochiKit.Logging.logDebug("--- " + this + ".purgeListeners"); | ||
318 | Clipperz.NotificationCenter.unregister(this); | 313 | Clipperz.NotificationCenter.unregister(this); |
319 | MochiKit.Signal.disconnectAllTo(this); | 314 | MochiKit.Signal.disconnectAllTo(this); |
320 | //MochiKit.Logging.logDebug("<<< Clipperz.PM.UI.Common.Components.BaseComponent.purgeListeners"); | ||
321 | }, | 315 | }, |
322 | */ | 316 | */ |
323 | //----------------------------------------------------- | 317 | //----------------------------------------------------- |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Button.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Button.js index 1010c9d..1268118 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Button.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Button.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ComponentSlot.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ComponentSlot.js index 7f56c1e..2f82359 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ComponentSlot.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ComponentSlot.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/FaviconComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/FaviconComponent.js index 2db2489..bf00ffc 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/FaviconComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/FaviconComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -77,7 +75,7 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.FaviconComponent, Clipperz | |||
77 | 75 | ||
78 | 'handleOnLoad': function (anEvent) { | 76 | 'handleOnLoad': function (anEvent) { |
79 | MochiKit.Signal.disconnectAll(anEvent.src()); | 77 | MochiKit.Signal.disconnectAll(anEvent.src()); |
80 | //console.log("HANDLE ON LOAD", anEvent, anEvent.src().src); | 78 | |
81 | if (anEvent.src().complete == false) { | 79 | if (anEvent.src().complete == false) { |
82 | this.setSrc(null); | 80 | this.setSrc(null); |
83 | } | 81 | } |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/MessagePanelWithProgressBar.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/MessagePanelWithProgressBar.js index 2788b79..020290b 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/MessagePanelWithProgressBar.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/MessagePanelWithProgressBar.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -131,14 +129,12 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.MessagePanelWithProgressBa | |||
131 | //------------------------------------------------------------------------- | 129 | //------------------------------------------------------------------------- |
132 | 130 | ||
133 | 'closeOk': function () { | 131 | 'closeOk': function () { |
134 | //console.log("=== closeOk"); | ||
135 | this.showProgressBar(); | 132 | this.showProgressBar(); |
136 | MochiKit.Async.callLater(0.5, MochiKit.Base.method(this.deferred(), 'callback')); | 133 | MochiKit.Async.callLater(0.5, MochiKit.Base.method(this.deferred(), 'callback')); |
137 | this._deferred = null; | 134 | this._deferred = null; |
138 | }, | 135 | }, |
139 | 136 | ||
140 | 'closeCancel': function () { | 137 | 'closeCancel': function () { |
141 | //console.log("=== closeCancel"); | ||
142 | this.deferredHideModal({closeToElement:this.onCancelCloseToElement()}); | 138 | this.deferredHideModal({closeToElement:this.onCancelCloseToElement()}); |
143 | this.deferred().cancel(); | 139 | this.deferred().cancel(); |
144 | this._deferred = null; | 140 | this._deferred = null; |
@@ -147,12 +143,10 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.MessagePanelWithProgressBa | |||
147 | //------------------------------------------------------------------------- | 143 | //------------------------------------------------------------------------- |
148 | 144 | ||
149 | 'deferredDone': function () { | 145 | 'deferredDone': function () { |
150 | //console.log("=== deferredDone"); | ||
151 | return this.deferredHideModal({closeToElement:this.onOkCloseToElement()}); | 146 | return this.deferredHideModal({closeToElement:this.onOkCloseToElement()}); |
152 | }, | 147 | }, |
153 | 148 | ||
154 | 'deferredError': function (someParameters) { | 149 | 'deferredError': function (someParameters) { |
155 | //console.log("=== deferredError"); | ||
156 | this.showFailure(someParameters); | 150 | this.showFailure(someParameters); |
157 | }, | 151 | }, |
158 | 152 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/PasswordEntropyDisplay.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/PasswordEntropyDisplay.js index 089e3d4..78e8c9b 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/PasswordEntropyDisplay.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/PasswordEntropyDisplay.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -28,14 +26,12 @@ Clipperz.Base.module('Clipperz.PM.UI.Common.Components'); | |||
28 | Clipperz.PM.UI.Common.Components.PasswordEntropyDisplay = function(anElement, args) { | 26 | Clipperz.PM.UI.Common.Components.PasswordEntropyDisplay = function(anElement, args) { |
29 | args = args || {}; | 27 | args = args || {}; |
30 | 28 | ||
31 | //MochiKit.Logging.logDebug(">>> new TextFormField"); | ||
32 | Clipperz.PM.UI.Common.Components.PasswordEntropyDisplay.superclass.constructor.call(this, anElement, args); | 29 | Clipperz.PM.UI.Common.Components.PasswordEntropyDisplay.superclass.constructor.call(this, anElement, args); |
33 | 30 | ||
34 | this._wrapperElement = null; | 31 | this._wrapperElement = null; |
35 | this._entropyElement = null; | 32 | this._entropyElement = null; |
36 | 33 | ||
37 | this.render(); | 34 | this.render(); |
38 | //MochiKit.Logging.logDebug("<<< new TextFormField"); | ||
39 | 35 | ||
40 | return this; | 36 | return this; |
41 | }; | 37 | }; |
@@ -110,17 +106,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.PasswordEntropyDisplay, Cl | |||
110 | //----------------------------------------------------- | 106 | //----------------------------------------------------- |
111 | 107 | ||
112 | 'updateEntropyElement': function(anEvent) { | 108 | 'updateEntropyElement': function(anEvent) { |
113 | /* | ||
114 | //MochiKit.Logging.logDebug(">>> PasswordEntropyDisplay.updateEntropyElement"); | ||
115 | varmaxExtent; | ||
116 | varentropy; | ||
117 | |||
118 | entropy = Math.min(128, this.computeEntropyForString(this.passwordElement().dom.value)); | ||
119 | //MochiKit.Logging.logDebug("--- PasswordEntropyDisplay.updateEntropyElement - entropy: " + entropy); | ||
120 | this.entropyElement().setStyle('background-position', "0px " + -entropy + "px"); | ||
121 | this.entropyElement().setWidth(this.passwordElement().getWidth() * (entropy/128)); | ||
122 | //MochiKit.Logging.logDebug("<<< PasswordEntropyDisplay.updateEntropyElement"); | ||
123 | */ | ||
124 | varentropy; | 109 | varentropy; |
125 | 110 | ||
126 | entropy = Math.min(128, this.computeEntropyForString(this.passwordElement().dom.value)); | 111 | entropy = Math.min(128, this.computeEntropyForString(this.passwordElement().dom.value)); |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ProgressBar.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ProgressBar.js index 5991530..6638008 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ProgressBar.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/ProgressBar.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js index 1d816a9..8c98811 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/SimpleMessagePanel.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -218,19 +216,15 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.SimpleMessagePanel, Clippe | |||
218 | // MochiKit.Signal.signal(this, 'cancelEvent'); | 216 | // MochiKit.Signal.signal(this, 'cancelEvent'); |
219 | switch (aButton['result']) { | 217 | switch (aButton['result']) { |
220 | case 'OK': | 218 | case 'OK': |
221 | //console.log("==> OK"); | ||
222 | this.closeOk(); | 219 | this.closeOk(); |
223 | break; | 220 | break; |
224 | case 'CANCEL': | 221 | case 'CANCEL': |
225 | //console.log("==> CANCEL"); | ||
226 | this.closeCancel(); | 222 | this.closeCancel(); |
227 | break; | 223 | break; |
228 | default: | 224 | default: |
229 | //console.log("==> ????"); | ||
230 | this.closeError(); | 225 | this.closeError(); |
231 | break; | 226 | break; |
232 | } | 227 | } |
233 | //console.log("<=="); | ||
234 | }, | 228 | }, |
235 | 229 | ||
236 | //------------------------------------------------------------------------- | 230 | //------------------------------------------------------------------------- |
@@ -279,16 +273,12 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.SimpleMessagePanel, Clippe | |||
279 | 'keyDownHandler': function (anEvent) { | 273 | 'keyDownHandler': function (anEvent) { |
280 | if (anEvent.key().string == 'KEY_ENTER') { | 274 | if (anEvent.key().string == 'KEY_ENTER') { |
281 | anEvent.preventDefault(); | 275 | anEvent.preventDefault(); |
282 | //console.log("13 - RETURN ?", this); | ||
283 | this.closeOk(); | 276 | this.closeOk(); |
284 | //console.log('<<< 13') | ||
285 | } | 277 | } |
286 | 278 | ||
287 | if (anEvent.key().string == 'KEY_ESCAPE') { | 279 | if (anEvent.key().string == 'KEY_ESCAPE') { |
288 | anEvent.preventDefault(); | 280 | anEvent.preventDefault(); |
289 | //console.log("27 - ESC ?", this); | ||
290 | this.closeCancel(); | 281 | this.closeCancel(); |
291 | //console.log("<<< 27"); | ||
292 | } | 282 | } |
293 | }, | 283 | }, |
294 | 284 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TabPanelComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TabPanelComponent.js index 936514a..1e2a690 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TabPanelComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TabPanelComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Tooltip.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Tooltip.js index 8df7e0e..6517d2a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Tooltip.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/Tooltip.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -141,11 +139,8 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.Tooltip, Clipperz.PM.UI.Co | |||
141 | 139 | ||
142 | this.setIsVisible(true); | 140 | this.setIsVisible(true); |
143 | elementSizeAndPosition = Clipperz.Style.getSizeAndPosition(this.element()); | 141 | elementSizeAndPosition = Clipperz.Style.getSizeAndPosition(this.element()); |
144 | //console.log("ELEMENT SIZE AND POSITION", Clipperz.Base.serializeJSON(elementSizeAndPosition)); | ||
145 | //console.log("BOX DIMENSIONS", Clipperz.Base.serializeJSON(this.boxDimensions())); | ||
146 | switch (this.position()) { | 142 | switch (this.position()) { |
147 | case 'ABOVE': | 143 | case 'ABOVE': |
148 | //console.log("ABOVE"); | ||
149 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:36, h:13}, 'px'); | 144 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:36, h:13}, 'px'); |
150 | bodyPosition.x = elementSizeAndPosition.position.x + (elementSizeAndPosition.dimensions.w/2 - this.boxDimensions().w/2); | 145 | bodyPosition.x = elementSizeAndPosition.position.x + (elementSizeAndPosition.dimensions.w/2 - this.boxDimensions().w/2); |
151 | bodyPosition.y = elementSizeAndPosition.position.y - this.boxDimensions().h - 13; | 146 | bodyPosition.y = elementSizeAndPosition.position.y - this.boxDimensions().h - 13; |
@@ -154,7 +149,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.Tooltip, Clipperz.PM.UI.Co | |||
154 | // arrowPosition.y = elementSizeAndPosition.position.y - 13; | 149 | // arrowPosition.y = elementSizeAndPosition.position.y - 13; |
155 | break; | 150 | break; |
156 | case 'BELOW': | 151 | case 'BELOW': |
157 | //console.log("BELOW"); | ||
158 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:36, h:13}, 'px'); | 152 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:36, h:13}, 'px'); |
159 | bodyPosition.x = elementSizeAndPosition.position.x + (elementSizeAndPosition.dimensions.w/2 - this.boxDimensions().w/2); | 153 | bodyPosition.x = elementSizeAndPosition.position.x + (elementSizeAndPosition.dimensions.w/2 - this.boxDimensions().w/2); |
160 | bodyPosition.y = elementSizeAndPosition.position.y + elementSizeAndPosition.dimensions.h + 13; | 154 | bodyPosition.y = elementSizeAndPosition.position.y + elementSizeAndPosition.dimensions.h + 13; |
@@ -163,7 +157,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.Tooltip, Clipperz.PM.UI.Co | |||
163 | // arrowPosition.y = elementSizeAndPosition.position.y + elementSizeAndPosition.dimensions.h; | 157 | // arrowPosition.y = elementSizeAndPosition.position.y + elementSizeAndPosition.dimensions.h; |
164 | break; | 158 | break; |
165 | case 'LEFT': | 159 | case 'LEFT': |
166 | //console.log("LEFT"); | ||
167 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:13, h:36}, 'px'); | 160 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:13, h:36}, 'px'); |
168 | bodyPosition.x = elementSizeAndPosition.position.x - this.boxDimensions().w - 13; | 161 | bodyPosition.x = elementSizeAndPosition.position.x - this.boxDimensions().w - 13; |
169 | bodyPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - this.boxDimensions().h/2); | 162 | bodyPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - this.boxDimensions().h/2); |
@@ -172,7 +165,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.Tooltip, Clipperz.PM.UI.Co | |||
172 | // arrowPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - 36/2); | 165 | // arrowPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - 36/2); |
173 | break; | 166 | break; |
174 | case 'RIGHT': | 167 | case 'RIGHT': |
175 | //console.log("RIGHT"); | ||
176 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:13, h:36}, 'px'); | 168 | // MochiKit.Style.setElementDimensions(this.getId('arrow'), {w:13, h:36}, 'px'); |
177 | bodyPosition.x = elementSizeAndPosition.position.x + elementSizeAndPosition.dimensions.w + 13; | 169 | bodyPosition.x = elementSizeAndPosition.position.x + elementSizeAndPosition.dimensions.w + 13; |
178 | bodyPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - this.boxDimensions().h/2); | 170 | bodyPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - this.boxDimensions().h/2); |
@@ -181,7 +173,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Common.Components.Tooltip, Clipperz.PM.UI.Co | |||
181 | // arrowPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - 36/2); | 173 | // arrowPosition.y = elementSizeAndPosition.position.y + (elementSizeAndPosition.dimensions.h/2 - 36/2); |
182 | break; | 174 | break; |
183 | } | 175 | } |
184 | //console.log("X: " + bodyPosition.x + ", Y: " + bodyPosition.y); | ||
185 | 176 | ||
186 | MochiKit.Style.setElementPosition(this.getId('tooltip'), bodyPosition); | 177 | MochiKit.Style.setElementPosition(this.getId('tooltip'), bodyPosition); |
187 | // MochiKit.Style.setElementPosition(this.getId('body'), bodyPosition); | 178 | // MochiKit.Style.setElementPosition(this.getId('body'), bodyPosition); |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TranslatorWidget.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TranslatorWidget.js index c41fc7c..ba58edd 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TranslatorWidget.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Components/TranslatorWidget.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/DirectLoginRunner.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/DirectLoginRunner.js index 5fd10f9..77d59a5 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/DirectLoginRunner.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/DirectLoginRunner.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -154,7 +152,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.prototy | |||
154 | var completeUrl; | 152 | var completeUrl; |
155 | var url; | 153 | var url; |
156 | 154 | ||
157 | //console.log("runHttpAuthDirectLogin", someAttributes); | ||
158 | url = someAttributes['inputValues']['url']; | 155 | url = someAttributes['inputValues']['url']; |
159 | 156 | ||
160 | if (/^https?\:\/\//.test(url) == false) { | 157 | if (/^https?\:\/\//.test(url) == false) { |
@@ -182,7 +179,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.prototy | |||
182 | 'runDirectLogin': function (aWindow) { | 179 | 'runDirectLogin': function (aWindow) { |
183 | var deferredResult; | 180 | var deferredResult; |
184 | 181 | ||
185 | //console.log(">>> runDirectLogin"); | ||
186 | deferredResult = new Clipperz.Async.Deferred("DirectLoginRunner.openDirectLogin", {trace:false}); | 182 | deferredResult = new Clipperz.Async.Deferred("DirectLoginRunner.openDirectLogin", {trace:false}); |
187 | deferredResult.addMethod(this, 'initialWindowSetup', aWindow); | 183 | deferredResult.addMethod(this, 'initialWindowSetup', aWindow); |
188 | deferredResult.addMethod(this.directLogin(), 'label'); | 184 | deferredResult.addMethod(this.directLogin(), 'label'); |
@@ -193,9 +189,7 @@ MochiKit.Base.update(Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.prototy | |||
193 | 'formAttributes':MochiKit.Base.method(this.directLogin(), 'formAttributes'), | 189 | 'formAttributes':MochiKit.Base.method(this.directLogin(), 'formAttributes'), |
194 | 'inputValues': MochiKit.Base.method(this.directLogin(), 'inputValues') | 190 | 'inputValues': MochiKit.Base.method(this.directLogin(), 'inputValues') |
195 | }); | 191 | }); |
196 | //deferredResult.addCallback(function (aValue) { console.log("SOME ATTRIBUTES", aValue); return aValue; }); | ||
197 | deferredResult.addCallback(MochiKit.Base.bind(function (someAttributes) { | 192 | deferredResult.addCallback(MochiKit.Base.bind(function (someAttributes) { |
198 | //console.log("SOME ATTRIBUTES", someAttributes); | ||
199 | switch (someAttributes['type']) { | 193 | switch (someAttributes['type']) { |
200 | case 'http_auth': | 194 | case 'http_auth': |
201 | this.runHttpAuthDirectLogin(aWindow, someAttributes); | 195 | this.runHttpAuthDirectLogin(aWindow, someAttributes); |
@@ -209,7 +203,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.prototy | |||
209 | } | 203 | } |
210 | }, this)); | 204 | }, this)); |
211 | deferredResult.callback(); | 205 | deferredResult.callback(); |
212 | //console.log("<<< runDirectLogin"); | ||
213 | 206 | ||
214 | return deferredResult; | 207 | return deferredResult; |
215 | }, | 208 | }, |
@@ -256,7 +249,6 @@ Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.openDirectLogin = function ( | |||
256 | Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.testDirectLogin = function (aDirectLogin) { | 249 | Clipperz.PM.UI.Common.Controllers.DirectLoginRunner.testDirectLogin = function (aDirectLogin) { |
257 | varrunner; | 250 | varrunner; |
258 | 251 | ||
259 | //console.log(">>>>>> TESTING DIRECT LOGIN"); | ||
260 | runner = new Clipperz.PM.UI.Common.Controllers.DirectLoginRunner({directLogin:aDirectLogin}); | 252 | runner = new Clipperz.PM.UI.Common.Controllers.DirectLoginRunner({directLogin:aDirectLogin}); |
261 | return runner.test(); | 253 | return runner.test(); |
262 | }; | 254 | }; |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/ProgressBarController.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/ProgressBarController.js index 41fe17f..52d81d4 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/ProgressBarController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/ProgressBarController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/TabPanelController.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/TabPanelController.js index 341fde9..d3e86de 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/TabPanelController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/TabPanelController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/WizardController.js b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/WizardController.js index ef38bc6..c13d96a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/WizardController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Common/Controllers/WizardController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Compact/MainController.js b/frontend/gamma/js/Clipperz/PM/UI/Compact/MainController.js index ea987cd..f0ccdfb 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Compact/MainController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Compact/MainController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -48,7 +46,7 @@ MochiKit.Base.update(Clipperz.PM.UI.Compact.MainController.prototype, { | |||
48 | //----------------------------------------------------------------------------- | 46 | //----------------------------------------------------------------------------- |
49 | 47 | ||
50 | 'run': function(shouldShowRegistrationForm) { | 48 | 'run': function(shouldShowRegistrationForm) { |
51 | MochiKit.Logging.logDebug("running " + this.toString()); | 49 | Clipperz.logDebug("running " + this.toString()); |
52 | }, | 50 | }, |
53 | 51 | ||
54 | //----------------------------------------------------------------------------- | 52 | //----------------------------------------------------------------------------- |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardDetail.js b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardDetail.js index 32dfa63..abf4758 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardDetail.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardDetail.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -58,7 +56,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardDetail, Clipperz.PM.UI | |||
58 | //------------------------------------------------------------------------- | 56 | //------------------------------------------------------------------------- |
59 | 57 | ||
60 | 'renderSelf': function () { | 58 | 'renderSelf': function () { |
61 | console.log("CardDetail.renderSelf"); | ||
62 | this.append(this.element(), {tag:'div', cls:'cardDetail', children:[ | 59 | this.append(this.element(), {tag:'div', cls:'cardDetail', children:[ |
63 | {tag:'div', cls:'toolbar', children:[ | 60 | {tag:'div', cls:'toolbar', children:[ |
64 | {tag:'a', href:'#', cls:'back', html:"List"}, | 61 | {tag:'a', href:'#', cls:'back', html:"List"}, |
@@ -155,7 +152,6 @@ console.log("CardDetail.renderSelf"); | |||
155 | ]} | 152 | ]} |
156 | ]}) | 153 | ]}) |
157 | 154 | ||
158 | console.log("ADD DIRECT LOGIN", aDirectLogin); | ||
159 | }, | 155 | }, |
160 | 156 | ||
161 | //========================================================================= | 157 | //========================================================================= |
@@ -165,7 +161,6 @@ console.log("ADD DIRECT LOGIN", aDirectLogin); | |||
165 | 161 | ||
166 | // this.render(); | 162 | // this.render(); |
167 | 163 | ||
168 | console.log("CardDetail.showCard", aCard); | ||
169 | deferredResult = new Clipperz.Async.Deferred("CardDetail.showCard", {trace:false}); | 164 | deferredResult = new Clipperz.Async.Deferred("CardDetail.showCard", {trace:false}); |
170 | deferredResult.addMethod(aCard, 'label'); | 165 | deferredResult.addMethod(aCard, 'label'); |
171 | deferredResult.addMethod(this, 'setTitle'); | 166 | deferredResult.addMethod(this, 'setTitle'); |
@@ -266,7 +261,6 @@ console.log("CardDetail.showCard", aCard); | |||
266 | varnextState; | 261 | varnextState; |
267 | varfieldValue; | 262 | varfieldValue; |
268 | 263 | ||
269 | //console.log("TOGGLE"); | ||
270 | anEvent.preventDefault; | 264 | anEvent.preventDefault; |
271 | fieldValue = MochiKit.Selector.findChildElements(anEvent.src().parentNode.parentNode, ['span.password'])[0]; | 265 | fieldValue = MochiKit.Selector.findChildElements(anEvent.src().parentNode.parentNode, ['span.password'])[0]; |
272 | 266 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardList.js b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardList.js index a4aa212..a0e4879 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardList.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/CardList.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -90,7 +88,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C | |||
90 | 'favicon': MochiKit.Base.methodcaller('favicon') | 88 | 'favicon': MochiKit.Base.methodcaller('favicon') |
91 | }; | 89 | }; |
92 | 90 | ||
93 | //console.log("someCards", someCards); | ||
94 | deferredResult = new Clipperz.Async.Deferred("CardList.showCards", {trace:false}); | 91 | deferredResult = new Clipperz.Async.Deferred("CardList.showCards", {trace:false}); |
95 | deferredResult.addCallback(MochiKit.Base.map, Clipperz.Async.collectResults("CardList.value - collectResults", cardInfo, {trace:false})); | 92 | deferredResult.addCallback(MochiKit.Base.map, Clipperz.Async.collectResults("CardList.value - collectResults", cardInfo, {trace:false})); |
96 | deferredResult.addCallback(Clipperz.Async.collectAll); | 93 | deferredResult.addCallback(Clipperz.Async.collectAll); |
@@ -102,7 +99,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C | |||
102 | }, | 99 | }, |
103 | 100 | ||
104 | 'appendCardToList': function (aCardListElement, aCardInfo) { | 101 | 'appendCardToList': function (aCardListElement, aCardInfo) { |
105 | //console.log("appendCardToList", aCardInfo); | ||
106 | this.append(aCardListElement, {tag:'li', cls:'cardListItem arrow', cardreference:aCardInfo['_reference'], children:[ | 102 | this.append(aCardListElement, {tag:'li', cls:'cardListItem arrow', cardreference:aCardInfo['_reference'], children:[ |
107 | {tag:'a', href:'#', html:aCardInfo['label'], children:[ | 103 | {tag:'a', href:'#', html:aCardInfo['label'], children:[ |
108 | {tag:'small', cls:'favicon', children:[{tag:'img', cls:'favicon', src:aCardInfo['favicon']}]} | 104 | {tag:'small', cls:'favicon', children:[{tag:'img', cls:'favicon', src:aCardInfo['favicon']}]} |
@@ -121,7 +117,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.CardList, Clipperz.PM.UI.C | |||
121 | listElement = MochiKit.DOM.getFirstParentByTagAndClassName(anEvent.target(), tagName='li', className='cardListItem'); | 117 | listElement = MochiKit.DOM.getFirstParentByTagAndClassName(anEvent.target(), tagName='li', className='cardListItem'); |
122 | } | 118 | } |
123 | cardReference = MochiKit.DOM.getNodeAttribute(listElement, 'cardreference'); | 119 | cardReference = MochiKit.DOM.getNodeAttribute(listElement, 'cardreference'); |
124 | console.log("###", listElement, cardReference); | ||
125 | //TODO: Notify card with reference MochiKit.DOM.getNodeAttribute(listElement, 'cardreference') has been selected | 120 | //TODO: Notify card with reference MochiKit.DOM.getNodeAttribute(listElement, 'cardreference') has been selected |
126 | MochiKit.Signal.signal(this, 'selectedCard', cardReference); | 121 | MochiKit.Signal.signal(this, 'selectedCard', cardReference); |
127 | }, | 122 | }, |
@@ -171,7 +166,6 @@ console.log("###", listElement, cardReference); | |||
171 | var cardListReference; | 166 | var cardListReference; |
172 | 167 | ||
173 | cardListReference = anEvent.target().id.match(/(cardListReference_|cardListItem_)(.*)/)[2]; | 168 | cardListReference = anEvent.target().id.match(/(cardListReference_|cardListItem_)(.*)/)[2]; |
174 | //console.log("Showing detail for card named", cardListReference); | ||
175 | MochiKit.Signal.signal(this, 'selectedCard', cardListReference); | 169 | MochiKit.Signal.signal(this, 'selectedCard', cardListReference); |
176 | } | 170 | } |
177 | }, | 171 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/LoginForm.js b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/LoginForm.js index eafcdbc..3aeac0c 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/LoginForm.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Components/LoginForm.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -139,7 +137,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI. | |||
139 | }, | 137 | }, |
140 | 138 | ||
141 | 'showErrors': function (args) { | 139 | 'showErrors': function (args) { |
142 | //console.log("LoginForm.showErrors", args); | ||
143 | if (args['previousFailedAttempt'] == 'LOGIN') { | 140 | if (args['previousFailedAttempt'] == 'LOGIN') { |
144 | this.setErrorMessage("Wrong credentials"); | 141 | this.setErrorMessage("Wrong credentials"); |
145 | } else if (args['previousFailedAttempt'] == 'PIN') { | 142 | } else if (args['previousFailedAttempt'] == 'PIN') { |
@@ -299,7 +296,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI. | |||
299 | }, | 296 | }, |
300 | 297 | ||
301 | 'submitCredentialsHandler': function (anEvent) { | 298 | 'submitCredentialsHandler': function (anEvent) { |
302 | //console.log("submitCredentialsHandler"); | ||
303 | varcredentials; | 299 | varcredentials; |
304 | 300 | ||
305 | this.setMessage(null); | 301 | this.setMessage(null); |
@@ -331,24 +327,19 @@ Clipperz.Base.extend(Clipperz.PM.UI.Mobile.Components.LoginForm, Clipperz.PM.UI. | |||
331 | //------------------------------------------------------------------------- | 327 | //------------------------------------------------------------------------- |
332 | 328 | ||
333 | 'initProgressHandle': function (anEvent) { | 329 | 'initProgressHandle': function (anEvent) { |
334 | //console.log("** initProgressHandle", anEvent); | ||
335 | this._steps = anEvent['steps']; | 330 | this._steps = anEvent['steps']; |
336 | this._actualSteps = 0; | 331 | this._actualSteps = 0; |
337 | }, | 332 | }, |
338 | 333 | ||
339 | 'updateProgressHandle': function (anEvent) { | 334 | 'updateProgressHandle': function (anEvent) { |
340 | //console.log("** updateProgressHandle", anEvent); | ||
341 | this._steps += anEvent['extraSteps']; | 335 | this._steps += anEvent['extraSteps']; |
342 | }, | 336 | }, |
343 | 337 | ||
344 | 'advanceProgressHandle': function (anEvent) { | 338 | 'advanceProgressHandle': function (anEvent) { |
345 | //console.log("** advanceProgressHandle", anEvent); | ||
346 | this._actualSteps ++; | 339 | this._actualSteps ++; |
347 | //console.log("STEPS: " + this._actualSteps + "/" + this._steps); | ||
348 | }, | 340 | }, |
349 | 341 | ||
350 | 'progressDoneHandle': function (anEvent) { | 342 | 'progressDoneHandle': function (anEvent) { |
351 | //console.log("** progressDoneHandle", anEvent); | ||
352 | }, | 343 | }, |
353 | 344 | ||
354 | //------------------------------------------------------------------------- | 345 | //------------------------------------------------------------------------- |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Controllers/MainController.js b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Controllers/MainController.js index 12a61f7..9951f44 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Mobile/Controllers/MainController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Mobile/Controllers/MainController.js | |||
@@ -1,32 +1,30 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
26 | Clipperz.Base.module('Clipperz.PM.UI.Mobile.Controllers'); | 24 | Clipperz.Base.module('Clipperz.PM.UI.Mobile.Controllers'); |
27 | 25 | ||
28 | Clipperz.PM.UI.Mobile.Controllers.MainController = function() { | 26 | Clipperz.PM.UI.Mobile.Controllers.MainController = function() { |
29 | this._jQTouch = null; | 27 | // this._jQTouch = null; |
30 | this._user = null; | 28 | this._user = null; |
31 | this._proxy = null; | 29 | this._proxy = null; |
32 | this._loginForm = null; | 30 | this._loginForm = null; |
@@ -53,7 +51,7 @@ MochiKit.Base.update(Clipperz.PM.UI.Mobile.Controllers.MainController.prototype, | |||
53 | }, | 51 | }, |
54 | 52 | ||
55 | //------------------------------------------------------------------------- | 53 | //------------------------------------------------------------------------- |
56 | 54 | /* | |
57 | 'jQTouch': function () { | 55 | 'jQTouch': function () { |
58 | return this._jQTouch; | 56 | return this._jQTouch; |
59 | }, | 57 | }, |
@@ -61,12 +59,10 @@ MochiKit.Base.update(Clipperz.PM.UI.Mobile.Controllers.MainController.prototype, | |||
61 | 'setJQTouch': function (aValue) { | 59 | 'setJQTouch': function (aValue) { |
62 | this._jQTouch = aValue; | 60 | this._jQTouch = aValue; |
63 | }, | 61 | }, |
64 | 62 | */ | |
65 | //========================================================================= | 63 | //========================================================================= |
66 | 64 | ||
67 | 'run': function () { | 65 | 'run': function () { |
68 | console.log("MainController.run"); | ||
69 | |||
70 | MochiKit.Signal.connect(Clipperz.Signal.NotificationCenter, 'doLogin', MochiKit.Base.method(this, 'doLogin')); | 66 | MochiKit.Signal.connect(Clipperz.Signal.NotificationCenter, 'doLogin', MochiKit.Base.method(this, 'doLogin')); |
71 | Clipperz.DOM.Helper.overwrite(MochiKit.DOM.currentDocument().body, {tag:'div', id:'jqt', children:[ | 67 | Clipperz.DOM.Helper.overwrite(MochiKit.DOM.currentDocument().body, {tag:'div', id:'jqt', children:[ |
72 | {tag:'div', id:'loginForm'}, | 68 | {tag:'div', id:'loginForm'}, |
@@ -77,13 +73,13 @@ MochiKit.Base.update(Clipperz.PM.UI.Mobile.Controllers.MainController.prototype, | |||
77 | 73 | ||
78 | this.showLoginForm(); | 74 | this.showLoginForm(); |
79 | 75 | ||
80 | this.initjQTouch(); | 76 | // this.initjQTouch(); |
81 | 77 | ||
82 | 78 | ||
83 | // this.showAddToHomeScreenBaloon(); | 79 | // this.showAddToHomeScreenBaloon(); |
84 | // this.selectInitialProxy(); | 80 | // this.selectInitialProxy(); |
85 | }, | 81 | }, |
86 | 82 | /* | |
87 | 'initjQTouch': function () { | 83 | 'initjQTouch': function () { |
88 | var jqt; | 84 | var jqt; |
89 | 85 | ||
@@ -124,23 +120,19 @@ MochiKit.Base.update(Clipperz.PM.UI.Mobile.Controllers.MainController.prototype, | |||
124 | 120 | ||
125 | this.setJQTouch(jqt); | 121 | this.setJQTouch(jqt); |
126 | }, | 122 | }, |
127 | 123 | */ | |
128 | //========================================================================= | 124 | //========================================================================= |
129 | 125 | ||
130 | 'showAddToHomeScreenBaloon': function () { | 126 | 'showAddToHomeScreenBaloon': function () { |
131 | console.log(">>> showAddToHomeScreenBaloon"); | ||
132 | }, | 127 | }, |
133 | 128 | ||
134 | //------------------------------------------------------------------------- | 129 | //------------------------------------------------------------------------- |
135 | 130 | ||
136 | 'selectInitialProxy': function () { | 131 | 'selectInitialProxy': function () { |
137 | //console.log(">>> selectInitialProxy"); | ||
138 | if (this.isOnline()) { | 132 | if (this.isOnline()) { |
139 | //console.log("--- selectInitialProxy: using default proxy"); | ||
140 | this._proxy = Clipperz.PM.Proxy.defaultProxy; | 133 | this._proxy = Clipperz.PM.Proxy.defaultProxy; |
141 | } else { | 134 | } else { |
142 | if (this.hasLocalData()) { | 135 | if (this.hasLocalData()) { |
143 | //console.log("--- selectInitialProxy: using local cache proxy"); | ||
144 | this._proxy = new Clipperz.PM.Proxy.OfflineCache({'shouldPayTolls':false}); | 136 | this._proxy = new Clipperz.PM.Proxy.OfflineCache({'shouldPayTolls':false}); |
145 | } else { | 137 | } else { |
146 | this.showOfflineError(); | 138 | this.showOfflineError(); |
@@ -167,7 +159,6 @@ console.log(">>> showAddToHomeScreenBaloon"); | |||
167 | //......................................................................... | 159 | //......................................................................... |
168 | 160 | ||
169 | 'handleFailedCredentialsLogin': function () { | 161 | 'handleFailedCredentialsLogin': function () { |
170 | console.log("LOGIN FAILED"); | ||
171 | this.showLoginForm({'previousFailedAttempt':'LOGIN'}); | 162 | this.showLoginForm({'previousFailedAttempt':'LOGIN'}); |
172 | }, | 163 | }, |
173 | 164 | ||
@@ -190,7 +181,6 @@ console.log("LOGIN FAILED"); | |||
190 | var user; | 181 | var user; |
191 | var getPassphraseDelegate; | 182 | var getPassphraseDelegate; |
192 | 183 | ||
193 | //console.log(">>> MainController.doLogin", someArgs); | ||
194 | credentials = someArgs['credentials']; | 184 | credentials = someArgs['credentials']; |
195 | errorCallback = someArgs['errorCallback'] || MochiKit.Base.noop; | 185 | errorCallback = someArgs['errorCallback'] || MochiKit.Base.noop; |
196 | 186 | ||
@@ -232,7 +222,6 @@ console.log("LOGIN FAILED"); | |||
232 | 'setupApplication': function () { | 222 | 'setupApplication': function () { |
233 | vardeferredResult; | 223 | vardeferredResult; |
234 | 224 | ||
235 | console.log(">>> setupApplication"); | ||
236 | deferredResult = new Clipperz.Async.Deferred("MainController.setupApplication", {trace:false}); | 225 | deferredResult = new Clipperz.Async.Deferred("MainController.setupApplication", {trace:false}); |
237 | deferredResult.addMethod(this, 'welcomeFirstTimeUser'); | 226 | deferredResult.addMethod(this, 'welcomeFirstTimeUser'); |
238 | deferredResult.addMethod(this, 'showPaymentReminder'); | 227 | deferredResult.addMethod(this, 'showPaymentReminder'); |
@@ -255,7 +244,7 @@ console.log(">>> setupApplication"); | |||
255 | deferredResult = new Clipperz.Async.Deferred('MainController.welcomeFirstTimeUser', {trace:false}); | 244 | deferredResult = new Clipperz.Async.Deferred('MainController.welcomeFirstTimeUser', {trace:false}); |
256 | 245 | ||
257 | if (this.isFirstTimeUser()) { | 246 | if (this.isFirstTimeUser()) { |
258 | deferredResult.addCallback(function () { console.log("--> welcome"); }); | 247 | deferredResult.addCallback(function () { Clipperz.log("--> welcome"); }); |
259 | } | 248 | } |
260 | deferredResult.callback(); | 249 | deferredResult.callback(); |
261 | 250 | ||
@@ -274,7 +263,7 @@ console.log(">>> setupApplication"); | |||
274 | deferredResult = new Clipperz.Async.Deferred('MainController.showPaymentReminder', {trace:false}); | 263 | deferredResult = new Clipperz.Async.Deferred('MainController.showPaymentReminder', {trace:false}); |
275 | 264 | ||
276 | if (this.shouldShowPaymentReminder()) { | 265 | if (this.shouldShowPaymentReminder()) { |
277 | deferredResult.addCallback(function () { console.log("--> payment reminder"); }); | 266 | deferredResult.addCallback(function () { Clipperz.log("--> payment reminder"); }); |
278 | } | 267 | } |
279 | deferredResult.callback(); | 268 | deferredResult.callback(); |
280 | 269 | ||
@@ -293,7 +282,7 @@ console.log(">>> setupApplication"); | |||
293 | deferredResult = new Clipperz.Async.Deferred('MainController.copyDataLocally', {trace:false}); | 282 | deferredResult = new Clipperz.Async.Deferred('MainController.copyDataLocally', {trace:false}); |
294 | 283 | ||
295 | if (this.canCopyDataLocally()) { | 284 | if (this.canCopyDataLocally()) { |
296 | deferredResult.addCallback(function () { console.log("--> copy data locally"); }); | 285 | deferredResult.addCallback(function () { Clipperz.log("--> copy data locally"); }); |
297 | } | 286 | } |
298 | deferredResult.callback(); | 287 | deferredResult.callback(); |
299 | 288 | ||
@@ -306,7 +295,6 @@ console.log(">>> setupApplication"); | |||
306 | 'runApplication': function () { | 295 | 'runApplication': function () { |
307 | var deferredResult; | 296 | var deferredResult; |
308 | 297 | ||
309 | //console.log(">>> runApplication"); | ||
310 | deferredResult = new Clipperz.Async.Deferred('MainController.runApplication', {trace:true}); | 298 | deferredResult = new Clipperz.Async.Deferred('MainController.runApplication', {trace:true}); |
311 | deferredResult.addMethod(this.user(), 'getRecords'); | 299 | deferredResult.addMethod(this.user(), 'getRecords'); |
312 | deferredResult.addMethod(this, 'showCards'); | 300 | deferredResult.addMethod(this, 'showCards'); |
@@ -362,7 +350,7 @@ console.log(">>> setupApplication"); | |||
362 | 350 | ||
363 | 'showCards': function (someCards) { | 351 | 'showCards': function (someCards) { |
364 | this.cardList().showCards(someCards); | 352 | this.cardList().showCards(someCards); |
365 | this.jQTouch().goTo('#cardList', 'slideleft'); | 353 | // this.jQTouch().goTo('#cardList', 'slideleft'); |
366 | }, | 354 | }, |
367 | 355 | ||
368 | //------------------------------------------------------------------------- | 356 | //------------------------------------------------------------------------- |
@@ -380,7 +368,7 @@ console.log(">>> setupApplication"); | |||
380 | 368 | ||
381 | deferredResult = new Clipperz.Async.Deferred("MainController.selectCardHandler", {trace:true}); | 369 | deferredResult = new Clipperz.Async.Deferred("MainController.selectCardHandler", {trace:true}); |
382 | deferredResult.addMethod(this.cardDetail(), 'render'); | 370 | deferredResult.addMethod(this.cardDetail(), 'render'); |
383 | deferredResult.addMethod(this.jQTouch(), 'goTo', '#cardDetail', 'slideleft'); | 371 | // deferredResult.addMethod(this.jQTouch(), 'goTo', '#cardDetail', 'slideleft'); |
384 | deferredResult.addMethod(this.user(), 'getRecord', aCardReference); | 372 | deferredResult.addMethod(this.user(), 'getRecord', aCardReference); |
385 | deferredResult.addMethod(this.cardDetail(), 'showCard'); | 373 | deferredResult.addMethod(this.cardDetail(), 'showCard'); |
386 | deferredResult.callback(); | 374 | deferredResult.callback(); |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AccountPanel.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AccountPanel.js index d6b0574..82c8dfd 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AccountPanel.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AccountPanel.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AppPage.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AppPage.js index 3b3c8b4..da5fd76 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AppPage.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/AppPage.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/BookmarkletComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/BookmarkletComponent.js index 1835ca9..4cfca32 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/BookmarkletComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/BookmarkletComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogComponent.js index af33d85..8bb64f5 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -682,7 +680,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogComponent, Clipperz | |||
682 | }, | 680 | }, |
683 | 681 | ||
684 | 'showError': function (anError) { | 682 | 'showError': function (anError) { |
685 | //console.log(">>> showError", anError); | ||
686 | MochiKit.Style.hideElement(this.getId('progress')); | 683 | MochiKit.Style.hideElement(this.getId('progress')); |
687 | this.getElement('errorMessage').innerHTML = Clipperz.PM.Strings.errorDescriptionForException(anError['message']); | 684 | this.getElement('errorMessage').innerHTML = Clipperz.PM.Strings.errorDescriptionForException(anError['message']); |
688 | MochiKit.Style.showElement(this.getId('error')); | 685 | MochiKit.Style.showElement(this.getId('error')); |
@@ -762,7 +759,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogComponent, Clipperz | |||
762 | //------------------------------------------------------------------------- | 759 | //------------------------------------------------------------------------- |
763 | 760 | ||
764 | 'handleKeyEvent': function (anEvent) { | 761 | 'handleKeyEvent': function (anEvent) { |
765 | //console.log("####", anEvent.key().string); | ||
766 | if (anEvent.key().string == 'KEY_ESCAPE') { | 762 | if (anEvent.key().string == 'KEY_ESCAPE') { |
767 | MochiKit.Signal.signal(this, 'changedValue'); | 763 | MochiKit.Signal.signal(this, 'changedValue'); |
768 | this.cancel(); | 764 | this.cancel(); |
@@ -798,8 +794,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogComponent, Clipperz | |||
798 | 'onOkCloseToElement': null, //this.getElement('cancelButton'), | 794 | 'onOkCloseToElement': null, //this.getElement('cancelButton'), |
799 | 'onCancelCloseToElement':this.getElement('cancelButton') | 795 | 'onCancelCloseToElement':this.getElement('cancelButton') |
800 | }); | 796 | }); |
801 | // deferredResult.addCallback(function () { console.log("DELETE: " + anObject.toString(), anObject); }); | ||
802 | // deferredResult.addErrbackPass(function () { console.log("skip deletion: " + anObject.toString(), anObject); }); | ||
803 | deferredResult.callback(); | 797 | deferredResult.callback(); |
804 | 798 | ||
805 | return deferredResult; | 799 | return deferredResult; |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordDirectLoginComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordDirectLoginComponent.js index 2e61f5f..0cee650 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordDirectLoginComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordDirectLoginComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -55,7 +53,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogRecordDirectLoginCo | |||
55 | //------------------------------------------------------------------------- | 53 | //------------------------------------------------------------------------- |
56 | 54 | ||
57 | 'renderSelf': function() { | 55 | 'renderSelf': function() { |
58 | //console.log(">>> CardDialogRecordDirectLoginComponent.renderSelf"); | ||
59 | this.append(this.element(), [ | 56 | this.append(this.element(), [ |
60 | {tag:'div', cls:'cardDialogRecordDirectLoginComponent_favicon', children:[ | 57 | {tag:'div', cls:'cardDialogRecordDirectLoginComponent_favicon', children:[ |
61 | {tag:'img', cls:'favicon', id:this.getId('favicon')} | 58 | {tag:'img', cls:'favicon', id:this.getId('favicon')} |
@@ -117,7 +114,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogRecordDirectLoginCo | |||
117 | 114 | ||
118 | 'faviconComponent': function () { | 115 | 'faviconComponent': function () { |
119 | if (this._faviconComponent == null) { | 116 | if (this._faviconComponent == null) { |
120 | //console.log("created the FAVICON component"); | ||
121 | this._faviconComponent = new Clipperz.PM.UI.Common.Components.FaviconComponent({element:this.getId('favicon')}); | 117 | this._faviconComponent = new Clipperz.PM.UI.Common.Components.FaviconComponent({element:this.getId('favicon')}); |
122 | } | 118 | } |
123 | 119 | ||
@@ -160,7 +156,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogRecordDirectLoginCo | |||
160 | anEvent.preventDefault(); | 156 | anEvent.preventDefault(); |
161 | 157 | ||
162 | MochiKit.Signal.signal(this, 'editDirectLogin', this.reference()); | 158 | MochiKit.Signal.signal(this, 'editDirectLogin', this.reference()); |
163 | //console.log("EDIT DIRECT LOGIN"); | ||
164 | }, | 159 | }, |
165 | 160 | ||
166 | //------------------------------------------------------------------------- | 161 | //------------------------------------------------------------------------- |
@@ -169,7 +164,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogRecordDirectLoginCo | |||
169 | anEvent.preventDefault(); | 164 | anEvent.preventDefault(); |
170 | 165 | ||
171 | MochiKit.Signal.signal(this, 'deleteDirectLogin', this.reference()); | 166 | MochiKit.Signal.signal(this, 'deleteDirectLogin', this.reference()); |
172 | //console.log("DELETE DIRECT LOGIN"); | ||
173 | }, | 167 | }, |
174 | 168 | ||
175 | 169 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordFieldComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordFieldComponent.js index b58062c..689406a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordFieldComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CardDialogRecordFieldComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -169,8 +167,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.CardDialogRecordFieldComponen | |||
169 | 167 | ||
170 | 'handleActionLink': function (anEvent) { | 168 | 'handleActionLink': function (anEvent) { |
171 | anEvent.preventDefault(); | 169 | anEvent.preventDefault(); |
172 | |||
173 | //console.log("ACTION LINK - " + this.actionType()); | ||
174 | MochiKit.Signal.signal(this, 'performAction', this.reference(), anEvent.target()); | 170 | MochiKit.Signal.signal(this, 'performAction', this.reference(), anEvent.target()); |
175 | }, | 171 | }, |
176 | 172 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ColumnManager.js index 391c379..41e32a0 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CreateNewCardSplashComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CreateNewCardSplashComponent.js index d3aa175..3d0ba76 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CreateNewCardSplashComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/CreateNewCardSplashComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DataPanel.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DataPanel.js index 462d864..23f6710 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DataPanel.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DataPanel.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DateColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DateColumnManager.js index ea55ba4..b305045 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DateColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DateColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DeleteObjectColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DeleteObjectColumnManager.js index fe59494..6efe4c6 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DeleteObjectColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DeleteObjectColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginColumnManager.js index a1f0f9f..2dad703 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingBindingComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingBindingComponent.js index 1a76b0c..f5f99d4 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingBindingComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingBindingComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingComponent.js index 5114b1d..55d2c01 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -105,7 +103,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.DirectLoginEditingComponent, | |||
105 | }, | 103 | }, |
106 | 104 | ||
107 | 'setLabel': function (aValue) { | 105 | 'setLabel': function (aValue) { |
108 | //console.log("##> LABEL: " + aValue); | ||
109 | this.getElement('label').value = (aValue ? aValue : ''); | 106 | this.getElement('label').value = (aValue ? aValue : ''); |
110 | }, | 107 | }, |
111 | 108 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingFormValueComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingFormValueComponent.js index fa57233..58b5b26 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingFormValueComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginEditingFormValueComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -93,9 +91,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.DirectLoginEditingFormValueCo | |||
93 | //========================================================================= | 91 | //========================================================================= |
94 | 92 | ||
95 | 'renderSelf': function() { | 93 | 'renderSelf': function() { |
96 | //console.log(">>> DirectLoginEditingFormValueComponent.renderSelf"); | ||
97 | //console.log("FIELD OPTIONS", this.fieldOptions()); | ||
98 | //console.log("OPTION VALUES", this.optionValues()); | ||
99 | this.append(this.element(), {tag:'div', id:this.getId('div'), cls:'formValue', children:[ | 94 | this.append(this.element(), {tag:'div', id:this.getId('div'), cls:'formValue', children:[ |
100 | {tag:'span', cls:'formFieldName', html:this.formFieldName()}, | 95 | {tag:'span', cls:'formFieldName', html:this.formFieldName()}, |
101 | {tag:'div', id:this.getId('values')} | 96 | {tag:'div', id:this.getId('values')} |
@@ -141,13 +136,11 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.DirectLoginEditingFormValueCo | |||
141 | } else { | 136 | } else { |
142 | WTF = TODO; | 137 | WTF = TODO; |
143 | } | 138 | } |
144 | //console.log("<<< DirectLoginEditingFormValueComponent.renderSelf"); | ||
145 | }, | 139 | }, |
146 | 140 | ||
147 | //========================================================================= | 141 | //========================================================================= |
148 | 142 | ||
149 | 'handleSelectChange': function (anEvent) { | 143 | 'handleSelectChange': function (anEvent) { |
150 | //console.log("handleSelectChange", anEvent, anEvent.src(), anEvent.src().value); | ||
151 | var options; | 144 | var options; |
152 | 145 | ||
153 | options = {}; | 146 | options = {}; |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginsColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginsColumnManager.js index d8dc941..b4fc24e 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginsColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/DirectLoginsColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js index 6297002..bdb044a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/FaviconColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/GridComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/GridComponent.js index 51d55f4..21dddc9 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/GridComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/GridComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -125,13 +123,11 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.GridComponent, Clipperz.PM.UI | |||
125 | //------------------------------------------------------------------------- | 123 | //------------------------------------------------------------------------- |
126 | 124 | ||
127 | 'startSearch': function () { | 125 | 'startSearch': function () { |
128 | //console.log("--> startSearch"); | ||
129 | MochiKit.DOM.addElementClass(this.getElement('search'), 'running'); | 126 | MochiKit.DOM.addElementClass(this.getElement('search'), 'running'); |
130 | }, | 127 | }, |
131 | 128 | ||
132 | 'endSearch': function () { | 129 | 'endSearch': function () { |
133 | MochiKit.DOM.removeElementClass(this.getElement('search'), 'running'); | 130 | MochiKit.DOM.removeElementClass(this.getElement('search'), 'running'); |
134 | //console.log("<-- startSearch"); | ||
135 | }, | 131 | }, |
136 | 132 | ||
137 | //------------------------------------------------------------------------- | 133 | //------------------------------------------------------------------------- |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ImageColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ImageColumnManager.js index 3e03fcf..d1d9d7f 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ImageColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ImageColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LinkColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LinkColumnManager.js index f3f9cd5..69f735b 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LinkColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LinkColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginForm.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginForm.js index a10ba4f..38a9421 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginForm.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginForm.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginPage.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginPage.js index 2894af8..3498e3f 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginPage.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginPage.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginProgress.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginProgress.js index 26506e7..3fef6c5 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginProgress.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/LoginProgress.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -66,7 +64,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.LoginProgress, Clipperz.PM.UI | |||
66 | // loginProgressElement = this.append(this.element(), {tag:'div', id:'loginProgress', cls:'LoginProgress'}, true); | 64 | // loginProgressElement = this.append(this.element(), {tag:'div', id:'loginProgress', cls:'LoginProgress'}, true); |
67 | // } | 65 | // } |
68 | 66 | ||
69 | //console.log(">> LoginProgress.renderSelf", this.element()); | ||
70 | this.append(this.element(), {tag:'div', id:'loginProgress', cls:'LoginProgress', children: [ | 67 | this.append(this.element(), {tag:'div', id:'loginProgress', cls:'LoginProgress', children: [ |
71 | // this.append(loginProgressElement, [ | 68 | // this.append(loginProgressElement, [ |
72 | {tag:'div', cls:'header', children:[ | 69 | {tag:'div', cls:'header', children:[ |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js index feb16ad..06746d1 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/NewUserCreationComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -123,8 +121,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.NewUserCreationComponent, Cli | |||
123 | //------------------------------------------------------------------------- | 121 | //------------------------------------------------------------------------- |
124 | 122 | ||
125 | 'renderSelf': function() { | 123 | 'renderSelf': function() { |
126 | //console.log('** Clipperz.targetModalDimensionsAndPosition', Clipperz.Base.serializeJSON(Clipperz.PM.UI.Common.Components.BaseComponent.targetModalDimensionsAndPosition)); | ||
127 | |||
128 | this.append(this.element(), {tag:'div', cls:'NewUserCreation mainDialog', id:this.getId('panel'), children: [ | 124 | this.append(this.element(), {tag:'div', cls:'NewUserCreation mainDialog', id:this.getId('panel'), children: [ |
129 | {tag:'form', id:this.getId('form'), cls:'newUserCreationForm', children:[ | 125 | {tag:'form', id:this.getId('form'), cls:'newUserCreationForm', children:[ |
130 | {tag:'div', cls:'header', children:[ | 126 | {tag:'div', cls:'header', children:[ |
@@ -333,10 +329,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.NewUserCreationComponent, Cli | |||
333 | // MochiKit.Style.getElementDimensions(this.element())['h']; | 329 | // MochiKit.Style.getElementDimensions(this.element())['h']; |
334 | 330 | ||
335 | // result =MochiKit.Style.getElementPosition(this.getElement('footer'))['y']; | 331 | // result =MochiKit.Style.getElementPosition(this.getElement('footer'))['y']; |
336 | //console.log("### bottomMargin"); | ||
337 | //console.log('displayElement', this.displayElement()); | ||
338 | //console.log('-- Clipperz.targetModalDimensionsAndPosition', Clipperz.Base.serializeJSON(Clipperz.PM.UI.Common.Components.BaseComponent.targetModalDimensionsAndPosition)); | ||
339 | //console.log('element', MochiKit.Style.getElementPosition('modalDialog') ['y'], MochiKit.Style.getElementDimensions('modalDialog')['h']); | ||
340 | // result = 450; | 332 | // result = 450; |
341 | 333 | ||
342 | result =Clipperz.PM.UI.Common.Components.BaseComponent.targetModalDimensionsAndPosition['position']['y'] + | 334 | result =Clipperz.PM.UI.Common.Components.BaseComponent.targetModalDimensionsAndPosition['position']['y'] + |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/Page.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/Page.js index 3cc5a37..30cbeb2 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/Page.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/Page.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageFooter.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageFooter.js index dcf506f..df3ca0c 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageFooter.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageFooter.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageHeader.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageHeader.js index b8f3b05..5e49fb5 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageHeader.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PageHeader.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PasswordTooltip.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PasswordTooltip.js index 987e51e..5eb0c1f 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PasswordTooltip.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/PasswordTooltip.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/RulerComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/RulerComponent.js index 69c1ede..ad8d677 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/RulerComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/RulerComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -112,7 +110,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.RulerComponent, Clipperz.PM.U | |||
112 | ]} | 110 | ]} |
113 | ]} | 111 | ]} |
114 | ])); | 112 | ])); |
115 | //console.log("ELEMENT", this.element()); | ||
116 | 113 | ||
117 | MochiKit.Signal.connect(this.getElement('exit'), 'onclick', this, 'handleExit'); | 114 | MochiKit.Signal.connect(this.getElement('exit'), 'onclick', this, 'handleExit'); |
118 | 115 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TabSidePanel.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TabSidePanel.js index 666afe9..edcdb62 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TabSidePanel.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TabSidePanel.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TextColumnManager.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TextColumnManager.js index 3dc9ce9..9b1796a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TextColumnManager.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/TextColumnManager.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ToolsPanel.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ToolsPanel.js index 0fa369f..034ed91 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ToolsPanel.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/ToolsPanel.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UnlockPasswordComponent.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UnlockPasswordComponent.js index 21ccf2a..fe46729 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UnlockPasswordComponent.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UnlockPasswordComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -160,7 +158,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.UnlockPasswordComponent, Clip | |||
160 | }, | 158 | }, |
161 | 159 | ||
162 | 'userLoginFailedHandler': function (anEvent) { | 160 | 'userLoginFailedHandler': function (anEvent) { |
163 | //console.log("############### FAILED LOGIN ################"); | ||
164 | this.showFailure(); | 161 | this.showFailure(); |
165 | }, | 162 | }, |
166 | 163 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UserInfoBox.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UserInfoBox.js index d699dc6..fbf58e0 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UserInfoBox.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Components/UserInfoBox.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -76,7 +74,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.UserInfoBox, Clipperz.PM.UI.C | |||
76 | var deferredResult; | 74 | var deferredResult; |
77 | var shouldLock; | 75 | var shouldLock; |
78 | 76 | ||
79 | //console.log(">>> UserInfoBox.toggleLock [locked: " + this.isLocked() + "]"); | ||
80 | anEvent.preventDefault(); | 77 | anEvent.preventDefault(); |
81 | this.lockTooltip().hide(); | 78 | this.lockTooltip().hide(); |
82 | 79 | ||
@@ -98,7 +95,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.UserInfoBox, Clipperz.PM.UI.C | |||
98 | MochiKit.Base.partial(MochiKit.Signal.signal, this, 'unlock') | 95 | MochiKit.Base.partial(MochiKit.Signal.signal, this, 'unlock') |
99 | ], {trace:false}); | 96 | ], {trace:false}); |
100 | } | 97 | } |
101 | //console.log("<<< UserInfoBox.toggleLock"); | ||
102 | 98 | ||
103 | return deferredResult; | 99 | return deferredResult; |
104 | }, | 100 | }, |
@@ -133,7 +129,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.UserInfoBox, Clipperz.PM.UI.C | |||
133 | 129 | ||
134 | return deferredResult; | 130 | return deferredResult; |
135 | */ | 131 | */ |
136 | //console.log(">>> UserInfoBox.askForPassphrase"); | ||
137 | unlockPasswordComponent = new Clipperz.PM.UI.Web.Components.UnlockPasswordComponent({ | 132 | unlockPasswordComponent = new Clipperz.PM.UI.Web.Components.UnlockPasswordComponent({ |
138 | 'title':"Unlock account", | 133 | 'title':"Unlock account", |
139 | 'text': "Insert the passprase to unlock the account", | 134 | 'text': "Insert the passprase to unlock the account", |
@@ -146,7 +141,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Components.UserInfoBox, Clipperz.PM.UI.C | |||
146 | 'onOkCloseToElement': null, | 141 | 'onOkCloseToElement': null, |
147 | 'onCancelCloseToElement':this.getId('lock') | 142 | 'onCancelCloseToElement':this.getId('lock') |
148 | }); | 143 | }); |
149 | //console.log("<<< UserInfoBox.askForPassphrase"); | ||
150 | 144 | ||
151 | return unlockPasswordComponent.getPassphrase(); | 145 | return unlockPasswordComponent.getPassphrase(); |
152 | }, | 146 | }, |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js index 1ab2e69..3d9d6d3 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/AppController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -324,7 +322,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.AppController.prototype, { | |||
324 | }, | 322 | }, |
325 | 323 | ||
326 | 'handleDownloadOfflineCopy': function (anEvent) { | 324 | 'handleDownloadOfflineCopy': function (anEvent) { |
327 | console.log("AppController.handleDownloadOfflineCopy"); | ||
328 | var downloadHref; | 325 | var downloadHref; |
329 | 326 | ||
330 | downloadHref = window.location.href.replace(/\/[^\/]*$/,'') + Clipperz_dumpUrl; | 327 | downloadHref = window.location.href.replace(/\/[^\/]*$/,'') + Clipperz_dumpUrl; |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardDialogController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardDialogController.js index effde31..b1ff81f 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardDialogController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardDialogController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -374,7 +372,6 @@ Clipperz.Base.extend(Clipperz.PM.UI.Web.Controllers.CardDialogController, Object | |||
374 | //------------------------------------------------------------------------- | 372 | //------------------------------------------------------------------------- |
375 | 373 | ||
376 | 'handlePerformFieldAction': function (aFieldID, aTargetElement) { | 374 | 'handlePerformFieldAction': function (aFieldID, aTargetElement) { |
377 | //console.log("### targetElement", aTargetElement); | ||
378 | return Clipperz.Async.callbacks("CardDialogController.handleDeleteField", [ | 375 | return Clipperz.Async.callbacks("CardDialogController.handleDeleteField", [ |
379 | MochiKit.Base.method(this.record(), 'fields'), | 376 | MochiKit.Base.method(this.record(), 'fields'), |
380 | MochiKit.Base.itemgetter(aFieldID), | 377 | MochiKit.Base.itemgetter(aFieldID), |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardsController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardsController.js index f58f0b8..68b5b9f 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardsController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/CardsController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginWizardController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginWizardController.js index c025a51..92ed6e3 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginWizardController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginWizardController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -163,7 +161,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.DirectLoginWizardController. | |||
163 | }, | 161 | }, |
164 | 162 | ||
165 | 'setOriginalBindings': function (aValue) { | 163 | 'setOriginalBindings': function (aValue) { |
166 | //console.log("BINDINGS", aValue); | ||
167 | this._originalBindings = aValue; | 164 | this._originalBindings = aValue; |
168 | }, | 165 | }, |
169 | 166 | ||
@@ -407,8 +404,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.DirectLoginWizardController. | |||
407 | MochiKit.Base.method(this.directLoginEditingComponent(), 'bindingComponents'), | 404 | MochiKit.Base.method(this.directLoginEditingComponent(), 'bindingComponents'), |
408 | // MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.bind(function (aBindingComponent) { | 405 | // MochiKit.Base.partial(MochiKit.Base.map, MochiKit.Base.bind(function (aBindingComponent) { |
409 | Clipperz.Async.forEach(MochiKit.Base.bind(function (aBindingComponent) { | 406 | Clipperz.Async.forEach(MochiKit.Base.bind(function (aBindingComponent) { |
410 | //console.log("aBindingComponent", aBindingComponent); | ||
411 | // this.directLogin(). | ||
412 | return Clipperz.Async.callbacks("DirectLoginWizardController.done - update directLogin bindings", [ | 407 | return Clipperz.Async.callbacks("DirectLoginWizardController.done - update directLogin bindings", [ |
413 | MochiKit.Base.method(this.directLogin(), 'bindings'), | 408 | MochiKit.Base.method(this.directLogin(), 'bindings'), |
414 | MochiKit.Base.itemgetter(aBindingComponent.formFieldName()), | 409 | MochiKit.Base.itemgetter(aBindingComponent.formFieldName()), |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginsController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginsController.js index 6ca3be4..7ab512a 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginsController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/DirectLoginsController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/FilterController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/FilterController.js index bfc093a..de59ec3 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/FilterController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/FilterController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/GridController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/GridController.js index 8bb3016..44fbdef 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/GridController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/GridController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/LoginController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/LoginController.js index a57152d..ac85d36 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/LoginController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/LoginController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -212,13 +210,12 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.LoginController.prototype, { | |||
212 | 'handleFailedLogin': function(aLoginProgress, anError) { | 210 | 'handleFailedLogin': function(aLoginProgress, anError) { |
213 | var result; | 211 | var result; |
214 | 212 | ||
215 | //console.log("anError", anError); | ||
216 | if (anError instanceof MochiKit.Async.CancelledError) { | 213 | if (anError instanceof MochiKit.Async.CancelledError) { |
217 | result = anError; | 214 | result = anError; |
218 | } else { | 215 | } else { |
219 | var deferredResult; | 216 | var deferredResult; |
220 | 217 | ||
221 | MochiKit.Logging.logError("## MainController - FAILED LOGIN: " + anError); | 218 | Clipperz.logError("## MainController - FAILED LOGIN: " + anError); |
222 | deferredResult = new MochiKit.Async.Deferred(); | 219 | deferredResult = new MochiKit.Async.Deferred(); |
223 | 220 | ||
224 | aLoginProgress.showErrorMessage("failed login"); | 221 | aLoginProgress.showErrorMessage("failed login"); |
@@ -237,8 +234,7 @@ MochiKit.Logging.logError("## MainController - FAILED LOGIN: " + anError); | |||
237 | if (anError instanceof MochiKit.Async.CancelledError) { | 234 | if (anError instanceof MochiKit.Async.CancelledError) { |
238 | result = anError; | 235 | result = anError; |
239 | } else { | 236 | } else { |
240 | MochiKit.Logging.logError("## MainController - GENERIC ERROR" + "\n" + "==>> " + anError + " <<==\n" + anError.stack); | 237 | Clipperz.logError("## MainController - GENERIC ERROR" + "\n" + "==>> " + anError + " <<==\n" + anError.stack); |
241 | //console.log(anError); | ||
242 | result = new MochiKit.Async.CancelledError(anError); | 238 | result = new MochiKit.Async.CancelledError(anError); |
243 | } | 239 | } |
244 | 240 | ||
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/MainController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/MainController.js index c83e3c0..9194125 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/MainController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/MainController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -175,14 +173,8 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.MainController.prototype, { | |||
175 | //------------------------------------------------------------------------- | 173 | //------------------------------------------------------------------------- |
176 | 174 | ||
177 | 'loginControllerUserLoggedInCallback': function(anEvent) { | 175 | 'loginControllerUserLoggedInCallback': function(anEvent) { |
178 | //Clipperz.log(">>> loginControllerUserLoggedInCallback", anEvent); | ||
179 | // this.setUser(anEvent.parameters()['user']); | ||
180 | //console.log("--- loginControllerUserLoggedInCallback - 1"); | ||
181 | |||
182 | //console.log("--- loginControllerUserLoggedInCallback - 2"); | ||
183 | this.headerComponent().switchToLoggedMode(); | 176 | this.headerComponent().switchToLoggedMode(); |
184 | this.appController().run({slot:this.pageComponent().slotNamed('body'), user:anEvent['user']}); | 177 | this.appController().run({slot:this.pageComponent().slotNamed('body'), user:anEvent['user']}); |
185 | //Clipperz.log("<<< loginControllerUserLoggedInCallback"); | ||
186 | }, | 178 | }, |
187 | 179 | ||
188 | //----------------------------------------------------------------------------- | 180 | //----------------------------------------------------------------------------- |
diff --git a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/NewUserWizardController.js b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/NewUserWizardController.js index 7db6888..b70aa17 100644 --- a/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/NewUserWizardController.js +++ b/frontend/gamma/js/Clipperz/PM/UI/Web/Controllers/NewUserWizardController.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -72,7 +70,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.NewUserWizardController.prot | |||
72 | }, | 70 | }, |
73 | 71 | ||
74 | 'setUserCreationState': function (aValue) { | 72 | 'setUserCreationState': function (aValue) { |
75 | //console.log("+++ NewUserWizardController.setUserCreationState", aValue); | ||
76 | this._userCreationState = aValue; | 73 | this._userCreationState = aValue; |
77 | this.checkState(); | 74 | this.checkState(); |
78 | }, | 75 | }, |
@@ -222,8 +219,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.NewUserWizardController.prot | |||
222 | case 'TERMS_OF_SERVICE': | 219 | case 'TERMS_OF_SERVICE': |
223 | this.newUserCreationComponent().enableTermsOfServicePanel(); | 220 | this.newUserCreationComponent().enableTermsOfServicePanel(); |
224 | 221 | ||
225 | //console.log("awareOfUnrecoverablePassphrase", this.newUserCreationComponent().awareOfUnrecoverablePassphrase()); | ||
226 | //console.log("readTermsOfService", this.newUserCreationComponent().readTermsOfService()); | ||
227 | enableNext = ( | 222 | enableNext = ( |
228 | (this.newUserCreationComponent().awareOfUnrecoverablePassphrase() == 'on') | 223 | (this.newUserCreationComponent().awareOfUnrecoverablePassphrase() == 'on') |
229 | && | 224 | && |
@@ -231,7 +226,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.NewUserWizardController.prot | |||
231 | ) | 226 | ) |
232 | break; | 227 | break; |
233 | case 'CREATE_USER': | 228 | case 'CREATE_USER': |
234 | //console.log(">>> CREATE_USER", this.userCreationState()); | ||
235 | this.newUserCreationComponent().enableCreateUserPanel(); | 229 | this.newUserCreationComponent().enableCreateUserPanel(); |
236 | 230 | ||
237 | switch (this.userCreationState()) { | 231 | switch (this.userCreationState()) { |
@@ -337,7 +331,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.NewUserWizardController.prot | |||
337 | 331 | ||
338 | afterMoveAction = MochiKit.Base.noop; | 332 | afterMoveAction = MochiKit.Base.noop; |
339 | 333 | ||
340 | //console.log("<-- backward", this.currentStep()); | ||
341 | switch(this.currentStep()) { | 334 | switch(this.currentStep()) { |
342 | case 'CREDENTIALS': | 335 | case 'CREDENTIALS': |
343 | case 'CHECK_CREDENTIALS': | 336 | case 'CHECK_CREDENTIALS': |
@@ -406,7 +399,6 @@ MochiKit.Base.update(Clipperz.PM.UI.Web.Controllers.NewUserWizardController.prot | |||
406 | //------------------------------------------------------------------------- | 399 | //------------------------------------------------------------------------- |
407 | 400 | ||
408 | 'handleNewUserCreationComponentKeyPressed': function (anEvent) { | 401 | 'handleNewUserCreationComponentKeyPressed': function (anEvent) { |
409 | //console.log(">>> handleNewUserCreationComponentKeyPressed", anEvent.key().string); | ||
410 | if (anEvent.key().string == 'KEY_ENTER') { | 402 | if (anEvent.key().string == 'KEY_ENTER') { |
411 | if (anEvent.target().nodeName != 'TEXTAREA') { | 403 | if (anEvent.target().nodeName != 'TEXTAREA') { |
412 | anEvent.preventDefault(); | 404 | anEvent.preventDefault(); |
diff --git a/frontend/gamma/js/Clipperz/Set.js b/frontend/gamma/js/Clipperz/Set.js index 7023888..b3831a4 100644 --- a/frontend/gamma/js/Clipperz/Set.js +++ b/frontend/gamma/js/Clipperz/Set.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Signal.js b/frontend/gamma/js/Clipperz/Signal.js index ca3e322..f9b74c9 100644 --- a/frontend/gamma/js/Clipperz/Signal.js +++ b/frontend/gamma/js/Clipperz/Signal.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Style.js b/frontend/gamma/js/Clipperz/Style.js index d377893..acbe71b 100644 --- a/frontend/gamma/js/Clipperz/Style.js +++ b/frontend/gamma/js/Clipperz/Style.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/Visual.js b/frontend/gamma/js/Clipperz/Visual.js index c2da3b7..93ed725 100644 --- a/frontend/gamma/js/Clipperz/Visual.js +++ b/frontend/gamma/js/Clipperz/Visual.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/YUI/DomHelper.js b/frontend/gamma/js/Clipperz/YUI/DomHelper.js index 87c74f5..0a1f9fe 100644 --- a/frontend/gamma/js/Clipperz/YUI/DomHelper.js +++ b/frontend/gamma/js/Clipperz/YUI/DomHelper.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
@@ -440,18 +438,13 @@ Clipperz.YUI.DomHelper.Template.prototype = { | |||
440 | var sanitizedValues; | 438 | var sanitizedValues; |
441 | var key; | 439 | var key; |
442 | 440 | ||
443 | // sanitizedValues = MochiKit.Base.map(sanitizedValues) | ||
444 | //console.log("values", values); | ||
445 | sanitizedValues = {}; | 441 | sanitizedValues = {}; |
446 | for (key in values) { | 442 | for (key in values) { |
447 | sanitizedValues[key] = Clipperz.Base.sanitizeString(values[key]); | 443 | sanitizedValues[key] = Clipperz.Base.sanitizeString(values[key]); |
448 | } | 444 | } |
449 | //console.log("sanitizedValues", sanitizedValues); | ||
450 | // el = el.dom ? el.dom : YAHOO.util.Dom.get(el); | ||
451 | el = (typeof el == 'string') ? YAHOO.util.Dom.get(el) : el; | 445 | el = (typeof el == 'string') ? YAHOO.util.Dom.get(el) : el; |
452 | //Clipperz.log(this.applyTemplate(sanitizedValues)); | ||
453 | var newNode = Clipperz.YUI.DomHelper.insertHtml('beforeEnd', el, this.applyTemplate(sanitizedValues)); | 446 | var newNode = Clipperz.YUI.DomHelper.insertHtml('beforeEnd', el, this.applyTemplate(sanitizedValues)); |
454 | // return returnElement ? YAHOO.Element.get(newNode, true) : newNode; | 447 | |
455 | return newNode; | 448 | return newNode; |
456 | }, | 449 | }, |
457 | 450 | ||
diff --git a/frontend/gamma/js/Clipperz/YUI/DomQuery.js b/frontend/gamma/js/Clipperz/YUI/DomQuery.js index 76d0fae..c1af0ca 100644 --- a/frontend/gamma/js/Clipperz/YUI/DomQuery.js +++ b/frontend/gamma/js/Clipperz/YUI/DomQuery.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/Clipperz/YUI/Utils.js b/frontend/gamma/js/Clipperz/YUI/Utils.js index e9929fc..4def842 100644 --- a/frontend/gamma/js/Clipperz/YUI/Utils.js +++ b/frontend/gamma/js/Clipperz/YUI/Utils.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/AES.js b/frontend/gamma/js/ClipperzCryptoLibrary/AES.js new file mode 100644 index 0000000..cbbbb13 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/AES.js | |||
@@ -0,0 +1,864 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.AES depends on Clipperz.ByteArray!"; | ||
26 | } | ||
27 | |||
28 | //Dependency commented to avoid a circular reference | ||
29 | //try { if (typeof(Clipperz.Crypto.PRNG) == 'undefined') { throw ""; }} catch (e) { | ||
30 | //throw "Clipperz.Crypto.AES depends on Clipperz.Crypto.PRNG!"; | ||
31 | //} | ||
32 | |||
33 | if (typeof(Clipperz.Crypto.AES) == 'undefined') { Clipperz.Crypto.AES = {}; } | ||
34 | |||
35 | //############################################################################# | ||
36 | |||
37 | Clipperz.Crypto.AES.DeferredExecutionContext = function(args) { | ||
38 | args = args || {}; | ||
39 | |||
40 | this._key = args.key; | ||
41 | this._message = args.message; | ||
42 | this._result = args.message.clone(); | ||
43 | this._nonce = args.nonce; | ||
44 | this._messageLength = this._message.length(); | ||
45 | |||
46 | this._messageArray = this._message.arrayValues(); | ||
47 | this._resultArray = this._result.arrayValues(); | ||
48 | this._nonceArray = this._nonce.arrayValues(); | ||
49 | |||
50 | this._executionStep = 0; | ||
51 | |||
52 | // this._elaborationChunkSize = 1024; // 4096; // 16384; //4096; | ||
53 | this._elaborationChunks = 10; | ||
54 | this._pauseTime = 0.02; // 0.02 //0.2; | ||
55 | |||
56 | return this; | ||
57 | } | ||
58 | |||
59 | Clipperz.Crypto.AES.DeferredExecutionContext.prototype = MochiKit.Base.update(null, { | ||
60 | |||
61 | 'key': function() { | ||
62 | return this._key; | ||
63 | }, | ||
64 | |||
65 | 'message': function() { | ||
66 | return this._message; | ||
67 | }, | ||
68 | |||
69 | 'messageLength': function() { | ||
70 | return this._messageLength; | ||
71 | }, | ||
72 | |||
73 | 'result': function() { | ||
74 | return new Clipperz.ByteArray(this.resultArray()); | ||
75 | }, | ||
76 | |||
77 | 'nonce': function() { | ||
78 | return this._nonce; | ||
79 | }, | ||
80 | |||
81 | 'messageArray': function() { | ||
82 | return this._messageArray; | ||
83 | }, | ||
84 | |||
85 | 'resultArray': function() { | ||
86 | return this._resultArray; | ||
87 | }, | ||
88 | |||
89 | 'nonceArray': function() { | ||
90 | return this._nonceArray; | ||
91 | }, | ||
92 | |||
93 | 'elaborationChunkSize': function() { | ||
94 | // return Clipperz.Crypto.AES.DeferredExecution.chunkSize; | ||
95 | // return this._elaborationChunkSize; | ||
96 | return (this._elaborationChunks * 1024); | ||
97 | }, | ||
98 | |||
99 | 'executionStep': function() { | ||
100 | return this._executionStep; | ||
101 | }, | ||
102 | |||
103 | 'setExecutionStep': function(aValue) { | ||
104 | this._executionStep = aValue; | ||
105 | }, | ||
106 | |||
107 | 'tuneExecutionParameters': function (anElapsedTime) { | ||
108 | //var originalChunks = this._elaborationChunks; | ||
109 | if (anElapsedTime > 0) { | ||
110 | this._elaborationChunks = Math.round(this._elaborationChunks * ((anElapsedTime + 1000)/(anElapsedTime * 2))); | ||
111 | } | ||
112 | //Clipperz.log("tuneExecutionParameters - elapsedTime: " + anElapsedTime + /*originalChunks,*/ " chunks # " + this._elaborationChunks + " [" + this._executionStep + " / " + this._messageLength + "]"); | ||
113 | }, | ||
114 | |||
115 | 'pause': function(aValue) { | ||
116 | // return MochiKit.Async.wait(Clipperz.Crypto.AES.DeferredExecution.pauseTime, aValue); | ||
117 | return MochiKit.Async.wait(this._pauseTime, aValue); | ||
118 | }, | ||
119 | |||
120 | 'isDone': function () { | ||
121 | //console.log("isDone", this.executionStep(), this.messageLength()); | ||
122 | return (this._executionStep >= this._messageLength); | ||
123 | }, | ||
124 | |||
125 | //----------------------------------------------------------------------------- | ||
126 | __syntaxFix__: "syntax fix" | ||
127 | |||
128 | }); | ||
129 | |||
130 | //############################################################################# | ||
131 | |||
132 | Clipperz.Crypto.AES.Key = function(args) { | ||
133 | args = args || {}; | ||
134 | |||
135 | this._key = args.key; | ||
136 | this._keySize = args.keySize || this.key().length(); | ||
137 | |||
138 | if (this.keySize() == 128/8) { | ||
139 | this._b = 176; | ||
140 | this._numberOfRounds = 10; | ||
141 | } else if (this.keySize() == 256/8) { | ||
142 | this._b = 240; | ||
143 | this._numberOfRounds = 14; | ||
144 | } else { | ||
145 | MochiKit.Logging.logError("AES unsupported key size: " + (this.keySize() * 8) + " bits"); | ||
146 | throw Clipperz.Crypto.AES.exception.UnsupportedKeySize; | ||
147 | } | ||
148 | |||
149 | this._stretchedKey = null; | ||
150 | |||
151 | return this; | ||
152 | } | ||
153 | |||
154 | Clipperz.Crypto.AES.Key.prototype = MochiKit.Base.update(null, { | ||
155 | |||
156 | 'asString': function() { | ||
157 | return "Clipperz.Crypto.AES.Key (" + this.key().toHexString() + ")"; | ||
158 | }, | ||
159 | |||
160 | //----------------------------------------------------------------------------- | ||
161 | |||
162 | 'key': function() { | ||
163 | return this._key; | ||
164 | }, | ||
165 | |||
166 | 'keySize': function() { | ||
167 | return this._keySize; | ||
168 | }, | ||
169 | |||
170 | 'b': function() { | ||
171 | return this._b; | ||
172 | }, | ||
173 | |||
174 | 'numberOfRounds': function() { | ||
175 | return this._numberOfRounds; | ||
176 | }, | ||
177 | //========================================================================= | ||
178 | |||
179 | 'keyScheduleCore': function(aWord, aRoundConstantsIndex) { | ||
180 | varresult; | ||
181 | var sbox; | ||
182 | |||
183 | sbox = Clipperz.Crypto.AES.sbox(); | ||
184 | |||
185 | result = [sbox[aWord[1]] ^ Clipperz.Crypto.AES.roundConstants()[aRoundConstantsIndex], | ||
186 | sbox[aWord[2]], | ||
187 | sbox[aWord[3]], | ||
188 | sbox[aWord[0]]]; | ||
189 | |||
190 | return result; | ||
191 | }, | ||
192 | |||
193 | //----------------------------------------------------------------------------- | ||
194 | |||
195 | 'xorWithPreviousStretchValues': function(aKey, aWord, aPreviousWordIndex) { | ||
196 | varresult; | ||
197 | var i,c; | ||
198 | |||
199 | result = []; | ||
200 | c = 4; | ||
201 | for (i=0; i<c; i++) { | ||
202 | result[i] = aWord[i] ^ aKey.byteAtIndex(aPreviousWordIndex + i); | ||
203 | } | ||
204 | |||
205 | return result; | ||
206 | }, | ||
207 | |||
208 | //----------------------------------------------------------------------------- | ||
209 | |||
210 | 'sboxShakeup': function(aWord) { | ||
211 | var result; | ||
212 | var sbox; | ||
213 | var i,c; | ||
214 | |||
215 | result = []; | ||
216 | sbox = Clipperz.Crypto.AES.sbox(); | ||
217 | c =4; | ||
218 | for (i=0; i<c; i++) { | ||
219 | result[i] = sbox[aWord[i]]; | ||
220 | } | ||
221 | |||
222 | return result; | ||
223 | }, | ||
224 | |||
225 | //----------------------------------------------------------------------------- | ||
226 | |||
227 | 'stretchKey': function(aKey) { | ||
228 | varcurrentWord; | ||
229 | varkeyLength; | ||
230 | varpreviousStretchIndex; | ||
231 | var i,c; | ||
232 | |||
233 | keyLength = aKey.length(); | ||
234 | previousStretchIndex = keyLength - this.keySize(); | ||
235 | |||
236 | currentWord = [aKey.byteAtIndex(keyLength - 4), | ||
237 | aKey.byteAtIndex(keyLength - 3), | ||
238 | aKey.byteAtIndex(keyLength - 2), | ||
239 | aKey.byteAtIndex(keyLength - 1)]; | ||
240 | currentWord = this.keyScheduleCore(currentWord, keyLength / this.keySize()); | ||
241 | |||
242 | if (this.keySize() == 256/8) { | ||
243 | c = 8; | ||
244 | } else if (this.keySize() == 128/8){ | ||
245 | c = 4; | ||
246 | } | ||
247 | |||
248 | for (i=0; i<c; i++) { | ||
249 | if (i == 4) { | ||
250 | //fifth streatch word | ||
251 | currentWord = this.sboxShakeup(currentWord); | ||
252 | } | ||
253 | |||
254 | currentWord = this.xorWithPreviousStretchValues(aKey, currentWord, previousStretchIndex + (i*4)); | ||
255 | aKey.appendBytes(currentWord); | ||
256 | } | ||
257 | |||
258 | return aKey; | ||
259 | }, | ||
260 | |||
261 | //----------------------------------------------------------------------------- | ||
262 | |||
263 | 'stretchedKey': function() { | ||
264 | if (this._stretchedKey == null) { | ||
265 | var stretchedKey; | ||
266 | |||
267 | stretchedKey = this.key().clone(); | ||
268 | |||
269 | while (stretchedKey.length() < this.keySize()) { | ||
270 | stretchedKey.appendByte(0); | ||
271 | } | ||
272 | |||
273 | while (stretchedKey.length() < this.b()) { | ||
274 | stretchedKey = this.stretchKey(stretchedKey); | ||
275 | } | ||
276 | |||
277 | this._stretchedKey = stretchedKey.split(0, this.b()); | ||
278 | } | ||
279 | |||
280 | return this._stretchedKey; | ||
281 | }, | ||
282 | |||
283 | //========================================================================= | ||
284 | __syntaxFix__: "syntax fix" | ||
285 | }); | ||
286 | |||
287 | //############################################################################# | ||
288 | |||
289 | Clipperz.Crypto.AES.State = function(args) { | ||
290 | args = args || {}; | ||
291 | |||
292 | this._data = args.block; | ||
293 | this._key = args.key; | ||
294 | |||
295 | return this; | ||
296 | } | ||
297 | |||
298 | Clipperz.Crypto.AES.State.prototype = MochiKit.Base.update(null, { | ||
299 | |||
300 | 'key': function() { | ||
301 | return this._key; | ||
302 | }, | ||
303 | |||
304 | //----------------------------------------------------------------------------- | ||
305 | |||
306 | 'data': function() { | ||
307 | return this._data; | ||
308 | }, | ||
309 | |||
310 | 'setData': function(aValue) { | ||
311 | this._data = aValue; | ||
312 | }, | ||
313 | |||
314 | //========================================================================= | ||
315 | |||
316 | 'addRoundKey': function(aRoundNumber) { | ||
317 | //each byte of the state is combined with the round key; each round key is derived from the cipher key using a key schedule. | ||
318 | vardata; | ||
319 | varstretchedKey; | ||
320 | varfirstStretchedKeyIndex; | ||
321 | var i,c; | ||
322 | |||
323 | data = this.data(); | ||
324 | stretchedKey = this.key().stretchedKey(); | ||
325 | firstStretchedKeyIndex = aRoundNumber * (128/8); | ||
326 | c = 128/8; | ||
327 | for (i=0; i<c; i++) { | ||
328 | data[i] = data[i] ^ stretchedKey.byteAtIndex(firstStretchedKeyIndex + i); | ||
329 | } | ||
330 | }, | ||
331 | |||
332 | //----------------------------------------------------------------------------- | ||
333 | |||
334 | 'subBytes': function() { | ||
335 | // a non-linear substitution step where each byte is replaced with another according to a lookup table. | ||
336 | var i,c; | ||
337 | vardata; | ||
338 | var sbox; | ||
339 | |||
340 | data = this.data(); | ||
341 | sbox = Clipperz.Crypto.AES.sbox(); | ||
342 | |||
343 | c = 16; | ||
344 | for (i=0; i<c; i++) { | ||
345 | data[i] = sbox[data[i]]; | ||
346 | } | ||
347 | }, | ||
348 | |||
349 | //----------------------------------------------------------------------------- | ||
350 | |||
351 | 'shiftRows': function() { | ||
352 | //a transposition step where each row of the state is shifted cyclically a certain number of steps. | ||
353 | varnewValue; | ||
354 | vardata; | ||
355 | varshiftMapping; | ||
356 | vari,c; | ||
357 | |||
358 | newValue = new Array(16); | ||
359 | data = this.data(); | ||
360 | shiftMapping = Clipperz.Crypto.AES.shiftRowMapping(); | ||
361 | // [0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 1, 6, 11]; | ||
362 | c = 16; | ||
363 | for (i=0; i<c; i++) { | ||
364 | newValue[i] = data[shiftMapping[i]]; | ||
365 | } | ||
366 | for (i=0; i<c; i++) { | ||
367 | data[i] = newValue[i]; | ||
368 | } | ||
369 | }, | ||
370 | |||
371 | //----------------------------------------------------------------------------- | ||
372 | /* | ||
373 | 'mixColumnsWithValues': function(someValues) { | ||
374 | varresult; | ||
375 | vara; | ||
376 | var i,c; | ||
377 | |||
378 | c = 4; | ||
379 | result = []; | ||
380 | a = []; | ||
381 | for (i=0; i<c; i++) { | ||
382 | a[i] = []; | ||
383 | a[i][1] = someValues[i] | ||
384 | if ((a[i][1] & 0x80) == 0x80) { | ||
385 | a[i][2] = (a[i][1] << 1) ^ 0x11b; | ||
386 | } else { | ||
387 | a[i][2] = a[i][1] << 1; | ||
388 | } | ||
389 | |||
390 | a[i][3] = a[i][2] ^ a[i][1]; | ||
391 | } | ||
392 | |||
393 | for (i=0; i<c; i++) { | ||
394 | varx; | ||
395 | |||
396 | x = Clipperz.Crypto.AES.mixColumnsMatrix()[i]; | ||
397 | result[i] = a[0][x[0]] ^ a[1][x[1]] ^ a[2][x[2]] ^ a[3][x[3]]; | ||
398 | } | ||
399 | |||
400 | return result; | ||
401 | }, | ||
402 | |||
403 | 'mixColumns': function() { | ||
404 | //a mixing operation which operates on the columns of the state, combining the four bytes in each column using a linear transformation. | ||
405 | var data; | ||
406 | var i, c; | ||
407 | |||
408 | data = this.data(); | ||
409 | c = 4; | ||
410 | for(i=0; i<c; i++) { | ||
411 | varblockIndex; | ||
412 | var mixedValues; | ||
413 | |||
414 | blockIndex = i * 4; | ||
415 | mixedValues = this.mixColumnsWithValues([data[blockIndex + 0], | ||
416 | data[blockIndex + 1], | ||
417 | data[blockIndex + 2], | ||
418 | data[blockIndex + 3]]); | ||
419 | data[blockIndex + 0] = mixedValues[0]; | ||
420 | data[blockIndex + 1] = mixedValues[1]; | ||
421 | data[blockIndex + 2] = mixedValues[2]; | ||
422 | data[blockIndex + 3] = mixedValues[3]; | ||
423 | } | ||
424 | }, | ||
425 | */ | ||
426 | |||
427 | 'mixColumns': function() { | ||
428 | //a mixing operation which operates on the columns of the state, combining the four bytes in each column using a linear transformation. | ||
429 | var data; | ||
430 | var i, c; | ||
431 | var a_1; | ||
432 | var a_2; | ||
433 | |||
434 | a_1 = new Array(4); | ||
435 | a_2 = new Array(4); | ||
436 | |||
437 | data = this.data(); | ||
438 | c = 4; | ||
439 | for(i=0; i<c; i++) { | ||
440 | varblockIndex; | ||
441 | var ii, cc; | ||
442 | |||
443 | blockIndex = i * 4; | ||
444 | |||
445 | cc = 4; | ||
446 | for (ii=0; ii<cc; ii++) { | ||
447 | var value; | ||
448 | |||
449 | value = data[blockIndex + ii]; | ||
450 | a_1[ii] = value; | ||
451 | a_2[ii] = (value & 0x80) ? ((value << 1) ^ 0x011b) : (value << 1); | ||
452 | } | ||
453 | |||
454 | data[blockIndex + 0] = a_2[0] ^ a_1[1] ^ a_2[1] ^ a_1[2] ^ a_1[3]; | ||
455 | data[blockIndex + 1] = a_1[0] ^ a_2[1] ^ a_1[2] ^ a_2[2] ^ a_1[3]; | ||
456 | data[blockIndex + 2] = a_1[0] ^ a_1[1] ^ a_2[2] ^ a_1[3] ^ a_2[3]; | ||
457 | data[blockIndex + 3] = a_1[0] ^ a_2[0] ^ a_1[1] ^ a_1[2] ^ a_2[3]; | ||
458 | } | ||
459 | }, | ||
460 | |||
461 | //========================================================================= | ||
462 | |||
463 | 'spinRound': function(aRoundNumber) { | ||
464 | this.addRoundKey(aRoundNumber); | ||
465 | this.subBytes(); | ||
466 | this.shiftRows(); | ||
467 | this.mixColumns(); | ||
468 | }, | ||
469 | |||
470 | 'spinLastRound': function() { | ||
471 | this.addRoundKey(this.key().numberOfRounds() - 1); | ||
472 | this.subBytes(); | ||
473 | this.shiftRows(); | ||
474 | this.addRoundKey(this.key().numberOfRounds()); | ||
475 | }, | ||
476 | |||
477 | //========================================================================= | ||
478 | |||
479 | 'encrypt': function() { | ||
480 | vari,c; | ||
481 | |||
482 | c = this.key().numberOfRounds() - 1; | ||
483 | for (i=0; i<c; i++) { | ||
484 | this.spinRound(i); | ||
485 | } | ||
486 | |||
487 | this.spinLastRound(); | ||
488 | }, | ||
489 | |||
490 | //========================================================================= | ||
491 | __syntaxFix__: "syntax fix" | ||
492 | }); | ||
493 | |||
494 | //############################################################################# | ||
495 | |||
496 | Clipperz.Crypto.AES.VERSION = "0.1"; | ||
497 | Clipperz.Crypto.AES.NAME = "Clipperz.Crypto.AES"; | ||
498 | |||
499 | MochiKit.Base.update(Clipperz.Crypto.AES, { | ||
500 | |||
501 | //http://www.cs.eku.edu/faculty/styer/460/Encrypt/JS-AES.html | ||
502 | //http://en.wikipedia.org/wiki/Advanced_Encryption_Standard | ||
503 | //http://en.wikipedia.org/wiki/Rijndael_key_schedule | ||
504 | //http://en.wikipedia.org/wiki/Rijndael_S-box | ||
505 | |||
506 | '__repr__': function () { | ||
507 | return "[" + this.NAME + " " + this.VERSION + "]"; | ||
508 | }, | ||
509 | |||
510 | 'toString': function () { | ||
511 | return this.__repr__(); | ||
512 | }, | ||
513 | |||
514 | //============================================================================= | ||
515 | |||
516 | '_sbox': null, | ||
517 | 'sbox': function() { | ||
518 | if (Clipperz.Crypto.AES._sbox == null) { | ||
519 | Clipperz.Crypto.AES._sbox = [ | ||
520 | 0x63, 0x7c, 0x77, 0x7b, 0xf2, 0x6b, 0x6f, 0xc5, 0x30, 0x01, 0x67, 0x2b, 0xfe, 0xd7, 0xab, 0x76, | ||
521 | 0xca, 0x82, 0xc9, 0x7d, 0xfa, 0x59, 0x47, 0xf0, 0xad, 0xd4, 0xa2, 0xaf, 0x9c, 0xa4, 0x72, 0xc0, | ||
522 | 0xb7, 0xfd, 0x93, 0x26, 0x36, 0x3f, 0xf7, 0xcc, 0x34, 0xa5, 0xe5, 0xf1, 0x71, 0xd8, 0x31, 0x15, | ||
523 | 0x04, 0xc7, 0x23, 0xc3, 0x18, 0x96, 0x05, 0x9a, 0x07, 0x12, 0x80, 0xe2, 0xeb, 0x27, 0xb2, 0x75, | ||
524 | 0x09, 0x83, 0x2c, 0x1a, 0x1b, 0x6e, 0x5a, 0xa0, 0x52, 0x3b, 0xd6, 0xb3, 0x29, 0xe3, 0x2f, 0x84, | ||
525 | 0x53, 0xd1, 0x00, 0xed, 0x20, 0xfc, 0xb1, 0x5b, 0x6a, 0xcb, 0xbe, 0x39, 0x4a, 0x4c, 0x58, 0xcf, | ||
526 | 0xd0, 0xef, 0xaa, 0xfb, 0x43, 0x4d, 0x33, 0x85, 0x45, 0xf9, 0x02, 0x7f, 0x50, 0x3c, 0x9f, 0xa8, | ||
527 | 0x51, 0xa3, 0x40, 0x8f, 0x92, 0x9d, 0x38, 0xf5, 0xbc, 0xb6, 0xda, 0x21, 0x10, 0xff, 0xf3, 0xd2, | ||
528 | 0xcd, 0x0c, 0x13, 0xec, 0x5f, 0x97, 0x44, 0x17, 0xc4, 0xa7, 0x7e, 0x3d, 0x64, 0x5d, 0x19, 0x73, | ||
529 | 0x60, 0x81, 0x4f, 0xdc, 0x22, 0x2a, 0x90, 0x88, 0x46, 0xee, 0xb8, 0x14, 0xde, 0x5e, 0x0b, 0xdb, | ||
530 | 0xe0, 0x32, 0x3a, 0x0a, 0x49, 0x06, 0x24, 0x5c, 0xc2, 0xd3, 0xac, 0x62, 0x91, 0x95, 0xe4, 0x79, | ||
531 | 0xe7, 0xc8, 0x37, 0x6d, 0x8d, 0xd5, 0x4e, 0xa9, 0x6c, 0x56, 0xf4, 0xea, 0x65, 0x7a, 0xae, 0x08, | ||
532 | 0xba, 0x78, 0x25, 0x2e, 0x1c, 0xa6, 0xb4, 0xc6, 0xe8, 0xdd, 0x74, 0x1f, 0x4b, 0xbd, 0x8b, 0x8a, | ||
533 | 0x70, 0x3e, 0xb5, 0x66, 0x48, 0x03, 0xf6, 0x0e, 0x61, 0x35, 0x57, 0xb9, 0x86, 0xc1, 0x1d, 0x9e, | ||
534 | 0xe1, 0xf8, 0x98, 0x11, 0x69, 0xd9, 0x8e, 0x94, 0x9b, 0x1e, 0x87, 0xe9, 0xce, 0x55, 0x28, 0xdf, | ||
535 | 0x8c, 0xa1, 0x89, 0x0d, 0xbf, 0xe6, 0x42, 0x68, 0x41, 0x99, 0x2d, 0x0f, 0xb0, 0x54, 0xbb, 0x16 | ||
536 | ]; | ||
537 | } | ||
538 | |||
539 | return Clipperz.Crypto.AES._sbox; | ||
540 | }, | ||
541 | |||
542 | //----------------------------------------------------------------------------- | ||
543 | // | ||
544 | // 0 4 8 12 0 4 812 | ||
545 | // 1 5 9 13 => 5 9 131 | ||
546 | // 2 6 10 14 10 14 26 | ||
547 | // 3 7 11 15 15 3 711 | ||
548 | // | ||
549 | '_shiftRowMapping': null, | ||
550 | 'shiftRowMapping': function() { | ||
551 | if (Clipperz.Crypto.AES._shiftRowMapping == null) { | ||
552 | Clipperz.Crypto.AES._shiftRowMapping = [0, 5, 10, 15, 4, 9, 14, 3, 8, 13, 2, 7, 12, 1, 6, 11]; | ||
553 | } | ||
554 | |||
555 | return Clipperz.Crypto.AES._shiftRowMapping; | ||
556 | }, | ||
557 | |||
558 | //----------------------------------------------------------------------------- | ||
559 | |||
560 | '_mixColumnsMatrix': null, | ||
561 | 'mixColumnsMatrix': function() { | ||
562 | if (Clipperz.Crypto.AES._mixColumnsMatrix == null) { | ||
563 | Clipperz.Crypto.AES._mixColumnsMatrix = [[2, 3, 1 ,1], | ||
564 | [1, 2, 3, 1], | ||
565 | [1, 1, 2, 3], | ||
566 | [3, 1, 1, 2] ]; | ||
567 | } | ||
568 | |||
569 | return Clipperz.Crypto.AES._mixColumnsMatrix; | ||
570 | }, | ||
571 | |||
572 | '_roundConstants': null, | ||
573 | 'roundConstants': function() { | ||
574 | if (Clipperz.Crypto.AES._roundConstants == null) { | ||
575 | Clipperz.Crypto.AES._roundConstants = [ , 1, 2, 4, 8, 16, 32, 64, 128, 27, 54, 108, 216, 171, 77, 154]; | ||
576 | // Clipperz.Crypto.AES._roundConstants = [ , 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, 0xab, 0x4d, 0x9a]; | ||
577 | } | ||
578 | |||
579 | return Clipperz.Crypto.AES._roundConstants; | ||
580 | }, | ||
581 | |||
582 | //============================================================================= | ||
583 | |||
584 | 'incrementNonce': function(aNonce) { | ||
585 | //Clipperz.Profile.start("Clipperz.Crypto.AES.incrementNonce"); | ||
586 | var i; | ||
587 | var done; | ||
588 | |||
589 | done = false; | ||
590 | i = aNonce.length - 1; | ||
591 | |||
592 | while ((i>=0) && (done == false)) { | ||
593 | var currentByteValue; | ||
594 | |||
595 | currentByteValue = aNonce[i]; | ||
596 | |||
597 | if (currentByteValue == 0xff) { | ||
598 | aNonce[i] = 0; | ||
599 | if (i>= 0) { | ||
600 | i --; | ||
601 | } else { | ||
602 | done = true; | ||
603 | } | ||
604 | } else { | ||
605 | aNonce[i] = currentByteValue + 1; | ||
606 | done = true; | ||
607 | } | ||
608 | } | ||
609 | //Clipperz.Profile.stop("Clipperz.Crypto.AES.incrementNonce"); | ||
610 | }, | ||
611 | |||
612 | //----------------------------------------------------------------------------- | ||
613 | |||
614 | 'encryptBlock': function(aKey, aBlock) { | ||
615 | varresult; | ||
616 | varstate; | ||
617 | |||
618 | state = new Clipperz.Crypto.AES.State({block:aBlock, key:aKey}); | ||
619 | //is(state.data(), 'before'); | ||
620 | state.encrypt(); | ||
621 | result = state.data(); | ||
622 | |||
623 | return result; | ||
624 | }, | ||
625 | |||
626 | //----------------------------------------------------------------------------- | ||
627 | |||
628 | 'encryptBlocks': function(aKey, aMessage, aNonce) { | ||
629 | varresult; | ||
630 | var nonce; | ||
631 | var self; | ||
632 | varmessageIndex; | ||
633 | varmessageLength; | ||
634 | var blockSize; | ||
635 | |||
636 | self = Clipperz.Crypto.AES; | ||
637 | blockSize = 128/8; | ||
638 | messageLength = aMessage.length; | ||
639 | nonce = aNonce; | ||
640 | |||
641 | result = aMessage; | ||
642 | messageIndex = 0; | ||
643 | while (messageIndex < messageLength) { | ||
644 | var encryptedBlock; | ||
645 | var i,c; | ||
646 | |||
647 | self.incrementNonce(nonce); | ||
648 | encryptedBlock = self.encryptBlock(aKey, nonce); | ||
649 | |||
650 | if ((messageLength - messageIndex) > blockSize) { | ||
651 | c = blockSize; | ||
652 | } else { | ||
653 | c = messageLength - messageIndex; | ||
654 | } | ||
655 | |||
656 | for (i=0; i<c; i++) { | ||
657 | result[messageIndex + i] = result[messageIndex + i] ^ encryptedBlock[i]; | ||
658 | } | ||
659 | |||
660 | messageIndex += blockSize; | ||
661 | } | ||
662 | |||
663 | return result; | ||
664 | }, | ||
665 | |||
666 | //----------------------------------------------------------------------------- | ||
667 | |||
668 | 'encrypt': function(aKey, someData, aNonce) { | ||
669 | var result; | ||
670 | var nonce; | ||
671 | varencryptedData; | ||
672 | var key; | ||
673 | |||
674 | key = new Clipperz.Crypto.AES.Key({key:aKey}); | ||
675 | nonce = aNonce ? aNonce.clone() : Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(128/8); | ||
676 | |||
677 | encryptedData = Clipperz.Crypto.AES.encryptBlocks(key, someData.arrayValues(), nonce.arrayValues()); | ||
678 | |||
679 | result = nonce.appendBytes(encryptedData); | ||
680 | |||
681 | return result; | ||
682 | }, | ||
683 | |||
684 | //----------------------------------------------------------------------------- | ||
685 | |||
686 | 'decrypt': function(aKey, someData) { | ||
687 | var result; | ||
688 | var nonce; | ||
689 | var encryptedData; | ||
690 | var decryptedData; | ||
691 | vardataIterator; | ||
692 | var key; | ||
693 | |||
694 | key = new Clipperz.Crypto.AES.Key({key:aKey}); | ||
695 | |||
696 | encryptedData = someData.arrayValues(); | ||
697 | nonce = encryptedData.slice(0, (128/8)); | ||
698 | encryptedData = encryptedData.slice(128/8); | ||
699 | decryptedData = Clipperz.Crypto.AES.encryptBlocks(key, encryptedData, nonce); | ||
700 | |||
701 | result = new Clipperz.ByteArray(decryptedData); | ||
702 | |||
703 | return result; | ||
704 | }, | ||
705 | |||
706 | //============================================================================= | ||
707 | |||
708 | 'deferredEncryptExecutionChunk': function(anExecutionContext) { | ||
709 | varresult; | ||
710 | var nonce; | ||
711 | var self; | ||
712 | varmessageIndex; | ||
713 | varmessageLength; | ||
714 | var blockSize; | ||
715 | var executionLimit; | ||
716 | var startTime, endTime; | ||
717 | |||
718 | self = Clipperz.Crypto.AES; | ||
719 | startTime = new Date(); | ||
720 | blockSize = 128/8; | ||
721 | messageLength = anExecutionContext.messageArray().length; | ||
722 | nonce = anExecutionContext.nonceArray(); | ||
723 | result = anExecutionContext.resultArray(); | ||
724 | |||
725 | messageIndex = anExecutionContext.executionStep(); | ||
726 | executionLimit = messageIndex + anExecutionContext.elaborationChunkSize(); | ||
727 | executionLimit = Math.min(executionLimit, messageLength); | ||
728 | |||
729 | while (messageIndex < executionLimit) { | ||
730 | var encryptedBlock; | ||
731 | var i,c; | ||
732 | |||
733 | self.incrementNonce(nonce); | ||
734 | encryptedBlock = self.encryptBlock(anExecutionContext.key(), nonce); | ||
735 | |||
736 | if ((executionLimit - messageIndex) > blockSize) { | ||
737 | c = blockSize; | ||
738 | } else { | ||
739 | c = executionLimit - messageIndex; | ||
740 | } | ||
741 | |||
742 | for (i=0; i<c; i++) { | ||
743 | result[messageIndex + i] = result[messageIndex + i] ^ encryptedBlock[i]; | ||
744 | } | ||
745 | |||
746 | messageIndex += blockSize; | ||
747 | } | ||
748 | anExecutionContext.setExecutionStep(messageIndex); | ||
749 | endTime = new Date(); | ||
750 | anExecutionContext.tuneExecutionParameters(endTime - startTime); | ||
751 | |||
752 | return anExecutionContext; | ||
753 | }, | ||
754 | |||
755 | //----------------------------------------------------------------------------- | ||
756 | /* | ||
757 | 'deferredEncryptBlocks': function(anExecutionContext) { | ||
758 | vardeferredResult; | ||
759 | varmessageSize; | ||
760 | var i,c; | ||
761 | |||
762 | messageSize = anExecutionContext.messageLength(); | ||
763 | |||
764 | deferredResult = new Clipperz.Async.Deferred("AES.deferredEncryptBloks"); | ||
765 | |||
766 | c = Math.ceil(messageSize / anExecutionContext.elaborationChunkSize()); | ||
767 | for (i=0; i<c; i++) { | ||
768 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptExecutionChunk); | ||
769 | deferredResult.addMethod(anExecutionContext, 'pause'); | ||
770 | } | ||
771 | |||
772 | deferredResult.callback(anExecutionContext); | ||
773 | |||
774 | return deferredResult; | ||
775 | }, | ||
776 | */ | ||
777 | |||
778 | 'deferredEncryptBlocks': function(anExecutionContext) { | ||
779 | vardeferredResult; | ||
780 | |||
781 | if (! anExecutionContext.isDone()) { | ||
782 | deferredResult = Clipperz.Async.callbacks("Clipperz.Crypto.AES.deferredEncryptBloks", [ | ||
783 | Clipperz.Crypto.AES.deferredEncryptExecutionChunk, | ||
784 | MochiKit.Base.method(anExecutionContext, 'pause'), | ||
785 | Clipperz.Crypto.AES.deferredEncryptBlocks | ||
786 | ], {trace:false}, anExecutionContext); | ||
787 | } else { | ||
788 | deferredResult = MochiKit.Async.succeed(anExecutionContext); | ||
789 | } | ||
790 | |||
791 | return deferredResult; | ||
792 | }, | ||
793 | |||
794 | //----------------------------------------------------------------------------- | ||
795 | |||
796 | 'deferredEncrypt': function(aKey, someData, aNonce) { | ||
797 | var deferredResult; | ||
798 | varexecutionContext; | ||
799 | var result; | ||
800 | var nonce; | ||
801 | var key; | ||
802 | |||
803 | key = new Clipperz.Crypto.AES.Key({key:aKey}); | ||
804 | nonce = aNonce ? aNonce.clone() : Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(128/8); | ||
805 | |||
806 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:someData, nonce:nonce}); | ||
807 | |||
808 | deferredResult = new Clipperz.Async.Deferred("AES.deferredEncrypt"); | ||
809 | //deferredResult.addCallback(function (aValue) { console.log(">>> deferredEncrypt"); return aValue; }); | ||
810 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); | ||
811 | deferredResult.addCallback(function(anExecutionContext) { | ||
812 | var result; | ||
813 | |||
814 | result = anExecutionContext.nonce().clone(); | ||
815 | result.appendBytes(anExecutionContext.resultArray()); | ||
816 | |||
817 | return result; | ||
818 | }); | ||
819 | //deferredResult.addCallback(function (aValue) { console.log("<<< deferredEncrypt"); return aValue; }); | ||
820 | deferredResult.callback(executionContext) | ||
821 | |||
822 | return deferredResult; | ||
823 | }, | ||
824 | |||
825 | //----------------------------------------------------------------------------- | ||
826 | |||
827 | 'deferredDecrypt': function(aKey, someData) { | ||
828 | var deferredResult | ||
829 | var nonce; | ||
830 | var message; | ||
831 | var key; | ||
832 | |||
833 | key = new Clipperz.Crypto.AES.Key({key:aKey}); | ||
834 | nonce = someData.split(0, (128/8)); | ||
835 | message = someData.split(128/8); | ||
836 | executionContext = new Clipperz.Crypto.AES.DeferredExecutionContext({key:key, message:message, nonce:nonce}); | ||
837 | |||
838 | deferredResult = new Clipperz.Async.Deferred("AES.deferredDecrypt"); | ||
839 | //deferredResult.addCallback(function (aValue) { console.log(">>> deferredDecrypt"); return aValue; }); | ||
840 | deferredResult.addCallback(Clipperz.Crypto.AES.deferredEncryptBlocks); | ||
841 | deferredResult.addCallback(function(anExecutionContext) { | ||
842 | return anExecutionContext.result(); | ||
843 | }); | ||
844 | //deferredResult.addCallback(function (aValue) { console.log("<<< deferredDecrypt"); return aValue; }); | ||
845 | deferredResult.callback(executionContext); | ||
846 | |||
847 | return deferredResult; | ||
848 | }, | ||
849 | |||
850 | //----------------------------------------------------------------------------- | ||
851 | __syntaxFix__: "syntax fix" | ||
852 | |||
853 | }); | ||
854 | |||
855 | //############################################################################# | ||
856 | |||
857 | //Clipperz.Crypto.AES.DeferredExecution = { | ||
858 | // 'chunkSize': 16384, // 4096, // 1024 4096 8192 1638432768; | ||
859 | // 'pauseTime': 0.02 //0.2 | ||
860 | //} | ||
861 | |||
862 | Clipperz.Crypto.AES.exception = { | ||
863 | 'UnsupportedKeySize': new MochiKit.Base.NamedError("Clipperz.Crypto.AES.exception.UnsupportedKeySize") | ||
864 | }; | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/Base.js b/frontend/gamma/js/ClipperzCryptoLibrary/Base.js new file mode 100644 index 0000000..9acfc49 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/Base.js | |||
@@ -0,0 +1,1847 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.Base) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.Base depends on Clipperz.Base!"; | ||
26 | } | ||
27 | |||
28 | if (typeof(Clipperz.Crypto) == 'undefined') { Clipperz.Crypto = {}; } | ||
29 | if (typeof(Clipperz.Crypto.Base) == 'undefined') { Clipperz.Crypto.Base = {}; } | ||
30 | |||
31 | Clipperz.Crypto.Base.VERSION = "0.1"; | ||
32 | Clipperz.Crypto.Base.NAME = "Clipperz.Crypto.Base"; | ||
33 | |||
34 | //############################################################################# | ||
35 | //Downloaded on March 30, 2006 from http://anmar.eu.org/projects/jssha2/files/jssha2-0.3.zip (jsSha2/sha256.js) | ||
36 | //############################################################################# | ||
37 | |||
38 | /* A JavaScript implementation of the Secure Hash Algorithm, SHA-256 | ||
39 | * Version 0.3 Copyright Angel Marin 2003-2004 - http://anmar.eu.org/ | ||
40 | * Distributed under the BSD License | ||
41 | * Some bits taken from Paul Johnston's SHA-1 implementation | ||
42 | */ | ||
43 | var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */ | ||
44 | function safe_add (x, y) { | ||
45 | var lsw = (x & 0xFFFF) + (y & 0xFFFF); | ||
46 | var msw = (x >> 16) + (y >> 16) + (lsw >> 16); | ||
47 | return (msw << 16) | (lsw & 0xFFFF); | ||
48 | } | ||
49 | function S (X, n) {return ( X >>> n ) | (X << (32 - n));} | ||
50 | function R (X, n) {return ( X >>> n );} | ||
51 | function Ch(x, y, z) {return ((x & y) ^ ((~x) & z));} | ||
52 | function Maj(x, y, z) {return ((x & y) ^ (x & z) ^ (y & z));} | ||
53 | function Sigma0256(x) {return (S(x, 2) ^ S(x, 13) ^ S(x, 22));} | ||
54 | function Sigma1256(x) {return (S(x, 6) ^ S(x, 11) ^ S(x, 25));} | ||
55 | function Gamma0256(x) {return (S(x, 7) ^ S(x, 18) ^ R(x, 3));} | ||
56 | function Gamma1256(x) {return (S(x, 17) ^ S(x, 19) ^ R(x, 10));} | ||
57 | function core_sha256 (m, l) { | ||
58 | var K = new Array(0x428A2F98,0x71374491,0xB5C0FBCF,0xE9B5DBA5,0x3956C25B,0x59F111F1,0x923F82A4,0xAB1C5ED5,0xD807AA98,0x12835B01,0x243185BE,0x550C7DC3,0x72BE5D74,0x80DEB1FE,0x9BDC06A7,0xC19BF174,0xE49B69C1,0xEFBE4786,0xFC19DC6,0x240CA1CC,0x2DE92C6F,0x4A7484AA,0x5CB0A9DC,0x76F988DA,0x983E5152,0xA831C66D,0xB00327C8,0xBF597FC7,0xC6E00BF3,0xD5A79147,0x6CA6351,0x14292967,0x27B70A85,0x2E1B2138,0x4D2C6DFC,0x53380D13,0x650A7354,0x766A0ABB,0x81C2C92E,0x92722C85,0xA2BFE8A1,0xA81A664B,0xC24B8B70,0xC76C51A3,0xD192E819,0xD6990624,0xF40E3585,0x106AA070,0x19A4C116,0x1E376C08,0x2748774C,0x34B0BCB5,0x391C0CB3,0x4ED8AA4A,0x5B9CCA4F,0x682E6FF3,0x748F82EE,0x78A5636F,0x84C87814,0x8CC70208,0x90BEFFFA,0xA4506CEB,0xBEF9A3F7,0xC67178F2); | ||
59 | var HASH = new Array(0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19); | ||
60 | var W = new Array(64); | ||
61 | var a, b, c, d, e, f, g, h, i, j; | ||
62 | var T1, T2; | ||
63 | /* append padding */ | ||
64 | m[l >> 5] |= 0x80 << (24 - l % 32); | ||
65 | m[((l + 64 >> 9) << 4) + 15] = l; | ||
66 | for ( var i = 0; i<m.length; i+=16 ) { | ||
67 | a = HASH[0]; b = HASH[1]; c = HASH[2]; d = HASH[3]; e = HASH[4]; f = HASH[5]; g = HASH[6]; h = HASH[7]; | ||
68 | for ( var j = 0; j<64; j++) { | ||
69 | if (j < 16) W[j] = m[j + i]; | ||
70 | else W[j] = safe_add(safe_add(safe_add(Gamma1256(W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16]); | ||
71 | T1 = safe_add(safe_add(safe_add(safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j]); | ||
72 | T2 = safe_add(Sigma0256(a), Maj(a, b, c)); | ||
73 | h = g; g = f; f = e; e = safe_add(d, T1); d = c; c = b; b = a; a = safe_add(T1, T2); | ||
74 | } | ||
75 | HASH[0] = safe_add(a, HASH[0]); HASH[1] = safe_add(b, HASH[1]); HASH[2] = safe_add(c, HASH[2]); HASH[3] = safe_add(d, HASH[3]); HASH[4] = safe_add(e, HASH[4]); HASH[5] = safe_add(f, HASH[5]); HASH[6] = safe_add(g, HASH[6]); HASH[7] = safe_add(h, HASH[7]); | ||
76 | } | ||
77 | return HASH; | ||
78 | } | ||
79 | function str2binb (str) { | ||
80 | var bin = Array(); | ||
81 | var mask = (1 << chrsz) - 1; | ||
82 | for(var i = 0; i < str.length * chrsz; i += chrsz) | ||
83 | bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - i%32); | ||
84 | return bin; | ||
85 | } | ||
86 | function binb2hex (binarray) { | ||
87 | var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */ | ||
88 | var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; | ||
89 | var str = ""; | ||
90 | for (var i = 0; i < binarray.length * 4; i++) { | ||
91 | str += hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8+4)) & 0xF) + hex_tab.charAt((binarray[i>>2] >> ((3 - i%4)*8 )) & 0xF); | ||
92 | } | ||
93 | return str; | ||
94 | } | ||
95 | function hex_sha256(s){return binb2hex(core_sha256(str2binb(s),s.length * chrsz));} | ||
96 | |||
97 | |||
98 | |||
99 | //############################################################################# | ||
100 | //Downloaded on March 30, 2006 from http://www.fourmilab.ch/javascrypt/javascrypt.zip (entropy.js) | ||
101 | //############################################################################# | ||
102 | |||
103 | // Entropy collection utilities | ||
104 | |||
105 | /*Start by declaring static storage and initialise | ||
106 | the entropy vector from the time we come through | ||
107 | here. */ | ||
108 | |||
109 | var entropyData = new Array(); // Collected entropy data | ||
110 | var edlen = 0; // Keyboard array data length | ||
111 | |||
112 | addEntropyTime(); // Start entropy collection with page load time | ||
113 | ce(); // Roll milliseconds into initial entropy | ||
114 | |||
115 | //Add a byte to the entropy vector | ||
116 | |||
117 | function addEntropyByte(b) { | ||
118 | entropyData[edlen++] = b; | ||
119 | } | ||
120 | |||
121 | /*Capture entropy. When the user presses a key or performs | ||
122 | various other events for which we can request | ||
123 | notification, add the time in 255ths of a second to the | ||
124 | entropyData array. The name of the function is short | ||
125 | so it doesn't bloat the form object declarations in | ||
126 | which it appears in various "onXXX" events. */ | ||
127 | |||
128 | function ce() { | ||
129 | addEntropyByte(Math.floor((((new Date).getMilliseconds()) * 255) / 999)); | ||
130 | } | ||
131 | |||
132 | //Add a 32 bit quantity to the entropy vector | ||
133 | |||
134 | function addEntropy32(w) { | ||
135 | var i; | ||
136 | |||
137 | for (i = 0; i < 4; i++) { | ||
138 | addEntropyByte(w & 0xFF); | ||
139 | w >>= 8; | ||
140 | } | ||
141 | } | ||
142 | |||
143 | /*Add the current time and date (milliseconds since the epoch, | ||
144 | truncated to 32 bits) to the entropy vector. */ | ||
145 | |||
146 | function addEntropyTime() { | ||
147 | addEntropy32((new Date()).getTime()); | ||
148 | } | ||
149 | |||
150 | /* Start collection of entropy from mouse movements. The | ||
151 | argument specifies the number of entropy items to be | ||
152 | obtained from mouse motion, after which mouse motion | ||
153 | will be ignored. Note that you can re-enable mouse | ||
154 | motion collection at any time if not already underway. */ | ||
155 | |||
156 | var mouseMotionCollect = 0; | ||
157 | var oldMoveHandler; // For saving and restoring mouse move handler in IE4 | ||
158 | |||
159 | function mouseMotionEntropy(maxsamp) { | ||
160 | if (mouseMotionCollect <= 0) { | ||
161 | mouseMotionCollect = maxsamp; | ||
162 | if ((document.implementation.hasFeature("Events", "2.0")) && | ||
163 | document.addEventListener) { | ||
164 | // Browser supports Document Object Model (DOM) 2 events | ||
165 | document.addEventListener("mousemove", mouseMoveEntropy, false); | ||
166 | } else { | ||
167 | if (document.attachEvent) { | ||
168 | // Internet Explorer 5 and above event model | ||
169 | document.attachEvent("onmousemove", mouseMoveEntropy); | ||
170 | } else { | ||
171 | //Internet Explorer 4 event model | ||
172 | oldMoveHandler = document.onmousemove; | ||
173 | document.onmousemove = mouseMoveEntropy; | ||
174 | } | ||
175 | } | ||
176 | //dump("Mouse enable", mouseMotionCollect); | ||
177 | } | ||
178 | } | ||
179 | |||
180 | /*Collect entropy from mouse motion events. Note that | ||
181 | this is craftily coded to work with either DOM2 or Internet | ||
182 | Explorer style events. Note that we don't use every successive | ||
183 | mouse movement event. Instead, we XOR the three bytes collected | ||
184 | from the mouse and use that to determine how many subsequent | ||
185 | mouse movements we ignore before capturing the next one. */ | ||
186 | |||
187 | var mouseEntropyTime = 0; // Delay counter for mouse entropy collection | ||
188 | |||
189 | function mouseMoveEntropy(e) { | ||
190 | if (!e) { | ||
191 | e = window.event; // Internet Explorer event model | ||
192 | } | ||
193 | if (mouseMotionCollect > 0) { | ||
194 | if (mouseEntropyTime-- <= 0) { | ||
195 | addEntropyByte(e.screenX & 0xFF); | ||
196 | addEntropyByte(e.screenY & 0xFF); | ||
197 | ce(); | ||
198 | mouseMotionCollect--; | ||
199 | mouseEntropyTime = (entropyData[edlen - 3] ^ entropyData[edlen - 2] ^ | ||
200 | entropyData[edlen - 1]) % 19; | ||
201 | //dump("Mouse Move", byteArrayToHex(entropyData.slice(-3))); | ||
202 | } | ||
203 | if (mouseMotionCollect <= 0) { | ||
204 | if (document.removeEventListener) { | ||
205 | document.removeEventListener("mousemove", mouseMoveEntropy, false); | ||
206 | } else if (document.detachEvent) { | ||
207 | document.detachEvent("onmousemove", mouseMoveEntropy); | ||
208 | } else { | ||
209 | document.onmousemove = oldMoveHandler; | ||
210 | } | ||
211 | //dump("Spung!", 0); | ||
212 | } | ||
213 | } | ||
214 | } | ||
215 | |||
216 | /*Compute a 32 byte key value from the entropy vector. | ||
217 | We compute the value by taking the MD5 sum of the even | ||
218 | and odd bytes respectively of the entropy vector, then | ||
219 | concatenating the two MD5 sums. */ | ||
220 | |||
221 | function keyFromEntropy() { | ||
222 | var i, k = new Array(32); | ||
223 | |||
224 | if (edlen == 0) { | ||
225 | alert("Blooie! Entropy vector void at call to keyFromEntropy."); | ||
226 | } | ||
227 | //dump("Entropy bytes", edlen); | ||
228 | |||
229 | md5_init(); | ||
230 | for (i = 0; i < edlen; i += 2) { | ||
231 | md5_update(entropyData[i]); | ||
232 | } | ||
233 | md5_finish(); | ||
234 | for (i = 0; i < 16; i++) { | ||
235 | k[i] = digestBits[i]; | ||
236 | } | ||
237 | |||
238 | md5_init(); | ||
239 | for (i = 1; i < edlen; i += 2) { | ||
240 | md5_update(entropyData[i]); | ||
241 | } | ||
242 | md5_finish(); | ||
243 | for (i = 0; i < 16; i++) { | ||
244 | k[i + 16] = digestBits[i]; | ||
245 | } | ||
246 | |||
247 | //dump("keyFromEntropy", byteArrayToHex(k)); | ||
248 | return k; | ||
249 | } | ||
250 | |||
251 | //############################################################################# | ||
252 | //Downloaded on March 30, 2006 from http://www.fourmilab.ch/javascrypt/javascrypt.zip (aesprng.js) | ||
253 | //############################################################################# | ||
254 | |||
255 | |||
256 | // AES based pseudorandom number generator | ||
257 | |||
258 | /* Constructor. Called with an array of 32 byte (0-255) values | ||
259 | containing the initial seed. */ | ||
260 | |||
261 | function AESprng(seed) { | ||
262 | this.key = new Array(); | ||
263 | this.key = seed; | ||
264 | this.itext = hexToByteArray("9F489613248148F9C27945C6AE62EECA3E3367BB14064E4E6DC67A9F28AB3BD1"); | ||
265 | this.nbytes = 0; // Bytes left in buffer | ||
266 | |||
267 | this.next = AESprng_next; | ||
268 | this.nextbits = AESprng_nextbits; | ||
269 | this.nextInt = AESprng_nextInt; | ||
270 | this.round = AESprng_round; | ||
271 | |||
272 | /* Encrypt the initial text with the seed key | ||
273 | three times, feeding the output of the encryption | ||
274 | back into the key for the next round. */ | ||
275 | |||
276 | bsb = blockSizeInBits; | ||
277 | blockSizeInBits = 256; | ||
278 | var i, ct; | ||
279 | for (i = 0; i < 3; i++) { | ||
280 | this.key = rijndaelEncrypt(this.itext, this.key, "ECB"); | ||
281 | } | ||
282 | |||
283 | /* Now make between one and four additional | ||
284 | key-feedback rounds, with the number determined | ||
285 | by bits from the result of the first three | ||
286 | rounds. */ | ||
287 | |||
288 | var n = 1 + (this.key[3] & 2) + (this.key[9] & 1); | ||
289 | for (i = 0; i < n; i++) { | ||
290 | this.key = rijndaelEncrypt(this.itext, this.key, "ECB"); | ||
291 | } | ||
292 | blockSizeInBits = bsb; | ||
293 | } | ||
294 | |||
295 | function AESprng_round() { | ||
296 | bsb = blockSizeInBits; | ||
297 | blockSizeInBits = 256; | ||
298 | this.key = rijndaelEncrypt(this.itext, this.key, "ECB"); | ||
299 | this.nbytes = 32; | ||
300 | blockSizeInBits = bsb; | ||
301 | } | ||
302 | |||
303 | //Return next byte from the generator | ||
304 | |||
305 | function AESprng_next() { | ||
306 | if (this.nbytes <= 0) { | ||
307 | this.round(); | ||
308 | } | ||
309 | return(this.key[--this.nbytes]); | ||
310 | } | ||
311 | |||
312 | //Return n bit integer value (up to maximum integer size) | ||
313 | |||
314 | function AESprng_nextbits(n) { | ||
315 | var i, w = 0, nbytes = Math.floor((n + 7) / 8); | ||
316 | |||
317 | for (i = 0; i < nbytes; i++) { | ||
318 | w = (w << 8) | this.next(); | ||
319 | } | ||
320 | return w & ((1 << n) - 1); | ||
321 | } | ||
322 | |||
323 | // Return integer between 0 and n inclusive | ||
324 | |||
325 | function AESprng_nextInt(n) { | ||
326 | var p = 1, nb = 0; | ||
327 | |||
328 | // Determine smallest p, 2^p > n | ||
329 | // nb = log_2 p | ||
330 | |||
331 | while (n >= p) { | ||
332 | p <<= 1; | ||
333 | nb++; | ||
334 | } | ||
335 | p--; | ||
336 | |||
337 | /* Generate values from 0 through n by first generating | ||
338 | values v from 0 to (2^p)-1, then discarding any results v > n. | ||
339 | For the rationale behind this (and why taking | ||
340 | values mod (n + 1) is biased toward smaller values, see | ||
341 | Ferguson and Schneier, "Practical Cryptography", | ||
342 | ISBN 0-471-22357-3, section 10.8). */ | ||
343 | |||
344 | while (true) { | ||
345 | var v = this.nextbits(nb) & p; | ||
346 | |||
347 | if (v <= n) { | ||
348 | return v; | ||
349 | } | ||
350 | } | ||
351 | } | ||
352 | |||
353 | //############################################################################# | ||
354 | //Downloaded on March 30, 2006 from http://www.fourmilab.ch/javascrypt/javascrypt.zip (md5.js) | ||
355 | //############################################################################# | ||
356 | |||
357 | /* | ||
358 | * md5.jvs 1.0b 27/06/96 | ||
359 | * | ||
360 | * Javascript implementation of the RSA Data Security, Inc. MD5 | ||
361 | * Message-Digest Algorithm. | ||
362 | * | ||
363 | * Copyright (c) 1996 Henri Torgemane. All Rights Reserved. | ||
364 | * | ||
365 | * Permission to use, copy, modify, and distribute this software | ||
366 | * and its documentation for any purposes and without | ||
367 | * fee is hereby granted provided that this copyright notice | ||
368 | * appears in all copies. | ||
369 | * | ||
370 | * Of course, this soft is provided "as is" without express or implied | ||
371 | * warranty of any kind. | ||
372 | |||
373 | This version contains some trivial reformatting modifications | ||
374 | by John Walker. | ||
375 | |||
376 | */ | ||
377 | |||
378 | function array(n) { | ||
379 | for (i = 0; i < n; i++) { | ||
380 | this[i] = 0; | ||
381 | } | ||
382 | this.length = n; | ||
383 | } | ||
384 | |||
385 | /* Some basic logical functions had to be rewritten because of a bug in | ||
386 | * Javascript.. Just try to compute 0xffffffff >> 4 with it.. | ||
387 | * Of course, these functions are slower than the original would be, but | ||
388 | * at least, they work! | ||
389 | */ | ||
390 | |||
391 | function integer(n) { | ||
392 | return n % (0xffffffff + 1); | ||
393 | } | ||
394 | |||
395 | function shr(a, b) { | ||
396 | a = integer(a); | ||
397 | b = integer(b); | ||
398 | if (a - 0x80000000 >= 0) { | ||
399 | a = a % 0x80000000; | ||
400 | a >>= b; | ||
401 | a += 0x40000000 >> (b - 1); | ||
402 | } else { | ||
403 | a >>= b; | ||
404 | } | ||
405 | return a; | ||
406 | } | ||
407 | |||
408 | function shl1(a) { | ||
409 | a = a % 0x80000000; | ||
410 | if (a & 0x40000000 == 0x40000000) { | ||
411 | a -= 0x40000000; | ||
412 | a *= 2; | ||
413 | a += 0x80000000; | ||
414 | } else { | ||
415 | a *= 2; | ||
416 | } | ||
417 | return a; | ||
418 | } | ||
419 | |||
420 | function shl(a, b) { | ||
421 | a = integer(a); | ||
422 | b = integer(b); | ||
423 | for (var i = 0; i < b; i++) { | ||
424 | a = shl1(a); | ||
425 | } | ||
426 | return a; | ||
427 | } | ||
428 | |||
429 | function and(a, b) { | ||
430 | a = integer(a); | ||
431 | b = integer(b); | ||
432 | var t1 = a - 0x80000000; | ||
433 | var t2 = b - 0x80000000; | ||
434 | if (t1 >= 0) { | ||
435 | if (t2 >= 0) { | ||
436 | return ((t1 & t2) + 0x80000000); | ||
437 | } else { | ||
438 | return (t1 & b); | ||
439 | } | ||
440 | } else { | ||
441 | if (t2 >= 0) { | ||
442 | return (a & t2); | ||
443 | } else { | ||
444 | return (a & b); | ||
445 | } | ||
446 | } | ||
447 | } | ||
448 | |||
449 | function or(a, b) { | ||
450 | a = integer(a); | ||
451 | b = integer(b); | ||
452 | var t1 = a - 0x80000000; | ||
453 | var t2 = b - 0x80000000; | ||
454 | if (t1 >= 0) { | ||
455 | if (t2 >= 0) { | ||
456 | return ((t1 | t2) + 0x80000000); | ||
457 | } else { | ||
458 | return ((t1 | b) + 0x80000000); | ||
459 | } | ||
460 | } else { | ||
461 | if (t2 >= 0) { | ||
462 | return ((a | t2) + 0x80000000); | ||
463 | } else { | ||
464 | return (a | b); | ||
465 | } | ||
466 | } | ||
467 | } | ||
468 | |||
469 | function xor(a, b) { | ||
470 | a = integer(a); | ||
471 | b = integer(b); | ||
472 | var t1 = a - 0x80000000; | ||
473 | var t2 = b - 0x80000000; | ||
474 | if (t1 >= 0) { | ||
475 | if (t2 >= 0) { | ||
476 | return (t1 ^ t2); | ||
477 | } else { | ||
478 | return ((t1 ^ b) + 0x80000000); | ||
479 | } | ||
480 | } else { | ||
481 | if (t2 >= 0) { | ||
482 | return ((a ^ t2) + 0x80000000); | ||
483 | } else { | ||
484 | return (a ^ b); | ||
485 | } | ||
486 | } | ||
487 | } | ||
488 | |||
489 | function not(a) { | ||
490 | a = integer(a); | ||
491 | return 0xffffffff - a; | ||
492 | } | ||
493 | |||
494 | /* Here begin the real algorithm */ | ||
495 | |||
496 | var state = new array(4); | ||
497 | var count = new array(2); | ||
498 | count[0] = 0; | ||
499 | count[1] = 0; | ||
500 | var buffer = new array(64); | ||
501 | var transformBuffer = new array(16); | ||
502 | var digestBits = new array(16); | ||
503 | |||
504 | var S11 = 7; | ||
505 | var S12 = 12; | ||
506 | var S13 = 17; | ||
507 | var S14 = 22; | ||
508 | var S21 = 5; | ||
509 | var S22 = 9; | ||
510 | var S23 = 14; | ||
511 | var S24 = 20; | ||
512 | var S31 = 4; | ||
513 | var S32 = 11; | ||
514 | var S33 = 16; | ||
515 | var S34 = 23; | ||
516 | var S41 = 6; | ||
517 | var S42 = 10; | ||
518 | var S43 = 15; | ||
519 | var S44 = 21; | ||
520 | |||
521 | function F(x, y, z) { | ||
522 | return or(and(x, y), and(not(x), z)); | ||
523 | } | ||
524 | |||
525 | function G(x, y, z) { | ||
526 | return or(and(x, z), and(y, not(z))); | ||
527 | } | ||
528 | |||
529 | function H(x, y, z) { | ||
530 | return xor(xor(x, y), z); | ||
531 | } | ||
532 | |||
533 | function I(x, y, z) { | ||
534 | return xor(y ,or(x , not(z))); | ||
535 | } | ||
536 | |||
537 | function rotateLeft(a, n) { | ||
538 | return or(shl(a, n), (shr(a, (32 - n)))); | ||
539 | } | ||
540 | |||
541 | function FF(a, b, c, d, x, s, ac) { | ||
542 | a = a + F(b, c, d) + x + ac; | ||
543 | a = rotateLeft(a, s); | ||
544 | a = a + b; | ||
545 | return a; | ||
546 | } | ||
547 | |||
548 | function GG(a, b, c, d, x, s, ac) { | ||
549 | a = a + G(b, c, d) + x + ac; | ||
550 | a = rotateLeft(a, s); | ||
551 | a = a + b; | ||
552 | return a; | ||
553 | } | ||
554 | |||
555 | function HH(a, b, c, d, x, s, ac) { | ||
556 | a = a + H(b, c, d) + x + ac; | ||
557 | a = rotateLeft(a, s); | ||
558 | a = a + b; | ||
559 | return a; | ||
560 | } | ||
561 | |||
562 | function II(a, b, c, d, x, s, ac) { | ||
563 | a = a + I(b, c, d) + x + ac; | ||
564 | a = rotateLeft(a, s); | ||
565 | a = a + b; | ||
566 | return a; | ||
567 | } | ||
568 | |||
569 | function transform(buf, offset) { | ||
570 | var a = 0, b = 0, c = 0, d = 0; | ||
571 | var x = transformBuffer; | ||
572 | |||
573 | a = state[0]; | ||
574 | b = state[1]; | ||
575 | c = state[2]; | ||
576 | d = state[3]; | ||
577 | |||
578 | for (i = 0; i < 16; i++) { | ||
579 | x[i] = and(buf[i * 4 + offset], 0xFF); | ||
580 | for (j = 1; j < 4; j++) { | ||
581 | x[i] += shl(and(buf[i * 4 + j + offset] ,0xFF), j * 8); | ||
582 | } | ||
583 | } | ||
584 | |||
585 | /* Round 1 */ | ||
586 | a = FF( a, b, c, d, x[ 0], S11, 0xd76aa478); /* 1 */ | ||
587 | d = FF( d, a, b, c, x[ 1], S12, 0xe8c7b756); /* 2 */ | ||
588 | c = FF( c, d, a, b, x[ 2], S13, 0x242070db); /* 3 */ | ||
589 | b = FF( b, c, d, a, x[ 3], S14, 0xc1bdceee); /* 4 */ | ||
590 | a = FF( a, b, c, d, x[ 4], S11, 0xf57c0faf); /* 5 */ | ||
591 | d = FF( d, a, b, c, x[ 5], S12, 0x4787c62a); /* 6 */ | ||
592 | c = FF( c, d, a, b, x[ 6], S13, 0xa8304613); /* 7 */ | ||
593 | b = FF( b, c, d, a, x[ 7], S14, 0xfd469501); /* 8 */ | ||
594 | a = FF( a, b, c, d, x[ 8], S11, 0x698098d8); /* 9 */ | ||
595 | d = FF( d, a, b, c, x[ 9], S12, 0x8b44f7af); /* 10 */ | ||
596 | c = FF( c, d, a, b, x[10], S13, 0xffff5bb1); /* 11 */ | ||
597 | b = FF( b, c, d, a, x[11], S14, 0x895cd7be); /* 12 */ | ||
598 | a = FF( a, b, c, d, x[12], S11, 0x6b901122); /* 13 */ | ||
599 | d = FF( d, a, b, c, x[13], S12, 0xfd987193); /* 14 */ | ||
600 | c = FF( c, d, a, b, x[14], S13, 0xa679438e); /* 15 */ | ||
601 | b = FF( b, c, d, a, x[15], S14, 0x49b40821); /* 16 */ | ||
602 | |||
603 | /* Round 2 */ | ||
604 | a = GG( a, b, c, d, x[ 1], S21, 0xf61e2562); /* 17 */ | ||
605 | d = GG( d, a, b, c, x[ 6], S22, 0xc040b340); /* 18 */ | ||
606 | c = GG( c, d, a, b, x[11], S23, 0x265e5a51); /* 19 */ | ||
607 | b = GG( b, c, d, a, x[ 0], S24, 0xe9b6c7aa); /* 20 */ | ||
608 | a = GG( a, b, c, d, x[ 5], S21, 0xd62f105d); /* 21 */ | ||
609 | d = GG( d, a, b, c, x[10], S22, 0x2441453); /* 22 */ | ||
610 | c = GG( c, d, a, b, x[15], S23, 0xd8a1e681); /* 23 */ | ||
611 | b = GG( b, c, d, a, x[ 4], S24, 0xe7d3fbc8); /* 24 */ | ||
612 | a = GG( a, b, c, d, x[ 9], S21, 0x21e1cde6); /* 25 */ | ||
613 | d = GG( d, a, b, c, x[14], S22, 0xc33707d6); /* 26 */ | ||
614 | c = GG( c, d, a, b, x[ 3], S23, 0xf4d50d87); /* 27 */ | ||
615 | b = GG( b, c, d, a, x[ 8], S24, 0x455a14ed); /* 28 */ | ||
616 | a = GG( a, b, c, d, x[13], S21, 0xa9e3e905); /* 29 */ | ||
617 | d = GG( d, a, b, c, x[ 2], S22, 0xfcefa3f8); /* 30 */ | ||
618 | c = GG( c, d, a, b, x[ 7], S23, 0x676f02d9); /* 31 */ | ||
619 | b = GG( b, c, d, a, x[12], S24, 0x8d2a4c8a); /* 32 */ | ||
620 | |||
621 | /* Round 3 */ | ||
622 | a = HH( a, b, c, d, x[ 5], S31, 0xfffa3942); /* 33 */ | ||
623 | d = HH( d, a, b, c, x[ 8], S32, 0x8771f681); /* 34 */ | ||
624 | c = HH( c, d, a, b, x[11], S33, 0x6d9d6122); /* 35 */ | ||
625 | b = HH( b, c, d, a, x[14], S34, 0xfde5380c); /* 36 */ | ||
626 | a = HH( a, b, c, d, x[ 1], S31, 0xa4beea44); /* 37 */ | ||
627 | d = HH( d, a, b, c, x[ 4], S32, 0x4bdecfa9); /* 38 */ | ||
628 | c = HH( c, d, a, b, x[ 7], S33, 0xf6bb4b60); /* 39 */ | ||
629 | b = HH( b, c, d, a, x[10], S34, 0xbebfbc70); /* 40 */ | ||
630 | a = HH( a, b, c, d, x[13], S31, 0x289b7ec6); /* 41 */ | ||
631 | d = HH( d, a, b, c, x[ 0], S32, 0xeaa127fa); /* 42 */ | ||
632 | c = HH( c, d, a, b, x[ 3], S33, 0xd4ef3085); /* 43 */ | ||
633 | b = HH( b, c, d, a, x[ 6], S34, 0x4881d05); /* 44 */ | ||
634 | a = HH( a, b, c, d, x[ 9], S31, 0xd9d4d039); /* 45 */ | ||
635 | d = HH( d, a, b, c, x[12], S32, 0xe6db99e5); /* 46 */ | ||
636 | c = HH( c, d, a, b, x[15], S33, 0x1fa27cf8); /* 47 */ | ||
637 | b = HH( b, c, d, a, x[ 2], S34, 0xc4ac5665); /* 48 */ | ||
638 | |||
639 | /* Round 4 */ | ||
640 | a = II( a, b, c, d, x[ 0], S41, 0xf4292244); /* 49 */ | ||
641 | d = II( d, a, b, c, x[ 7], S42, 0x432aff97); /* 50 */ | ||
642 | c = II( c, d, a, b, x[14], S43, 0xab9423a7); /* 51 */ | ||
643 | b = II( b, c, d, a, x[ 5], S44, 0xfc93a039); /* 52 */ | ||
644 | a = II( a, b, c, d, x[12], S41, 0x655b59c3); /* 53 */ | ||
645 | d = II( d, a, b, c, x[ 3], S42, 0x8f0ccc92); /* 54 */ | ||
646 | c = II( c, d, a, b, x[10], S43, 0xffeff47d); /* 55 */ | ||
647 | b = II( b, c, d, a, x[ 1], S44, 0x85845dd1); /* 56 */ | ||
648 | a = II( a, b, c, d, x[ 8], S41, 0x6fa87e4f); /* 57 */ | ||
649 | d = II( d, a, b, c, x[15], S42, 0xfe2ce6e0); /* 58 */ | ||
650 | c = II( c, d, a, b, x[ 6], S43, 0xa3014314); /* 59 */ | ||
651 | b = II( b, c, d, a, x[13], S44, 0x4e0811a1); /* 60 */ | ||
652 | a = II( a, b, c, d, x[ 4], S41, 0xf7537e82); /* 61 */ | ||
653 | d = II( d, a, b, c, x[11], S42, 0xbd3af235); /* 62 */ | ||
654 | c = II( c, d, a, b, x[ 2], S43, 0x2ad7d2bb); /* 63 */ | ||
655 | b = II( b, c, d, a, x[ 9], S44, 0xeb86d391); /* 64 */ | ||
656 | |||
657 | state[0] += a; | ||
658 | state[1] += b; | ||
659 | state[2] += c; | ||
660 | state[3] += d; | ||
661 | |||
662 | } | ||
663 | |||
664 | function md5_init() { | ||
665 | count[0] = count[1] = 0; | ||
666 | state[0] = 0x67452301; | ||
667 | state[1] = 0xefcdab89; | ||
668 | state[2] = 0x98badcfe; | ||
669 | state[3] = 0x10325476; | ||
670 | for (i = 0; i < digestBits.length; i++) { | ||
671 | digestBits[i] = 0; | ||
672 | } | ||
673 | } | ||
674 | |||
675 | function md5_update(b) { | ||
676 | var index, i; | ||
677 | |||
678 | index = and(shr(count[0],3) , 0x3F); | ||
679 | if (count[0] < 0xFFFFFFFF - 7) { | ||
680 | count[0] += 8; | ||
681 | } else { | ||
682 | count[1]++; | ||
683 | count[0] -= 0xFFFFFFFF + 1; | ||
684 | count[0] += 8; | ||
685 | } | ||
686 | buffer[index] = and(b, 0xff); | ||
687 | if (index >= 63) { | ||
688 | transform(buffer, 0); | ||
689 | } | ||
690 | } | ||
691 | |||
692 | function md5_finish() { | ||
693 | var bits = new array(8); | ||
694 | var padding; | ||
695 | var i = 0, index = 0, padLen = 0; | ||
696 | |||
697 | for (i = 0; i < 4; i++) { | ||
698 | bits[i] = and(shr(count[0], (i * 8)), 0xFF); | ||
699 | } | ||
700 | for (i = 0; i < 4; i++) { | ||
701 | bits[i + 4] = and(shr(count[1], (i * 8)), 0xFF); | ||
702 | } | ||
703 | index = and(shr(count[0], 3), 0x3F); | ||
704 | padLen = (index < 56) ? (56 - index) : (120 - index); | ||
705 | padding = new array(64); | ||
706 | padding[0] = 0x80; | ||
707 | for (i = 0; i < padLen; i++) { | ||
708 | md5_update(padding[i]); | ||
709 | } | ||
710 | for (i = 0; i < 8; i++) { | ||
711 | md5_update(bits[i]); | ||
712 | } | ||
713 | |||
714 | for (i = 0; i < 4; i++) { | ||
715 | for (j = 0; j < 4; j++) { | ||
716 | digestBits[i * 4 + j] = and(shr(state[i], (j * 8)) , 0xFF); | ||
717 | } | ||
718 | } | ||
719 | } | ||
720 | |||
721 | /* End of the MD5 algorithm */ | ||
722 | |||
723 | //############################################################################# | ||
724 | //Downloaded on March 30, 2006 from http://www.fourmilab.ch/javascrypt/javascrypt.zip (aes.js) | ||
725 | //############################################################################# | ||
726 | |||
727 | |||
728 | /* rijndael.js Rijndael Reference Implementation | ||
729 | |||
730 | This is a modified version of the software described below, | ||
731 | produced in September 2003 by John Walker for use in the | ||
732 | JavsScrypt browser-based encryption package. The principal | ||
733 | changes are replacing the original getRandomBytes function with | ||
734 | one which calls our pseudorandom generator (which must | ||
735 | be instantiated and seeded before the first call on getRandomBytes), | ||
736 | and changing keySizeInBits to 256. Some code not required by the | ||
737 | JavsScrypt application has been commented out. Please see | ||
738 | http://www.fourmilab.ch/javascrypt/ for further information on | ||
739 | JavaScrypt. | ||
740 | |||
741 | The following is the original copyright and application | ||
742 | information. | ||
743 | |||
744 | Copyright (c) 2001 Fritz Schneider | ||
745 | |||
746 | This software is provided as-is, without express or implied warranty. | ||
747 | Permission to use, copy, modify, distribute or sell this software, with or | ||
748 | without fee, for any purpose and by any individual or organization, is hereby | ||
749 | granted, provided that the above copyright notice and this paragraph appear | ||
750 | in all copies. Distribution as a part of an application or binary must | ||
751 | include the above copyright notice in the documentation and/or other materials | ||
752 | provided with the application or distribution. | ||
753 | |||
754 | As the above disclaimer notes, you are free to use this code however you | ||
755 | want. However, I would request that you send me an email | ||
756 | (fritz /at/ cs /dot/ ucsd /dot/ edu) to say hi if you find this code useful | ||
757 | or instructional. Seeing that people are using the code acts as | ||
758 | encouragement for me to continue development. If you *really* want to thank | ||
759 | me you can buy the book I wrote with Thomas Powell, _JavaScript: | ||
760 | _The_Complete_Reference_ :) | ||
761 | |||
762 | This code is an UNOPTIMIZED REFERENCE implementation of Rijndael. | ||
763 | If there is sufficient interest I can write an optimized (word-based, | ||
764 | table-driven) version, although you might want to consider using a | ||
765 | compiled language if speed is critical to your application. As it stands, | ||
766 | one run of the monte carlo test (10,000 encryptions) can take up to | ||
767 | several minutes, depending upon your processor. You shouldn't expect more | ||
768 | than a few kilobytes per second in throughput. | ||
769 | |||
770 | Also note that there is very little error checking in these functions. | ||
771 | Doing proper error checking is always a good idea, but the ideal | ||
772 | implementation (using the instanceof operator and exceptions) requires | ||
773 | IE5+/NS6+, and I've chosen to implement this code so that it is compatible | ||
774 | with IE4/NS4. | ||
775 | |||
776 | And finally, because JavaScript doesn't have an explicit byte/char data | ||
777 | type (although JavaScript 2.0 most likely will), when I refer to "byte" | ||
778 | in this code I generally mean "32 bit integer with value in the interval | ||
779 | [0,255]" which I treat as a byte. | ||
780 | |||
781 | See http://www-cse.ucsd.edu/~fritz/rijndael.html for more documentation | ||
782 | of the (very simple) API provided by this code. | ||
783 | |||
784 | Fritz Schneider | ||
785 | fritz at cs.ucsd.edu | ||
786 | |||
787 | */ | ||
788 | |||
789 | |||
790 | // Rijndael parameters -- Valid values are 128, 192, or 256 | ||
791 | |||
792 | var keySizeInBits = 256; | ||
793 | var blockSizeInBits = 128; | ||
794 | |||
795 | // | ||
796 | // Note: in the following code the two dimensional arrays are indexed as | ||
797 | // you would probably expect, as array[row][column]. The state arrays | ||
798 | // are 2d arrays of the form state[4][Nb]. | ||
799 | |||
800 | |||
801 | // The number of rounds for the cipher, indexed by [Nk][Nb] | ||
802 | var roundsArray = [ ,,,,[,,,,10,, 12,, 14],, | ||
803 | [,,,,12,, 12,, 14],, | ||
804 | [,,,,14,, 14,, 14] ]; | ||
805 | |||
806 | // The number of bytes to shift by in shiftRow, indexed by [Nb][row] | ||
807 | var shiftOffsets = [ ,,,,[,1, 2, 3],,[,1, 2, 3],,[,1, 3, 4] ]; | ||
808 | |||
809 | // The round constants used in subkey expansion | ||
810 | var Rcon = [ | ||
811 | 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, | ||
812 | 0x40, 0x80, 0x1b, 0x36, 0x6c, 0xd8, | ||
813 | 0xab, 0x4d, 0x9a, 0x2f, 0x5e, 0xbc, | ||
814 | 0x63, 0xc6, 0x97, 0x35, 0x6a, 0xd4, | ||
815 | 0xb3, 0x7d, 0xfa, 0xef, 0xc5, 0x91 ]; | ||
816 | |||
817 | // Precomputed lookup table for the SBox | ||
818 | var SBox = [ | ||
819 | 99, 124, 119, 123, 242, 107, 111, 197, 48, 1, 103, 43, 254, 215, 171, | ||
820 | 118, 202, 130, 201, 125, 250, 89, 71, 240, 173, 212, 162, 175, 156, 164, | ||
821 | 114, 192, 183, 253, 147, 38, 54, 63, 247, 204, 52, 165, 229, 241, 113, | ||
822 | 216, 49, 21, 4, 199, 35, 195, 24, 150, 5, 154, 7, 18, 128, 226, | ||
823 | 235, 39, 178, 117, 9, 131, 44, 26, 27, 110, 90, 160, 82, 59, 214, | ||
824 | 179, 41, 227, 47, 132, 83, 209, 0, 237, 32, 252, 177, 91, 106, 203, | ||
825 | 190, 57, 74, 76, 88, 207, 208, 239, 170, 251, 67, 77, 51, 133, 69, | ||
826 | 249, 2, 127, 80, 60, 159, 168, 81, 163, 64, 143, 146, 157, 56, 245, | ||
827 | 188, 182, 218, 33, 16, 255, 243, 210, 205, 12, 19, 236, 95, 151, 68, | ||
828 | 23, 196, 167, 126, 61, 100, 93, 25, 115, 96, 129, 79, 220, 34, 42, | ||
829 | 144, 136, 70, 238, 184, 20, 222, 94, 11, 219, 224, 50, 58, 10, 73, | ||
830 | 6, 36, 92, 194, 211, 172, 98, 145, 149, 228, 121, 231, 200, 55, 109, | ||
831 | 141, 213, 78, 169, 108, 86, 244, 234, 101, 122, 174, 8, 186, 120, 37, | ||
832 | 46, 28, 166, 180, 198, 232, 221, 116, 31, 75, 189, 139, 138, 112, 62, | ||
833 | 181, 102, 72, 3, 246, 14, 97, 53, 87, 185, 134, 193, 29, 158, 225, | ||
834 | 248, 152, 17, 105, 217, 142, 148, 155, 30, 135, 233, 206, 85, 40, 223, | ||
835 | 140, 161, 137, 13, 191, 230, 66, 104, 65, 153, 45, 15, 176, 84, 187, | ||
836 | 22 ]; | ||
837 | |||
838 | // Precomputed lookup table for the inverse SBox | ||
839 | var SBoxInverse = [ | ||
840 | 82, 9, 106, 213, 48, 54, 165, 56, 191, 64, 163, 158, 129, 243, 215, | ||
841 | 251, 124, 227, 57, 130, 155, 47, 255, 135, 52, 142, 67, 68, 196, 222, | ||
842 | 233, 203, 84, 123, 148, 50, 166, 194, 35, 61, 238, 76, 149, 11, 66, | ||
843 | 250, 195, 78, 8, 46, 161, 102, 40, 217, 36, 178, 118, 91, 162, 73, | ||
844 | 109, 139, 209, 37, 114, 248, 246, 100, 134, 104, 152, 22, 212, 164, 92, | ||
845 | 204, 93, 101, 182, 146, 108, 112, 72, 80, 253, 237, 185, 218, 94, 21, | ||
846 | 70, 87, 167, 141, 157, 132, 144, 216, 171, 0, 140, 188, 211, 10, 247, | ||
847 | 228, 88, 5, 184, 179, 69, 6, 208, 44, 30, 143, 202, 63, 15, 2, | ||
848 | 193, 175, 189, 3, 1, 19, 138, 107, 58, 145, 17, 65, 79, 103, 220, | ||
849 | 234, 151, 242, 207, 206, 240, 180, 230, 115, 150, 172, 116, 34, 231, 173, | ||
850 | 53, 133, 226, 249, 55, 232, 28, 117, 223, 110, 71, 241, 26, 113, 29, | ||
851 | 41, 197, 137, 111, 183, 98, 14, 170, 24, 190, 27, 252, 86, 62, 75, | ||
852 | 198, 210, 121, 32, 154, 219, 192, 254, 120, 205, 90, 244, 31, 221, 168, | ||
853 | 51, 136, 7, 199, 49, 177, 18, 16, 89, 39, 128, 236, 95, 96, 81, | ||
854 | 127, 169, 25, 181, 74, 13, 45, 229, 122, 159, 147, 201, 156, 239, 160, | ||
855 | 224, 59, 77, 174, 42, 245, 176, 200, 235, 187, 60, 131, 83, 153, 97, | ||
856 | 23, 43, 4, 126, 186, 119, 214, 38, 225, 105, 20, 99, 85, 33, 12, | ||
857 | 125 ]; | ||
858 | |||
859 | // This method circularly shifts the array left by the number of elements | ||
860 | // given in its parameter. It returns the resulting array and is used for | ||
861 | // the ShiftRow step. Note that shift() and push() could be used for a more | ||
862 | // elegant solution, but they require IE5.5+, so I chose to do it manually. | ||
863 | |||
864 | function cyclicShiftLeft(theArray, positions) { | ||
865 | var temp = theArray.slice(0, positions); | ||
866 | theArray = theArray.slice(positions).concat(temp); | ||
867 | return theArray; | ||
868 | } | ||
869 | |||
870 | // Cipher parameters ... do not change these | ||
871 | var Nk = keySizeInBits / 32; | ||
872 | var Nb = blockSizeInBits / 32; | ||
873 | var Nr = roundsArray[Nk][Nb]; | ||
874 | |||
875 | // Multiplies the element "poly" of GF(2^8) by x. See the Rijndael spec. | ||
876 | |||
877 | function xtime(poly) { | ||
878 | poly <<= 1; | ||
879 | return ((poly & 0x100) ? (poly ^ 0x11B) : (poly)); | ||
880 | } | ||
881 | |||
882 | // Multiplies the two elements of GF(2^8) together and returns the result. | ||
883 | // See the Rijndael spec, but should be straightforward: for each power of | ||
884 | // the indeterminant that has a 1 coefficient in x, add y times that power | ||
885 | // to the result. x and y should be bytes representing elements of GF(2^8) | ||
886 | |||
887 | function mult_GF256(x, y) { | ||
888 | var bit, result = 0; | ||
889 | |||
890 | for (bit = 1; bit < 256; bit *= 2, y = xtime(y)) { | ||
891 | if (x & bit) | ||
892 | result ^= y; | ||
893 | } | ||
894 | return result; | ||
895 | } | ||
896 | |||
897 | // Performs the substitution step of the cipher. State is the 2d array of | ||
898 | // state information (see spec) and direction is string indicating whether | ||
899 | // we are performing the forward substitution ("encrypt") or inverse | ||
900 | // substitution (anything else) | ||
901 | |||
902 | function byteSub(state, direction) { | ||
903 | var S; | ||
904 | if (direction == "encrypt") // Point S to the SBox we're using | ||
905 | S = SBox; | ||
906 | else | ||
907 | S = SBoxInverse; | ||
908 | for (var i = 0; i < 4; i++) // Substitute for every byte in state | ||
909 | for (var j = 0; j < Nb; j++) | ||
910 | state[i][j] = S[state[i][j]]; | ||
911 | } | ||
912 | |||
913 | // Performs the row shifting step of the cipher. | ||
914 | |||
915 | function shiftRow(state, direction) { | ||
916 | for (var i=1; i<4; i++) // Row 0 never shifts | ||
917 | if (direction == "encrypt") | ||
918 | state[i] = cyclicShiftLeft(state[i], shiftOffsets[Nb][i]); | ||
919 | else | ||
920 | state[i] = cyclicShiftLeft(state[i], Nb - shiftOffsets[Nb][i]); | ||
921 | |||
922 | } | ||
923 | |||
924 | // Performs the column mixing step of the cipher. Most of these steps can | ||
925 | // be combined into table lookups on 32bit values (at least for encryption) | ||
926 | // to greatly increase the speed. | ||
927 | |||
928 | function mixColumn(state, direction) { | ||
929 | var b = []; // Result of matrix multiplications | ||
930 | for (var j = 0; j < Nb; j++) { // Go through each column... | ||
931 | for (var i = 0; i < 4; i++) { // and for each row in the column... | ||
932 | if (direction == "encrypt") | ||
933 | b[i] = mult_GF256(state[i][j], 2) ^ // perform mixing | ||
934 | mult_GF256(state[(i+1)%4][j], 3) ^ | ||
935 | state[(i+2)%4][j] ^ | ||
936 | state[(i+3)%4][j]; | ||
937 | else | ||
938 | b[i] = mult_GF256(state[i][j], 0xE) ^ | ||
939 | mult_GF256(state[(i+1)%4][j], 0xB) ^ | ||
940 | mult_GF256(state[(i+2)%4][j], 0xD) ^ | ||
941 | mult_GF256(state[(i+3)%4][j], 9); | ||
942 | } | ||
943 | for (var i = 0; i < 4; i++) // Place result back into column | ||
944 | state[i][j] = b[i]; | ||
945 | } | ||
946 | } | ||
947 | |||
948 | // Adds the current round key to the state information. Straightforward. | ||
949 | |||
950 | function addRoundKey(state, roundKey) { | ||
951 | for (var j = 0; j < Nb; j++) { // Step through columns... | ||
952 | state[0][j] ^= (roundKey[j] & 0xFF); // and XOR | ||
953 | state[1][j] ^= ((roundKey[j]>>8) & 0xFF); | ||
954 | state[2][j] ^= ((roundKey[j]>>16) & 0xFF); | ||
955 | state[3][j] ^= ((roundKey[j]>>24) & 0xFF); | ||
956 | } | ||
957 | } | ||
958 | |||
959 | // This function creates the expanded key from the input (128/192/256-bit) | ||
960 | // key. The parameter key is an array of bytes holding the value of the key. | ||
961 | // The returned value is an array whose elements are the 32-bit words that | ||
962 | // make up the expanded key. | ||
963 | |||
964 | function keyExpansion(key) { | ||
965 | var expandedKey = new Array(); | ||
966 | var temp; | ||
967 | |||
968 | // in case the key size or parameters were changed... | ||
969 | Nk = keySizeInBits / 32; | ||
970 | Nb = blockSizeInBits / 32; | ||
971 | Nr = roundsArray[Nk][Nb]; | ||
972 | |||
973 | for (var j=0; j < Nk; j++) // Fill in input key first | ||
974 | expandedKey[j] = | ||
975 | (key[4*j]) | (key[4*j+1]<<8) | (key[4*j+2]<<16) | (key[4*j+3]<<24); | ||
976 | |||
977 | // Now walk down the rest of the array filling in expanded key bytes as | ||
978 | // per Rijndael's spec | ||
979 | for (j = Nk; j < Nb * (Nr + 1); j++) { // For each word of expanded key | ||
980 | temp = expandedKey[j - 1]; | ||
981 | if (j % Nk == 0) | ||
982 | temp = ( (SBox[(temp>>8) & 0xFF]) | | ||
983 | (SBox[(temp>>16) & 0xFF]<<8) | | ||
984 | (SBox[(temp>>24) & 0xFF]<<16) | | ||
985 | (SBox[temp & 0xFF]<<24) ) ^ Rcon[Math.floor(j / Nk) - 1]; | ||
986 | else if (Nk > 6 && j % Nk == 4) | ||
987 | temp = (SBox[(temp>>24) & 0xFF]<<24) | | ||
988 | (SBox[(temp>>16) & 0xFF]<<16) | | ||
989 | (SBox[(temp>>8) & 0xFF]<<8) | | ||
990 | (SBox[temp & 0xFF]); | ||
991 | expandedKey[j] = expandedKey[j-Nk] ^ temp; | ||
992 | } | ||
993 | return expandedKey; | ||
994 | } | ||
995 | |||
996 | // Rijndael's round functions... | ||
997 | |||
998 | function Round(state, roundKey) { | ||
999 | byteSub(state, "encrypt"); | ||
1000 | shiftRow(state, "encrypt"); | ||
1001 | mixColumn(state, "encrypt"); | ||
1002 | addRoundKey(state, roundKey); | ||
1003 | } | ||
1004 | |||
1005 | function InverseRound(state, roundKey) { | ||
1006 | addRoundKey(state, roundKey); | ||
1007 | mixColumn(state, "decrypt"); | ||
1008 | shiftRow(state, "decrypt"); | ||
1009 | byteSub(state, "decrypt"); | ||
1010 | } | ||
1011 | |||
1012 | function FinalRound(state, roundKey) { | ||
1013 | byteSub(state, "encrypt"); | ||
1014 | shiftRow(state, "encrypt"); | ||
1015 | addRoundKey(state, roundKey); | ||
1016 | } | ||
1017 | |||
1018 | function InverseFinalRound(state, roundKey){ | ||
1019 | addRoundKey(state, roundKey); | ||
1020 | shiftRow(state, "decrypt"); | ||
1021 | byteSub(state, "decrypt"); | ||
1022 | } | ||
1023 | |||
1024 | // encrypt is the basic encryption function. It takes parameters | ||
1025 | // block, an array of bytes representing a plaintext block, and expandedKey, | ||
1026 | // an array of words representing the expanded key previously returned by | ||
1027 | // keyExpansion(). The ciphertext block is returned as an array of bytes. | ||
1028 | |||
1029 | function encrypt(block, expandedKey) { | ||
1030 | var i; | ||
1031 | if (!block || block.length*8 != blockSizeInBits) | ||
1032 | return; | ||
1033 | if (!expandedKey) | ||
1034 | return; | ||
1035 | |||
1036 | block = packBytes(block); | ||
1037 | addRoundKey(block, expandedKey); | ||
1038 | for (i=1; i<Nr; i++) | ||
1039 | Round(block, expandedKey.slice(Nb*i, Nb*(i+1))); | ||
1040 | FinalRound(block, expandedKey.slice(Nb*Nr)); | ||
1041 | return unpackBytes(block); | ||
1042 | } | ||
1043 | |||
1044 | // decrypt is the basic decryption function. It takes parameters | ||
1045 | // block, an array of bytes representing a ciphertext block, and expandedKey, | ||
1046 | // an array of words representing the expanded key previously returned by | ||
1047 | // keyExpansion(). The decrypted block is returned as an array of bytes. | ||
1048 | |||
1049 | function decrypt(block, expandedKey) { | ||
1050 | var i; | ||
1051 | if (!block || block.length*8 != blockSizeInBits) | ||
1052 | return; | ||
1053 | if (!expandedKey) | ||
1054 | return; | ||
1055 | |||
1056 | block = packBytes(block); | ||
1057 | InverseFinalRound(block, expandedKey.slice(Nb*Nr)); | ||
1058 | for (i = Nr - 1; i>0; i--) | ||
1059 | InverseRound(block, expandedKey.slice(Nb*i, Nb*(i+1))); | ||
1060 | addRoundKey(block, expandedKey); | ||
1061 | return unpackBytes(block); | ||
1062 | } | ||
1063 | |||
1064 | /* !NEEDED | ||
1065 | // This method takes a byte array (byteArray) and converts it to a string by | ||
1066 | // applying String.fromCharCode() to each value and concatenating the result. | ||
1067 | // The resulting string is returned. Note that this function SKIPS zero bytes | ||
1068 | // under the assumption that they are padding added in formatPlaintext(). | ||
1069 | // Obviously, do not invoke this method on raw data that can contain zero | ||
1070 | // bytes. It is really only appropriate for printable ASCII/Latin-1 | ||
1071 | // values. Roll your own function for more robust functionality :) | ||
1072 | |||
1073 | function byteArrayToString(byteArray) { | ||
1074 | var result = ""; | ||
1075 | for(var i=0; i<byteArray.length; i++) | ||
1076 | if (byteArray[i] != 0) | ||
1077 | result += String.fromCharCode(byteArray[i]); | ||
1078 | return result; | ||
1079 | } | ||
1080 | */ | ||
1081 | |||
1082 | // This function takes an array of bytes (byteArray) and converts them | ||
1083 | // to a hexadecimal string. Array element 0 is found at the beginning of | ||
1084 | // the resulting string, high nibble first. Consecutive elements follow | ||
1085 | // similarly, for example [16, 255] --> "10ff". The function returns a | ||
1086 | // string. | ||
1087 | |||
1088 | function byteArrayToHex(byteArray) { | ||
1089 | var result = ""; | ||
1090 | if (!byteArray) | ||
1091 | return; | ||
1092 | for (var i=0; i<byteArray.length; i++) | ||
1093 | result += ((byteArray[i]<16) ? "0" : "") + byteArray[i].toString(16); | ||
1094 | |||
1095 | return result; | ||
1096 | } | ||
1097 | |||
1098 | // This function converts a string containing hexadecimal digits to an | ||
1099 | // array of bytes. The resulting byte array is filled in the order the | ||
1100 | // values occur in the string, for example "10FF" --> [16, 255]. This | ||
1101 | // function returns an array. | ||
1102 | |||
1103 | function hexToByteArray(hexString) { | ||
1104 | var byteArray = []; | ||
1105 | if (hexString.length % 2) // must have even length | ||
1106 | return; | ||
1107 | if (hexString.indexOf("0x") == 0 || hexString.indexOf("0X") == 0) | ||
1108 | hexString = hexString.substring(2); | ||
1109 | for (var i = 0; i<hexString.length; i += 2) | ||
1110 | byteArray[Math.floor(i/2)] = parseInt(hexString.slice(i, i+2), 16); | ||
1111 | return byteArray; | ||
1112 | } | ||
1113 | |||
1114 | // This function packs an array of bytes into the four row form defined by | ||
1115 | // Rijndael. It assumes the length of the array of bytes is divisible by | ||
1116 | // four. Bytes are filled in according to the Rijndael spec (starting with | ||
1117 | // column 0, row 0 to 3). This function returns a 2d array. | ||
1118 | |||
1119 | function packBytes(octets) { | ||
1120 | var state = new Array(); | ||
1121 | if (!octets || octets.length % 4) | ||
1122 | return; | ||
1123 | |||
1124 | state[0] = new Array(); state[1] = new Array(); | ||
1125 | state[2] = new Array(); state[3] = new Array(); | ||
1126 | for (var j=0; j<octets.length; j+= 4) { | ||
1127 | state[0][j/4] = octets[j]; | ||
1128 | state[1][j/4] = octets[j+1]; | ||
1129 | state[2][j/4] = octets[j+2]; | ||
1130 | state[3][j/4] = octets[j+3]; | ||
1131 | } | ||
1132 | return state; | ||
1133 | } | ||
1134 | |||
1135 | // This function unpacks an array of bytes from the four row format preferred | ||
1136 | // by Rijndael into a single 1d array of bytes. It assumes the input "packed" | ||
1137 | // is a packed array. Bytes are filled in according to the Rijndael spec. | ||
1138 | // This function returns a 1d array of bytes. | ||
1139 | |||
1140 | function unpackBytes(packed) { | ||
1141 | var result = new Array(); | ||
1142 | for (var j=0; j<packed[0].length; j++) { | ||
1143 | result[result.length] = packed[0][j]; | ||
1144 | result[result.length] = packed[1][j]; | ||
1145 | result[result.length] = packed[2][j]; | ||
1146 | result[result.length] = packed[3][j]; | ||
1147 | } | ||
1148 | return result; | ||
1149 | } | ||
1150 | |||
1151 | // This function takes a prospective plaintext (string or array of bytes) | ||
1152 | // and pads it with pseudorandom bytes if its length is not a multiple of the block | ||
1153 | // size. If plaintext is a string, it is converted to an array of bytes | ||
1154 | // in the process. The type checking can be made much nicer using the | ||
1155 | // instanceof operator, but this operator is not available until IE5.0 so I | ||
1156 | // chose to use the heuristic below. | ||
1157 | |||
1158 | function formatPlaintext(plaintext) { | ||
1159 | var bpb = blockSizeInBits / 8; // bytes per block | ||
1160 | var fillWithRandomBits; | ||
1161 | var i; | ||
1162 | |||
1163 | // if primitive string or String instance | ||
1164 | if ((!((typeof plaintext == "object") && | ||
1165 | ((typeof (plaintext[0])) == "number"))) && | ||
1166 | ((typeof plaintext == "string") || plaintext.indexOf)) | ||
1167 | { | ||
1168 | plaintext = plaintext.split(""); | ||
1169 | // Unicode issues here (ignoring high byte) | ||
1170 | for (i=0; i<plaintext.length; i++) { | ||
1171 | plaintext[i] = plaintext[i].charCodeAt(0) & 0xFF; | ||
1172 | } | ||
1173 | } | ||
1174 | |||
1175 | i = plaintext.length % bpb; | ||
1176 | if (i > 0) { | ||
1177 | //alert("adding " + (bpb - 1) + " bytes"); | ||
1178 | // plaintext = plaintext.concat(getRandomBytes(bpb - i)); | ||
1179 | { | ||
1180 | varpaddingBytes; | ||
1181 | var ii,cc; | ||
1182 | |||
1183 | paddingBytes = new Array(); | ||
1184 | cc = bpb - i; | ||
1185 | for (ii=0; ii<cc; ii++) { | ||
1186 | paddingBytes[ii] = cc; | ||
1187 | } | ||
1188 | |||
1189 | //is("cc", cc); | ||
1190 | //is(getRandomBytes(bpb - i) + "", paddingBytes + ""); | ||
1191 | plaintext = plaintext.concat(paddingBytes); | ||
1192 | } | ||
1193 | } | ||
1194 | |||
1195 | return plaintext; | ||
1196 | } | ||
1197 | |||
1198 | // Returns an array containing "howMany" random bytes. | ||
1199 | |||
1200 | function getRandomBytes(howMany) { | ||
1201 | var i, bytes = new Array(); | ||
1202 | |||
1203 | //alert("getting some random bytes"); | ||
1204 | for (i = 0; i < howMany; i++) { | ||
1205 | bytes[i] = prng.nextInt(255); | ||
1206 | } | ||
1207 | return bytes; | ||
1208 | } | ||
1209 | |||
1210 | // rijndaelEncrypt(plaintext, key, mode) | ||
1211 | // Encrypts the plaintext using the given key and in the given mode. | ||
1212 | // The parameter "plaintext" can either be a string or an array of bytes. | ||
1213 | // The parameter "key" must be an array of key bytes. If you have a hex | ||
1214 | // string representing the key, invoke hexToByteArray() on it to convert it | ||
1215 | // to an array of bytes. The third parameter "mode" is a string indicating | ||
1216 | // the encryption mode to use, either "ECB" or "CBC". If the parameter is | ||
1217 | // omitted, ECB is assumed. | ||
1218 | // | ||
1219 | // An array of bytes representing the cihpertext is returned. To convert | ||
1220 | // this array to hex, invoke byteArrayToHex() on it. | ||
1221 | |||
1222 | function rijndaelEncrypt(plaintext, key, mode) { | ||
1223 | var expandedKey, i, aBlock; | ||
1224 | var bpb = blockSizeInBits / 8; // bytes per block | ||
1225 | var ct; // ciphertext | ||
1226 | |||
1227 | if (!plaintext || !key) | ||
1228 | return; | ||
1229 | if (key.length*8 != keySizeInBits) | ||
1230 | return; | ||
1231 | if (mode == "CBC") { | ||
1232 | ct = getRandomBytes(bpb); // get IV | ||
1233 | //dump("IV", byteArrayToHex(ct)); | ||
1234 | } else { | ||
1235 | mode = "ECB"; | ||
1236 | ct = new Array(); | ||
1237 | } | ||
1238 | |||
1239 | // convert plaintext to byte array and pad with zeros if necessary. | ||
1240 | plaintext = formatPlaintext(plaintext); | ||
1241 | |||
1242 | expandedKey = keyExpansion(key); | ||
1243 | |||
1244 | for (var block = 0; block < plaintext.length / bpb; block++) { | ||
1245 | aBlock = plaintext.slice(block * bpb, (block + 1) * bpb); | ||
1246 | if (mode == "CBC") { | ||
1247 | for (var i = 0; i < bpb; i++) { | ||
1248 | aBlock[i] ^= ct[(block * bpb) + i]; | ||
1249 | } | ||
1250 | } | ||
1251 | ct = ct.concat(encrypt(aBlock, expandedKey)); | ||
1252 | } | ||
1253 | |||
1254 | return ct; | ||
1255 | } | ||
1256 | |||
1257 | // rijndaelDecrypt(ciphertext, key, mode) | ||
1258 | // Decrypts the using the given key and mode. The parameter "ciphertext" | ||
1259 | // must be an array of bytes. The parameter "key" must be an array of key | ||
1260 | // bytes. If you have a hex string representing the ciphertext or key, | ||
1261 | // invoke hexToByteArray() on it to convert it to an array of bytes. The | ||
1262 | // parameter "mode" is a string, either "CBC" or "ECB". | ||
1263 | // | ||
1264 | // An array of bytes representing the plaintext is returned. To convert | ||
1265 | // this array to a hex string, invoke byteArrayToHex() on it. To convert it | ||
1266 | // to a string of characters, you can use byteArrayToString(). | ||
1267 | |||
1268 | function rijndaelDecrypt(ciphertext, key, mode) { | ||
1269 | var expandedKey; | ||
1270 | var bpb = blockSizeInBits / 8; // bytes per block | ||
1271 | var pt = new Array(); // plaintext array | ||
1272 | var aBlock; // a decrypted block | ||
1273 | var block; // current block number | ||
1274 | |||
1275 | if (!ciphertext || !key || typeof ciphertext == "string") | ||
1276 | return; | ||
1277 | if (key.length*8 != keySizeInBits) | ||
1278 | return; | ||
1279 | if (!mode) { | ||
1280 | mode = "ECB"; // assume ECB if mode omitted | ||
1281 | } | ||
1282 | |||
1283 | expandedKey = keyExpansion(key); | ||
1284 | |||
1285 | // work backwards to accomodate CBC mode | ||
1286 | for (block=(ciphertext.length / bpb)-1; block>0; block--) { | ||
1287 | aBlock = | ||
1288 | decrypt(ciphertext.slice(block*bpb,(block+1)*bpb), expandedKey); | ||
1289 | if (mode == "CBC") | ||
1290 | for (var i=0; i<bpb; i++) | ||
1291 | pt[(block-1)*bpb + i] = aBlock[i] ^ ciphertext[(block-1)*bpb + i]; | ||
1292 | else | ||
1293 | pt = aBlock.concat(pt); | ||
1294 | } | ||
1295 | |||
1296 | // do last block if ECB (skips the IV in CBC) | ||
1297 | if (mode == "ECB") | ||
1298 | pt = decrypt(ciphertext.slice(0, bpb), expandedKey).concat(pt); | ||
1299 | |||
1300 | return pt; | ||
1301 | } | ||
1302 | |||
1303 | //############################################################################# | ||
1304 | //Downloaded on March 30, 2006 from http://www.fourmilab.ch/javascrypt/javascrypt.zip (utf-8.js) | ||
1305 | //############################################################################# | ||
1306 | |||
1307 | |||
1308 | /*Encoding and decoding of Unicode character strings as | ||
1309 | UTF-8 byte streams. */ | ||
1310 | |||
1311 | //UNICODE_TO_UTF8 -- Encode Unicode argument string as UTF-8 return value | ||
1312 | |||
1313 | function unicode_to_utf8(s) { | ||
1314 | var utf8 = ""; | ||
1315 | |||
1316 | for (var n = 0; n < s.length; n++) { | ||
1317 | var c = s.charCodeAt(n); | ||
1318 | |||
1319 | if (c <= 0x7F) { | ||
1320 | // 0x00 - 0x7F: Emit as single byte, unchanged | ||
1321 | utf8 += String.fromCharCode(c); | ||
1322 | } else if ((c >= 0x80) && (c <= 0x7FF)) { | ||
1323 | // 0x80 - 0x7FF: Output as two byte code, 0xC0 in first byte | ||
1324 | // 0x80 in second byte | ||
1325 | utf8 += String.fromCharCode((c >> 6) | 0xC0); | ||
1326 | utf8 += String.fromCharCode((c & 0x3F) | 0x80); | ||
1327 | } else { | ||
1328 | // 0x800 - 0xFFFF: Output as three bytes, 0xE0 in first byte | ||
1329 | // 0x80 in second byte | ||
1330 | // 0x80 in third byte | ||
1331 | utf8 += String.fromCharCode((c >> 12) | 0xE0); | ||
1332 | utf8 += String.fromCharCode(((c >> 6) & 0x3F) | 0x80); | ||
1333 | utf8 += String.fromCharCode((c & 0x3F) | 0x80); | ||
1334 | } | ||
1335 | } | ||
1336 | return utf8; | ||
1337 | } | ||
1338 | |||
1339 | //UTF8_TO_UNICODE -- Decode UTF-8 argument into Unicode string return value | ||
1340 | |||
1341 | function utf8_to_unicode(utf8) { | ||
1342 | var s = "", i = 0, b1, b2, b2; | ||
1343 | |||
1344 | while (i < utf8.length) { | ||
1345 | b1 = utf8.charCodeAt(i); | ||
1346 | if (b1 < 0x80) { // One byte code: 0x00 0x7F | ||
1347 | s += String.fromCharCode(b1); | ||
1348 | i++; | ||
1349 | } else if((b1 >= 0xC0) && (b1 < 0xE0)) {// Two byte code: 0x80 - 0x7FF | ||
1350 | b2 = utf8.charCodeAt(i + 1); | ||
1351 | s += String.fromCharCode(((b1 & 0x1F) << 6) | (b2 & 0x3F)); | ||
1352 | i += 2; | ||
1353 | } else { // Three byte code: 0x800 - 0xFFFF | ||
1354 | b2 = utf8.charCodeAt(i + 1); | ||
1355 | b3 = utf8.charCodeAt(i + 2); | ||
1356 | s += String.fromCharCode(((b1 & 0xF) << 12) | | ||
1357 | ((b2 & 0x3F) << 6) | | ||
1358 | (b3 & 0x3F)); | ||
1359 | i += 3; | ||
1360 | } | ||
1361 | } | ||
1362 | return s; | ||
1363 | } | ||
1364 | |||
1365 | /*ENCODE_UTF8 -- Encode string as UTF8 only if it contains | ||
1366 | a character of 0x9D (Unicode OPERATING | ||
1367 | SYSTEM COMMAND) or a character greater | ||
1368 | than 0xFF. This permits all strings | ||
1369 | consisting exclusively of 8 bit | ||
1370 | graphic characters to be encoded as | ||
1371 | themselves. We choose 0x9D as the sentinel | ||
1372 | character as opposed to one of the more | ||
1373 | logical PRIVATE USE characters because 0x9D | ||
1374 | is not overloaded by the regrettable | ||
1375 | "Windows-1252" character set. Now such characters | ||
1376 | don't belong in JavaScript strings, but you never | ||
1377 | know what somebody is going to paste into a | ||
1378 | text box, so this choice keeps Windows-encoded | ||
1379 | strings from bloating to UTF-8 encoding. */ | ||
1380 | |||
1381 | function encode_utf8(s) { | ||
1382 | var i, necessary = false; | ||
1383 | |||
1384 | for (i = 0; i < s.length; i++) { | ||
1385 | if ((s.charCodeAt(i) == 0x9D) || | ||
1386 | (s.charCodeAt(i) > 0xFF)) { | ||
1387 | necessary = true; | ||
1388 | break; | ||
1389 | } | ||
1390 | } | ||
1391 | if (!necessary) { | ||
1392 | return s; | ||
1393 | } | ||
1394 | return String.fromCharCode(0x9D) + unicode_to_utf8(s); | ||
1395 | } | ||
1396 | |||
1397 | /* DECODE_UTF8 -- Decode a string encoded with encode_utf8 | ||
1398 | above. If the string begins with the | ||
1399 | sentinel character 0x9D (OPERATING | ||
1400 | SYSTEM COMMAND), then we decode the | ||
1401 | balance as a UTF-8 stream. Otherwise, | ||
1402 | the string is output unchanged, as | ||
1403 | it's guaranteed to contain only 8 bit | ||
1404 | characters excluding 0x9D. */ | ||
1405 | |||
1406 | function decode_utf8(s) { | ||
1407 | if ((s.length > 0) && (s.charCodeAt(0) == 0x9D)) { | ||
1408 | return utf8_to_unicode(s.substring(1)); | ||
1409 | } | ||
1410 | return s; | ||
1411 | } | ||
1412 | |||
1413 | |||
1414 | //############################################################################# | ||
1415 | //Downloaded on April 26, 2006 from http://pajhome.org.uk/crypt/md5/md5.js | ||
1416 | //############################################################################# | ||
1417 | |||
1418 | /* | ||
1419 | * A JavaScript implementation of the RSA Data Security, Inc. MD5 Message | ||
1420 | * Digest Algorithm, as defined in RFC 1321. | ||
1421 | * Version 2.1 Copyright (C) Paul Johnston 1999 - 2002. | ||
1422 | * Other contributors: Greg Holt, Andrew Kepert, Ydnar, Lostinet | ||
1423 | * Distributed under the BSD License | ||
1424 | * See http://pajhome.org.uk/crypt/md5 for more info. | ||
1425 | */ | ||
1426 | |||
1427 | /* | ||
1428 | * Configurable variables. You may need to tweak these to be compatible with | ||
1429 | * the server-side, but the defaults work in most cases. | ||
1430 | */ | ||
1431 | var hexcase = 0; /* hex output format. 0 - lowercase; 1 - uppercase */ | ||
1432 | var b64pad = ""; /* base-64 pad character. "=" for strict RFC compliance */ | ||
1433 | var chrsz = 8; /* bits per input character. 8 - ASCII; 16 - Unicode */ | ||
1434 | |||
1435 | /* | ||
1436 | * These are the functions you'll usually want to call | ||
1437 | * They take string arguments and return either hex or base-64 encoded strings | ||
1438 | */ | ||
1439 | function hex_md5(s){ return binl2hex(core_md5(str2binl(s), s.length * chrsz));} | ||
1440 | function b64_md5(s){ return binl2b64(core_md5(str2binl(s), s.length * chrsz));} | ||
1441 | function str_md5(s){ return binl2str(core_md5(str2binl(s), s.length * chrsz));} | ||
1442 | function hex_hmac_md5(key, data) { return binl2hex(core_hmac_md5(key, data)); } | ||
1443 | function b64_hmac_md5(key, data) { return binl2b64(core_hmac_md5(key, data)); } | ||
1444 | function str_hmac_md5(key, data) { return binl2str(core_hmac_md5(key, data)); } | ||
1445 | |||
1446 | /* | ||
1447 | * Perform a simple self-test to see if the VM is working | ||
1448 | */ | ||
1449 | function md5_vm_test() | ||
1450 | { | ||
1451 | return hex_md5("abc") == "900150983cd24fb0d6963f7d28e17f72"; | ||
1452 | } | ||
1453 | |||
1454 | /* | ||
1455 | * Calculate the MD5 of an array of little-endian words, and a bit length | ||
1456 | */ | ||
1457 | function core_md5(x, len) | ||
1458 | { | ||
1459 | /* append padding */ | ||
1460 | x[len >> 5] |= 0x80 << ((len) % 32); | ||
1461 | x[(((len + 64) >>> 9) << 4) + 14] = len; | ||
1462 | |||
1463 | var a = 1732584193; | ||
1464 | var b = -271733879; | ||
1465 | var c = -1732584194; | ||
1466 | var d = 271733878; | ||
1467 | |||
1468 | for(var i = 0; i < x.length; i += 16) | ||
1469 | { | ||
1470 | var olda = a; | ||
1471 | var oldb = b; | ||
1472 | var oldc = c; | ||
1473 | var oldd = d; | ||
1474 | |||
1475 | a = md5_ff(a, b, c, d, x[i+ 0], 7 , -680876936); | ||
1476 | d = md5_ff(d, a, b, c, x[i+ 1], 12, -389564586); | ||
1477 | c = md5_ff(c, d, a, b, x[i+ 2], 17, 606105819); | ||
1478 | b = md5_ff(b, c, d, a, x[i+ 3], 22, -1044525330); | ||
1479 | a = md5_ff(a, b, c, d, x[i+ 4], 7 , -176418897); | ||
1480 | d = md5_ff(d, a, b, c, x[i+ 5], 12, 1200080426); | ||
1481 | c = md5_ff(c, d, a, b, x[i+ 6], 17, -1473231341); | ||
1482 | b = md5_ff(b, c, d, a, x[i+ 7], 22, -45705983); | ||
1483 | a = md5_ff(a, b, c, d, x[i+ 8], 7 , 1770035416); | ||
1484 | d = md5_ff(d, a, b, c, x[i+ 9], 12, -1958414417); | ||
1485 | c = md5_ff(c, d, a, b, x[i+10], 17, -42063); | ||
1486 | b = md5_ff(b, c, d, a, x[i+11], 22, -1990404162); | ||
1487 | a = md5_ff(a, b, c, d, x[i+12], 7 , 1804603682); | ||
1488 | d = md5_ff(d, a, b, c, x[i+13], 12, -40341101); | ||
1489 | c = md5_ff(c, d, a, b, x[i+14], 17, -1502002290); | ||
1490 | b = md5_ff(b, c, d, a, x[i+15], 22, 1236535329); | ||
1491 | |||
1492 | a = md5_gg(a, b, c, d, x[i+ 1], 5 , -165796510); | ||
1493 | d = md5_gg(d, a, b, c, x[i+ 6], 9 , -1069501632); | ||
1494 | c = md5_gg(c, d, a, b, x[i+11], 14, 643717713); | ||
1495 | b = md5_gg(b, c, d, a, x[i+ 0], 20, -373897302); | ||
1496 | a = md5_gg(a, b, c, d, x[i+ 5], 5 , -701558691); | ||
1497 | d = md5_gg(d, a, b, c, x[i+10], 9 , 38016083); | ||
1498 | c = md5_gg(c, d, a, b, x[i+15], 14, -660478335); | ||
1499 | b = md5_gg(b, c, d, a, x[i+ 4], 20, -405537848); | ||
1500 | a = md5_gg(a, b, c, d, x[i+ 9], 5 , 568446438); | ||
1501 | d = md5_gg(d, a, b, c, x[i+14], 9 , -1019803690); | ||
1502 | c = md5_gg(c, d, a, b, x[i+ 3], 14, -187363961); | ||
1503 | b = md5_gg(b, c, d, a, x[i+ 8], 20, 1163531501); | ||
1504 | a = md5_gg(a, b, c, d, x[i+13], 5 , -1444681467); | ||
1505 | d = md5_gg(d, a, b, c, x[i+ 2], 9 , -51403784); | ||
1506 | c = md5_gg(c, d, a, b, x[i+ 7], 14, 1735328473); | ||
1507 | b = md5_gg(b, c, d, a, x[i+12], 20, -1926607734); | ||
1508 | |||
1509 | a = md5_hh(a, b, c, d, x[i+ 5], 4 , -378558); | ||
1510 | d = md5_hh(d, a, b, c, x[i+ 8], 11, -2022574463); | ||
1511 | c = md5_hh(c, d, a, b, x[i+11], 16, 1839030562); | ||
1512 | b = md5_hh(b, c, d, a, x[i+14], 23, -35309556); | ||
1513 | a = md5_hh(a, b, c, d, x[i+ 1], 4 , -1530992060); | ||
1514 | d = md5_hh(d, a, b, c, x[i+ 4], 11, 1272893353); | ||
1515 | c = md5_hh(c, d, a, b, x[i+ 7], 16, -155497632); | ||
1516 | b = md5_hh(b, c, d, a, x[i+10], 23, -1094730640); | ||
1517 | a = md5_hh(a, b, c, d, x[i+13], 4 , 681279174); | ||
1518 | d = md5_hh(d, a, b, c, x[i+ 0], 11, -358537222); | ||
1519 | c = md5_hh(c, d, a, b, x[i+ 3], 16, -722521979); | ||
1520 | b = md5_hh(b, c, d, a, x[i+ 6], 23, 76029189); | ||
1521 | a = md5_hh(a, b, c, d, x[i+ 9], 4 , -640364487); | ||
1522 | d = md5_hh(d, a, b, c, x[i+12], 11, -421815835); | ||
1523 | c = md5_hh(c, d, a, b, x[i+15], 16, 530742520); | ||
1524 | b = md5_hh(b, c, d, a, x[i+ 2], 23, -995338651); | ||
1525 | |||
1526 | a = md5_ii(a, b, c, d, x[i+ 0], 6 , -198630844); | ||
1527 | d = md5_ii(d, a, b, c, x[i+ 7], 10, 1126891415); | ||
1528 | c = md5_ii(c, d, a, b, x[i+14], 15, -1416354905); | ||
1529 | b = md5_ii(b, c, d, a, x[i+ 5], 21, -57434055); | ||
1530 | a = md5_ii(a, b, c, d, x[i+12], 6 , 1700485571); | ||
1531 | d = md5_ii(d, a, b, c, x[i+ 3], 10, -1894986606); | ||
1532 | c = md5_ii(c, d, a, b, x[i+10], 15, -1051523); | ||
1533 | b = md5_ii(b, c, d, a, x[i+ 1], 21, -2054922799); | ||
1534 | a = md5_ii(a, b, c, d, x[i+ 8], 6 , 1873313359); | ||
1535 | d = md5_ii(d, a, b, c, x[i+15], 10, -30611744); | ||
1536 | c = md5_ii(c, d, a, b, x[i+ 6], 15, -1560198380); | ||
1537 | b = md5_ii(b, c, d, a, x[i+13], 21, 1309151649); | ||
1538 | a = md5_ii(a, b, c, d, x[i+ 4], 6 , -145523070); | ||
1539 | d = md5_ii(d, a, b, c, x[i+11], 10, -1120210379); | ||
1540 | c = md5_ii(c, d, a, b, x[i+ 2], 15, 718787259); | ||
1541 | b = md5_ii(b, c, d, a, x[i+ 9], 21, -343485551); | ||
1542 | |||
1543 | a = safe_add(a, olda); | ||
1544 | b = safe_add(b, oldb); | ||
1545 | c = safe_add(c, oldc); | ||
1546 | d = safe_add(d, oldd); | ||
1547 | } | ||
1548 | return Array(a, b, c, d); | ||
1549 | |||
1550 | } | ||
1551 | |||
1552 | /* | ||
1553 | * These functions implement the four basic operations the algorithm uses. | ||
1554 | */ | ||
1555 | function md5_cmn(q, a, b, x, s, t) | ||
1556 | { | ||
1557 | return safe_add(bit_rol(safe_add(safe_add(a, q), safe_add(x, t)), s),b); | ||
1558 | } | ||
1559 | function md5_ff(a, b, c, d, x, s, t) | ||
1560 | { | ||
1561 | return md5_cmn((b & c) | ((~b) & d), a, b, x, s, t); | ||
1562 | } | ||
1563 | function md5_gg(a, b, c, d, x, s, t) | ||
1564 | { | ||
1565 | return md5_cmn((b & d) | (c & (~d)), a, b, x, s, t); | ||
1566 | } | ||
1567 | function md5_hh(a, b, c, d, x, s, t) | ||
1568 | { | ||
1569 | return md5_cmn(b ^ c ^ d, a, b, x, s, t); | ||
1570 | } | ||
1571 | function md5_ii(a, b, c, d, x, s, t) | ||
1572 | { | ||
1573 | return md5_cmn(c ^ (b | (~d)), a, b, x, s, t); | ||
1574 | } | ||
1575 | |||
1576 | /* | ||
1577 | * Calculate the HMAC-MD5, of a key and some data | ||
1578 | */ | ||
1579 | function core_hmac_md5(key, data) | ||
1580 | { | ||
1581 | var bkey = str2binl(key); | ||
1582 | if(bkey.length > 16) bkey = core_md5(bkey, key.length * chrsz); | ||
1583 | |||
1584 | var ipad = Array(16), opad = Array(16); | ||
1585 | for(var i = 0; i < 16; i++) | ||
1586 | { | ||
1587 | ipad[i] = bkey[i] ^ 0x36363636; | ||
1588 | opad[i] = bkey[i] ^ 0x5C5C5C5C; | ||
1589 | } | ||
1590 | |||
1591 | var hash = core_md5(ipad.concat(str2binl(data)), 512 + data.length * chrsz); | ||
1592 | return core_md5(opad.concat(hash), 512 + 128); | ||
1593 | } | ||
1594 | |||
1595 | /* | ||
1596 | * Add integers, wrapping at 2^32. This uses 16-bit operations internally | ||
1597 | * to work around bugs in some JS interpreters. | ||
1598 | */ | ||
1599 | function safe_add(x, y) | ||
1600 | { | ||
1601 | var lsw = (x & 0xFFFF) + (y & 0xFFFF); | ||
1602 | var msw = (x >> 16) + (y >> 16) + (lsw >> 16); | ||
1603 | return (msw << 16) | (lsw & 0xFFFF); | ||
1604 | } | ||
1605 | |||
1606 | /* | ||
1607 | * Bitwise rotate a 32-bit number to the left. | ||
1608 | */ | ||
1609 | function bit_rol(num, cnt) | ||
1610 | { | ||
1611 | return (num << cnt) | (num >>> (32 - cnt)); | ||
1612 | } | ||
1613 | |||
1614 | /* | ||
1615 | * Convert a string to an array of little-endian words | ||
1616 | * If chrsz is ASCII, characters >255 have their hi-byte silently ignored. | ||
1617 | */ | ||
1618 | function str2binl(str) | ||
1619 | { | ||
1620 | var bin = Array(); | ||
1621 | var mask = (1 << chrsz) - 1; | ||
1622 | for(var i = 0; i < str.length * chrsz; i += chrsz) | ||
1623 | bin[i>>5] |= (str.charCodeAt(i / chrsz) & mask) << (i%32); | ||
1624 | return bin; | ||
1625 | } | ||
1626 | |||
1627 | /* | ||
1628 | * Convert an array of little-endian words to a string | ||
1629 | */ | ||
1630 | function binl2str(bin) | ||
1631 | { | ||
1632 | var str = ""; | ||
1633 | var mask = (1 << chrsz) - 1; | ||
1634 | for(var i = 0; i < bin.length * 32; i += chrsz) | ||
1635 | str += String.fromCharCode((bin[i>>5] >>> (i % 32)) & mask); | ||
1636 | return str; | ||
1637 | } | ||
1638 | |||
1639 | /* | ||
1640 | * Convert an array of little-endian words to a hex string. | ||
1641 | */ | ||
1642 | function binl2hex(binarray) | ||
1643 | { | ||
1644 | var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef"; | ||
1645 | var str = ""; | ||
1646 | for(var i = 0; i < binarray.length * 4; i++) | ||
1647 | { | ||
1648 | str += hex_tab.charAt((binarray[i>>2] >> ((i%4)*8+4)) & 0xF) + | ||
1649 | hex_tab.charAt((binarray[i>>2] >> ((i%4)*8 )) & 0xF); | ||
1650 | } | ||
1651 | return str; | ||
1652 | } | ||
1653 | |||
1654 | /* | ||
1655 | * Convert an array of little-endian words to a base-64 string | ||
1656 | */ | ||
1657 | function binl2b64(binarray) | ||
1658 | { | ||
1659 | var tab = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; | ||
1660 | var str = ""; | ||
1661 | for(var i = 0; i < binarray.length * 4; i += 3) | ||
1662 | { | ||
1663 | var triplet = (((binarray[i >> 2] >> 8 * ( i %4)) & 0xFF) << 16) | ||
1664 | | (((binarray[i+1 >> 2] >> 8 * ((i+1)%4)) & 0xFF) << 8 ) | ||
1665 | | ((binarray[i+2 >> 2] >> 8 * ((i+2)%4)) & 0xFF); | ||
1666 | for(var j = 0; j < 4; j++) | ||
1667 | { | ||
1668 | if(i * 8 + j * 6 > binarray.length * 32) str += b64pad; | ||
1669 | else str += tab.charAt((triplet >> 6*(3-j)) & 0x3F); | ||
1670 | } | ||
1671 | } | ||
1672 | return str; | ||
1673 | } | ||
1674 | |||
1675 | |||
1676 | //############################################################################# | ||
1677 | //############################################################################# | ||
1678 | //############################################################################# | ||
1679 | |||
1680 | |||
1681 | |||
1682 | MochiKit.Base.update(Clipperz.Crypto.Base, { | ||
1683 | |||
1684 | '__repr__': function () { | ||
1685 | return "[" + this.NAME + " " + this.VERSION + "]"; | ||
1686 | }, | ||
1687 | |||
1688 | 'toString': function () { | ||
1689 | return this.__repr__(); | ||
1690 | }, | ||
1691 | |||
1692 | //----------------------------------------------------------------------------- | ||
1693 | |||
1694 | 'encryptUsingSecretKey': function (aKey, aMessage) { | ||
1695 | //Clipperz.Profile.start("Clipperz.Crypto.Base.encryptUsingSecretKey"); | ||
1696 | var result; | ||
1697 | var plaintext; | ||
1698 | varheader; | ||
1699 | varkey; | ||
1700 | |||
1701 | key = hexToByteArray(Clipperz.Crypto.Base.computeHashValue(aKey)); | ||
1702 | |||
1703 | addEntropyTime(); | ||
1704 | prng = new AESprng(keyFromEntropy()); | ||
1705 | |||
1706 | plaintext = encode_utf8(aMessage); | ||
1707 | |||
1708 | header = Clipperz.Base.byteArrayToString(hexToByteArray(Clipperz.Crypto.Base.computeMD5HashValue(plaintext))); | ||
1709 | |||
1710 | // Add message length in bytes to header | ||
1711 | i = plaintext.length; | ||
1712 | header += String.fromCharCode(i >>> 24); | ||
1713 | header += String.fromCharCode(i >>> 16); | ||
1714 | header += String.fromCharCode(i >>> 8); | ||
1715 | header += String.fromCharCode(i & 0xFF); | ||
1716 | |||
1717 | //The format of the actual message passed to rijndaelEncrypt | ||
1718 | //is: | ||
1719 | // | ||
1720 | // Bytes Content | ||
1721 | // 0-15 MD5 signature of plaintext | ||
1722 | // 16-19 Length of plaintext, big-endian order | ||
1723 | // 20-end Plaintext | ||
1724 | // | ||
1725 | //Note that this message will be padded with zero bytes | ||
1726 | //to an integral number of AES blocks (blockSizeInBits / 8). | ||
1727 | //This does not include the initial vector for CBC | ||
1728 | //encryption, which is added internally by rijndaelEncrypt. | ||
1729 | result = byteArrayToHex(rijndaelEncrypt(header + plaintext, key, "CBC")); | ||
1730 | |||
1731 | delete prng; | ||
1732 | |||
1733 | //Clipperz.Profile.stop("Clipperz.Crypto.Base.encryptUsingSecretKey"); | ||
1734 | return result; | ||
1735 | }, | ||
1736 | |||
1737 | //............................................................................. | ||
1738 | |||
1739 | 'decryptUsingSecretKey': function (aKey, aMessage) { | ||
1740 | //Clipperz.Profile.start("Clipperz.Crypto.Base.decryptUsingSecretKey"); | ||
1741 | varkey; | ||
1742 | var decryptedText; | ||
1743 | vartextLength; | ||
1744 | varheader; | ||
1745 | varheaderDigest; | ||
1746 | var plaintext; | ||
1747 | var i; | ||
1748 | |||
1749 | key = hexToByteArray(Clipperz.Crypto.Base.computeHashValue(aKey)); | ||
1750 | |||
1751 | decryptedText = rijndaelDecrypt(hexToByteArray(aMessage), key, "CBC"); | ||
1752 | |||
1753 | header = decryptedText.slice(0, 20); | ||
1754 | decryptedText = decryptedText.slice(20); | ||
1755 | |||
1756 | headerDigest = byteArrayToHex(header.slice(0,16)); | ||
1757 | textLength = (header[16] << 24) | (header[17] << 16) | (header[18] << 8) | header[19]; | ||
1758 | |||
1759 | if ((textLength < 0) || (textLength > decryptedText.length)) { | ||
1760 | // jslog.warning("Message (length " + decryptedText.length + ") truncated. " + textLength + " characters expected."); | ||
1761 | //Try to sauve qui peut by setting length to entire message | ||
1762 | textLength = decryptedText.length; | ||
1763 | } | ||
1764 | |||
1765 | plainText = ""; | ||
1766 | |||
1767 | for (i=0; i<textLength; i++) { | ||
1768 | plainText += String.fromCharCode(decryptedText[i]); | ||
1769 | } | ||
1770 | |||
1771 | if (Clipperz.Crypto.Base.computeMD5HashValue(plainText) != headerDigest) { | ||
1772 | // jslog.warning("Message corrupted. Checksum of decrypted message does not match."); | ||
1773 | throw Clipperz.Crypto.Base.exception.CorruptedMessage; | ||
1774 | // throw new Error("Message corrupted. Checksum of decrypted message does not match. Parsed result: " + decode_utf8(plainText)); | ||
1775 | } | ||
1776 | |||
1777 | // That's it; plug plaintext into the result field | ||
1778 | |||
1779 | result = decode_utf8(plainText); | ||
1780 | |||
1781 | //Clipperz.Profile.stop("Clipperz.Crypto.Base.decryptUsingSecretKey"); | ||
1782 | return result; | ||
1783 | }, | ||
1784 | |||
1785 | //----------------------------------------------------------------------------- | ||
1786 | |||
1787 | 'computeHashValue': function (aMessage) { | ||
1788 | //Clipperz.Profile.start("Clipperz.Crypto.Base.computeHashValue"); | ||
1789 | varresult; | ||
1790 | |||
1791 | result = hex_sha256(aMessage); | ||
1792 | //Clipperz.Profile.stop("Clipperz.Crypto.Base.computeHashValue"); | ||
1793 | |||
1794 | return result; | ||
1795 | }, | ||
1796 | |||
1797 | //......................................................................... | ||
1798 | |||
1799 | 'computeMD5HashValue': function (aMessage) { | ||
1800 | varresult; | ||
1801 | //Clipperz.Profile.start("Clipperz.Crypto.Base.computeMD5HashValue"); | ||
1802 | result = hex_md5(aMessage); | ||
1803 | //Clipperz.Profile.stop("Clipperz.Crypto.Base.computeMD5HashValue"); | ||
1804 | |||
1805 | return result; | ||
1806 | }, | ||
1807 | |||
1808 | //----------------------------------------------------------------------------- | ||
1809 | |||
1810 | 'generateRandomSeed': function () { | ||
1811 | //Clipperz.Profile.start("Clipperz.Crypto.Base.generateRandomSeed"); | ||
1812 | varresult; | ||
1813 | var seed; | ||
1814 | var prng; | ||
1815 | var charA; | ||
1816 | var i; | ||
1817 | |||
1818 | addEntropyTime(); | ||
1819 | |||
1820 | seed = keyFromEntropy(); | ||
1821 | prng = new AESprng(seed); | ||
1822 | |||
1823 | result = ""; | ||
1824 | charA = ("A").charCodeAt(0); | ||
1825 | |||
1826 | for (i = 0; i < 64; i++) { | ||
1827 | result += String.fromCharCode(charA + prng.nextInt(25)); | ||
1828 | } | ||
1829 | |||
1830 | delete prng; | ||
1831 | |||
1832 | result = Clipperz.Crypto.Base.computeHashValue(result); | ||
1833 | |||
1834 | //Clipperz.Profile.stop("Clipperz.Crypto.Base.generateRandomSeed"); | ||
1835 | return result; | ||
1836 | }, | ||
1837 | |||
1838 | //----------------------------------------------------------------------------- | ||
1839 | |||
1840 | 'exception': { | ||
1841 | 'CorruptedMessage': new MochiKit.Base.NamedError("Clipperz.Crypto.Base.exception.CorruptedMessage") | ||
1842 | }, | ||
1843 | |||
1844 | //......................................................................... | ||
1845 | __syntaxFix__: "syntax fix" | ||
1846 | }); | ||
1847 | |||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/BigInt.js b/frontend/gamma/js/ClipperzCryptoLibrary/BigInt.js new file mode 100644 index 0000000..197cd9a --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/BigInt.js | |||
@@ -0,0 +1,1755 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | ||
25 | if (typeof(Clipperz.Crypto) == 'undefined') { Clipperz.Crypto = {}; } | ||
26 | |||
27 | //############################################################################# | ||
28 | //Downloaded on March 05, 2007 from http://www.leemon.com/crypto/BigInt.js | ||
29 | //############################################################################# | ||
30 | |||
31 | |||
32 | //////////////////////////////////////////////////////////////////////////////////////// | ||
33 | // Big Integer Library v. 5.0 | ||
34 | // Created 2000, last modified 2006 | ||
35 | // Leemon Baird | ||
36 | // www.leemon.com | ||
37 | // | ||
38 | // This file is public domain. You can use it for any purpose without restriction. | ||
39 | // I do not guarantee that it is correct, so use it at your own risk. If you use | ||
40 | // it for something interesting, I'd appreciate hearing about it. If you find | ||
41 | // any bugs or make any improvements, I'd appreciate hearing about those too. | ||
42 | // It would also be nice if my name and address were left in the comments. | ||
43 | // But none of that is required. | ||
44 | // | ||
45 | // This code defines a bigInt library for arbitrary-precision integers. | ||
46 | // A bigInt is an array of integers storing the value in chunks of bpe bits, | ||
47 | // little endian (buff[0] is the least significant word). | ||
48 | // Negative bigInts are stored two's complement. | ||
49 | // Some functions assume their parameters have at least one leading zero element. | ||
50 | // Functions with an underscore at the end of the name have unpredictable behavior in case of overflow, | ||
51 | // so the caller must make sure overflow won't happen. | ||
52 | // For each function where a parameter is modified, that same | ||
53 | // variable must not be used as another argument too. | ||
54 | // So, you cannot square x by doing multMod_(x,x,n). | ||
55 | // You must use squareMod_(x,n) instead, or do y=dup(x); multMod_(x,y,n). | ||
56 | // | ||
57 | // These functions are designed to avoid frequent dynamic memory allocation in the inner loop. | ||
58 | // For most functions, if it needs a BigInt as a local variable it will actually use | ||
59 | // a global, and will only allocate to it when it's not the right size. This ensures | ||
60 | // that when a function is called repeatedly with same-sized parameters, it only allocates | ||
61 | // memory on the first call. | ||
62 | // | ||
63 | // Note that for cryptographic purposes, the calls to Math.random() must | ||
64 | // be replaced with calls to a better pseudorandom number generator. | ||
65 | // | ||
66 | // In the following, "bigInt" means a bigInt with at least one leading zero element, | ||
67 | // and "integer" means a nonnegative integer less than radix. In some cases, integer | ||
68 | // can be negative. Negative bigInts are 2s complement. | ||
69 | // | ||
70 | // The following functions do not modify their inputs, but dynamically allocate memory every time they are called: | ||
71 | // | ||
72 | // function bigInt2str(x,base) //convert a bigInt into a string in a given base, from base 2 up to base 95 | ||
73 | // function dup(x) //returns a copy of bigInt x | ||
74 | // function findPrimes(n) //return array of all primes less than integer n | ||
75 | // function int2bigInt(t,n,m) //convert integer t to a bigInt with at least n bits and m array elements | ||
76 | // function int2bigInt(s,b,n,m) //convert string s in base b to a bigInt with at least n bits and m array elements | ||
77 | // function trim(x,k) //return a copy of x with exactly k leading zero elements | ||
78 | // | ||
79 | // The following functions do not modify their inputs, so there is never a problem with the result being too big: | ||
80 | // | ||
81 | // function bitSize(x) //returns how many bits long the bigInt x is, not counting leading zeros | ||
82 | // function equals(x,y) //is the bigInt x equal to the bigint y? | ||
83 | // function equalsInt(x,y) //is bigint x equal to integer y? | ||
84 | // function greater(x,y) //is x>y? (x and y are nonnegative bigInts) | ||
85 | // function greaterShift(x,y,shift)//is (x <<(shift*bpe)) > y? | ||
86 | // function isZero(x) //is the bigInt x equal to zero? | ||
87 | // function millerRabin(x,b) //does one round of Miller-Rabin base integer b say that bigInt x is possibly prime (as opposed to definitely composite)? | ||
88 | // function modInt(x,n) //return x mod n for bigInt x and integer n. | ||
89 | // function negative(x) //is bigInt x negative? | ||
90 | // | ||
91 | // The following functions do not modify their inputs, but allocate memory and call functions with underscores | ||
92 | // | ||
93 | // function add(x,y) //return (x+y) for bigInts x and y. | ||
94 | // function addInt(x,n) //return (x+n) where x is a bigInt and n is an integer. | ||
95 | // function expand(x,n) //return a copy of x with at least n elements, adding leading zeros if needed | ||
96 | // function inverseMod(x,n) //return (x**(-1) mod n) for bigInts x and n. If no inverse exists, it returns null | ||
97 | // function mod(x,n) //return a new bigInt equal to (x mod n) for bigInts x and n. | ||
98 | // function mult(x,y) //return x*y for bigInts x and y. This is faster when y<x. | ||
99 | // function multMod(x,y,n) //return (x*y mod n) for bigInts x,y,n. For greater speed, let y<x. | ||
100 | // function powMod(x,y,n) //return (x**y mod n) where x,y,n are bigInts and ** is exponentiation. 0**0=1. Faster for odd n. | ||
101 | // function randTruePrime(k) //return a new, random, k-bit, true prime using Maurer's algorithm. | ||
102 | // function sub(x,y) //return (x-y) for bigInts x and y. Negative answers will be 2s complement | ||
103 | // | ||
104 | // The following functions write a bigInt result to one of the parameters, but | ||
105 | // the result is never bigger than the original, so there can't be overflow problems: | ||
106 | // | ||
107 | // function divInt_(x,n) //do x=floor(x/n) for bigInt x and integer n, and return the remainder | ||
108 | // function GCD_(x,y) //set x to the greatest common divisor of bigInts x and y, (y is destroyed). | ||
109 | // function halve_(x) //do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement | ||
110 | // function mod_(x,n) //do x=x mod n for bigInts x and n. | ||
111 | // function rightShift_(x,n) //right shift bigInt x by n bits. 0 <= n < bpe. | ||
112 | // | ||
113 | // The following functions write a bigInt result to one of the parameters. The caller is responsible for | ||
114 | // ensuring it is large enough to hold the result. | ||
115 | // | ||
116 | // function addInt_(x,n) //do x=x+n where x is a bigInt and n is an integer | ||
117 | // function add_(x,y) //do x=x+y for bigInts x and y | ||
118 | // function addShift_(x,y,ys) //do x=x+(y<<(ys*bpe)) | ||
119 | // function copy_(x,y) //do x=y on bigInts x and y | ||
120 | // function copyInt_(x,n) //do x=n on bigInt x and integer n | ||
121 | // function carry_(x) //do carries and borrows so each element of the bigInt x fits in bpe bits. | ||
122 | // function divide_(x,y,q,r) //divide_ x by y giving quotient q and remainder r | ||
123 | // function eGCD_(x,y,d,a,b) //sets a,b,d to positive big integers such that d = GCD_(x,y) = a*x-b*y | ||
124 | // function inverseMod_(x,n) //do x=x**(-1) mod n, for bigInts x and n. Returns 1 (0) if inverse does (doesn't) exist | ||
125 | // function inverseModInt_(x,n) //return x**(-1) mod n, for integers x and n. Return 0 if there is no inverse | ||
126 | // function leftShift_(x,n) //left shift bigInt x by n bits. n<bpe. | ||
127 | // function linComb_(x,y,a,b) //do x=a*x+b*y for bigInts x and y and integers a and b | ||
128 | // function linCombShift_(x,y,b,ys) //do x=x+b*(y<<(ys*bpe)) for bigInts x and y, and integers b and ys | ||
129 | // function mont_(x,y,n,np) //Montgomery multiplication (see comments where the function is defined) | ||
130 | // function mult_(x,y) //do x=x*y for bigInts x and y. | ||
131 | // function multInt_(x,n) //do x=x*n where x is a bigInt and n is an integer. | ||
132 | // function multMod_(x,y,n) //do x=x*y mod n for bigInts x,y,n. | ||
133 | // function powMod_(x,y,n) //do x=x**y mod n, where x,y,n are bigInts (n is odd) and ** is exponentiation. 0**0=1. | ||
134 | // function randBigInt_(b,n,s) //do b = an n-bit random BigInt. if s=1, then nth bit (most significant bit) is set to 1. n>=1. | ||
135 | // function randTruePrime_(ans,k) //do ans = a random k-bit true random prime (not just probable prime) with 1 in the msb. | ||
136 | // function squareMod_(x,n) //do x=x*x mod n for bigInts x,n | ||
137 | // function sub_(x,y) //do x=x-y for bigInts x and y. Negative answers will be 2s complement. | ||
138 | // function subShift_(x,y,ys) //do x=x-(y<<(ys*bpe)). Negative answers will be 2s complement. | ||
139 | // | ||
140 | // The following functions are based on algorithms from the _Handbook of Applied Cryptography_ | ||
141 | // powMod_() = algorithm 14.94, Montgomery exponentiation | ||
142 | // eGCD_,inverseMod_() = algorithm 14.61, Binary extended GCD_ | ||
143 | // GCD_() = algorothm 14.57, Lehmer's algorithm | ||
144 | // mont_() = algorithm 14.36, Montgomery multiplication | ||
145 | // divide_() = algorithm 14.20 Multiple-precision division | ||
146 | // squareMod_() = algorithm 14.16 Multiple-precision squaring | ||
147 | // randTruePrime_() = algorithm 4.62, Maurer's algorithm | ||
148 | // millerRabin() = algorithm 4.24, Miller-Rabin algorithm | ||
149 | // | ||
150 | // Profiling shows: | ||
151 | // randTruePrime_() spends: | ||
152 | // 10% of its time in calls to powMod_() | ||
153 | // 85% of its time in calls to millerRabin() | ||
154 | // millerRabin() spends: | ||
155 | // 99% of its time in calls to powMod_() (always with a base of 2) | ||
156 | // powMod_() spends: | ||
157 | // 94% of its time in calls to mont_() (almost always with x==y) | ||
158 | // | ||
159 | // This suggests there are several ways to speed up this library slightly: | ||
160 | // - convert powMod_ to use a Montgomery form of k-ary window (or maybe a Montgomery form of sliding window) | ||
161 | // -- this should especially focus on being fast when raising 2 to a power mod n | ||
162 | // - convert randTruePrime_() to use a minimum r of 1/3 instead of 1/2 with the appropriate change to the test | ||
163 | // - tune the parameters in randTruePrime_(), including c, m, and recLimit | ||
164 | // - speed up the single loop in mont_() that takes 95% of the runtime, perhaps by reducing checking | ||
165 | // within the loop when all the parameters are the same length. | ||
166 | // | ||
167 | // There are several ideas that look like they wouldn't help much at all: | ||
168 | // - replacing trial division in randTruePrime_() with a sieve (that speeds up something taking almost no time anyway) | ||
169 | // - increase bpe from 15 to 30 (that would help if we had a 32*32->64 multiplier, but not with JavaScript's 32*32->32) | ||
170 | // - speeding up mont_(x,y,n,np) when x==y by doing a non-modular, non-Montgomery square | ||
171 | // followed by a Montgomery reduction. The intermediate answer will be twice as long as x, so that | ||
172 | // method would be slower. This is unfortunate because the code currently spends almost all of its time | ||
173 | // doing mont_(x,x,...), both for randTruePrime_() and powMod_(). A faster method for Montgomery squaring | ||
174 | // would have a large impact on the speed of randTruePrime_() and powMod_(). HAC has a couple of poorly-worded | ||
175 | // sentences that seem to imply it's faster to do a non-modular square followed by a single | ||
176 | // Montgomery reduction, but that's obviously wrong. | ||
177 | //////////////////////////////////////////////////////////////////////////////////////// | ||
178 | |||
179 | //globals | ||
180 | bpe=0; //bits stored per array element | ||
181 | mask=0; //AND this with an array element to chop it down to bpe bits | ||
182 | radix=mask+1; //equals 2^bpe. A single 1 bit to the left of the last bit of mask. | ||
183 | |||
184 | //the digits for converting to different bases | ||
185 | digitsStr='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\\'\"+-'; | ||
186 | |||
187 | //initialize the global variables | ||
188 | for (bpe=0; (1<<(bpe+1)) > (1<<bpe); bpe++); //bpe=number of bits in the mantissa on this platform | ||
189 | bpe>>=1; //bpe=number of bits in one element of the array representing the bigInt | ||
190 | mask=(1<<bpe)-1; //AND the mask with an integer to get its bpe least significant bits | ||
191 | radix=mask+1; //2^bpe. a single 1 bit to the left of the first bit of mask | ||
192 | one=int2bigInt(1,1,1); //constant used in powMod_() | ||
193 | |||
194 | //the following global variables are scratchpad memory to | ||
195 | //reduce dynamic memory allocation in the inner loop | ||
196 | t=new Array(0); | ||
197 | ss=t; //used in mult_() | ||
198 | s0=t; //used in multMod_(), squareMod_() | ||
199 | s1=t; //used in powMod_(), multMod_(), squareMod_() | ||
200 | s2=t; //used in powMod_(), multMod_() | ||
201 | s3=t; //used in powMod_() | ||
202 | s4=t; s5=t; //used in mod_() | ||
203 | s6=t; //used in bigInt2str() | ||
204 | s7=t; //used in powMod_() | ||
205 | T=t; //used in GCD_() | ||
206 | sa=t; //used in mont_() | ||
207 | mr_x1=t; mr_r=t; mr_a=t; //used in millerRabin() | ||
208 | eg_v=t; eg_u=t; eg_A=t; eg_B=t; eg_C=t; eg_D=t; //used in eGCD_(), inverseMod_() | ||
209 | md_q1=t; md_q2=t; md_q3=t; md_r=t; md_r1=t; md_r2=t; md_tt=t; //used in mod_() | ||
210 | |||
211 | primes=t; pows=t; s_i=t; s_i2=t; s_R=t; s_rm=t; s_q=t; s_n1=t; | ||
212 | s_a=t; s_r2=t; s_n=t; s_b=t; s_d=t; s_x1=t; s_x2=t, s_aa=t; //used in randTruePrime_() | ||
213 | |||
214 | //////////////////////////////////////////////////////////////////////////////////////// | ||
215 | |||
216 | //return array of all primes less than integer n | ||
217 | function findPrimes(n) { | ||
218 | var i,s,p,ans; | ||
219 | s=new Array(n); | ||
220 | for (i=0;i<n;i++) | ||
221 | s[i]=0; | ||
222 | s[0]=2; | ||
223 | p=0; //first p elements of s are primes, the rest are a sieve | ||
224 | for(;s[p]<n;) { //s[p] is the pth prime | ||
225 | for(i=s[p]*s[p]; i<n; i+=s[p]) //mark multiples of s[p] | ||
226 | s[i]=1; | ||
227 | p++; | ||
228 | s[p]=s[p-1]+1; | ||
229 | for(; s[p]<n && s[s[p]]; s[p]++); //find next prime (where s[p]==0) | ||
230 | } | ||
231 | ans=new Array(p); | ||
232 | for(i=0;i<p;i++) | ||
233 | ans[i]=s[i]; | ||
234 | return ans; | ||
235 | } | ||
236 | |||
237 | //does a single round of Miller-Rabin base b consider x to be a possible prime? | ||
238 | //x is a bigInt, and b is an integer | ||
239 | function millerRabin(x,b) { | ||
240 | var i,j,k,s; | ||
241 | |||
242 | if (mr_x1.length!=x.length) { | ||
243 | mr_x1=dup(x); | ||
244 | mr_r=dup(x); | ||
245 | mr_a=dup(x); | ||
246 | } | ||
247 | |||
248 | copyInt_(mr_a,b); | ||
249 | copy_(mr_r,x); | ||
250 | copy_(mr_x1,x); | ||
251 | |||
252 | addInt_(mr_r,-1); | ||
253 | addInt_(mr_x1,-1); | ||
254 | |||
255 | //s=the highest power of two that divides mr_r | ||
256 | k=0; | ||
257 | for (i=0;i<mr_r.length;i++) | ||
258 | for (j=1;j<mask;j<<=1) | ||
259 | if (x[i] & j) { | ||
260 | s=(k<mr_r.length+bpe ? k : 0); | ||
261 | i=mr_r.length; | ||
262 | j=mask; | ||
263 | } else | ||
264 | k++; | ||
265 | |||
266 | if (s) | ||
267 | rightShift_(mr_r,s); | ||
268 | |||
269 | powMod_(mr_a,mr_r,x); | ||
270 | |||
271 | if (!equalsInt(mr_a,1) && !equals(mr_a,mr_x1)) { | ||
272 | j=1; | ||
273 | while (j<=s-1 && !equals(mr_a,mr_x1)) { | ||
274 | squareMod_(mr_a,x); | ||
275 | if (equalsInt(mr_a,1)) { | ||
276 | return 0; | ||
277 | } | ||
278 | j++; | ||
279 | } | ||
280 | if (!equals(mr_a,mr_x1)) { | ||
281 | return 0; | ||
282 | } | ||
283 | } | ||
284 | return 1; | ||
285 | } | ||
286 | |||
287 | //returns how many bits long the bigInt is, not counting leading zeros. | ||
288 | function bitSize(x) { | ||
289 | var j,z,w; | ||
290 | for (j=x.length-1; (x[j]==0) && (j>0); j--); | ||
291 | for (z=0,w=x[j]; w; (w>>=1),z++); | ||
292 | z+=bpe*j; | ||
293 | return z; | ||
294 | } | ||
295 | |||
296 | //return a copy of x with at least n elements, adding leading zeros if needed | ||
297 | function expand(x,n) { | ||
298 | var ans=int2bigInt(0,(x.length>n ? x.length : n)*bpe,0); | ||
299 | copy_(ans,x); | ||
300 | return ans; | ||
301 | } | ||
302 | |||
303 | //return a k-bit true random prime using Maurer's algorithm. | ||
304 | function randTruePrime(k) { | ||
305 | var ans=int2bigInt(0,k,0); | ||
306 | randTruePrime_(ans,k); | ||
307 | return trim(ans,1); | ||
308 | } | ||
309 | |||
310 | //return a new bigInt equal to (x mod n) for bigInts x and n. | ||
311 | function mod(x,n) { | ||
312 | var ans=dup(x); | ||
313 | mod_(ans,n); | ||
314 | return trim(ans,1); | ||
315 | } | ||
316 | |||
317 | //return (x+n) where x is a bigInt and n is an integer. | ||
318 | function addInt(x,n) { | ||
319 | var ans=expand(x,x.length+1); | ||
320 | addInt_(ans,n); | ||
321 | return trim(ans,1); | ||
322 | } | ||
323 | |||
324 | //return x*y for bigInts x and y. This is faster when y<x. | ||
325 | function mult(x,y) { | ||
326 | var ans=expand(x,x.length+y.length); | ||
327 | mult_(ans,y); | ||
328 | return trim(ans,1); | ||
329 | } | ||
330 | |||
331 | //return (x**y mod n) where x,y,n are bigInts and ** is exponentiation. 0**0=1. Faster for odd n. | ||
332 | function powMod(x,y,n) { | ||
333 | var ans=expand(x,n.length); | ||
334 | powMod_(ans,trim(y,2),trim(n,2),0); //this should work without the trim, but doesn't | ||
335 | return trim(ans,1); | ||
336 | } | ||
337 | |||
338 | //return (x-y) for bigInts x and y. Negative answers will be 2s complement | ||
339 | function sub(x,y) { | ||
340 | var ans=expand(x,(x.length>y.length ? x.length+1 : y.length+1)); | ||
341 | sub_(ans,y); | ||
342 | return trim(ans,1); | ||
343 | } | ||
344 | |||
345 | //return (x+y) for bigInts x and y. | ||
346 | function add(x,y) { | ||
347 | var ans=expand(x,(x.length>y.length ? x.length+1 : y.length+1)); | ||
348 | add_(ans,y); | ||
349 | return trim(ans,1); | ||
350 | } | ||
351 | |||
352 | //return (x**(-1) mod n) for bigInts x and n. If no inverse exists, it returns null | ||
353 | function inverseMod(x,n) { | ||
354 | var ans=expand(x,n.length); | ||
355 | var s; | ||
356 | s=inverseMod_(ans,n); | ||
357 | return s ? trim(ans,1) : null; | ||
358 | } | ||
359 | |||
360 | //return (x*y mod n) for bigInts x,y,n. For greater speed, let y<x. | ||
361 | function multMod(x,y,n) { | ||
362 | var ans=expand(x,n.length); | ||
363 | multMod_(ans,y,n); | ||
364 | return trim(ans,1); | ||
365 | } | ||
366 | |||
367 | //generate a k-bit true random prime using Maurer's algorithm, | ||
368 | //and put it into ans. The bigInt ans must be large enough to hold it. | ||
369 | function randTruePrime_(ans,k) { | ||
370 | var c,m,pm,dd,j,r,B,divisible,z,zz,recSize; | ||
371 | |||
372 | if (primes.length==0) | ||
373 | primes=findPrimes(30000); //check for divisibility by primes <=30000 | ||
374 | |||
375 | if (pows.length==0) { | ||
376 | pows=new Array(512); | ||
377 | for (j=0;j<512;j++) { | ||
378 | pows[j]=Math.pow(2,j/511.-1.); | ||
379 | } | ||
380 | } | ||
381 | |||
382 | //c and m should be tuned for a particular machine and value of k, to maximize speed | ||
383 | //this was: c=primes[primes.length-1]/k/k; //check using all the small primes. (c=0.1 in HAC) | ||
384 | c=0.1; | ||
385 | m=20; //generate this k-bit number by first recursively generating a number that has between k/2 and k-m bits | ||
386 | recLimit=20; /*must be at least 2 (was 29)*/ //stop recursion when k <=recLimit | ||
387 | |||
388 | if (s_i2.length!=ans.length) { | ||
389 | s_i2=dup(ans); | ||
390 | s_R =dup(ans); | ||
391 | s_n1=dup(ans); | ||
392 | s_r2=dup(ans); | ||
393 | s_d =dup(ans); | ||
394 | s_x1=dup(ans); | ||
395 | s_x2=dup(ans); | ||
396 | s_b =dup(ans); | ||
397 | s_n =dup(ans); | ||
398 | s_i =dup(ans); | ||
399 | s_rm=dup(ans); | ||
400 | s_q =dup(ans); | ||
401 | s_a =dup(ans); | ||
402 | s_aa=dup(ans); | ||
403 | } | ||
404 | |||
405 | if (k <= recLimit) { //generate small random primes by trial division up to its square root | ||
406 | pm=(1<<((k+2)>>1))-1; //pm is binary number with all ones, just over sqrt(2^k) | ||
407 | copyInt_(ans,0); | ||
408 | for (dd=1;dd;) { | ||
409 | dd=0; | ||
410 | ans[0]= 1 | (1<<(k-1)) | Math.floor(Math.random()*(1<<k)); //random, k-bit, odd integer, with msb 1 | ||
411 | for (j=1;(j<primes.length) && ((primes[j]&pm)==primes[j]);j++) { //trial division by all primes 3...sqrt(2^k) | ||
412 | if (0==(ans[0]%primes[j])) { | ||
413 | dd=1; | ||
414 | break; | ||
415 | } | ||
416 | } | ||
417 | } | ||
418 | carry_(ans); | ||
419 | return; | ||
420 | } | ||
421 | |||
422 | B=c*k*k; //try small primes up to B (or all the primes[] array if the largest is less than B). | ||
423 | if (k>2*m) //generate this k-bit number by first recursively generating a number that has between k/2 and k-m bits | ||
424 | for (r=1; k-k*r<=m; ) | ||
425 | r=pows[Math.floor(Math.random()*512)]; //r=Math.pow(2,Math.random()-1); | ||
426 | else | ||
427 | r=.5; | ||
428 | |||
429 | //simulation suggests the more complex algorithm using r=.333 is only slightly faster. | ||
430 | |||
431 | recSize=Math.floor(r*k)+1; | ||
432 | |||
433 | randTruePrime_(s_q,recSize); | ||
434 | copyInt_(s_i2,0); | ||
435 | s_i2[Math.floor((k-2)/bpe)] |= (1<<((k-2)%bpe)); //s_i2=2^(k-2) | ||
436 | divide_(s_i2,s_q,s_i,s_rm); //s_i=floor((2^(k-1))/(2q)) | ||
437 | |||
438 | z=bitSize(s_i); | ||
439 | |||
440 | for (;;) { | ||
441 | for (;;) { //generate z-bit numbers until one falls in the range [0,s_i-1] | ||
442 | randBigInt_(s_R,z,0); | ||
443 | if (greater(s_i,s_R)) | ||
444 | break; | ||
445 | } //now s_R is in the range [0,s_i-1] | ||
446 | addInt_(s_R,1); //now s_R is in the range [1,s_i] | ||
447 | add_(s_R,s_i); //now s_R is in the range [s_i+1,2*s_i] | ||
448 | |||
449 | copy_(s_n,s_q); | ||
450 | mult_(s_n,s_R); | ||
451 | multInt_(s_n,2); | ||
452 | addInt_(s_n,1); //s_n=2*s_R*s_q+1 | ||
453 | |||
454 | copy_(s_r2,s_R); | ||
455 | multInt_(s_r2,2); //s_r2=2*s_R | ||
456 | |||
457 | //check s_n for divisibility by small primes up to B | ||
458 | for (divisible=0,j=0; (j<primes.length) && (primes[j]<B); j++) | ||
459 | if (modInt(s_n,primes[j])==0) { | ||
460 | divisible=1; | ||
461 | break; | ||
462 | } | ||
463 | |||
464 | if (!divisible) //if it passes small primes check, then try a single Miller-Rabin base 2 | ||
465 | if (!millerRabin(s_n,2)) //this line represents 75% of the total runtime for randTruePrime_ | ||
466 | divisible=1; | ||
467 | |||
468 | if (!divisible) { //if it passes that test, continue checking s_n | ||
469 | addInt_(s_n,-3); | ||
470 | for (j=s_n.length-1;(s_n[j]==0) && (j>0); j--); //strip leading zeros | ||
471 | for (zz=0,w=s_n[j]; w; (w>>=1),zz++); | ||
472 | zz+=bpe*j; //zz=number of bits in s_n, ignoring leading zeros | ||
473 | for (;;) { //generate z-bit numbers until one falls in the range [0,s_n-1] | ||
474 | randBigInt_(s_a,zz,0); | ||
475 | if (greater(s_n,s_a)) | ||
476 | break; | ||
477 | } //now s_a is in the range [0,s_n-1] | ||
478 | addInt_(s_n,3); //now s_a is in the range [0,s_n-4] | ||
479 | addInt_(s_a,2); //now s_a is in the range [2,s_n-2] | ||
480 | copy_(s_b,s_a); | ||
481 | copy_(s_n1,s_n); | ||
482 | addInt_(s_n1,-1); | ||
483 | powMod_(s_b,s_n1,s_n); //s_b=s_a^(s_n-1) modulo s_n | ||
484 | addInt_(s_b,-1); | ||
485 | if (isZero(s_b)) { | ||
486 | copy_(s_b,s_a); | ||
487 | powMod_(s_b,s_r2,s_n); | ||
488 | addInt_(s_b,-1); | ||
489 | copy_(s_aa,s_n); | ||
490 | copy_(s_d,s_b); | ||
491 | GCD_(s_d,s_n); //if s_b and s_n are relatively prime, then s_n is a prime | ||
492 | if (equalsInt(s_d,1)) { | ||
493 | copy_(ans,s_aa); | ||
494 | return; //if we've made it this far, then s_n is absolutely guaranteed to be prime | ||
495 | } | ||
496 | } | ||
497 | } | ||
498 | } | ||
499 | } | ||
500 | |||
501 | //set b to an n-bit random BigInt. If s=1, then nth bit (most significant bit) is set to 1. | ||
502 | //array b must be big enough to hold the result. Must have n>=1 | ||
503 | function randBigInt_(b,n,s) { | ||
504 | var i,a; | ||
505 | for (i=0;i<b.length;i++) | ||
506 | b[i]=0; | ||
507 | a=Math.floor((n-1)/bpe)+1; //# array elements to hold the BigInt | ||
508 | for (i=0;i<a;i++) { | ||
509 | b[i]=Math.floor(Math.random()*(1<<(bpe-1))); | ||
510 | } | ||
511 | b[a-1] &= (2<<((n-1)%bpe))-1; | ||
512 | if (s) | ||
513 | b[a-1] |= (1<<((n-1)%bpe)); | ||
514 | } | ||
515 | |||
516 | //set x to the greatest common divisor of x and y. | ||
517 | //x,y are bigInts with the same number of elements. y is destroyed. | ||
518 | function GCD_(x,y) { | ||
519 | var i,xp,yp,A,B,C,D,q,sing; | ||
520 | if (T.length!=x.length) | ||
521 | T=dup(x); | ||
522 | |||
523 | sing=1; | ||
524 | while (sing) { //while y has nonzero elements other than y[0] | ||
525 | sing=0; | ||
526 | for (i=1;i<y.length;i++) //check if y has nonzero elements other than 0 | ||
527 | if (y[i]) { | ||
528 | sing=1; | ||
529 | break; | ||
530 | } | ||
531 | if (!sing) break; //quit when y all zero elements except possibly y[0] | ||
532 | |||
533 | for (i=x.length;!x[i] && i>=0;i--); //find most significant element of x | ||
534 | xp=x[i]; | ||
535 | yp=y[i]; | ||
536 | A=1; B=0; C=0; D=1; | ||
537 | while ((yp+C) && (yp+D)) { | ||
538 | q =Math.floor((xp+A)/(yp+C)); | ||
539 | qp=Math.floor((xp+B)/(yp+D)); | ||
540 | if (q!=qp) | ||
541 | break; | ||
542 | t= A-q*C; A=C; C=t; // do (A,B,xp, C,D,yp) = (C,D,yp, A,B,xp) - q*(0,0,0, C,D,yp) | ||
543 | t= B-q*D; B=D; D=t; | ||
544 | t=xp-q*yp; xp=yp; yp=t; | ||
545 | } | ||
546 | if (B) { | ||
547 | copy_(T,x); | ||
548 | linComb_(x,y,A,B); //x=A*x+B*y | ||
549 | linComb_(y,T,D,C); //y=D*y+C*T | ||
550 | } else { | ||
551 | mod_(x,y); | ||
552 | copy_(T,x); | ||
553 | copy_(x,y); | ||
554 | copy_(y,T); | ||
555 | } | ||
556 | } | ||
557 | if (y[0]==0) | ||
558 | return; | ||
559 | t=modInt(x,y[0]); | ||
560 | copyInt_(x,y[0]); | ||
561 | y[0]=t; | ||
562 | while (y[0]) { | ||
563 | x[0]%=y[0]; | ||
564 | t=x[0]; x[0]=y[0]; y[0]=t; | ||
565 | } | ||
566 | } | ||
567 | |||
568 | //do x=x**(-1) mod n, for bigInts x and n. | ||
569 | //If no inverse exists, it sets x to zero and returns 0, else it returns 1. | ||
570 | //The x array must be at least as large as the n array. | ||
571 | function inverseMod_(x,n) { | ||
572 | var k=1+2*Math.max(x.length,n.length); | ||
573 | |||
574 | if(!(x[0]&1) && !(n[0]&1)) { //if both inputs are even, then inverse doesn't exist | ||
575 | copyInt_(x,0); | ||
576 | return 0; | ||
577 | } | ||
578 | |||
579 | if (eg_u.length!=k) { | ||
580 | eg_u=new Array(k); | ||
581 | eg_v=new Array(k); | ||
582 | eg_A=new Array(k); | ||
583 | eg_B=new Array(k); | ||
584 | eg_C=new Array(k); | ||
585 | eg_D=new Array(k); | ||
586 | } | ||
587 | |||
588 | copy_(eg_u,x); | ||
589 | copy_(eg_v,n); | ||
590 | copyInt_(eg_A,1); | ||
591 | copyInt_(eg_B,0); | ||
592 | copyInt_(eg_C,0); | ||
593 | copyInt_(eg_D,1); | ||
594 | for (;;) { | ||
595 | while(!(eg_u[0]&1)) { //while eg_u is even | ||
596 | halve_(eg_u); | ||
597 | if (!(eg_A[0]&1) && !(eg_B[0]&1)) { //if eg_A==eg_B==0 mod 2 | ||
598 | halve_(eg_A); | ||
599 | halve_(eg_B); | ||
600 | } else { | ||
601 | add_(eg_A,n); halve_(eg_A); | ||
602 | sub_(eg_B,x); halve_(eg_B); | ||
603 | } | ||
604 | } | ||
605 | |||
606 | while (!(eg_v[0]&1)) { //while eg_v is even | ||
607 | halve_(eg_v); | ||
608 | if (!(eg_C[0]&1) && !(eg_D[0]&1)) { //if eg_C==eg_D==0 mod 2 | ||
609 | halve_(eg_C); | ||
610 | halve_(eg_D); | ||
611 | } else { | ||
612 | add_(eg_C,n); halve_(eg_C); | ||
613 | sub_(eg_D,x); halve_(eg_D); | ||
614 | } | ||
615 | } | ||
616 | |||
617 | if (!greater(eg_v,eg_u)) { //eg_v <= eg_u | ||
618 | sub_(eg_u,eg_v); | ||
619 | sub_(eg_A,eg_C); | ||
620 | sub_(eg_B,eg_D); | ||
621 | } else { //eg_v > eg_u | ||
622 | sub_(eg_v,eg_u); | ||
623 | sub_(eg_C,eg_A); | ||
624 | sub_(eg_D,eg_B); | ||
625 | } | ||
626 | |||
627 | if (equalsInt(eg_u,0)) { | ||
628 | if (negative(eg_C)) //make sure answer is nonnegative | ||
629 | add_(eg_C,n); | ||
630 | copy_(x,eg_C); | ||
631 | |||
632 | if (!equalsInt(eg_v,1)) { //if GCD_(x,n)!=1, then there is no inverse | ||
633 | copyInt_(x,0); | ||
634 | return 0; | ||
635 | } | ||
636 | return 1; | ||
637 | } | ||
638 | } | ||
639 | } | ||
640 | |||
641 | //return x**(-1) mod n, for integers x and n. Return 0 if there is no inverse | ||
642 | function inverseModInt_(x,n) { | ||
643 | var a=1,b=0,t; | ||
644 | for (;;) { | ||
645 | if (x==1) return a; | ||
646 | if (x==0) return 0; | ||
647 | b-=a*Math.floor(n/x); | ||
648 | n%=x; | ||
649 | |||
650 | if (n==1) return b; //to avoid negatives, change this b to n-b, and each -= to += | ||
651 | if (n==0) return 0; | ||
652 | a-=b*Math.floor(x/n); | ||
653 | x%=n; | ||
654 | } | ||
655 | } | ||
656 | |||
657 | //Given positive bigInts x and y, change the bigints v, a, and b to positive bigInts such that: | ||
658 | // v = GCD_(x,y) = a*x-b*y | ||
659 | //The bigInts v, a, b, must have exactly as many elements as the larger of x and y. | ||
660 | function eGCD_(x,y,v,a,b) { | ||
661 | var g=0; | ||
662 | var k=Math.max(x.length,y.length); | ||
663 | if (eg_u.length!=k) { | ||
664 | eg_u=new Array(k); | ||
665 | eg_A=new Array(k); | ||
666 | eg_B=new Array(k); | ||
667 | eg_C=new Array(k); | ||
668 | eg_D=new Array(k); | ||
669 | } | ||
670 | while(!(x[0]&1) && !(y[0]&1)) { //while x and y both even | ||
671 | halve_(x); | ||
672 | halve_(y); | ||
673 | g++; | ||
674 | } | ||
675 | copy_(eg_u,x); | ||
676 | copy_(v,y); | ||
677 | copyInt_(eg_A,1); | ||
678 | copyInt_(eg_B,0); | ||
679 | copyInt_(eg_C,0); | ||
680 | copyInt_(eg_D,1); | ||
681 | for (;;) { | ||
682 | while(!(eg_u[0]&1)) { //while u is even | ||
683 | halve_(eg_u); | ||
684 | if (!(eg_A[0]&1) && !(eg_B[0]&1)) { //if A==B==0 mod 2 | ||
685 | halve_(eg_A); | ||
686 | halve_(eg_B); | ||
687 | } else { | ||
688 | add_(eg_A,y); halve_(eg_A); | ||
689 | sub_(eg_B,x); halve_(eg_B); | ||
690 | } | ||
691 | } | ||
692 | |||
693 | while (!(v[0]&1)) { //while v is even | ||
694 | halve_(v); | ||
695 | if (!(eg_C[0]&1) && !(eg_D[0]&1)) { //if C==D==0 mod 2 | ||
696 | halve_(eg_C); | ||
697 | halve_(eg_D); | ||
698 | } else { | ||
699 | add_(eg_C,y); halve_(eg_C); | ||
700 | sub_(eg_D,x); halve_(eg_D); | ||
701 | } | ||
702 | } | ||
703 | |||
704 | if (!greater(v,eg_u)) { //v<=u | ||
705 | sub_(eg_u,v); | ||
706 | sub_(eg_A,eg_C); | ||
707 | sub_(eg_B,eg_D); | ||
708 | } else { //v>u | ||
709 | sub_(v,eg_u); | ||
710 | sub_(eg_C,eg_A); | ||
711 | sub_(eg_D,eg_B); | ||
712 | } | ||
713 | if (equalsInt(eg_u,0)) { | ||
714 | if (negative(eg_C)) { //make sure a (C)is nonnegative | ||
715 | add_(eg_C,y); | ||
716 | sub_(eg_D,x); | ||
717 | } | ||
718 | multInt_(eg_D,-1); ///make sure b (D) is nonnegative | ||
719 | copy_(a,eg_C); | ||
720 | copy_(b,eg_D); | ||
721 | leftShift_(v,g); | ||
722 | return; | ||
723 | } | ||
724 | } | ||
725 | } | ||
726 | |||
727 | |||
728 | //is bigInt x negative? | ||
729 | function negative(x) { | ||
730 | return ((x[x.length-1]>>(bpe-1))&1); | ||
731 | } | ||
732 | |||
733 | |||
734 | //is (x << (shift*bpe)) > y? | ||
735 | //x and y are nonnegative bigInts | ||
736 | //shift is a nonnegative integer | ||
737 | function greaterShift(x,y,shift) { | ||
738 | var kx=x.length, ky=y.length; | ||
739 | k=((kx+shift)<ky) ? (kx+shift) : ky; | ||
740 | for (i=ky-1-shift; i<kx && i>=0; i++) | ||
741 | if (x[i]>0) | ||
742 | return 1; //if there are nonzeros in x to the left of the first column of y, then x is bigger | ||
743 | for (i=kx-1+shift; i<ky; i++) | ||
744 | if (y[i]>0) | ||
745 | return 0; //if there are nonzeros in y to the left of the first column of x, then x is not bigger | ||
746 | for (i=k-1; i>=shift; i--) | ||
747 | if (x[i-shift]>y[i]) return 1; | ||
748 | else if (x[i-shift]<y[i]) return 0; | ||
749 | return 0; | ||
750 | } | ||
751 | |||
752 | //is x > y? (x and y both nonnegative) | ||
753 | function greater(x,y) { | ||
754 | var i; | ||
755 | var k=(x.length<y.length) ? x.length : y.length; | ||
756 | |||
757 | for (i=x.length;i<y.length;i++) | ||
758 | if (y[i]) | ||
759 | return 0; //y has more digits | ||
760 | |||
761 | for (i=y.length;i<x.length;i++) | ||
762 | if (x[i]) | ||
763 | return 1; //x has more digits | ||
764 | |||
765 | for (i=k-1;i>=0;i--) | ||
766 | if (x[i]>y[i]) | ||
767 | return 1; | ||
768 | else if (x[i]<y[i]) | ||
769 | return 0; | ||
770 | return 0; | ||
771 | } | ||
772 | |||
773 | //divide_ x by y giving quotient q and remainder r. (q=floor(x/y), r=x mod y). All 4 are bigints. | ||
774 | //x must have at least one leading zero element. | ||
775 | //y must be nonzero. | ||
776 | //q and r must be arrays that are exactly the same length as x. | ||
777 | //the x array must have at least as many elements as y. | ||
778 | function divide_(x,y,q,r) { | ||
779 | var kx, ky; | ||
780 | var i,j,y1,y2,c,a,b; | ||
781 | copy_(r,x); | ||
782 | for (ky=y.length;y[ky-1]==0;ky--); //kx,ky is number of elements in x,y, not including leading zeros | ||
783 | for (kx=r.length;r[kx-1]==0 && kx>ky;kx--); | ||
784 | |||
785 | //normalize: ensure the most significant element of y has its highest bit set | ||
786 | b=y[ky-1]; | ||
787 | for (a=0; b; a++) | ||
788 | b>>=1; | ||
789 | a=bpe-a; //a is how many bits to shift so that the high order bit of y is leftmost in its array element | ||
790 | leftShift_(y,a); //multiply both by 1<<a now, then divide_ both by that at the end | ||
791 | leftShift_(r,a); | ||
792 | |||
793 | copyInt_(q,0); // q=0 | ||
794 | while (!greaterShift(y,r,kx-ky)) { // while (leftShift_(y,kx-ky) <= r) { | ||
795 | subShift_(r,y,kx-ky); // r=r-leftShift_(y,kx-ky) | ||
796 | q[kx-ky]++; // q[kx-ky]++; | ||
797 | } // } | ||
798 | |||
799 | for (i=kx-1; i>=ky; i--) { | ||
800 | if (r[i]==y[ky-1]) | ||
801 | q[i-ky]=mask; | ||
802 | else | ||
803 | q[i-ky]=Math.floor((r[i]*radix+r[i-1])/y[ky-1]); | ||
804 | |||
805 | //The following for(;;) loop is equivalent to the commented while loop, | ||
806 | //except that the uncommented version avoids overflow. | ||
807 | //The commented loop comes from HAC, which assumes r[-1]==y[-1]==0 | ||
808 | // while (q[i-ky]*(y[ky-1]*radix+y[ky-2]) > r[i]*radix*radix+r[i-1]*radix+r[i-2]) | ||
809 | // q[i-ky]--; | ||
810 | for (;;) { | ||
811 | y2=(ky>1 ? y[ky-2] : 0)*q[i-ky]; | ||
812 | c=y2>>bpe; | ||
813 | y2=y2 & mask; | ||
814 | y1=c+q[i-ky]*y[ky-1]; | ||
815 | c=y1>>bpe; | ||
816 | y1=y1 & mask; | ||
817 | |||
818 | if (c==r[i] ? y1==r[i-1] ? y2>(i>1 ? r[i-2] : 0) : y1>r[i-1] : c>r[i]) | ||
819 | q[i-ky]--; | ||
820 | else | ||
821 | break; | ||
822 | } | ||
823 | |||
824 | linCombShift_(r,y,-q[i-ky],i-ky); //r=r-q[i-ky]*leftShift_(y,i-ky) | ||
825 | if (negative(r)) { | ||
826 | addShift_(r,y,i-ky); //r=r+leftShift_(y,i-ky) | ||
827 | q[i-ky]--; | ||
828 | } | ||
829 | } | ||
830 | |||
831 | rightShift_(y,a); //undo the normalization step | ||
832 | rightShift_(r,a); //undo the normalization step | ||
833 | } | ||
834 | |||
835 | //do carries and borrows so each element of the bigInt x fits in bpe bits. | ||
836 | function carry_(x) { | ||
837 | var i,k,c,b; | ||
838 | k=x.length; | ||
839 | c=0; | ||
840 | for (i=0;i<k;i++) { | ||
841 | c+=x[i]; | ||
842 | b=0; | ||
843 | if (c<0) { | ||
844 | b=-(c>>bpe); | ||
845 | c+=b*radix; | ||
846 | } | ||
847 | x[i]=c & mask; | ||
848 | c=(c>>bpe)-b; | ||
849 | } | ||
850 | } | ||
851 | |||
852 | //return x mod n for bigInt x and integer n. | ||
853 | function modInt(x,n) { | ||
854 | var i,c=0; | ||
855 | for (i=x.length-1; i>=0; i--) | ||
856 | c=(c*radix+x[i])%n; | ||
857 | return c; | ||
858 | } | ||
859 | |||
860 | //convert the integer t into a bigInt with at least the given number of bits. | ||
861 | //the returned array stores the bigInt in bpe-bit chunks, little endian (buff[0] is least significant word) | ||
862 | //Pad the array with leading zeros so that it has at least minSize elements. | ||
863 | //There will always be at least one leading 0 element. | ||
864 | function int2bigInt(t,bits,minSize) { | ||
865 | var i,k; | ||
866 | k=Math.ceil(bits/bpe)+1; | ||
867 | k=minSize>k ? minSize : k; | ||
868 | buff=new Array(k); | ||
869 | copyInt_(buff,t); | ||
870 | return buff; | ||
871 | } | ||
872 | |||
873 | //return the bigInt given a string representation in a given base. | ||
874 | //Pad the array with leading zeros so that it has at least minSize elements. | ||
875 | //If base=-1, then it reads in a space-separated list of array elements in decimal. | ||
876 | //The array will always have at least one leading zero, unless base=-1. | ||
877 | function str2bigInt(s,base,minSize) { | ||
878 | var d, i, j, x, y, kk; | ||
879 | var k=s.length; | ||
880 | if (base==-1) { //comma-separated list of array elements in decimal | ||
881 | x=new Array(0); | ||
882 | for (;;) { | ||
883 | y=new Array(x.length+1); | ||
884 | for (i=0;i<x.length;i++) | ||
885 | y[i+1]=x[i]; | ||
886 | y[0]=parseInt(s,10); | ||
887 | x=y; | ||
888 | d=s.indexOf(',',0); | ||
889 | if (d<1) | ||
890 | break; | ||
891 | s=s.substring(d+1); | ||
892 | if (s.length==0) | ||
893 | break; | ||
894 | } | ||
895 | if (x.length<minSize) { | ||
896 | y=new Array(minSize); | ||
897 | copy_(y,x); | ||
898 | return y; | ||
899 | } | ||
900 | return x; | ||
901 | } | ||
902 | |||
903 | x=int2bigInt(0,base*k,0); | ||
904 | for (i=0;i<k;i++) { | ||
905 | d=digitsStr.indexOf(s.substring(i,i+1),0); | ||
906 | if (base<=36 && d>=36) //convert lowercase to uppercase if base<=36 | ||
907 | d-=26; | ||
908 | if (d<base && d>=0) { //ignore illegal characters | ||
909 | multInt_(x,base); | ||
910 | addInt_(x,d); | ||
911 | } | ||
912 | } | ||
913 | |||
914 | for (k=x.length;k>0 && !x[k-1];k--); //strip off leading zeros | ||
915 | k=minSize>k+1 ? minSize : k+1; | ||
916 | y=new Array(k); | ||
917 | kk=k<x.length ? k : x.length; | ||
918 | for (i=0;i<kk;i++) | ||
919 | y[i]=x[i]; | ||
920 | for (;i<k;i++) | ||
921 | y[i]=0; | ||
922 | return y; | ||
923 | } | ||
924 | |||
925 | //is bigint x equal to integer y? | ||
926 | //y must have less than bpe bits | ||
927 | function equalsInt(x,y) { | ||
928 | var i; | ||
929 | if (x[0]!=y) | ||
930 | return 0; | ||
931 | for (i=1;i<x.length;i++) | ||
932 | if (x[i]) | ||
933 | return 0; | ||
934 | return 1; | ||
935 | } | ||
936 | |||
937 | //are bigints x and y equal? | ||
938 | //this works even if x and y are different lengths and have arbitrarily many leading zeros | ||
939 | function equals(x,y) { | ||
940 | var i; | ||
941 | var k=x.length<y.length ? x.length : y.length; | ||
942 | for (i=0;i<k;i++) | ||
943 | if (x[i]!=y[i]) | ||
944 | return 0; | ||
945 | if (x.length>y.length) { | ||
946 | for (;i<x.length;i++) | ||
947 | if (x[i]) | ||
948 | return 0; | ||
949 | } else { | ||
950 | for (;i<y.length;i++) | ||
951 | if (y[i]) | ||
952 | return 0; | ||
953 | } | ||
954 | return 1; | ||
955 | } | ||
956 | |||
957 | //is the bigInt x equal to zero? | ||
958 | function isZero(x) { | ||
959 | var i; | ||
960 | for (i=0;i<x.length;i++) | ||
961 | if (x[i]) | ||
962 | return 0; | ||
963 | return 1; | ||
964 | } | ||
965 | |||
966 | //convert a bigInt into a string in a given base, from base 2 up to base 95. | ||
967 | //Base -1 prints the contents of the array representing the number. | ||
968 | function bigInt2str(x,base) { | ||
969 | var i,t,s=""; | ||
970 | |||
971 | if (s6.length!=x.length) | ||
972 | s6=dup(x); | ||
973 | else | ||
974 | copy_(s6,x); | ||
975 | |||
976 | if (base==-1) { //return the list of array contents | ||
977 | for (i=x.length-1;i>0;i--) | ||
978 | s+=x[i]+','; | ||
979 | s+=x[0]; | ||
980 | } | ||
981 | else { //return it in the given base | ||
982 | while (!isZero(s6)) { | ||
983 | t=divInt_(s6,base); //t=s6 % base; s6=floor(s6/base); | ||
984 | s=digitsStr.substring(t,t+1)+s; | ||
985 | } | ||
986 | } | ||
987 | if (s.length==0) | ||
988 | s="0"; | ||
989 | return s; | ||
990 | } | ||
991 | |||
992 | //returns a duplicate of bigInt x | ||
993 | function dup(x) { | ||
994 | var i; | ||
995 | buff=new Array(x.length); | ||
996 | copy_(buff,x); | ||
997 | return buff; | ||
998 | } | ||
999 | |||
1000 | //do x=y on bigInts x and y. x must be an array at least as big as y (not counting the leading zeros in y). | ||
1001 | function copy_(x,y) { | ||
1002 | var i; | ||
1003 | var k=x.length<y.length ? x.length : y.length; | ||
1004 | for (i=0;i<k;i++) | ||
1005 | x[i]=y[i]; | ||
1006 | for (i=k;i<x.length;i++) | ||
1007 | x[i]=0; | ||
1008 | } | ||
1009 | |||
1010 | //do x=y on bigInt x and integer y. | ||
1011 | function copyInt_(x,n) { | ||
1012 | var i,c; | ||
1013 | for (c=n,i=0;i<x.length;i++) { | ||
1014 | x[i]=c & mask; | ||
1015 | c>>=bpe; | ||
1016 | } | ||
1017 | } | ||
1018 | |||
1019 | //do x=x+n where x is a bigInt and n is an integer. | ||
1020 | //x must be large enough to hold the result. | ||
1021 | function addInt_(x,n) { | ||
1022 | var i,k,c,b; | ||
1023 | x[0]+=n; | ||
1024 | k=x.length; | ||
1025 | c=0; | ||
1026 | for (i=0;i<k;i++) { | ||
1027 | c+=x[i]; | ||
1028 | b=0; | ||
1029 | if (c<0) { | ||
1030 | b=-(c>>bpe); | ||
1031 | c+=b*radix; | ||
1032 | } | ||
1033 | x[i]=c & mask; | ||
1034 | c=(c>>bpe)-b; | ||
1035 | if (!c) return; //stop carrying as soon as the carry_ is zero | ||
1036 | } | ||
1037 | } | ||
1038 | |||
1039 | //right shift bigInt x by n bits. 0 <= n < bpe. | ||
1040 | function rightShift_(x,n) { | ||
1041 | var i; | ||
1042 | var k=Math.floor(n/bpe); | ||
1043 | if (k) { | ||
1044 | for (i=0;i<x.length-k;i++) //right shift x by k elements | ||
1045 | x[i]=x[i+k]; | ||
1046 | for (;i<x.length;i++) | ||
1047 | x[i]=0; | ||
1048 | n%=bpe; | ||
1049 | } | ||
1050 | for (i=0;i<x.length-1;i++) { | ||
1051 | x[i]=mask & ((x[i+1]<<(bpe-n)) | (x[i]>>n)); | ||
1052 | } | ||
1053 | x[i]>>=n; | ||
1054 | } | ||
1055 | |||
1056 | //do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement | ||
1057 | function halve_(x) { | ||
1058 | var i; | ||
1059 | for (i=0;i<x.length-1;i++) { | ||
1060 | x[i]=mask & ((x[i+1]<<(bpe-1)) | (x[i]>>1)); | ||
1061 | } | ||
1062 | x[i]=(x[i]>>1) | (x[i] & (radix>>1)); //most significant bit stays the same | ||
1063 | } | ||
1064 | |||
1065 | //left shift bigInt x by n bits. | ||
1066 | function leftShift_(x,n) { | ||
1067 | var i; | ||
1068 | var k=Math.floor(n/bpe); | ||
1069 | if (k) { | ||
1070 | for (i=x.length; i>=k; i--) //left shift x by k elements | ||
1071 | x[i]=x[i-k]; | ||
1072 | for (;i>=0;i--) | ||
1073 | x[i]=0; | ||
1074 | n%=bpe; | ||
1075 | } | ||
1076 | if (!n) | ||
1077 | return; | ||
1078 | for (i=x.length-1;i>0;i--) { | ||
1079 | x[i]=mask & ((x[i]<<n) | (x[i-1]>>(bpe-n))); | ||
1080 | } | ||
1081 | x[i]=mask & (x[i]<<n); | ||
1082 | } | ||
1083 | |||
1084 | //do x=x*n where x is a bigInt and n is an integer. | ||
1085 | //x must be large enough to hold the result. | ||
1086 | function multInt_(x,n) { | ||
1087 | var i,k,c,b; | ||
1088 | if (!n) | ||
1089 | return; | ||
1090 | k=x.length; | ||
1091 | c=0; | ||
1092 | for (i=0;i<k;i++) { | ||
1093 | c+=x[i]*n; | ||
1094 | b=0; | ||
1095 | if (c<0) { | ||
1096 | b=-(c>>bpe); | ||
1097 | c+=b*radix; | ||
1098 | } | ||
1099 | x[i]=c & mask; | ||
1100 | c=(c>>bpe)-b; | ||
1101 | } | ||
1102 | } | ||
1103 | |||
1104 | //do x=floor(x/n) for bigInt x and integer n, and return the remainder | ||
1105 | function divInt_(x,n) { | ||
1106 | var i,r=0,s; | ||
1107 | for (i=x.length-1;i>=0;i--) { | ||
1108 | s=r*radix+x[i]; | ||
1109 | x[i]=Math.floor(s/n); | ||
1110 | r=s%n; | ||
1111 | } | ||
1112 | return r; | ||
1113 | } | ||
1114 | |||
1115 | //do the linear combination x=a*x+b*y for bigInts x and y, and integers a and b. | ||
1116 | //x must be large enough to hold the answer. | ||
1117 | function linComb_(x,y,a,b) { | ||
1118 | var i,c,k,kk; | ||
1119 | k=x.length<y.length ? x.length : y.length; | ||
1120 | kk=x.length; | ||
1121 | for (c=0,i=0;i<k;i++) { | ||
1122 | c+=a*x[i]+b*y[i]; | ||
1123 | x[i]=c & mask; | ||
1124 | c>>=bpe; | ||
1125 | } | ||
1126 | for (i=k;i<kk;i++) { | ||
1127 | c+=a*x[i]; | ||
1128 | x[i]=c & mask; | ||
1129 | c>>=bpe; | ||
1130 | } | ||
1131 | } | ||
1132 | |||
1133 | //do the linear combination x=a*x+b*(y<<(ys*bpe)) for bigInts x and y, and integers a, b and ys. | ||
1134 | //x must be large enough to hold the answer. | ||
1135 | function linCombShift_(x,y,b,ys) { | ||
1136 | var i,c,k,kk; | ||
1137 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1138 | kk=x.length; | ||
1139 | for (c=0,i=ys;i<k;i++) { | ||
1140 | c+=x[i]+b*y[i-ys]; | ||
1141 | x[i]=c & mask; | ||
1142 | c>>=bpe; | ||
1143 | } | ||
1144 | for (i=k;c && i<kk;i++) { | ||
1145 | c+=x[i]; | ||
1146 | x[i]=c & mask; | ||
1147 | c>>=bpe; | ||
1148 | } | ||
1149 | } | ||
1150 | |||
1151 | //do x=x+(y<<(ys*bpe)) for bigInts x and y, and integers a,b and ys. | ||
1152 | //x must be large enough to hold the answer. | ||
1153 | function addShift_(x,y,ys) { | ||
1154 | var i,c,k,kk; | ||
1155 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1156 | kk=x.length; | ||
1157 | for (c=0,i=ys;i<k;i++) { | ||
1158 | c+=x[i]+y[i-ys]; | ||
1159 | x[i]=c & mask; | ||
1160 | c>>=bpe; | ||
1161 | } | ||
1162 | for (i=k;c && i<kk;i++) { | ||
1163 | c+=x[i]; | ||
1164 | x[i]=c & mask; | ||
1165 | c>>=bpe; | ||
1166 | } | ||
1167 | } | ||
1168 | |||
1169 | //do x=x-(y<<(ys*bpe)) for bigInts x and y, and integers a,b and ys. | ||
1170 | //x must be large enough to hold the answer. | ||
1171 | function subShift_(x,y,ys) { | ||
1172 | var i,c,k,kk; | ||
1173 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1174 | kk=x.length; | ||
1175 | for (c=0,i=ys;i<k;i++) { | ||
1176 | c+=x[i]-y[i-ys]; | ||
1177 | x[i]=c & mask; | ||
1178 | c>>=bpe; | ||
1179 | } | ||
1180 | for (i=k;c && i<kk;i++) { | ||
1181 | c+=x[i]; | ||
1182 | x[i]=c & mask; | ||
1183 | c>>=bpe; | ||
1184 | } | ||
1185 | } | ||
1186 | |||
1187 | //do x=x-y for bigInts x and y. | ||
1188 | //x must be large enough to hold the answer. | ||
1189 | //negative answers will be 2s complement | ||
1190 | function sub_(x,y) { | ||
1191 | var i,c,k,kk; | ||
1192 | k=x.length<y.length ? x.length : y.length; | ||
1193 | for (c=0,i=0;i<k;i++) { | ||
1194 | c+=x[i]-y[i]; | ||
1195 | x[i]=c & mask; | ||
1196 | c>>=bpe; | ||
1197 | } | ||
1198 | for (i=k;c && i<x.length;i++) { | ||
1199 | c+=x[i]; | ||
1200 | x[i]=c & mask; | ||
1201 | c>>=bpe; | ||
1202 | } | ||
1203 | } | ||
1204 | |||
1205 | //do x=x+y for bigInts x and y. | ||
1206 | //x must be large enough to hold the answer. | ||
1207 | function add_(x,y) { | ||
1208 | var i,c,k,kk; | ||
1209 | k=x.length<y.length ? x.length : y.length; | ||
1210 | for (c=0,i=0;i<k;i++) { | ||
1211 | c+=x[i]+y[i]; | ||
1212 | x[i]=c & mask; | ||
1213 | c>>=bpe; | ||
1214 | } | ||
1215 | for (i=k;c && i<x.length;i++) { | ||
1216 | c+=x[i]; | ||
1217 | x[i]=c & mask; | ||
1218 | c>>=bpe; | ||
1219 | } | ||
1220 | } | ||
1221 | |||
1222 | //do x=x*y for bigInts x and y. This is faster when y<x. | ||
1223 | function mult_(x,y) { | ||
1224 | var i; | ||
1225 | if (ss.length!=2*x.length) | ||
1226 | ss=new Array(2*x.length); | ||
1227 | copyInt_(ss,0); | ||
1228 | for (i=0;i<y.length;i++) | ||
1229 | if (y[i]) | ||
1230 | linCombShift_(ss,x,y[i],i); //ss=1*ss+y[i]*(x<<(i*bpe)) | ||
1231 | copy_(x,ss); | ||
1232 | } | ||
1233 | |||
1234 | //do x=x mod n for bigInts x and n. | ||
1235 | function mod_(x,n) { | ||
1236 | if (s4.length!=x.length) | ||
1237 | s4=dup(x); | ||
1238 | else | ||
1239 | copy_(s4,x); | ||
1240 | if (s5.length!=x.length) | ||
1241 | s5=dup(x); | ||
1242 | divide_(s4,n,s5,x); //x = remainder of s4 / n | ||
1243 | } | ||
1244 | |||
1245 | //do x=x*y mod n for bigInts x,y,n. | ||
1246 | //for greater speed, let y<x. | ||
1247 | function multMod_(x,y,n) { | ||
1248 | var i; | ||
1249 | if (s0.length!=2*x.length) | ||
1250 | s0=new Array(2*x.length); | ||
1251 | copyInt_(s0,0); | ||
1252 | for (i=0;i<y.length;i++) | ||
1253 | if (y[i]) | ||
1254 | linCombShift_(s0,x,y[i],i); //s0=1*s0+y[i]*(x<<(i*bpe)) | ||
1255 | mod_(s0,n); | ||
1256 | copy_(x,s0); | ||
1257 | } | ||
1258 | |||
1259 | //do x=x*x mod n for bigInts x,n. | ||
1260 | function squareMod_(x,n) { | ||
1261 | var i,j,d,c,kx,kn,k; | ||
1262 | for (kx=x.length; kx>0 && !x[kx-1]; kx--); //ignore leading zeros in x | ||
1263 | k=kx>n.length ? 2*kx : 2*n.length; //k=# elements in the product, which is twice the elements in the larger of x and n | ||
1264 | if (s0.length!=k) | ||
1265 | s0=new Array(k); | ||
1266 | copyInt_(s0,0); | ||
1267 | for (i=0;i<kx;i++) { | ||
1268 | c=s0[2*i]+x[i]*x[i]; | ||
1269 | s0[2*i]=c & mask; | ||
1270 | c>>=bpe; | ||
1271 | for (j=i+1;j<kx;j++) { | ||
1272 | c=s0[i+j]+2*x[i]*x[j]+c; | ||
1273 | s0[i+j]=(c & mask); | ||
1274 | c>>=bpe; | ||
1275 | } | ||
1276 | s0[i+kx]=c; | ||
1277 | } | ||
1278 | mod_(s0,n); | ||
1279 | copy_(x,s0); | ||
1280 | } | ||
1281 | |||
1282 | //return x with exactly k leading zero elements | ||
1283 | function trim(x,k) { | ||
1284 | var i,y; | ||
1285 | for (i=x.length; i>0 && !x[i-1]; i--); | ||
1286 | y=new Array(i+k); | ||
1287 | copy_(y,x); | ||
1288 | return y; | ||
1289 | } | ||
1290 | |||
1291 | //do x=x**y mod n, where x,y,n are bigInts and ** is exponentiation. 0**0=1. | ||
1292 | //this is faster when n is odd. x usually needs to have as many elements as n. | ||
1293 | function powMod_(x,y,n) { | ||
1294 | var k1,k2,kn,np; | ||
1295 | if(s7.length!=n.length) | ||
1296 | s7=dup(n); | ||
1297 | |||
1298 | //for even modulus, use a simple square-and-multiply algorithm, | ||
1299 | //rather than using the more complex Montgomery algorithm. | ||
1300 | if ((n[0]&1)==0) { | ||
1301 | copy_(s7,x); | ||
1302 | copyInt_(x,1); | ||
1303 | while(!equalsInt(y,0)) { | ||
1304 | if (y[0]&1) | ||
1305 | multMod_(x,s7,n); | ||
1306 | divInt_(y,2); | ||
1307 | squareMod_(s7,n); | ||
1308 | } | ||
1309 | return; | ||
1310 | } | ||
1311 | |||
1312 | //calculate np from n for the Montgomery multiplications | ||
1313 | copyInt_(s7,0); | ||
1314 | for (kn=n.length;kn>0 && !n[kn-1];kn--); | ||
1315 | np=radix-inverseModInt_(modInt(n,radix),radix); | ||
1316 | s7[kn]=1; | ||
1317 | multMod_(x ,s7,n); // x = x * 2**(kn*bp) mod n | ||
1318 | |||
1319 | if (s3.length!=x.length) | ||
1320 | s3=dup(x); | ||
1321 | else | ||
1322 | copy_(s3,x); | ||
1323 | |||
1324 | for (k1=y.length-1;k1>0 & !y[k1]; k1--); //k1=first nonzero element of y | ||
1325 | if (y[k1]==0) { //anything to the 0th power is 1 | ||
1326 | copyInt_(x,1); | ||
1327 | return; | ||
1328 | } | ||
1329 | for (k2=1<<(bpe-1);k2 && !(y[k1] & k2); k2>>=1); //k2=position of first 1 bit in y[k1] | ||
1330 | for (;;) { | ||
1331 | if (!(k2>>=1)) { //look at next bit of y | ||
1332 | k1--; | ||
1333 | if (k1<0) { | ||
1334 | mont_(x,one,n,np); | ||
1335 | return; | ||
1336 | } | ||
1337 | k2=1<<(bpe-1); | ||
1338 | } | ||
1339 | mont_(x,x,n,np); | ||
1340 | |||
1341 | if (k2 & y[k1]) //if next bit is a 1 | ||
1342 | mont_(x,s3,n,np); | ||
1343 | } | ||
1344 | } | ||
1345 | |||
1346 | //do x=x*y*Ri mod n for bigInts x,y,n, | ||
1347 | // where Ri = 2**(-kn*bpe) mod n, and kn is the | ||
1348 | // number of elements in the n array, not | ||
1349 | // counting leading zeros. | ||
1350 | //x must be large enough to hold the answer. | ||
1351 | //It's OK if x and y are the same variable. | ||
1352 | //must have: | ||
1353 | // x,y < n | ||
1354 | // n is odd | ||
1355 | // np = -(n^(-1)) mod radix | ||
1356 | function mont_(x,y,n,np) { | ||
1357 | var i,j,c,ui,t; | ||
1358 | var kn=n.length; | ||
1359 | var ky=y.length; | ||
1360 | |||
1361 | if (sa.length!=kn) | ||
1362 | sa=new Array(kn); | ||
1363 | |||
1364 | for (;kn>0 && n[kn-1]==0;kn--); //ignore leading zeros of n | ||
1365 | //this function sometimes gives wrong answers when the next line is uncommented | ||
1366 | //for (;ky>0 && y[ky-1]==0;ky--); //ignore leading zeros of y | ||
1367 | |||
1368 | copyInt_(sa,0); | ||
1369 | |||
1370 | //the following loop consumes 95% of the runtime for randTruePrime_() and powMod_() for large keys | ||
1371 | for (i=0; i<kn; i++) { | ||
1372 | t=sa[0]+x[i]*y[0]; | ||
1373 | ui=((t & mask) * np) & mask; //the inner "& mask" is needed on Macintosh MSIE, but not windows MSIE | ||
1374 | c=(t+ui*n[0]) >> bpe; | ||
1375 | t=x[i]; | ||
1376 | |||
1377 | //do sa=(sa+x[i]*y+ui*n)/b where b=2**bpe | ||
1378 | for (j=1;j<ky;j++) { | ||
1379 | c+=sa[j]+t*y[j]+ui*n[j]; | ||
1380 | sa[j-1]=c & mask; | ||
1381 | c>>=bpe; | ||
1382 | } | ||
1383 | for (;j<kn;j++) { | ||
1384 | c+=sa[j]+ui*n[j]; | ||
1385 | sa[j-1]=c & mask; | ||
1386 | c>>=bpe; | ||
1387 | } | ||
1388 | sa[j-1]=c & mask; | ||
1389 | } | ||
1390 | |||
1391 | if (!greater(n,sa)) | ||
1392 | sub_(sa,n); | ||
1393 | copy_(x,sa); | ||
1394 | } | ||
1395 | |||
1396 | |||
1397 | |||
1398 | |||
1399 | //############################################################################# | ||
1400 | //############################################################################# | ||
1401 | //############################################################################# | ||
1402 | //############################################################################# | ||
1403 | //############################################################################# | ||
1404 | //############################################################################# | ||
1405 | //############################################################################# | ||
1406 | |||
1407 | |||
1408 | |||
1409 | |||
1410 | |||
1411 | //############################################################################# | ||
1412 | |||
1413 | Clipperz.Crypto.BigInt = function (aValue, aBase) { | ||
1414 | varbase; | ||
1415 | varvalue; | ||
1416 | |||
1417 | if (typeof(aValue) == 'object') { | ||
1418 | this._internalValue = aValue; | ||
1419 | } else { | ||
1420 | if (typeof(aValue) == 'undefined') { | ||
1421 | value = "0"; | ||
1422 | } else { | ||
1423 | value = aValue + ""; | ||
1424 | } | ||
1425 | |||
1426 | if (typeof(aBase) == 'undefined') { | ||
1427 | base = 10; | ||
1428 | } else { | ||
1429 | base = aBase; | ||
1430 | } | ||
1431 | |||
1432 | this._internalValue = str2bigInt(value, base, 1, 1); | ||
1433 | } | ||
1434 | |||
1435 | return this; | ||
1436 | } | ||
1437 | |||
1438 | //============================================================================= | ||
1439 | |||
1440 | MochiKit.Base.update(Clipperz.Crypto.BigInt.prototype, { | ||
1441 | |||
1442 | 'clone': function() { | ||
1443 | return new Clipperz.Crypto.BigInt(this.internalValue()); | ||
1444 | }, | ||
1445 | |||
1446 | //------------------------------------------------------------------------- | ||
1447 | |||
1448 | 'internalValue': function () { | ||
1449 | return this._internalValue; | ||
1450 | }, | ||
1451 | |||
1452 | //------------------------------------------------------------------------- | ||
1453 | |||
1454 | 'isBigInt': true, | ||
1455 | |||
1456 | //------------------------------------------------------------------------- | ||
1457 | |||
1458 | 'toString': function(aBase) { | ||
1459 | return this.asString(aBase); | ||
1460 | }, | ||
1461 | |||
1462 | //------------------------------------------------------------------------- | ||
1463 | |||
1464 | 'asString': function (aBase, minimumLength) { | ||
1465 | varresult; | ||
1466 | varbase; | ||
1467 | |||
1468 | if (typeof(aBase) == 'undefined') { | ||
1469 | base = 10; | ||
1470 | } else { | ||
1471 | base = aBase; | ||
1472 | } | ||
1473 | |||
1474 | result = bigInt2str(this.internalValue(), base).toLowerCase(); | ||
1475 | |||
1476 | if ((typeof(minimumLength) != 'undefined') && (result.length < minimumLength)) { | ||
1477 | var i, c; | ||
1478 | //MochiKit.Logging.logDebug(">>> FIXING BigInt.asString length issue") | ||
1479 | c = (minimumLength - result.length); | ||
1480 | for (i=0; i<c; i++) { | ||
1481 | result = '0' + result; | ||
1482 | } | ||
1483 | } | ||
1484 | |||
1485 | return result; | ||
1486 | }, | ||
1487 | |||
1488 | //------------------------------------------------------------------------- | ||
1489 | |||
1490 | 'asByteArray': function() { | ||
1491 | return new Clipperz.ByteArray("0x" + this.asString(16), 16); | ||
1492 | }, | ||
1493 | |||
1494 | //------------------------------------------------------------------------- | ||
1495 | |||
1496 | 'equals': function (aValue) { | ||
1497 | var result; | ||
1498 | |||
1499 | if (aValue.isBigInt) { | ||
1500 | result = equals(this.internalValue(), aValue.internalValue()); | ||
1501 | } else if (typeof(aValue) == "number") { | ||
1502 | result = equalsInt(this.internalValue(), aValue); | ||
1503 | } else { | ||
1504 | throw Clipperz.Crypt.BigInt.exception.UnknownType; | ||
1505 | } | ||
1506 | |||
1507 | return result; | ||
1508 | }, | ||
1509 | |||
1510 | //------------------------------------------------------------------------- | ||
1511 | |||
1512 | 'compare': function(aValue) { | ||
1513 | /* | ||
1514 | var result; | ||
1515 | var thisAsString; | ||
1516 | var aValueAsString; | ||
1517 | |||
1518 | thisAsString = this.asString(10); | ||
1519 | aValueAsString = aValue.asString(10); | ||
1520 | |||
1521 | result = MochiKit.Base.compare(thisAsString.length, aValueAsString.length); | ||
1522 | if (result == 0) { | ||
1523 | result = MochiKit.Base.compare(thisAsString, aValueAsString); | ||
1524 | } | ||
1525 | |||
1526 | return result; | ||
1527 | */ | ||
1528 | var result; | ||
1529 | |||
1530 | if (equals(this.internalValue(), aValue.internalValue())) { | ||
1531 | result = 0; | ||
1532 | } else if (greater(this.internalValue(), aValue.internalValue())) { | ||
1533 | result = 1; | ||
1534 | } else { | ||
1535 | result = -1; | ||
1536 | } | ||
1537 | |||
1538 | return result; | ||
1539 | }, | ||
1540 | |||
1541 | //------------------------------------------------------------------------- | ||
1542 | |||
1543 | 'add': function (aValue) { | ||
1544 | var result; | ||
1545 | |||
1546 | if (aValue.isBigInt) { | ||
1547 | result = add(this.internalValue(), aValue.internalValue()); | ||
1548 | } else { | ||
1549 | result = addInt(this.internalValue(), aValue); | ||
1550 | } | ||
1551 | |||
1552 | return new Clipperz.Crypto.BigInt(result); | ||
1553 | }, | ||
1554 | |||
1555 | //------------------------------------------------------------------------- | ||
1556 | |||
1557 | 'subtract': function (aValue) { | ||
1558 | var result; | ||
1559 | var value; | ||
1560 | |||
1561 | if (aValue.isBigInt) { | ||
1562 | value = aValue; | ||
1563 | } else { | ||
1564 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1565 | } | ||
1566 | |||
1567 | result = sub(this.internalValue(), value.internalValue()); | ||
1568 | |||
1569 | return new Clipperz.Crypto.BigInt(result); | ||
1570 | }, | ||
1571 | |||
1572 | //------------------------------------------------------------------------- | ||
1573 | |||
1574 | 'multiply': function (aValue, aModule) { | ||
1575 | var result; | ||
1576 | var value; | ||
1577 | |||
1578 | if (aValue.isBigInt) { | ||
1579 | value = aValue; | ||
1580 | } else { | ||
1581 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1582 | } | ||
1583 | |||
1584 | if (typeof(aModule) == 'undefined') { | ||
1585 | result = mult(this.internalValue(), value.internalValue()); | ||
1586 | } else { | ||
1587 | if (greater(this.internalValue(), value.internalValue())) { | ||
1588 | result = multMod(this.internalValue(), value.internalValue(), aModule); | ||
1589 | } else { | ||
1590 | result = multMod(value.internalValue(), this.internalValue(), aModule); | ||
1591 | } | ||
1592 | } | ||
1593 | |||
1594 | return new Clipperz.Crypto.BigInt(result); | ||
1595 | }, | ||
1596 | |||
1597 | //------------------------------------------------------------------------- | ||
1598 | |||
1599 | 'module': function (aModule) { | ||
1600 | varresult; | ||
1601 | var module; | ||
1602 | |||
1603 | if (aModule.isBigInt) { | ||
1604 | module = aModule; | ||
1605 | } else { | ||
1606 | module = new Clipperz.Crypto.BigInt(aModule); | ||
1607 | } | ||
1608 | |||
1609 | result = mod(this.internalValue(), module.internalValue()); | ||
1610 | |||
1611 | return new Clipperz.Crypto.BigInt(result); | ||
1612 | }, | ||
1613 | |||
1614 | //------------------------------------------------------------------------- | ||
1615 | |||
1616 | 'powerModule': function(aValue, aModule) { | ||
1617 | varresult; | ||
1618 | varvalue; | ||
1619 | var module; | ||
1620 | |||
1621 | if (aValue.isBigInt) { | ||
1622 | value = aValue; | ||
1623 | } else { | ||
1624 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1625 | } | ||
1626 | |||
1627 | if (aModule.isBigInt) { | ||
1628 | module = aModule; | ||
1629 | } else { | ||
1630 | module = new Clipperz.Crypto.BigInt(aModule); | ||
1631 | } | ||
1632 | |||
1633 | if (aValue == -1) { | ||
1634 | result = inverseMod(this.internalValue(), module.internalValue()); | ||
1635 | } else { | ||
1636 | result = powMod(this.internalValue(), value.internalValue(), module.internalValue()); | ||
1637 | } | ||
1638 | |||
1639 | return new Clipperz.Crypto.BigInt(result); | ||
1640 | }, | ||
1641 | |||
1642 | //------------------------------------------------------------------------- | ||
1643 | |||
1644 | 'xor': function(aValue) { | ||
1645 | var result; | ||
1646 | varthisByteArray; | ||
1647 | var aValueByteArray; | ||
1648 | var xorArray; | ||
1649 | |||
1650 | thisByteArray = new Clipperz.ByteArray("0x" + this.asString(16), 16); | ||
1651 | aValueByteArray = new Clipperz.ByteArray("0x" + aValue.asString(16), 16); | ||
1652 | xorArray = thisByteArray.xorMergeWithBlock(aValueByteArray, 'right'); | ||
1653 | result = new Clipperz.Crypto.BigInt(xorArray.toHexString(), 16); | ||
1654 | |||
1655 | return result; | ||
1656 | }, | ||
1657 | |||
1658 | //------------------------------------------------------------------------- | ||
1659 | |||
1660 | 'shiftLeft': function(aNumberOfBitsToShift) { | ||
1661 | var result; | ||
1662 | var internalResult; | ||
1663 | var wholeByteToShift; | ||
1664 | var bitsLeftToShift; | ||
1665 | |||
1666 | wholeByteToShift = Math.floor(aNumberOfBitsToShift / 8); | ||
1667 | bitsLeftToShift = aNumberOfBitsToShift % 8; | ||
1668 | |||
1669 | if (wholeByteToShift == 0) { | ||
1670 | internalResult = this.internalValue(); | ||
1671 | } else { | ||
1672 | var hexValue; | ||
1673 | var i,c; | ||
1674 | |||
1675 | hexValue = this.asString(16); | ||
1676 | c = wholeByteToShift; | ||
1677 | for (i=0; i<c; i++) { | ||
1678 | hexValue += "00"; | ||
1679 | } | ||
1680 | internalResult = str2bigInt(hexValue, 16, 1, 1); | ||
1681 | } | ||
1682 | |||
1683 | if (bitsLeftToShift > 0) { | ||
1684 | leftShift_(internalResult, bitsLeftToShift); | ||
1685 | } | ||
1686 | result = new Clipperz.Crypto.BigInt(internalResult); | ||
1687 | |||
1688 | return result; | ||
1689 | }, | ||
1690 | |||
1691 | //------------------------------------------------------------------------- | ||
1692 | |||
1693 | 'bitSize': function() { | ||
1694 | return bitSize(this.internalValue()); | ||
1695 | }, | ||
1696 | |||
1697 | //------------------------------------------------------------------------- | ||
1698 | |||
1699 | 'isBitSet': function(aBitPosition) { | ||
1700 | var result; | ||
1701 | |||
1702 | if (this.asByteArray().bitAtIndex(aBitPosition) == 0) { | ||
1703 | result = false; | ||
1704 | } else { | ||
1705 | result = true; | ||
1706 | }; | ||
1707 | |||
1708 | return result; | ||
1709 | }, | ||
1710 | |||
1711 | //------------------------------------------------------------------------- | ||
1712 | __syntaxFix__: "syntax fix" | ||
1713 | |||
1714 | }); | ||
1715 | |||
1716 | //############################################################################# | ||
1717 | |||
1718 | Clipperz.Crypto.BigInt.randomPrime = function(aBitSize) { | ||
1719 | return new Clipperz.Crypto.BigInt(randTruePrime(aBitSize)); | ||
1720 | } | ||
1721 | |||
1722 | //############################################################################# | ||
1723 | //############################################################################# | ||
1724 | |||
1725 | Clipperz.Crypto.BigInt.ZERO = new Clipperz.Crypto.BigInt(0); | ||
1726 | |||
1727 | //############################################################################# | ||
1728 | |||
1729 | Clipperz.Crypto.BigInt.equals = function(a, b) { | ||
1730 | return a.equals(b); | ||
1731 | } | ||
1732 | |||
1733 | Clipperz.Crypto.BigInt.add = function(a, b) { | ||
1734 | return a.add(b); | ||
1735 | } | ||
1736 | |||
1737 | Clipperz.Crypto.BigInt.subtract = function(a, b) { | ||
1738 | return a.subtract(b); | ||
1739 | } | ||
1740 | |||
1741 | Clipperz.Crypto.BigInt.multiply = function(a, b, module) { | ||
1742 | return a.multiply(b, module); | ||
1743 | } | ||
1744 | |||
1745 | Clipperz.Crypto.BigInt.module = function(a, module) { | ||
1746 | return a.module(module); | ||
1747 | } | ||
1748 | |||
1749 | Clipperz.Crypto.BigInt.powerModule = function(a, b, module) { | ||
1750 | return a.powerModule(b, module); | ||
1751 | } | ||
1752 | |||
1753 | Clipperz.Crypto.BigInt.exception = { | ||
1754 | UnknownType: new MochiKit.Base.NamedError("Clipperz.Crypto.BigInt.exception.UnknownType") | ||
1755 | } | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/BigInt_scoped.js b/frontend/gamma/js/ClipperzCryptoLibrary/BigInt_scoped.js new file mode 100644 index 0000000..bc60330 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/BigInt_scoped.js | |||
@@ -0,0 +1,1644 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | ||
25 | if (typeof(Clipperz.Crypto) == 'undefined') { Clipperz.Crypto = {}; } | ||
26 | |||
27 | if (typeof(Leemon) == 'undefined') { Leemon = {}; } | ||
28 | if (typeof(Baird.Crypto) == 'undefined') { Baird.Crypto = {}; } | ||
29 | if (typeof(Baird.Crypto.BigInt) == 'undefined') { Baird.Crypto.BigInt = {}; } | ||
30 | |||
31 | |||
32 | //############################################################################# | ||
33 | //Downloaded on March 05, 2007 from http://www.leemon.com/crypto/BigInt.js | ||
34 | //############################################################################# | ||
35 | |||
36 | //////////////////////////////////////////////////////////////////////////////////////// | ||
37 | // Big Integer Library v. 5.0 | ||
38 | // Created 2000, last modified 2006 | ||
39 | // Leemon Baird | ||
40 | // www.leemon.com | ||
41 | // | ||
42 | // This file is public domain. You can use it for any purpose without restriction. | ||
43 | // I do not guarantee that it is correct, so use it at your own risk. If you use | ||
44 | // it for something interesting, I'd appreciate hearing about it. If you find | ||
45 | // any bugs or make any improvements, I'd appreciate hearing about those too. | ||
46 | // It would also be nice if my name and address were left in the comments. | ||
47 | // But none of that is required. | ||
48 | // | ||
49 | // This code defines a bigInt library for arbitrary-precision integers. | ||
50 | // A bigInt is an array of integers storing the value in chunks of bpe bits, | ||
51 | // little endian (buff[0] is the least significant word). | ||
52 | // Negative bigInts are stored two's complement. | ||
53 | // Some functions assume their parameters have at least one leading zero element. | ||
54 | // Functions with an underscore at the end of the name have unpredictable behavior in case of overflow, | ||
55 | // so the caller must make sure overflow won't happen. | ||
56 | // For each function where a parameter is modified, that same | ||
57 | // variable must not be used as another argument too. | ||
58 | // So, you cannot square x by doing multMod_(x,x,n). | ||
59 | // You must use squareMod_(x,n) instead, or do y=dup(x); multMod_(x,y,n). | ||
60 | // | ||
61 | // These functions are designed to avoid frequent dynamic memory allocation in the inner loop. | ||
62 | // For most functions, if it needs a BigInt as a local variable it will actually use | ||
63 | // a global, and will only allocate to it when it's not the right size. This ensures | ||
64 | // that when a function is called repeatedly with same-sized parameters, it only allocates | ||
65 | // memory on the first call. | ||
66 | // | ||
67 | // Note that for cryptographic purposes, the calls to Math.random() must | ||
68 | // be replaced with calls to a better pseudorandom number generator. | ||
69 | // | ||
70 | // In the following, "bigInt" means a bigInt with at least one leading zero element, | ||
71 | // and "integer" means a nonnegative integer less than radix. In some cases, integer | ||
72 | // can be negative. Negative bigInts are 2s complement. | ||
73 | // | ||
74 | // The following functions do not modify their inputs, but dynamically allocate memory every time they are called: | ||
75 | // | ||
76 | // function bigInt2str(x,base) //convert a bigInt into a string in a given base, from base 2 up to base 95 | ||
77 | // function dup(x) //returns a copy of bigInt x | ||
78 | // function findPrimes(n) //return array of all primes less than integer n | ||
79 | // function int2bigInt(t,n,m) //convert integer t to a bigInt with at least n bits and m array elements | ||
80 | // function str2bigInt(s,b,n,m) //convert string s in base b to a bigInt with at least n bits and m array elements | ||
81 | // function trim(x,k) //return a copy of x with exactly k leading zero elements | ||
82 | // | ||
83 | // The following functions do not modify their inputs, so there is never a problem with the result being too big: | ||
84 | // | ||
85 | // function bitSize(x) //returns how many bits long the bigInt x is, not counting leading zeros | ||
86 | // function equals(x,y) //is the bigInt x equal to the bigint y? | ||
87 | // function equalsInt(x,y) //is bigint x equal to integer y? | ||
88 | // function greater(x,y) //is x>y? (x and y are nonnegative bigInts) | ||
89 | // function greaterShift(x,y,shift)//is (x <<(shift*bpe)) > y? | ||
90 | // function isZero(x) //is the bigInt x equal to zero? | ||
91 | // function millerRabin(x,b) //does one round of Miller-Rabin base integer b say that bigInt x is possibly prime (as opposed to definitely composite)? | ||
92 | // function modInt(x,n) //return x mod n for bigInt x and integer n. | ||
93 | // function negative(x) //is bigInt x negative? | ||
94 | // | ||
95 | // The following functions do not modify their inputs, but allocate memory and call functions with underscores | ||
96 | // | ||
97 | // function add(x,y) //return (x+y) for bigInts x and y. | ||
98 | // function addInt(x,n) //return (x+n) where x is a bigInt and n is an integer. | ||
99 | // function expand(x,n) //return a copy of x with at least n elements, adding leading zeros if needed | ||
100 | // function inverseMod(x,n) //return (x**(-1) mod n) for bigInts x and n. If no inverse exists, it returns null | ||
101 | // function mod(x,n) //return a new bigInt equal to (x mod n) for bigInts x and n. | ||
102 | // function mult(x,y) //return x*y for bigInts x and y. This is faster when y<x. | ||
103 | // function multMod(x,y,n) //return (x*y mod n) for bigInts x,y,n. For greater speed, let y<x. | ||
104 | // function powMod(x,y,n) //return (x**y mod n) where x,y,n are bigInts and ** is exponentiation. 0**0=1. Faster for odd n. | ||
105 | // function randTruePrime(k) //return a new, random, k-bit, true prime using Maurer's algorithm. | ||
106 | // function sub(x,y) //return (x-y) for bigInts x and y. Negative answers will be 2s complement | ||
107 | // | ||
108 | // The following functions write a bigInt result to one of the parameters, but | ||
109 | // the result is never bigger than the original, so there can't be overflow problems: | ||
110 | // | ||
111 | // function divInt_(x,n) //do x=floor(x/n) for bigInt x and integer n, and return the remainder | ||
112 | // function GCD_(x,y) //set x to the greatest common divisor of bigInts x and y, (y is destroyed). | ||
113 | // function halve_(x) //do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement | ||
114 | // function mod_(x,n) //do x=x mod n for bigInts x and n. | ||
115 | // function rightShift_(x,n) //right shift bigInt x by n bits. 0 <= n < bpe. | ||
116 | // | ||
117 | // The following functions write a bigInt result to one of the parameters. The caller is responsible for | ||
118 | // ensuring it is large enough to hold the result. | ||
119 | // | ||
120 | // function addInt_(x,n) //do x=x+n where x is a bigInt and n is an integer | ||
121 | // function add_(x,y) //do x=x+y for bigInts x and y | ||
122 | // function addShift_(x,y,ys) //do x=x+(y<<(ys*bpe)) | ||
123 | // function copy_(x,y) //do x=y on bigInts x and y | ||
124 | // function copyInt_(x,n) //do x=n on bigInt x and integer n | ||
125 | // function carry_(x) //do carries and borrows so each element of the bigInt x fits in bpe bits. | ||
126 | // function divide_(x,y,q,r) //divide_ x by y giving quotient q and remainder r | ||
127 | // function eGCD_(x,y,d,a,b) //sets a,b,d to positive big integers such that d = GCD_(x,y) = a*x-b*y | ||
128 | // function inverseMod_(x,n) //do x=x**(-1) mod n, for bigInts x and n. Returns 1 (0) if inverse does (doesn't) exist | ||
129 | // function inverseModInt_(x,n) //return x**(-1) mod n, for integers x and n. Return 0 if there is no inverse | ||
130 | // function leftShift_(x,n) //left shift bigInt x by n bits. n<bpe. | ||
131 | // function linComb_(x,y,a,b) //do x=a*x+b*y for bigInts x and y and integers a and b | ||
132 | // function linCombShift_(x,y,b,ys) //do x=x+b*(y<<(ys*bpe)) for bigInts x and y, and integers b and ys | ||
133 | // function mont_(x,y,n,np) //Montgomery multiplication (see comments where the function is defined) | ||
134 | // function mult_(x,y) //do x=x*y for bigInts x and y. | ||
135 | // function multInt_(x,n) //do x=x*n where x is a bigInt and n is an integer. | ||
136 | // function multMod_(x,y,n) //do x=x*y mod n for bigInts x,y,n. | ||
137 | // function powMod_(x,y,n) //do x=x**y mod n, where x,y,n are bigInts (n is odd) and ** is exponentiation. 0**0=1. | ||
138 | // function randBigInt_(b,n,s) //do b = an n-bit random BigInt. if s=1, then nth bit (most significant bit) is set to 1. n>=1. | ||
139 | // function randTruePrime_(ans,k) //do ans = a random k-bit true random prime (not just probable prime) with 1 in the msb. | ||
140 | // function squareMod_(x,n) //do x=x*x mod n for bigInts x,n | ||
141 | // function sub_(x,y) //do x=x-y for bigInts x and y. Negative answers will be 2s complement. | ||
142 | // function subShift_(x,y,ys) //do x=x-(y<<(ys*bpe)). Negative answers will be 2s complement. | ||
143 | // | ||
144 | // The following functions are based on algorithms from the _Handbook of Applied Cryptography_ | ||
145 | // powMod_() = algorithm 14.94, Montgomery exponentiation | ||
146 | // eGCD_,inverseMod_() = algorithm 14.61, Binary extended GCD_ | ||
147 | // GCD_() = algorothm 14.57, Lehmer's algorithm | ||
148 | // mont_() = algorithm 14.36, Montgomery multiplication | ||
149 | // divide_() = algorithm 14.20 Multiple-precision division | ||
150 | // squareMod_() = algorithm 14.16 Multiple-precision squaring | ||
151 | // randTruePrime_() = algorithm 4.62, Maurer's algorithm | ||
152 | // millerRabin() = algorithm 4.24, Miller-Rabin algorithm | ||
153 | // | ||
154 | // Profiling shows: | ||
155 | // randTruePrime_() spends: | ||
156 | // 10% of its time in calls to powMod_() | ||
157 | // 85% of its time in calls to millerRabin() | ||
158 | // millerRabin() spends: | ||
159 | // 99% of its time in calls to powMod_() (always with a base of 2) | ||
160 | // powMod_() spends: | ||
161 | // 94% of its time in calls to mont_() (almost always with x==y) | ||
162 | // | ||
163 | // This suggests there are several ways to speed up this library slightly: | ||
164 | // - convert powMod_ to use a Montgomery form of k-ary window (or maybe a Montgomery form of sliding window) | ||
165 | // -- this should especially focus on being fast when raising 2 to a power mod n | ||
166 | // - convert randTruePrime_() to use a minimum r of 1/3 instead of 1/2 with the appropriate change to the test | ||
167 | // - tune the parameters in randTruePrime_(), including c, m, and recLimit | ||
168 | // - speed up the single loop in mont_() that takes 95% of the runtime, perhaps by reducing checking | ||
169 | // within the loop when all the parameters are the same length. | ||
170 | // | ||
171 | // There are several ideas that look like they wouldn't help much at all: | ||
172 | // - replacing trial division in randTruePrime_() with a sieve (that speeds up something taking almost no time anyway) | ||
173 | // - increase bpe from 15 to 30 (that would help if we had a 32*32->64 multiplier, but not with JavaScript's 32*32->32) | ||
174 | // - speeding up mont_(x,y,n,np) when x==y by doing a non-modular, non-Montgomery square | ||
175 | // followed by a Montgomery reduction. The intermediate answer will be twice as long as x, so that | ||
176 | // method would be slower. This is unfortunate because the code currently spends almost all of its time | ||
177 | // doing mont_(x,x,...), both for randTruePrime_() and powMod_(). A faster method for Montgomery squaring | ||
178 | // would have a large impact on the speed of randTruePrime_() and powMod_(). HAC has a couple of poorly-worded | ||
179 | // sentences that seem to imply it's faster to do a non-modular square followed by a single | ||
180 | // Montgomery reduction, but that's obviously wrong. | ||
181 | //////////////////////////////////////////////////////////////////////////////////////// | ||
182 | |||
183 | // | ||
184 | //The whole library has been moved into the Baird.Crypto.BigInt scope by Giulio Cesare Solaroli <giulio.cesare@clipperz.com> | ||
185 | // | ||
186 | Baird.Crypto.BigInt.VERSION = "5.0"; | ||
187 | Baird.Crypto.BigInt.NAME = "Baird.Crypto.BigInt"; | ||
188 | |||
189 | MochiKit.Base.update(Baird.Crypto.BigInt, { | ||
190 | //globals | ||
191 | 'bpe': 0, //bits stored per array element | ||
192 | 'mask': 0, //AND this with an array element to chop it down to bpe bits | ||
193 | 'radix': Baird.Crypto.BigInt.mask + 1,//equals 2^bpe. A single 1 bit to the left of the last bit of mask. | ||
194 | |||
195 | //the digits for converting to different bases | ||
196 | 'digitsStr': '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz_=!@#$%^&*()[]{}|;:,.<>/?`~ \\\'\"+-', | ||
197 | |||
198 | //initialize the global variables | ||
199 | for (bpe=0; (1<<(bpe+1)) > (1<<bpe); bpe++); //bpe=number of bits in the mantissa on this platform | ||
200 | bpe>>=1; //bpe=number of bits in one element of the array representing the bigInt | ||
201 | mask=(1<<bpe)-1; //AND the mask with an integer to get its bpe least significant bits | ||
202 | radix=mask+1; //2^bpe. a single 1 bit to the left of the first bit of mask | ||
203 | one=int2bigInt(1,1,1); //constant used in powMod_() | ||
204 | |||
205 | //the following global variables are scratchpad memory to | ||
206 | //reduce dynamic memory allocation in the inner loop | ||
207 | t=new Array(0); | ||
208 | ss=t; //used in mult_() | ||
209 | s0=t; //used in multMod_(), squareMod_() | ||
210 | s1=t; //used in powMod_(), multMod_(), squareMod_() | ||
211 | s2=t; //used in powMod_(), multMod_() | ||
212 | s3=t; //used in powMod_() | ||
213 | s4=t; s5=t; //used in mod_() | ||
214 | s6=t; //used in bigInt2str() | ||
215 | s7=t; //used in powMod_() | ||
216 | T=t; //used in GCD_() | ||
217 | sa=t; //used in mont_() | ||
218 | mr_x1=t; mr_r=t; mr_a=t; //used in millerRabin() | ||
219 | eg_v=t; eg_u=t; eg_A=t; eg_B=t; eg_C=t; eg_D=t; //used in eGCD_(), inverseMod_() | ||
220 | md_q1=t; md_q2=t; md_q3=t; md_r=t; md_r1=t; md_r2=t; md_tt=t; //used in mod_() | ||
221 | |||
222 | primes=t; pows=t; s_i=t; s_i2=t; s_R=t; s_rm=t; s_q=t; s_n1=t; | ||
223 | s_a=t; s_r2=t; s_n=t; s_b=t; s_d=t; s_x1=t; s_x2=t, s_aa=t; //used in randTruePrime_() | ||
224 | |||
225 | //////////////////////////////////////////////////////////////////////////////////////// | ||
226 | |||
227 | //return array of all primes less than integer n | ||
228 | 'findPrimes': function(n) { | ||
229 | var i,s,p,ans; | ||
230 | s=new Array(n); | ||
231 | for (i=0;i<n;i++) | ||
232 | s[i]=0; | ||
233 | s[0]=2; | ||
234 | p=0; //first p elements of s are primes, the rest are a sieve | ||
235 | for(;s[p]<n;) { //s[p] is the pth prime | ||
236 | for(i=s[p]*s[p]; i<n; i+=s[p]) //mark multiples of s[p] | ||
237 | s[i]=1; | ||
238 | p++; | ||
239 | s[p]=s[p-1]+1; | ||
240 | for(; s[p]<n && s[s[p]]; s[p]++); //find next prime (where s[p]==0) | ||
241 | } | ||
242 | ans=new Array(p); | ||
243 | for(i=0;i<p;i++) | ||
244 | ans[i]=s[i]; | ||
245 | return ans; | ||
246 | }, | ||
247 | |||
248 | //does a single round of Miller-Rabin base b consider x to be a possible prime? | ||
249 | //x is a bigInt, and b is an integer | ||
250 | 'millerRabin': function(x,b) { | ||
251 | var i,j,k,s; | ||
252 | |||
253 | if (mr_x1.length!=x.length) { | ||
254 | mr_x1=dup(x); | ||
255 | mr_r=dup(x); | ||
256 | mr_a=dup(x); | ||
257 | } | ||
258 | |||
259 | copyInt_(mr_a,b); | ||
260 | copy_(mr_r,x); | ||
261 | copy_(mr_x1,x); | ||
262 | |||
263 | addInt_(mr_r,-1); | ||
264 | addInt_(mr_x1,-1); | ||
265 | |||
266 | //s=the highest power of two that divides mr_r | ||
267 | k=0; | ||
268 | for (i=0;i<mr_r.length;i++) | ||
269 | for (j=1;j<mask;j<<=1) | ||
270 | if (x[i] & j) { | ||
271 | s=(k<mr_r.length+bpe ? k : 0); | ||
272 | i=mr_r.length; | ||
273 | j=mask; | ||
274 | } else | ||
275 | k++; | ||
276 | |||
277 | if (s) | ||
278 | rightShift_(mr_r,s); | ||
279 | |||
280 | powMod_(mr_a,mr_r,x); | ||
281 | |||
282 | if (!equalsInt(mr_a,1) && !equals(mr_a,mr_x1)) { | ||
283 | j=1; | ||
284 | while (j<=s-1 && !equals(mr_a,mr_x1)) { | ||
285 | squareMod_(mr_a,x); | ||
286 | if (equalsInt(mr_a,1)) { | ||
287 | return 0; | ||
288 | } | ||
289 | j++; | ||
290 | } | ||
291 | if (!equals(mr_a,mr_x1)) { | ||
292 | return 0; | ||
293 | } | ||
294 | } | ||
295 | |||
296 | return 1; | ||
297 | }, | ||
298 | |||
299 | //returns how many bits long the bigInt is, not counting leading zeros. | ||
300 | 'bitSize': function(x) { | ||
301 | var j,z,w; | ||
302 | for (j=x.length-1; (x[j]==0) && (j>0); j--); | ||
303 | for (z=0,w=x[j]; w; (w>>=1),z++); | ||
304 | z+=bpe*j; | ||
305 | return z; | ||
306 | }, | ||
307 | |||
308 | //return a copy of x with at least n elements, adding leading zeros if needed | ||
309 | 'expand': function(x,n) { | ||
310 | var ans=int2bigInt(0,(x.length>n ? x.length : n)*bpe,0); | ||
311 | copy_(ans,x); | ||
312 | return ans; | ||
313 | }, | ||
314 | |||
315 | //return a k-bit true random prime using Maurer's algorithm. | ||
316 | 'randTruePrime': function(k) { | ||
317 | var ans=int2bigInt(0,k,0); | ||
318 | randTruePrime_(ans,k); | ||
319 | return trim(ans,1); | ||
320 | }, | ||
321 | |||
322 | //return a new bigInt equal to (x mod n) for bigInts x and n. | ||
323 | 'mod': function(x,n) { | ||
324 | var ans=dup(x); | ||
325 | mod_(ans,n); | ||
326 | return trim(ans,1); | ||
327 | }, | ||
328 | |||
329 | //return (x+n) where x is a bigInt and n is an integer. | ||
330 | 'addInt': function(x,n) { | ||
331 | var ans=expand(x,x.length+1); | ||
332 | addInt_(ans,n); | ||
333 | return trim(ans,1); | ||
334 | }, | ||
335 | |||
336 | //return x*y for bigInts x and y. This is faster when y<x. | ||
337 | 'mult': function(x,y) { | ||
338 | var ans=expand(x,x.length+y.length); | ||
339 | mult_(ans,y); | ||
340 | return trim(ans,1); | ||
341 | }, | ||
342 | |||
343 | //return (x**y mod n) where x,y,n are bigInts and ** is exponentiation. 0**0=1. Faster for odd n. | ||
344 | 'powMod': function(x,y,n) { | ||
345 | var ans=expand(x,n.length); | ||
346 | powMod_(ans,trim(y,2),trim(n,2),0); //this should work without the trim, but doesn't | ||
347 | return trim(ans,1); | ||
348 | }, | ||
349 | |||
350 | //return (x-y) for bigInts x and y. Negative answers will be 2s complement | ||
351 | 'sub': function(x,y) { | ||
352 | var ans=expand(x,(x.length>y.length ? x.length+1 : y.length+1)); | ||
353 | sub_(ans,y); | ||
354 | return trim(ans,1); | ||
355 | }, | ||
356 | |||
357 | //return (x+y) for bigInts x and y. | ||
358 | 'add': function(x,y) { | ||
359 | var ans=expand(x,(x.length>y.length ? x.length+1 : y.length+1)); | ||
360 | add_(ans,y); | ||
361 | return trim(ans,1); | ||
362 | }, | ||
363 | |||
364 | //return (x**(-1) mod n) for bigInts x and n. If no inverse exists, it returns null | ||
365 | 'inverseMod': function(x,n) { | ||
366 | var ans=expand(x,n.length); | ||
367 | var s; | ||
368 | s=inverseMod_(ans,n); | ||
369 | return s ? trim(ans,1) : null; | ||
370 | }, | ||
371 | |||
372 | //return (x*y mod n) for bigInts x,y,n. For greater speed, let y<x. | ||
373 | 'multMod': function(x,y,n) { | ||
374 | var ans=expand(x,n.length); | ||
375 | multMod_(ans,y,n); | ||
376 | return trim(ans,1); | ||
377 | }, | ||
378 | |||
379 | //generate a k-bit true random prime using Maurer's algorithm, | ||
380 | //and put it into ans. The bigInt ans must be large enough to hold it. | ||
381 | 'randTruePrime_': function(ans,k) { | ||
382 | var c,m,pm,dd,j,r,B,divisible,z,zz,recSize; | ||
383 | |||
384 | if (primes.length==0) | ||
385 | primes=findPrimes(30000); //check for divisibility by primes <=30000 | ||
386 | |||
387 | if (pows.length==0) { | ||
388 | pows=new Array(512); | ||
389 | for (j=0;j<512;j++) { | ||
390 | pows[j]=Math.pow(2,j/511.-1.); | ||
391 | } | ||
392 | } | ||
393 | |||
394 | //c and m should be tuned for a particular machine and value of k, to maximize speed | ||
395 | //this was: c=primes[primes.length-1]/k/k; //check using all the small primes. (c=0.1 in HAC) | ||
396 | c=0.1; | ||
397 | m=20; //generate this k-bit number by first recursively generating a number that has between k/2 and k-m bits | ||
398 | recLimit=20; /*must be at least 2 (was 29)*/ //stop recursion when k <=recLimit | ||
399 | |||
400 | if (s_i2.length!=ans.length) { | ||
401 | s_i2=dup(ans); | ||
402 | s_R =dup(ans); | ||
403 | s_n1=dup(ans); | ||
404 | s_r2=dup(ans); | ||
405 | s_d =dup(ans); | ||
406 | s_x1=dup(ans); | ||
407 | s_x2=dup(ans); | ||
408 | s_b =dup(ans); | ||
409 | s_n =dup(ans); | ||
410 | s_i =dup(ans); | ||
411 | s_rm=dup(ans); | ||
412 | s_q =dup(ans); | ||
413 | s_a =dup(ans); | ||
414 | s_aa=dup(ans); | ||
415 | } | ||
416 | |||
417 | if (k <= recLimit) { //generate small random primes by trial division up to its square root | ||
418 | pm=(1<<((k+2)>>1))-1; //pm is binary number with all ones, just over sqrt(2^k) | ||
419 | copyInt_(ans,0); | ||
420 | for (dd=1;dd;) { | ||
421 | dd=0; | ||
422 | ans[0]= 1 | (1<<(k-1)) | Math.floor(Math.random()*(1<<k)); //random, k-bit, odd integer, with msb 1 | ||
423 | for (j=1;(j<primes.length) && ((primes[j]&pm)==primes[j]);j++) { //trial division by all primes 3...sqrt(2^k) | ||
424 | if (0==(ans[0]%primes[j])) { | ||
425 | dd=1; | ||
426 | break; | ||
427 | } | ||
428 | } | ||
429 | } | ||
430 | carry_(ans); | ||
431 | return; | ||
432 | } | ||
433 | |||
434 | B=c*k*k; //try small primes up to B (or all the primes[] array if the largest is less than B). | ||
435 | if (k>2*m) //generate this k-bit number by first recursively generating a number that has between k/2 and k-m bits | ||
436 | for (r=1; k-k*r<=m; ) | ||
437 | r=pows[Math.floor(Math.random()*512)]; //r=Math.pow(2,Math.random()-1); | ||
438 | else | ||
439 | r=.5; | ||
440 | |||
441 | //simulation suggests the more complex algorithm using r=.333 is only slightly faster. | ||
442 | |||
443 | recSize=Math.floor(r*k)+1; | ||
444 | |||
445 | randTruePrime_(s_q,recSize); | ||
446 | copyInt_(s_i2,0); | ||
447 | s_i2[Math.floor((k-2)/bpe)] |= (1<<((k-2)%bpe)); //s_i2=2^(k-2) | ||
448 | divide_(s_i2,s_q,s_i,s_rm); //s_i=floor((2^(k-1))/(2q)) | ||
449 | |||
450 | z=bitSize(s_i); | ||
451 | |||
452 | for (;;) { | ||
453 | for (;;) { //generate z-bit numbers until one falls in the range [0,s_i-1] | ||
454 | randBigInt_(s_R,z,0); | ||
455 | if (greater(s_i,s_R)) | ||
456 | break; | ||
457 | } //now s_R is in the range [0,s_i-1] | ||
458 | addInt_(s_R,1); //now s_R is in the range [1,s_i] | ||
459 | add_(s_R,s_i); //now s_R is in the range [s_i+1,2*s_i] | ||
460 | |||
461 | copy_(s_n,s_q); | ||
462 | mult_(s_n,s_R); | ||
463 | multInt_(s_n,2); | ||
464 | addInt_(s_n,1); //s_n=2*s_R*s_q+1 | ||
465 | |||
466 | copy_(s_r2,s_R); | ||
467 | multInt_(s_r2,2); //s_r2=2*s_R | ||
468 | |||
469 | //check s_n for divisibility by small primes up to B | ||
470 | for (divisible=0,j=0; (j<primes.length) && (primes[j]<B); j++) | ||
471 | if (modInt(s_n,primes[j])==0) { | ||
472 | divisible=1; | ||
473 | break; | ||
474 | } | ||
475 | |||
476 | if (!divisible) //if it passes small primes check, then try a single Miller-Rabin base 2 | ||
477 | if (!millerRabin(s_n,2)) //this line represents 75% of the total runtime for randTruePrime_ | ||
478 | divisible=1; | ||
479 | |||
480 | if (!divisible) { //if it passes that test, continue checking s_n | ||
481 | addInt_(s_n,-3); | ||
482 | for (j=s_n.length-1;(s_n[j]==0) && (j>0); j--); //strip leading zeros | ||
483 | for (zz=0,w=s_n[j]; w; (w>>=1),zz++); | ||
484 | zz+=bpe*j; //zz=number of bits in s_n, ignoring leading zeros | ||
485 | for (;;) { //generate z-bit numbers until one falls in the range [0,s_n-1] | ||
486 | randBigInt_(s_a,zz,0); | ||
487 | if (greater(s_n,s_a)) | ||
488 | break; | ||
489 | } //now s_a is in the range [0,s_n-1] | ||
490 | addInt_(s_n,3); //now s_a is in the range [0,s_n-4] | ||
491 | addInt_(s_a,2); //now s_a is in the range [2,s_n-2] | ||
492 | copy_(s_b,s_a); | ||
493 | copy_(s_n1,s_n); | ||
494 | addInt_(s_n1,-1); | ||
495 | powMod_(s_b,s_n1,s_n); //s_b=s_a^(s_n-1) modulo s_n | ||
496 | addInt_(s_b,-1); | ||
497 | if (isZero(s_b)) { | ||
498 | copy_(s_b,s_a); | ||
499 | powMod_(s_b,s_r2,s_n); | ||
500 | addInt_(s_b,-1); | ||
501 | copy_(s_aa,s_n); | ||
502 | copy_(s_d,s_b); | ||
503 | GCD_(s_d,s_n); //if s_b and s_n are relatively prime, then s_n is a prime | ||
504 | if (equalsInt(s_d,1)) { | ||
505 | copy_(ans,s_aa); | ||
506 | return; //if we've made it this far, then s_n is absolutely guaranteed to be prime | ||
507 | } | ||
508 | } | ||
509 | } | ||
510 | } | ||
511 | }, | ||
512 | |||
513 | //set b to an n-bit random BigInt. If s=1, then nth bit (most significant bit) is set to 1. | ||
514 | //array b must be big enough to hold the result. Must have n>=1 | ||
515 | 'randBigInt_': function(b,n,s) { | ||
516 | var i,a; | ||
517 | for (i=0;i<b.length;i++) | ||
518 | b[i]=0; | ||
519 | a=Math.floor((n-1)/bpe)+1; //# array elements to hold the BigInt | ||
520 | for (i=0;i<a;i++) { | ||
521 | b[i]=Math.floor(Math.random()*(1<<(bpe-1))); | ||
522 | } | ||
523 | b[a-1] &= (2<<((n-1)%bpe))-1; | ||
524 | if (s) | ||
525 | b[a-1] |= (1<<((n-1)%bpe)); | ||
526 | }, | ||
527 | |||
528 | //set x to the greatest common divisor of x and y. | ||
529 | //x,y are bigInts with the same number of elements. y is destroyed. | ||
530 | 'GCD_': function(x,y) { | ||
531 | var i,xp,yp,A,B,C,D,q,sing; | ||
532 | if (T.length!=x.length) | ||
533 | T=dup(x); | ||
534 | |||
535 | sing=1; | ||
536 | while (sing) { //while y has nonzero elements other than y[0] | ||
537 | sing=0; | ||
538 | for (i=1;i<y.length;i++) //check if y has nonzero elements other than 0 | ||
539 | if (y[i]) { | ||
540 | sing=1; | ||
541 | break; | ||
542 | } | ||
543 | if (!sing) break; //quit when y all zero elements except possibly y[0] | ||
544 | |||
545 | for (i=x.length;!x[i] && i>=0;i--); //find most significant element of x | ||
546 | xp=x[i]; | ||
547 | yp=y[i]; | ||
548 | A=1; B=0; C=0; D=1; | ||
549 | while ((yp+C) && (yp+D)) { | ||
550 | q =Math.floor((xp+A)/(yp+C)); | ||
551 | qp=Math.floor((xp+B)/(yp+D)); | ||
552 | if (q!=qp) | ||
553 | break; | ||
554 | t= A-q*C; A=C; C=t; // do (A,B,xp, C,D,yp) = (C,D,yp, A,B,xp) - q*(0,0,0, C,D,yp) | ||
555 | t= B-q*D; B=D; D=t; | ||
556 | t=xp-q*yp; xp=yp; yp=t; | ||
557 | } | ||
558 | if (B) { | ||
559 | copy_(T,x); | ||
560 | linComb_(x,y,A,B); //x=A*x+B*y | ||
561 | linComb_(y,T,D,C); //y=D*y+C*T | ||
562 | } else { | ||
563 | mod_(x,y); | ||
564 | copy_(T,x); | ||
565 | copy_(x,y); | ||
566 | copy_(y,T); | ||
567 | } | ||
568 | } | ||
569 | if (y[0]==0) | ||
570 | return; | ||
571 | t=modInt(x,y[0]); | ||
572 | copyInt_(x,y[0]); | ||
573 | y[0]=t; | ||
574 | while (y[0]) { | ||
575 | x[0]%=y[0]; | ||
576 | t=x[0]; x[0]=y[0]; y[0]=t; | ||
577 | } | ||
578 | }, | ||
579 | |||
580 | //do x=x**(-1) mod n, for bigInts x and n. | ||
581 | //If no inverse exists, it sets x to zero and returns 0, else it returns 1. | ||
582 | //The x array must be at least as large as the n array. | ||
583 | function inverseMod_(x,n) { | ||
584 | var k=1+2*Math.max(x.length,n.length); | ||
585 | |||
586 | if(!(x[0]&1) && !(n[0]&1)) { //if both inputs are even, then inverse doesn't exist | ||
587 | copyInt_(x,0); | ||
588 | return 0; | ||
589 | } | ||
590 | |||
591 | if (eg_u.length!=k) { | ||
592 | eg_u=new Array(k); | ||
593 | eg_v=new Array(k); | ||
594 | eg_A=new Array(k); | ||
595 | eg_B=new Array(k); | ||
596 | eg_C=new Array(k); | ||
597 | eg_D=new Array(k); | ||
598 | } | ||
599 | |||
600 | copy_(eg_u,x); | ||
601 | copy_(eg_v,n); | ||
602 | copyInt_(eg_A,1); | ||
603 | copyInt_(eg_B,0); | ||
604 | copyInt_(eg_C,0); | ||
605 | copyInt_(eg_D,1); | ||
606 | for (;;) { | ||
607 | while(!(eg_u[0]&1)) { //while eg_u is even | ||
608 | halve_(eg_u); | ||
609 | if (!(eg_A[0]&1) && !(eg_B[0]&1)) { //if eg_A==eg_B==0 mod 2 | ||
610 | halve_(eg_A); | ||
611 | halve_(eg_B); | ||
612 | } else { | ||
613 | add_(eg_A,n); halve_(eg_A); | ||
614 | sub_(eg_B,x); halve_(eg_B); | ||
615 | } | ||
616 | } | ||
617 | |||
618 | while (!(eg_v[0]&1)) { //while eg_v is even | ||
619 | halve_(eg_v); | ||
620 | if (!(eg_C[0]&1) && !(eg_D[0]&1)) { //if eg_C==eg_D==0 mod 2 | ||
621 | halve_(eg_C); | ||
622 | halve_(eg_D); | ||
623 | } else { | ||
624 | add_(eg_C,n); halve_(eg_C); | ||
625 | sub_(eg_D,x); halve_(eg_D); | ||
626 | } | ||
627 | } | ||
628 | |||
629 | if (!greater(eg_v,eg_u)) { //eg_v <= eg_u | ||
630 | sub_(eg_u,eg_v); | ||
631 | sub_(eg_A,eg_C); | ||
632 | sub_(eg_B,eg_D); | ||
633 | } else { //eg_v > eg_u | ||
634 | sub_(eg_v,eg_u); | ||
635 | sub_(eg_C,eg_A); | ||
636 | sub_(eg_D,eg_B); | ||
637 | } | ||
638 | |||
639 | if (equalsInt(eg_u,0)) { | ||
640 | if (negative(eg_C)) //make sure answer is nonnegative | ||
641 | add_(eg_C,n); | ||
642 | copy_(x,eg_C); | ||
643 | |||
644 | if (!equalsInt(eg_v,1)) { //if GCD_(x,n)!=1, then there is no inverse | ||
645 | copyInt_(x,0); | ||
646 | return 0; | ||
647 | } | ||
648 | return 1; | ||
649 | } | ||
650 | } | ||
651 | } | ||
652 | |||
653 | //return x**(-1) mod n, for integers x and n. Return 0 if there is no inverse | ||
654 | function inverseModInt_(x,n) { | ||
655 | var a=1,b=0,t; | ||
656 | for (;;) { | ||
657 | if (x==1) return a; | ||
658 | if (x==0) return 0; | ||
659 | b-=a*Math.floor(n/x); | ||
660 | n%=x; | ||
661 | |||
662 | if (n==1) return b; //to avoid negatives, change this b to n-b, and each -= to += | ||
663 | if (n==0) return 0; | ||
664 | a-=b*Math.floor(x/n); | ||
665 | x%=n; | ||
666 | } | ||
667 | } | ||
668 | |||
669 | //Given positive bigInts x and y, change the bigints v, a, and b to positive bigInts such that: | ||
670 | // v = GCD_(x,y) = a*x-b*y | ||
671 | //The bigInts v, a, b, must have exactly as many elements as the larger of x and y. | ||
672 | function eGCD_(x,y,v,a,b) { | ||
673 | var g=0; | ||
674 | var k=Math.max(x.length,y.length); | ||
675 | if (eg_u.length!=k) { | ||
676 | eg_u=new Array(k); | ||
677 | eg_A=new Array(k); | ||
678 | eg_B=new Array(k); | ||
679 | eg_C=new Array(k); | ||
680 | eg_D=new Array(k); | ||
681 | } | ||
682 | while(!(x[0]&1) && !(y[0]&1)) { //while x and y both even | ||
683 | halve_(x); | ||
684 | halve_(y); | ||
685 | g++; | ||
686 | } | ||
687 | copy_(eg_u,x); | ||
688 | copy_(v,y); | ||
689 | copyInt_(eg_A,1); | ||
690 | copyInt_(eg_B,0); | ||
691 | copyInt_(eg_C,0); | ||
692 | copyInt_(eg_D,1); | ||
693 | for (;;) { | ||
694 | while(!(eg_u[0]&1)) { //while u is even | ||
695 | halve_(eg_u); | ||
696 | if (!(eg_A[0]&1) && !(eg_B[0]&1)) { //if A==B==0 mod 2 | ||
697 | halve_(eg_A); | ||
698 | halve_(eg_B); | ||
699 | } else { | ||
700 | add_(eg_A,y); halve_(eg_A); | ||
701 | sub_(eg_B,x); halve_(eg_B); | ||
702 | } | ||
703 | } | ||
704 | |||
705 | while (!(v[0]&1)) { //while v is even | ||
706 | halve_(v); | ||
707 | if (!(eg_C[0]&1) && !(eg_D[0]&1)) { //if C==D==0 mod 2 | ||
708 | halve_(eg_C); | ||
709 | halve_(eg_D); | ||
710 | } else { | ||
711 | add_(eg_C,y); halve_(eg_C); | ||
712 | sub_(eg_D,x); halve_(eg_D); | ||
713 | } | ||
714 | } | ||
715 | |||
716 | if (!greater(v,eg_u)) { //v<=u | ||
717 | sub_(eg_u,v); | ||
718 | sub_(eg_A,eg_C); | ||
719 | sub_(eg_B,eg_D); | ||
720 | } else { //v>u | ||
721 | sub_(v,eg_u); | ||
722 | sub_(eg_C,eg_A); | ||
723 | sub_(eg_D,eg_B); | ||
724 | } | ||
725 | if (equalsInt(eg_u,0)) { | ||
726 | if (negative(eg_C)) { //make sure a (C)is nonnegative | ||
727 | add_(eg_C,y); | ||
728 | sub_(eg_D,x); | ||
729 | } | ||
730 | multInt_(eg_D,-1); ///make sure b (D) is nonnegative | ||
731 | copy_(a,eg_C); | ||
732 | copy_(b,eg_D); | ||
733 | leftShift_(v,g); | ||
734 | return; | ||
735 | } | ||
736 | } | ||
737 | } | ||
738 | |||
739 | |||
740 | //is bigInt x negative? | ||
741 | function negative(x) { | ||
742 | return ((x[x.length-1]>>(bpe-1))&1); | ||
743 | } | ||
744 | |||
745 | |||
746 | //is (x << (shift*bpe)) > y? | ||
747 | //x and y are nonnegative bigInts | ||
748 | //shift is a nonnegative integer | ||
749 | function greaterShift(x,y,shift) { | ||
750 | var kx=x.length, ky=y.length; | ||
751 | k=((kx+shift)<ky) ? (kx+shift) : ky; | ||
752 | for (i=ky-1-shift; i<kx && i>=0; i++) | ||
753 | if (x[i]>0) | ||
754 | return 1; //if there are nonzeros in x to the left of the first column of y, then x is bigger | ||
755 | for (i=kx-1+shift; i<ky; i++) | ||
756 | if (y[i]>0) | ||
757 | return 0; //if there are nonzeros in y to the left of the first column of x, then x is not bigger | ||
758 | for (i=k-1; i>=shift; i--) | ||
759 | if (x[i-shift]>y[i]) return 1; | ||
760 | else if (x[i-shift]<y[i]) return 0; | ||
761 | return 0; | ||
762 | } | ||
763 | |||
764 | //is x > y? (x and y both nonnegative) | ||
765 | function greater(x,y) { | ||
766 | var i; | ||
767 | var k=(x.length<y.length) ? x.length : y.length; | ||
768 | |||
769 | for (i=x.length;i<y.length;i++) | ||
770 | if (y[i]) | ||
771 | return 0; //y has more digits | ||
772 | |||
773 | for (i=y.length;i<x.length;i++) | ||
774 | if (x[i]) | ||
775 | return 1; //x has more digits | ||
776 | |||
777 | for (i=k-1;i>=0;i--) | ||
778 | if (x[i]>y[i]) | ||
779 | return 1; | ||
780 | else if (x[i]<y[i]) | ||
781 | return 0; | ||
782 | return 0; | ||
783 | } | ||
784 | |||
785 | //divide_ x by y giving quotient q and remainder r. (q=floor(x/y), r=x mod y). All 4 are bigints. | ||
786 | //x must have at least one leading zero element. | ||
787 | //y must be nonzero. | ||
788 | //q and r must be arrays that are exactly the same length as x. | ||
789 | //the x array must have at least as many elements as y. | ||
790 | function divide_(x,y,q,r) { | ||
791 | var kx, ky; | ||
792 | var i,j,y1,y2,c,a,b; | ||
793 | copy_(r,x); | ||
794 | for (ky=y.length;y[ky-1]==0;ky--); //kx,ky is number of elements in x,y, not including leading zeros | ||
795 | for (kx=r.length;r[kx-1]==0 && kx>ky;kx--); | ||
796 | |||
797 | //normalize: ensure the most significant element of y has its highest bit set | ||
798 | b=y[ky-1]; | ||
799 | for (a=0; b; a++) | ||
800 | b>>=1; | ||
801 | a=bpe-a; //a is how many bits to shift so that the high order bit of y is leftmost in its array element | ||
802 | leftShift_(y,a); //multiply both by 1<<a now, then divide_ both by that at the end | ||
803 | leftShift_(r,a); | ||
804 | |||
805 | copyInt_(q,0); // q=0 | ||
806 | while (!greaterShift(y,r,kx-ky)) { // while (leftShift_(y,kx-ky) <= r) { | ||
807 | subShift_(r,y,kx-ky); // r=r-leftShift_(y,kx-ky) | ||
808 | q[kx-ky]++; // q[kx-ky]++; | ||
809 | } // } | ||
810 | |||
811 | for (i=kx-1; i>=ky; i--) { | ||
812 | if (r[i]==y[ky-1]) | ||
813 | q[i-ky]=mask; | ||
814 | else | ||
815 | q[i-ky]=Math.floor((r[i]*radix+r[i-1])/y[ky-1]); | ||
816 | |||
817 | //The following for(;;) loop is equivalent to the commented while loop, | ||
818 | //except that the uncommented version avoids overflow. | ||
819 | //The commented loop comes from HAC, which assumes r[-1]==y[-1]==0 | ||
820 | // while (q[i-ky]*(y[ky-1]*radix+y[ky-2]) > r[i]*radix*radix+r[i-1]*radix+r[i-2]) | ||
821 | // q[i-ky]--; | ||
822 | for (;;) { | ||
823 | y2=(ky>1 ? y[ky-2] : 0)*q[i-ky]; | ||
824 | c=y2>>bpe; | ||
825 | y2=y2 & mask; | ||
826 | y1=c+q[i-ky]*y[ky-1]; | ||
827 | c=y1>>bpe; | ||
828 | y1=y1 & mask; | ||
829 | |||
830 | if (c==r[i] ? y1==r[i-1] ? y2>(i>1 ? r[i-2] : 0) : y1>r[i-1] : c>r[i]) | ||
831 | q[i-ky]--; | ||
832 | else | ||
833 | break; | ||
834 | } | ||
835 | |||
836 | linCombShift_(r,y,-q[i-ky],i-ky); //r=r-q[i-ky]*leftShift_(y,i-ky) | ||
837 | if (negative(r)) { | ||
838 | addShift_(r,y,i-ky); //r=r+leftShift_(y,i-ky) | ||
839 | q[i-ky]--; | ||
840 | } | ||
841 | } | ||
842 | |||
843 | rightShift_(y,a); //undo the normalization step | ||
844 | rightShift_(r,a); //undo the normalization step | ||
845 | } | ||
846 | |||
847 | //do carries and borrows so each element of the bigInt x fits in bpe bits. | ||
848 | function carry_(x) { | ||
849 | var i,k,c,b; | ||
850 | k=x.length; | ||
851 | c=0; | ||
852 | for (i=0;i<k;i++) { | ||
853 | c+=x[i]; | ||
854 | b=0; | ||
855 | if (c<0) { | ||
856 | b=-(c>>bpe); | ||
857 | c+=b*radix; | ||
858 | } | ||
859 | x[i]=c & mask; | ||
860 | c=(c>>bpe)-b; | ||
861 | } | ||
862 | } | ||
863 | |||
864 | //return x mod n for bigInt x and integer n. | ||
865 | function modInt(x,n) { | ||
866 | var i,c=0; | ||
867 | for (i=x.length-1; i>=0; i--) | ||
868 | c=(c*radix+x[i])%n; | ||
869 | return c; | ||
870 | } | ||
871 | |||
872 | //convert the integer t into a bigInt with at least the given number of bits. | ||
873 | //the returned array stores the bigInt in bpe-bit chunks, little endian (buff[0] is least significant word) | ||
874 | //Pad the array with leading zeros so that it has at least minSize elements. | ||
875 | //There will always be at least one leading 0 element. | ||
876 | function int2bigInt(t,bits,minSize) { | ||
877 | var i,k; | ||
878 | k=Math.ceil(bits/bpe)+1; | ||
879 | k=minSize>k ? minSize : k; | ||
880 | buff=new Array(k); | ||
881 | copyInt_(buff,t); | ||
882 | return buff; | ||
883 | } | ||
884 | |||
885 | //return the bigInt given a string representation in a given base. | ||
886 | //Pad the array with leading zeros so that it has at least minSize elements. | ||
887 | //If base=-1, then it reads in a space-separated list of array elements in decimal. | ||
888 | //The array will always have at least one leading zero, unless base=-1. | ||
889 | function str2bigInt(s,base,minSize) { | ||
890 | var d, i, j, x, y, kk; | ||
891 | var k=s.length; | ||
892 | if (base==-1) { //comma-separated list of array elements in decimal | ||
893 | x=new Array(0); | ||
894 | for (;;) { | ||
895 | y=new Array(x.length+1); | ||
896 | for (i=0;i<x.length;i++) | ||
897 | y[i+1]=x[i]; | ||
898 | y[0]=parseInt(s,10); | ||
899 | x=y; | ||
900 | d=s.indexOf(',',0); | ||
901 | if (d<1) | ||
902 | break; | ||
903 | s=s.substring(d+1); | ||
904 | if (s.length==0) | ||
905 | break; | ||
906 | } | ||
907 | if (x.length<minSize) { | ||
908 | y=new Array(minSize); | ||
909 | copy_(y,x); | ||
910 | return y; | ||
911 | } | ||
912 | return x; | ||
913 | } | ||
914 | |||
915 | x=int2bigInt(0,base*k,0); | ||
916 | for (i=0;i<k;i++) { | ||
917 | d=digitsStr.indexOf(s.substring(i,i+1),0); | ||
918 | if (base<=36 && d>=36) //convert lowercase to uppercase if base<=36 | ||
919 | d-=26; | ||
920 | if (d<base && d>=0) { //ignore illegal characters | ||
921 | multInt_(x,base); | ||
922 | addInt_(x,d); | ||
923 | } | ||
924 | } | ||
925 | |||
926 | for (k=x.length;k>0 && !x[k-1];k--); //strip off leading zeros | ||
927 | k=minSize>k+1 ? minSize : k+1; | ||
928 | y=new Array(k); | ||
929 | kk=k<x.length ? k : x.length; | ||
930 | for (i=0;i<kk;i++) | ||
931 | y[i]=x[i]; | ||
932 | for (;i<k;i++) | ||
933 | y[i]=0; | ||
934 | return y; | ||
935 | } | ||
936 | |||
937 | //is bigint x equal to integer y? | ||
938 | //y must have less than bpe bits | ||
939 | function equalsInt(x,y) { | ||
940 | var i; | ||
941 | if (x[0]!=y) | ||
942 | return 0; | ||
943 | for (i=1;i<x.length;i++) | ||
944 | if (x[i]) | ||
945 | return 0; | ||
946 | return 1; | ||
947 | } | ||
948 | |||
949 | //are bigints x and y equal? | ||
950 | //this works even if x and y are different lengths and have arbitrarily many leading zeros | ||
951 | function equals(x,y) { | ||
952 | var i; | ||
953 | var k=x.length<y.length ? x.length : y.length; | ||
954 | for (i=0;i<k;i++) | ||
955 | if (x[i]!=y[i]) | ||
956 | return 0; | ||
957 | if (x.length>y.length) { | ||
958 | for (;i<x.length;i++) | ||
959 | if (x[i]) | ||
960 | return 0; | ||
961 | } else { | ||
962 | for (;i<y.length;i++) | ||
963 | if (y[i]) | ||
964 | return 0; | ||
965 | } | ||
966 | return 1; | ||
967 | } | ||
968 | |||
969 | //is the bigInt x equal to zero? | ||
970 | function isZero(x) { | ||
971 | var i; | ||
972 | for (i=0;i<x.length;i++) | ||
973 | if (x[i]) | ||
974 | return 0; | ||
975 | return 1; | ||
976 | } | ||
977 | |||
978 | //convert a bigInt into a string in a given base, from base 2 up to base 95. | ||
979 | //Base -1 prints the contents of the array representing the number. | ||
980 | function bigInt2str(x,base) { | ||
981 | var i,t,s=""; | ||
982 | |||
983 | if (s6.length!=x.length) | ||
984 | s6=dup(x); | ||
985 | else | ||
986 | copy_(s6,x); | ||
987 | |||
988 | if (base==-1) { //return the list of array contents | ||
989 | for (i=x.length-1;i>0;i--) | ||
990 | s+=x[i]+','; | ||
991 | s+=x[0]; | ||
992 | } | ||
993 | else { //return it in the given base | ||
994 | while (!isZero(s6)) { | ||
995 | t=divInt_(s6,base); //t=s6 % base; s6=floor(s6/base); | ||
996 | s=digitsStr.substring(t,t+1)+s; | ||
997 | } | ||
998 | } | ||
999 | if (s.length==0) | ||
1000 | s="0"; | ||
1001 | return s; | ||
1002 | } | ||
1003 | |||
1004 | //returns a duplicate of bigInt x | ||
1005 | function dup(x) { | ||
1006 | var i; | ||
1007 | buff=new Array(x.length); | ||
1008 | copy_(buff,x); | ||
1009 | return buff; | ||
1010 | } | ||
1011 | |||
1012 | //do x=y on bigInts x and y. x must be an array at least as big as y (not counting the leading zeros in y). | ||
1013 | function copy_(x,y) { | ||
1014 | var i; | ||
1015 | var k=x.length<y.length ? x.length : y.length; | ||
1016 | for (i=0;i<k;i++) | ||
1017 | x[i]=y[i]; | ||
1018 | for (i=k;i<x.length;i++) | ||
1019 | x[i]=0; | ||
1020 | } | ||
1021 | |||
1022 | //do x=y on bigInt x and integer y. | ||
1023 | function copyInt_(x,n) { | ||
1024 | var i,c; | ||
1025 | for (c=n,i=0;i<x.length;i++) { | ||
1026 | x[i]=c & mask; | ||
1027 | c>>=bpe; | ||
1028 | } | ||
1029 | } | ||
1030 | |||
1031 | //do x=x+n where x is a bigInt and n is an integer. | ||
1032 | //x must be large enough to hold the result. | ||
1033 | function addInt_(x,n) { | ||
1034 | var i,k,c,b; | ||
1035 | x[0]+=n; | ||
1036 | k=x.length; | ||
1037 | c=0; | ||
1038 | for (i=0;i<k;i++) { | ||
1039 | c+=x[i]; | ||
1040 | b=0; | ||
1041 | if (c<0) { | ||
1042 | b=-(c>>bpe); | ||
1043 | c+=b*radix; | ||
1044 | } | ||
1045 | x[i]=c & mask; | ||
1046 | c=(c>>bpe)-b; | ||
1047 | if (!c) return; //stop carrying as soon as the carry_ is zero | ||
1048 | } | ||
1049 | } | ||
1050 | |||
1051 | //right shift bigInt x by n bits. 0 <= n < bpe. | ||
1052 | function rightShift_(x,n) { | ||
1053 | var i; | ||
1054 | var k=Math.floor(n/bpe); | ||
1055 | if (k) { | ||
1056 | for (i=0;i<x.length-k;i++) //right shift x by k elements | ||
1057 | x[i]=x[i+k]; | ||
1058 | for (;i<x.length;i++) | ||
1059 | x[i]=0; | ||
1060 | n%=bpe; | ||
1061 | } | ||
1062 | for (i=0;i<x.length-1;i++) { | ||
1063 | x[i]=mask & ((x[i+1]<<(bpe-n)) | (x[i]>>n)); | ||
1064 | } | ||
1065 | x[i]>>=n; | ||
1066 | } | ||
1067 | |||
1068 | //do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement | ||
1069 | function halve_(x) { | ||
1070 | var i; | ||
1071 | for (i=0;i<x.length-1;i++) { | ||
1072 | x[i]=mask & ((x[i+1]<<(bpe-1)) | (x[i]>>1)); | ||
1073 | } | ||
1074 | x[i]=(x[i]>>1) | (x[i] & (radix>>1)); //most significant bit stays the same | ||
1075 | } | ||
1076 | |||
1077 | //left shift bigInt x by n bits. | ||
1078 | function leftShift_(x,n) { | ||
1079 | var i; | ||
1080 | var k=Math.floor(n/bpe); | ||
1081 | if (k) { | ||
1082 | for (i=x.length; i>=k; i--) //left shift x by k elements | ||
1083 | x[i]=x[i-k]; | ||
1084 | for (;i>=0;i--) | ||
1085 | x[i]=0; | ||
1086 | n%=bpe; | ||
1087 | } | ||
1088 | if (!n) | ||
1089 | return; | ||
1090 | for (i=x.length-1;i>0;i--) { | ||
1091 | x[i]=mask & ((x[i]<<n) | (x[i-1]>>(bpe-n))); | ||
1092 | } | ||
1093 | x[i]=mask & (x[i]<<n); | ||
1094 | } | ||
1095 | |||
1096 | //do x=x*n where x is a bigInt and n is an integer. | ||
1097 | //x must be large enough to hold the result. | ||
1098 | function multInt_(x,n) { | ||
1099 | var i,k,c,b; | ||
1100 | if (!n) | ||
1101 | return; | ||
1102 | k=x.length; | ||
1103 | c=0; | ||
1104 | for (i=0;i<k;i++) { | ||
1105 | c+=x[i]*n; | ||
1106 | b=0; | ||
1107 | if (c<0) { | ||
1108 | b=-(c>>bpe); | ||
1109 | c+=b*radix; | ||
1110 | } | ||
1111 | x[i]=c & mask; | ||
1112 | c=(c>>bpe)-b; | ||
1113 | } | ||
1114 | } | ||
1115 | |||
1116 | //do x=floor(x/n) for bigInt x and integer n, and return the remainder | ||
1117 | function divInt_(x,n) { | ||
1118 | var i,r=0,s; | ||
1119 | for (i=x.length-1;i>=0;i--) { | ||
1120 | s=r*radix+x[i]; | ||
1121 | x[i]=Math.floor(s/n); | ||
1122 | r=s%n; | ||
1123 | } | ||
1124 | return r; | ||
1125 | } | ||
1126 | |||
1127 | //do the linear combination x=a*x+b*y for bigInts x and y, and integers a and b. | ||
1128 | //x must be large enough to hold the answer. | ||
1129 | function linComb_(x,y,a,b) { | ||
1130 | var i,c,k,kk; | ||
1131 | k=x.length<y.length ? x.length : y.length; | ||
1132 | kk=x.length; | ||
1133 | for (c=0,i=0;i<k;i++) { | ||
1134 | c+=a*x[i]+b*y[i]; | ||
1135 | x[i]=c & mask; | ||
1136 | c>>=bpe; | ||
1137 | } | ||
1138 | for (i=k;i<kk;i++) { | ||
1139 | c+=a*x[i]; | ||
1140 | x[i]=c & mask; | ||
1141 | c>>=bpe; | ||
1142 | } | ||
1143 | } | ||
1144 | |||
1145 | //do the linear combination x=a*x+b*(y<<(ys*bpe)) for bigInts x and y, and integers a, b and ys. | ||
1146 | //x must be large enough to hold the answer. | ||
1147 | function linCombShift_(x,y,b,ys) { | ||
1148 | var i,c,k,kk; | ||
1149 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1150 | kk=x.length; | ||
1151 | for (c=0,i=ys;i<k;i++) { | ||
1152 | c+=x[i]+b*y[i-ys]; | ||
1153 | x[i]=c & mask; | ||
1154 | c>>=bpe; | ||
1155 | } | ||
1156 | for (i=k;c && i<kk;i++) { | ||
1157 | c+=x[i]; | ||
1158 | x[i]=c & mask; | ||
1159 | c>>=bpe; | ||
1160 | } | ||
1161 | } | ||
1162 | |||
1163 | //do x=x+(y<<(ys*bpe)) for bigInts x and y, and integers a,b and ys. | ||
1164 | //x must be large enough to hold the answer. | ||
1165 | function addShift_(x,y,ys) { | ||
1166 | var i,c,k,kk; | ||
1167 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1168 | kk=x.length; | ||
1169 | for (c=0,i=ys;i<k;i++) { | ||
1170 | c+=x[i]+y[i-ys]; | ||
1171 | x[i]=c & mask; | ||
1172 | c>>=bpe; | ||
1173 | } | ||
1174 | for (i=k;c && i<kk;i++) { | ||
1175 | c+=x[i]; | ||
1176 | x[i]=c & mask; | ||
1177 | c>>=bpe; | ||
1178 | } | ||
1179 | } | ||
1180 | |||
1181 | //do x=x-(y<<(ys*bpe)) for bigInts x and y, and integers a,b and ys. | ||
1182 | //x must be large enough to hold the answer. | ||
1183 | function subShift_(x,y,ys) { | ||
1184 | var i,c,k,kk; | ||
1185 | k=x.length<ys+y.length ? x.length : ys+y.length; | ||
1186 | kk=x.length; | ||
1187 | for (c=0,i=ys;i<k;i++) { | ||
1188 | c+=x[i]-y[i-ys]; | ||
1189 | x[i]=c & mask; | ||
1190 | c>>=bpe; | ||
1191 | } | ||
1192 | for (i=k;c && i<kk;i++) { | ||
1193 | c+=x[i]; | ||
1194 | x[i]=c & mask; | ||
1195 | c>>=bpe; | ||
1196 | } | ||
1197 | } | ||
1198 | |||
1199 | //do x=x-y for bigInts x and y. | ||
1200 | //x must be large enough to hold the answer. | ||
1201 | //negative answers will be 2s complement | ||
1202 | function sub_(x,y) { | ||
1203 | var i,c,k,kk; | ||
1204 | k=x.length<y.length ? x.length : y.length; | ||
1205 | for (c=0,i=0;i<k;i++) { | ||
1206 | c+=x[i]-y[i]; | ||
1207 | x[i]=c & mask; | ||
1208 | c>>=bpe; | ||
1209 | } | ||
1210 | for (i=k;c && i<x.length;i++) { | ||
1211 | c+=x[i]; | ||
1212 | x[i]=c & mask; | ||
1213 | c>>=bpe; | ||
1214 | } | ||
1215 | } | ||
1216 | |||
1217 | //do x=x+y for bigInts x and y. | ||
1218 | //x must be large enough to hold the answer. | ||
1219 | function add_(x,y) { | ||
1220 | var i,c,k,kk; | ||
1221 | k=x.length<y.length ? x.length : y.length; | ||
1222 | for (c=0,i=0;i<k;i++) { | ||
1223 | c+=x[i]+y[i]; | ||
1224 | x[i]=c & mask; | ||
1225 | c>>=bpe; | ||
1226 | } | ||
1227 | for (i=k;c && i<x.length;i++) { | ||
1228 | c+=x[i]; | ||
1229 | x[i]=c & mask; | ||
1230 | c>>=bpe; | ||
1231 | } | ||
1232 | } | ||
1233 | |||
1234 | //do x=x*y for bigInts x and y. This is faster when y<x. | ||
1235 | function mult_(x,y) { | ||
1236 | var i; | ||
1237 | if (ss.length!=2*x.length) | ||
1238 | ss=new Array(2*x.length); | ||
1239 | copyInt_(ss,0); | ||
1240 | for (i=0;i<y.length;i++) | ||
1241 | if (y[i]) | ||
1242 | linCombShift_(ss,x,y[i],i); //ss=1*ss+y[i]*(x<<(i*bpe)) | ||
1243 | copy_(x,ss); | ||
1244 | } | ||
1245 | |||
1246 | //do x=x mod n for bigInts x and n. | ||
1247 | function mod_(x,n) { | ||
1248 | if (s4.length!=x.length) | ||
1249 | s4=dup(x); | ||
1250 | else | ||
1251 | copy_(s4,x); | ||
1252 | if (s5.length!=x.length) | ||
1253 | s5=dup(x); | ||
1254 | divide_(s4,n,s5,x); //x = remainder of s4 / n | ||
1255 | } | ||
1256 | |||
1257 | //do x=x*y mod n for bigInts x,y,n. | ||
1258 | //for greater speed, let y<x. | ||
1259 | function multMod_(x,y,n) { | ||
1260 | var i; | ||
1261 | if (s0.length!=2*x.length) | ||
1262 | s0=new Array(2*x.length); | ||
1263 | copyInt_(s0,0); | ||
1264 | for (i=0;i<y.length;i++) | ||
1265 | if (y[i]) | ||
1266 | linCombShift_(s0,x,y[i],i); //s0=1*s0+y[i]*(x<<(i*bpe)) | ||
1267 | mod_(s0,n); | ||
1268 | copy_(x,s0); | ||
1269 | } | ||
1270 | |||
1271 | //do x=x*x mod n for bigInts x,n. | ||
1272 | function squareMod_(x,n) { | ||
1273 | var i,j,d,c,kx,kn,k; | ||
1274 | for (kx=x.length; kx>0 && !x[kx-1]; kx--); //ignore leading zeros in x | ||
1275 | k=kx>n.length ? 2*kx : 2*n.length; //k=# elements in the product, which is twice the elements in the larger of x and n | ||
1276 | if (s0.length!=k) | ||
1277 | s0=new Array(k); | ||
1278 | copyInt_(s0,0); | ||
1279 | for (i=0;i<kx;i++) { | ||
1280 | c=s0[2*i]+x[i]*x[i]; | ||
1281 | s0[2*i]=c & mask; | ||
1282 | c>>=bpe; | ||
1283 | for (j=i+1;j<kx;j++) { | ||
1284 | c=s0[i+j]+2*x[i]*x[j]+c; | ||
1285 | s0[i+j]=(c & mask); | ||
1286 | c>>=bpe; | ||
1287 | } | ||
1288 | s0[i+kx]=c; | ||
1289 | } | ||
1290 | mod_(s0,n); | ||
1291 | copy_(x,s0); | ||
1292 | } | ||
1293 | |||
1294 | //return x with exactly k leading zero elements | ||
1295 | function trim(x,k) { | ||
1296 | var i,y; | ||
1297 | for (i=x.length; i>0 && !x[i-1]; i--); | ||
1298 | y=new Array(i+k); | ||
1299 | copy_(y,x); | ||
1300 | return y; | ||
1301 | } | ||
1302 | |||
1303 | //do x=x**y mod n, where x,y,n are bigInts and ** is exponentiation. 0**0=1. | ||
1304 | //this is faster when n is odd. x usually needs to have as many elements as n. | ||
1305 | function powMod_(x,y,n) { | ||
1306 | var k1,k2,kn,np; | ||
1307 | if(s7.length!=n.length) | ||
1308 | s7=dup(n); | ||
1309 | |||
1310 | //for even modulus, use a simple square-and-multiply algorithm, | ||
1311 | //rather than using the more complex Montgomery algorithm. | ||
1312 | if ((n[0]&1)==0) { | ||
1313 | copy_(s7,x); | ||
1314 | copyInt_(x,1); | ||
1315 | while(!equalsInt(y,0)) { | ||
1316 | if (y[0]&1) | ||
1317 | multMod_(x,s7,n); | ||
1318 | divInt_(y,2); | ||
1319 | squareMod_(s7,n); | ||
1320 | } | ||
1321 | return; | ||
1322 | } | ||
1323 | |||
1324 | //calculate np from n for the Montgomery multiplications | ||
1325 | copyInt_(s7,0); | ||
1326 | for (kn=n.length;kn>0 && !n[kn-1];kn--); | ||
1327 | np=radix-inverseModInt_(modInt(n,radix),radix); | ||
1328 | s7[kn]=1; | ||
1329 | multMod_(x ,s7,n); // x = x * 2**(kn*bp) mod n | ||
1330 | |||
1331 | if (s3.length!=x.length) | ||
1332 | s3=dup(x); | ||
1333 | else | ||
1334 | copy_(s3,x); | ||
1335 | |||
1336 | for (k1=y.length-1;k1>0 & !y[k1]; k1--); //k1=first nonzero element of y | ||
1337 | if (y[k1]==0) { //anything to the 0th power is 1 | ||
1338 | copyInt_(x,1); | ||
1339 | return; | ||
1340 | } | ||
1341 | for (k2=1<<(bpe-1);k2 && !(y[k1] & k2); k2>>=1); //k2=position of first 1 bit in y[k1] | ||
1342 | for (;;) { | ||
1343 | if (!(k2>>=1)) { //look at next bit of y | ||
1344 | k1--; | ||
1345 | if (k1<0) { | ||
1346 | mont_(x,one,n,np); | ||
1347 | return; | ||
1348 | } | ||
1349 | k2=1<<(bpe-1); | ||
1350 | } | ||
1351 | mont_(x,x,n,np); | ||
1352 | |||
1353 | if (k2 & y[k1]) //if next bit is a 1 | ||
1354 | mont_(x,s3,n,np); | ||
1355 | } | ||
1356 | } | ||
1357 | |||
1358 | //do x=x*y*Ri mod n for bigInts x,y,n, | ||
1359 | // where Ri = 2**(-kn*bpe) mod n, and kn is the | ||
1360 | // number of elements in the n array, not | ||
1361 | // counting leading zeros. | ||
1362 | //x must be large enough to hold the answer. | ||
1363 | //It's OK if x and y are the same variable. | ||
1364 | //must have: | ||
1365 | // x,y < n | ||
1366 | // n is odd | ||
1367 | // np = -(n^(-1)) mod radix | ||
1368 | function mont_(x,y,n,np) { | ||
1369 | var i,j,c,ui,t; | ||
1370 | var kn=n.length; | ||
1371 | var ky=y.length; | ||
1372 | |||
1373 | if (sa.length!=kn) | ||
1374 | sa=new Array(kn); | ||
1375 | |||
1376 | for (;kn>0 && n[kn-1]==0;kn--); //ignore leading zeros of n | ||
1377 | //this function sometimes gives wrong answers when the next line is uncommented | ||
1378 | //for (;ky>0 && y[ky-1]==0;ky--); //ignore leading zeros of y | ||
1379 | |||
1380 | copyInt_(sa,0); | ||
1381 | |||
1382 | //the following loop consumes 95% of the runtime for randTruePrime_() and powMod_() for large keys | ||
1383 | for (i=0; i<kn; i++) { | ||
1384 | t=sa[0]+x[i]*y[0]; | ||
1385 | ui=((t & mask) * np) & mask; //the inner "& mask" is needed on Macintosh MSIE, but not windows MSIE | ||
1386 | c=(t+ui*n[0]) >> bpe; | ||
1387 | t=x[i]; | ||
1388 | |||
1389 | //do sa=(sa+x[i]*y+ui*n)/b where b=2**bpe | ||
1390 | for (j=1;j<ky;j++) { | ||
1391 | c+=sa[j]+t*y[j]+ui*n[j]; | ||
1392 | sa[j-1]=c & mask; | ||
1393 | c>>=bpe; | ||
1394 | } | ||
1395 | for (;j<kn;j++) { | ||
1396 | c+=sa[j]+ui*n[j]; | ||
1397 | sa[j-1]=c & mask; | ||
1398 | c>>=bpe; | ||
1399 | } | ||
1400 | sa[j-1]=c & mask; | ||
1401 | } | ||
1402 | |||
1403 | if (!greater(n,sa)) | ||
1404 | sub_(sa,n); | ||
1405 | copy_(x,sa); | ||
1406 | } | ||
1407 | |||
1408 | |||
1409 | |||
1410 | |||
1411 | //############################################################################# | ||
1412 | //############################################################################# | ||
1413 | //############################################################################# | ||
1414 | //############################################################################# | ||
1415 | //############################################################################# | ||
1416 | //############################################################################# | ||
1417 | //############################################################################# | ||
1418 | |||
1419 | |||
1420 | |||
1421 | |||
1422 | |||
1423 | //############################################################################# | ||
1424 | |||
1425 | Clipperz.Crypto.BigInt = function (aValue, aBase) { | ||
1426 | varbase; | ||
1427 | varvalue; | ||
1428 | |||
1429 | if (typeof(aValue) == 'object') { | ||
1430 | this._internalValue = aValue; | ||
1431 | } else { | ||
1432 | if (typeof(aValue) == 'undefined') { | ||
1433 | value = "0"; | ||
1434 | } else { | ||
1435 | value = aValue + ""; | ||
1436 | } | ||
1437 | |||
1438 | if (typeof(aBase) == 'undefined') { | ||
1439 | base = 10; | ||
1440 | } else { | ||
1441 | base = aBase; | ||
1442 | } | ||
1443 | |||
1444 | this._internalValue = str2bigInt(value, base, 1, 1); | ||
1445 | } | ||
1446 | |||
1447 | return this; | ||
1448 | } | ||
1449 | |||
1450 | //============================================================================= | ||
1451 | |||
1452 | MochiKit.Base.update(Clipperz.Crypto.BigInt.prototype, { | ||
1453 | |||
1454 | //------------------------------------------------------------------------- | ||
1455 | |||
1456 | 'internalValue': function () { | ||
1457 | return this._internalValue; | ||
1458 | }, | ||
1459 | |||
1460 | //------------------------------------------------------------------------- | ||
1461 | |||
1462 | 'isBigInt': true, | ||
1463 | |||
1464 | //------------------------------------------------------------------------- | ||
1465 | |||
1466 | 'toString': function(aBase) { | ||
1467 | return this.asString(aBase); | ||
1468 | }, | ||
1469 | |||
1470 | //------------------------------------------------------------------------- | ||
1471 | |||
1472 | 'asString': function (aBase) { | ||
1473 | varbase; | ||
1474 | |||
1475 | if (typeof(aBase) == 'undefined') { | ||
1476 | base = 10; | ||
1477 | } else { | ||
1478 | base = aBase; | ||
1479 | } | ||
1480 | |||
1481 | return bigInt2str(this.internalValue(), base).toLowerCase(); | ||
1482 | }, | ||
1483 | |||
1484 | //------------------------------------------------------------------------- | ||
1485 | |||
1486 | 'equals': function (aValue) { | ||
1487 | var result; | ||
1488 | |||
1489 | if (aValue.isBigInt) { | ||
1490 | result = equals(this.internalValue(), aValue.internalValue()); | ||
1491 | } else if (typeof(aValue) == "number") { | ||
1492 | result = equalsInt(this.internalValue(), aValue); | ||
1493 | } else { | ||
1494 | throw Clipperz.Crypt.BigInt.exception.UnknownType; | ||
1495 | } | ||
1496 | |||
1497 | return result; | ||
1498 | }, | ||
1499 | |||
1500 | //------------------------------------------------------------------------- | ||
1501 | |||
1502 | 'add': function (aValue) { | ||
1503 | var result; | ||
1504 | |||
1505 | if (aValue.isBigInt) { | ||
1506 | result = add(this.internalValue(), aValue.internalValue()); | ||
1507 | } else { | ||
1508 | result = addInt(this.internalValue(), aValue); | ||
1509 | } | ||
1510 | |||
1511 | return new Clipperz.Crypto.BigInt(result); | ||
1512 | }, | ||
1513 | |||
1514 | //------------------------------------------------------------------------- | ||
1515 | |||
1516 | 'subtract': function (aValue) { | ||
1517 | var result; | ||
1518 | var value; | ||
1519 | |||
1520 | if (aValue.isBigInt) { | ||
1521 | value = aValue; | ||
1522 | } else { | ||
1523 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1524 | } | ||
1525 | |||
1526 | result = sub(this.internalValue(), value.internalValue()); | ||
1527 | |||
1528 | return new Clipperz.Crypto.BigInt(result); | ||
1529 | }, | ||
1530 | |||
1531 | //------------------------------------------------------------------------- | ||
1532 | |||
1533 | 'multiply': function (aValue, aModule) { | ||
1534 | var result; | ||
1535 | var value; | ||
1536 | |||
1537 | if (aValue.isBigInt) { | ||
1538 | value = aValue; | ||
1539 | } else { | ||
1540 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1541 | } | ||
1542 | |||
1543 | if (typeof(aModule) == 'undefined') { | ||
1544 | result = mult(this.internalValue(), value.internalValue()); | ||
1545 | } else { | ||
1546 | result = multMod(this.internalValue(), value.internalValue(), aModule); | ||
1547 | } | ||
1548 | |||
1549 | return new Clipperz.Crypto.BigInt(result); | ||
1550 | }, | ||
1551 | |||
1552 | //------------------------------------------------------------------------- | ||
1553 | |||
1554 | 'module': function (aModule) { | ||
1555 | varresult; | ||
1556 | var module; | ||
1557 | |||
1558 | if (aModule.isBigInt) { | ||
1559 | module = aModule; | ||
1560 | } else { | ||
1561 | module = new Clipperz.Crypto.BigInt(aModule); | ||
1562 | } | ||
1563 | |||
1564 | result = mod(this.internalValue(), module.internalValue()); | ||
1565 | |||
1566 | return new Clipperz.Crypto.BigInt(result); | ||
1567 | }, | ||
1568 | |||
1569 | //------------------------------------------------------------------------- | ||
1570 | |||
1571 | 'powerModule': function(aValue, aModule) { | ||
1572 | varresult; | ||
1573 | varvalue; | ||
1574 | var module; | ||
1575 | |||
1576 | if (aValue.isBigInt) { | ||
1577 | value = aValue; | ||
1578 | } else { | ||
1579 | value = new Clipperz.Crypto.BigInt(aValue); | ||
1580 | } | ||
1581 | |||
1582 | if (aModule.isBigInt) { | ||
1583 | module = aModule; | ||
1584 | } else { | ||
1585 | module = new Clipperz.Crypto.BigInt(aModule); | ||
1586 | } | ||
1587 | |||
1588 | if (aValue == -1) { | ||
1589 | result = inverseMod(this.internalValue(), module.internalValue()); | ||
1590 | } else { | ||
1591 | result = powMod(this.internalValue(), value.internalValue(), module.internalValue()); | ||
1592 | } | ||
1593 | |||
1594 | return new Clipperz.Crypto.BigInt(result); | ||
1595 | }, | ||
1596 | |||
1597 | //------------------------------------------------------------------------- | ||
1598 | |||
1599 | 'bitSize': function() { | ||
1600 | return bitSize(this.internalValue()); | ||
1601 | }, | ||
1602 | |||
1603 | //------------------------------------------------------------------------- | ||
1604 | __syntaxFix__: "syntax fix" | ||
1605 | |||
1606 | }); | ||
1607 | |||
1608 | //############################################################################# | ||
1609 | |||
1610 | Clipperz.Crypto.BigInt.randomPrime = function(aBitSize) { | ||
1611 | return new Clipperz.Crypto.BigInt(randTruePrime(aBitSize)); | ||
1612 | } | ||
1613 | |||
1614 | //############################################################################# | ||
1615 | //############################################################################# | ||
1616 | //############################################################################# | ||
1617 | |||
1618 | Clipperz.Crypto.BigInt.equals = function(a, b) { | ||
1619 | return a.equals(b); | ||
1620 | } | ||
1621 | |||
1622 | Clipperz.Crypto.BigInt.add = function(a, b) { | ||
1623 | return a.add(b); | ||
1624 | } | ||
1625 | |||
1626 | Clipperz.Crypto.BigInt.subtract = function(a, b) { | ||
1627 | return a.subtract(b); | ||
1628 | } | ||
1629 | |||
1630 | Clipperz.Crypto.BigInt.multiply = function(a, b, module) { | ||
1631 | return a.multiply(b, module); | ||
1632 | } | ||
1633 | |||
1634 | Clipperz.Crypto.BigInt.module = function(a, module) { | ||
1635 | return a.module(module); | ||
1636 | } | ||
1637 | |||
1638 | Clipperz.Crypto.BigInt.powerModule = function(a, b, module) { | ||
1639 | return a.powerModule(b, module); | ||
1640 | } | ||
1641 | |||
1642 | Clipperz.Crypto.BigInt.exception = { | ||
1643 | UnknownType: new MochiKit.Base.NamedError("Clipperz.Crypto.BigInt.exception.UnknownType") | ||
1644 | } | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ByteArray.js b/frontend/gamma/js/ClipperzCryptoLibrary/ByteArray.js new file mode 100644 index 0000000..aca1c00 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ByteArray.js | |||
@@ -0,0 +1,1496 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | ||
25 | |||
26 | //============================================================================= | ||
27 | |||
28 | Clipperz.ByteArray_abstract = function(args) { | ||
29 | return this; | ||
30 | } | ||
31 | |||
32 | Clipperz.ByteArray_abstract.prototype = MochiKit.Base.update(null, { | ||
33 | |||
34 | //------------------------------------------------------------------------- | ||
35 | |||
36 | 'toString': function() { | ||
37 | return "Clipperz.ByteArray_abstract"; | ||
38 | }, | ||
39 | |||
40 | //------------------------------------------------------------------------- | ||
41 | |||
42 | 'equals': function(aValue) { | ||
43 | return (this.compare(aValue) == 0); | ||
44 | }, | ||
45 | |||
46 | //------------------------------------------------------------------------- | ||
47 | |||
48 | 'compare': function(aValue) { | ||
49 | var result; | ||
50 | var i; | ||
51 | |||
52 | result = MochiKit.Base.compare(this.length(), aValue.length()); | ||
53 | i = this.length(); | ||
54 | |||
55 | while ((result == 0) && (i>0)) { | ||
56 | i--; | ||
57 | result = MochiKit.Base.compare(this.byteAtIndex(i), aValue.byteAtIndex(i)); | ||
58 | } | ||
59 | |||
60 | return result; | ||
61 | }, | ||
62 | |||
63 | //------------------------------------------------------------------------- | ||
64 | |||
65 | 'clone': function() { | ||
66 | throw Clipperz.Base.exception.AbstractMethod; | ||
67 | }, | ||
68 | |||
69 | //------------------------------------------------------------------------- | ||
70 | |||
71 | 'newInstance': function() { | ||
72 | throw Clipperz.Base.exception.AbstractMethod; | ||
73 | }, | ||
74 | |||
75 | //------------------------------------------------------------------------- | ||
76 | |||
77 | 'reset': function() { | ||
78 | throw Clipperz.Base.exception.AbstractMethod; | ||
79 | }, | ||
80 | |||
81 | //------------------------------------------------------------------------- | ||
82 | |||
83 | 'length': function() { | ||
84 | throw Clipperz.Base.exception.AbstractMethod; | ||
85 | }, | ||
86 | |||
87 | //------------------------------------------------------------------------- | ||
88 | |||
89 | 'checkByteValue': function(aValue) { | ||
90 | //Clipperz.log("aValue", aValue.toString(16)); | ||
91 | //Clipperz.log("(aValue & 0xff)", (aValue & 0xff).toString(16)); | ||
92 | |||
93 | if ((aValue & 0xff) != aValue) { | ||
94 | MochiKit.Logging.logError("Clipperz.ByteArray.appendByte: the provided value (0x" + aValue.toString(16) + ") is not a byte value."); | ||
95 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
96 | } | ||
97 | }, | ||
98 | |||
99 | //------------------------------------------------------------------------- | ||
100 | |||
101 | 'xorMergeWithBlock': function(aBlock, anAllignment, paddingMode) { | ||
102 | var result; | ||
103 | var a, b; | ||
104 | var aLength; | ||
105 | var bLength; | ||
106 | var i, c; | ||
107 | |||
108 | if (this.length() > aBlock.length()) { | ||
109 | a = this; | ||
110 | b = aBlock; | ||
111 | } else { | ||
112 | a = aBlock; | ||
113 | b = this; | ||
114 | } | ||
115 | |||
116 | aLength = a.length(); | ||
117 | bLength = b.length(); | ||
118 | |||
119 | if (aLength != bLength) { | ||
120 | if (paddingMode == 'truncate') { | ||
121 | if (anAllignment == 'left') { | ||
122 | a = a.split(0, bLength); | ||
123 | } else { | ||
124 | a = a.split(aLength - bLength); | ||
125 | } | ||
126 | } else { | ||
127 | var ii, cc; | ||
128 | var padding; | ||
129 | |||
130 | // padding = new Clipperz.ByteArray(); | ||
131 | padding = this.newInstance(); | ||
132 | cc = aLength - bLength; | ||
133 | for (ii=0; ii<cc; ii++) { | ||
134 | padding.appendByte(0); | ||
135 | } | ||
136 | |||
137 | if (anAllignment == 'left') { | ||
138 | b = b.appendBlock(padding); | ||
139 | } else { | ||
140 | b = padding.appendBlock(b); | ||
141 | } | ||
142 | } | ||
143 | } | ||
144 | |||
145 | |||
146 | // result = new Clipperz.ByteArray(); | ||
147 | result = this.newInstance(); | ||
148 | c = a.length(); | ||
149 | for (i=0; i<c; i++) { | ||
150 | result.appendByte(a.byteAtIndex(i) ^ b.byteAtIndex(i)); | ||
151 | } | ||
152 | |||
153 | return result; | ||
154 | }, | ||
155 | |||
156 | //------------------------------------------------------------------------- | ||
157 | /* | ||
158 | 'shiftLeft': function(aNumberOfBitsToShift) { | ||
159 | var result; | ||
160 | |||
161 | result = this.clone(); //??????????? | ||
162 | |||
163 | return result; | ||
164 | }, | ||
165 | */ | ||
166 | //------------------------------------------------------------------------- | ||
167 | |||
168 | 'appendBlock': function(aBlock) { | ||
169 | throw Clipperz.Base.exception.AbstractMethod; | ||
170 | }, | ||
171 | |||
172 | //------------------------------------------------------------------------- | ||
173 | |||
174 | 'appendByte': function(aValue) { | ||
175 | throw Clipperz.Base.exception.AbstractMethod; | ||
176 | }, | ||
177 | |||
178 | 'appendBytes': function(args) { | ||
179 | varvalues; | ||
180 | vari,c; | ||
181 | |||
182 | if (args.constructor == Array) { | ||
183 | values = args; | ||
184 | } else { | ||
185 | values = arguments; | ||
186 | } | ||
187 | |||
188 | c = values.length; | ||
189 | for (i=0; i<c; i++) { | ||
190 | this.appendByte(values[i]); | ||
191 | } | ||
192 | |||
193 | return this; | ||
194 | }, | ||
195 | |||
196 | //------------------------------------------------------------------------- | ||
197 | |||
198 | 'appendWord': function(aValue, isLittleEndian) { | ||
199 | var result; | ||
200 | var processAsLittleEndian; | ||
201 | |||
202 | processAsLittleEndian = isLittleEndian === true ? true : false; | ||
203 | |||
204 | if (processAsLittleEndian) { | ||
205 | result = this.appendBytes( (aValue) & 0xff, (aValue >> 8) & 0xff, (aValue >> 16) & 0xff, (aValue >> 24) & 0xff ); //little endian | ||
206 | } else { | ||
207 | result = this.appendBytes( (aValue >> 24) & 0xff, (aValue >> 16) & 0xff, (aValue >> 8) & 0xff, (aValue) & 0xff ); //big endian - DEFAULT | ||
208 | } | ||
209 | |||
210 | return result; | ||
211 | }, | ||
212 | |||
213 | 'appendWords': function(args) { | ||
214 | varvalues; | ||
215 | vari,c; | ||
216 | |||
217 | if (args.constructor == Array) { | ||
218 | values = args; | ||
219 | } else { | ||
220 | values = arguments; | ||
221 | } | ||
222 | |||
223 | c = values.length; | ||
224 | for (i=0; i<c; i++) { | ||
225 | this.appendWord(values[i], false); | ||
226 | } | ||
227 | |||
228 | return this; | ||
229 | }, | ||
230 | |||
231 | //------------------------------------------------------------------------- | ||
232 | |||
233 | 'appendBigEndianWords': function(args) { | ||
234 | varvalues; | ||
235 | vari,c; | ||
236 | |||
237 | if (args.constructor == Array) { | ||
238 | values = args; | ||
239 | } else { | ||
240 | values = arguments; | ||
241 | } | ||
242 | |||
243 | c = values.length; | ||
244 | for (i=0; i<c; i++) { | ||
245 | this.appendWord(values[i], true); | ||
246 | } | ||
247 | |||
248 | return this; | ||
249 | }, | ||
250 | |||
251 | //------------------------------------------------------------------------- | ||
252 | |||
253 | 'appendBinaryString': function (aBinaryString) { | ||
254 | var i,c; | ||
255 | |||
256 | c = aBinaryString.length; | ||
257 | for (i=0; i<c; i++) { | ||
258 | this.appendByte(aBinaryString.charCodeAt(i)); | ||
259 | }; | ||
260 | |||
261 | return this; | ||
262 | }, | ||
263 | |||
264 | //------------------------------------------------------------------------- | ||
265 | |||
266 | 'byteAtIndex': function(anIndex) { | ||
267 | throw Clipperz.Base.exception.AbstractMethod; | ||
268 | }, | ||
269 | |||
270 | 'setByteAtIndex': function(aValue, anIndex) { | ||
271 | throw Clipperz.Base.exception.AbstractMethod; | ||
272 | }, | ||
273 | |||
274 | //------------------------------------------------------------------------- | ||
275 | |||
276 | 'bitAtIndex': function(aBitPosition) { | ||
277 | var result; | ||
278 | varbytePosition; | ||
279 | var bitPositionInSelectedByte; | ||
280 | var selectedByte; | ||
281 | var selectedByteMask; | ||
282 | |||
283 | bytePosition = this.length() - Math.ceil((aBitPosition + 1)/ 8); | ||
284 | bitPositionInSelectedByte = aBitPosition % 8; | ||
285 | selectedByte = this.byteAtIndex(bytePosition); | ||
286 | |||
287 | if (bitPositionInSelectedByte > 0) { | ||
288 | selectedByteMask = (1 << bitPositionInSelectedByte); | ||
289 | } else { | ||
290 | selectedByteMask = 1; | ||
291 | } | ||
292 | result = selectedByte & selectedByteMask ? 1 : 0; | ||
293 | //console.log("aBitPosition: " + aBitPosition + ", length: " + this.length() + ", bytePosition: " + bytePosition + ", bitPositionInSelectedByte: " + bitPositionInSelectedByte + ", selectedByteMask: " + selectedByteMask); | ||
294 | |||
295 | return result; | ||
296 | }, | ||
297 | |||
298 | //------------------------------------------------------------------------- | ||
299 | |||
300 | 'bitBlockAtIndexWithSize': function(aBitPosition, aSize) { | ||
301 | var result; | ||
302 | var bitValue; | ||
303 | var i,c; | ||
304 | |||
305 | result = 0; | ||
306 | c = aSize; | ||
307 | for (i=0; i<c; i++) { | ||
308 | bitValue = this.bitAtIndex(aBitPosition + i); | ||
309 | result = result | bitValue << i; | ||
310 | } | ||
311 | |||
312 | return result; | ||
313 | }, | ||
314 | |||
315 | //------------------------------------------------------------------------- | ||
316 | |||
317 | 'asString': function() { | ||
318 | varresult; | ||
319 | varlength; | ||
320 | vari; | ||
321 | |||
322 | //var startTime = new Date(); | ||
323 | |||
324 | //# result = ""; | ||
325 | result = []; | ||
326 | |||
327 | i = 0; | ||
328 | length = this.length(); | ||
329 | |||
330 | while (i < length) { | ||
331 | varcurrentCharacter; | ||
332 | varcurrentByte; | ||
333 | varunicode; | ||
334 | |||
335 | currentByte = this.byteAtIndex(i); | ||
336 | |||
337 | if ((currentByte & 0x80) == 0x00 ) { //0xxxxxxx | ||
338 | unicode = currentByte; | ||
339 | currentCharacter = String.fromCharCode(unicode); | ||
340 | } else if ((currentByte & 0xe0) == 0xc0 ) { //110xxxxx 10xxxxxx | ||
341 | unicode = (currentByte & 0x1f) << 6; | ||
342 | i++; currentByte = this.byteAtIndex(i); | ||
343 | unicode = unicode | (currentByte & 0x3f); | ||
344 | |||
345 | currentCharacter = String.fromCharCode(unicode); | ||
346 | } else if ((currentByte & 0xf0) == 0xe0 ) { //1110xxxx 10xxxxxx 10xxxxxx | ||
347 | unicode = (currentByte & 0x0f) << (6+6); | ||
348 | i++; currentByte = this.byteAtIndex(i); | ||
349 | unicode = unicode | ((currentByte & 0x3f) << 6); | ||
350 | i++; currentByte = this.byteAtIndex(i); | ||
351 | unicode = unicode | (currentByte & 0x3f); | ||
352 | |||
353 | currentCharacter = String.fromCharCode(unicode); | ||
354 | } else { //11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | ||
355 | unicode = (currentByte & 0x07) << (6+6+6); | ||
356 | i++; currentByte = this.byteAtIndex(i); | ||
357 | unicode = unicode | ((currentByte & 0x3f) << (6+6)); | ||
358 | i++; currentByte = this.byteAtIndex(i); | ||
359 | unicode = unicode | ((currentByte & 0x3f) << 6); | ||
360 | i++; currentByte = this.byteAtIndex(i); | ||
361 | unicode = unicode | (currentByte & 0x3f); | ||
362 | |||
363 | currentCharacter = String.fromCharCode(unicode); | ||
364 | } | ||
365 | |||
366 | // result += currentCharacter; | ||
367 | result.push(currentCharacter); | ||
368 | i++; | ||
369 | } | ||
370 | |||
371 | //MochiKit.Logging.logDebug("[" + (new Date() - startTime) + "] ByteArray.asString"); | ||
372 | |||
373 | // return result; | ||
374 | return result.join(""); | ||
375 | }, | ||
376 | |||
377 | //------------------------------------------------------------------------- | ||
378 | |||
379 | 'toHexString': function() { | ||
380 | throw Clipperz.Base.exception.AbstractMethod; | ||
381 | }, | ||
382 | |||
383 | //------------------------------------------------------------------------- | ||
384 | |||
385 | 'base64map': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", | ||
386 | 'base64mapIndex': "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(''), | ||
387 | //'base64mapInvertedIndex': { | ||
388 | // 'A': 0, 'B': 1, 'C': 2, 'D': 3, 'E': 4, 'F': 5, 'G': 6, 'H': 7, 'I': 8, 'J': 9, | ||
389 | // 'K': 10, 'L': 11, 'M': 12, 'N': 13, 'O': 14, 'P': 15, 'Q': 16, 'R': 17, 'S': 18, 'T': 19, | ||
390 | // 'U': 20, 'V': 21, 'W': 22, 'X': 23, 'Y': 24, 'Z': 25, 'a': 26, 'b': 27, 'c': 28, 'd': 29, | ||
391 | // 'e': 30, 'f': 31, 'g': 32, 'h': 33, 'i': 34, 'j': 35, 'k': 36, 'l': 37, 'm': 38, 'n': 39, | ||
392 | // 'o': 40, 'p': 41, 'q': 42, 'r': 43, 's': 44, 't': 45, 'u': 46, 'v': 47, 'w': 48, 'x': 49, | ||
393 | // 'y': 50, 'z': 51, '0': 52, '1': 53, '2': 54, '3': 55, '4': 56, '5': 57, '6': 58, '7': 59, | ||
394 | // '8': 60, '9': 61, '+': 62, '/': 63, | ||
395 | // "=": -1}, | ||
396 | |||
397 | //------------------------------------------------------------------------- | ||
398 | |||
399 | 'appendBase64String': function(aValue) { | ||
400 | var i; | ||
401 | var length; | ||
402 | |||
403 | length = aValue.length; | ||
404 | |||
405 | if ((length % 4) != 0) { | ||
406 | MochiKit.Logging.logError("the value passed to the 'ByteArray.setBase64Value' is not correct"); | ||
407 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
408 | } | ||
409 | |||
410 | i = 0; | ||
411 | while (i<length) { | ||
412 | var value1, value2, value3, value4; | ||
413 | var byte1, byte2, byte3; | ||
414 | |||
415 | value1 = this.base64map.indexOf(aValue.charAt(i)); | ||
416 | value2 = this.base64map.indexOf(aValue.charAt(i+1)); | ||
417 | value3 = this.base64map.indexOf(aValue.charAt(i+2)); | ||
418 | value4 = this.base64map.indexOf(aValue.charAt(i+3)); | ||
419 | |||
420 | // value1 = this.base64mapInvertedIndex[aValue.charAt(i)]; | ||
421 | // value2 = this.base64mapInvertedIndex[aValue.charAt(i+1)]; | ||
422 | // value3 = this.base64mapInvertedIndex[aValue.charAt(i+2)]; | ||
423 | // value4 = this.base64mapInvertedIndex[aValue.charAt(i+3)]; | ||
424 | |||
425 | byte1 = (value1 << 2) | ((value2 & 0x30) >> 4); | ||
426 | if (value3 != -1) { | ||
427 | byte2 = ((value2 & 0x0f) << 4) | ((value3 & 0x3c) >> 2); | ||
428 | |||
429 | if (value4 != -1) { | ||
430 | byte3 = ((value3 & 0x03) << 6) | (value4); | ||
431 | } else { | ||
432 | byte3 = null; | ||
433 | } | ||
434 | } else { | ||
435 | byte2 = null; | ||
436 | byte3 = null; | ||
437 | } | ||
438 | |||
439 | this.appendByte(byte1); | ||
440 | this.appendByte(byte2); | ||
441 | this.appendByte(byte3); | ||
442 | |||
443 | i += 4; | ||
444 | } | ||
445 | |||
446 | return this; | ||
447 | }, | ||
448 | |||
449 | //------------------------------------------------------------------------- | ||
450 | |||
451 | 'toBase64String': function() { | ||
452 | var result; | ||
453 | var length; | ||
454 | var i; | ||
455 | var byte1, byte2, byte3; | ||
456 | var char1, char2, char3, char4; | ||
457 | |||
458 | i = 0; | ||
459 | length = this.length(); | ||
460 | result = new Array(Math.ceil(length/3)); | ||
461 | |||
462 | while (i < length) { | ||
463 | byte1 = this.byteAtIndex(i); | ||
464 | if ((i+2) < length) { | ||
465 | byte2 = this.byteAtIndex(i+1); | ||
466 | byte3 = this.byteAtIndex(i+2); | ||
467 | } else if ((i+2) == length) { | ||
468 | byte2 = this.byteAtIndex(i+1); | ||
469 | byte3 = null; | ||
470 | } else { | ||
471 | byte2 = null; | ||
472 | byte3 = null; | ||
473 | } | ||
474 | |||
475 | char1 = this.base64mapIndex[byte1 >> 2]; | ||
476 | if (byte2 != null) { | ||
477 | char2 = this.base64mapIndex[((byte1 & 0x03) << 4) | ((byte2 & 0xf0) >> 4)]; | ||
478 | if (byte3 != null) { | ||
479 | char3 = this.base64mapIndex[((byte2 & 0x0f) << 2) | ((byte3 & 0xc0) >> 6)]; | ||
480 | char4 = this.base64mapIndex[(byte3 & 0x3f)]; | ||
481 | } else { | ||
482 | char3 = this.base64mapIndex[(byte2 & 0x0f) << 2]; | ||
483 | char4 = "="; | ||
484 | } | ||
485 | } else { | ||
486 | char2 = this.base64mapIndex[(byte1 & 0x03) << 4]; | ||
487 | char3 = "="; | ||
488 | char4 = "="; | ||
489 | } | ||
490 | |||
491 | result.push(char1 + char2 + char3 + char4); | ||
492 | |||
493 | i += 3; | ||
494 | } | ||
495 | |||
496 | return result.join(""); | ||
497 | }, | ||
498 | |||
499 | //------------------------------------------------------------------------- | ||
500 | |||
501 | 'base32map': "0123456789abcdefghjkmnpqrstvwxyz", | ||
502 | 'base32mapIndex': "0123456789abcdefghjkmnpqrstvwxyz".split(''), | ||
503 | |||
504 | //------------------------------------------------------------------------- | ||
505 | |||
506 | 'appendBase32String': function(aValue) { | ||
507 | var value; | ||
508 | var i; | ||
509 | var length; | ||
510 | var value1, value2, value3, value4, value5, value6, value7, value8; | ||
511 | var byte1, byte2, byte3, byte4, byte5; | ||
512 | |||
513 | value = aValue.toLowerCase(); | ||
514 | value = value.replace(/[\s\-]/g, ''); | ||
515 | value = value.replace(/[0o]/g, '0'); | ||
516 | value = value.replace(/[1il]/g, '1'); | ||
517 | |||
518 | length = value.length; | ||
519 | |||
520 | if ((length % 8) != 0) { | ||
521 | MochiKit.Logging.logError("the value passed to the 'ByteArray.setBase32Value' is not correct"); | ||
522 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
523 | } | ||
524 | |||
525 | i = 0; | ||
526 | while (i<length) { | ||
527 | value1 = this.base32map.indexOf(value.charAt(i)); | ||
528 | value2 = this.base32map.indexOf(value.charAt(i+1)); | ||
529 | value3 = this.base32map.indexOf(value.charAt(i+2)); | ||
530 | value4 = this.base32map.indexOf(value.charAt(i+3)); | ||
531 | value5 = this.base32map.indexOf(value.charAt(i+4)); | ||
532 | value6 = this.base32map.indexOf(value.charAt(i+5)); | ||
533 | value7 = this.base32map.indexOf(value.charAt(i+6)); | ||
534 | value8 = this.base32map.indexOf(value.charAt(i+7)); | ||
535 | |||
536 | byte1 = byte2 = byte3 = byte4 = byte5 = null; | ||
537 | |||
538 | byte1 = (value1 << 3) | ((value2 & 0x1c) >> 2); | ||
539 | if (value3 != -1) { | ||
540 | byte2 = ((value2 & 0x03) << 6) | (value3 << 1) | ((value4 & 0x10) >> 4); | ||
541 | if (value5 != -1) { | ||
542 | byte3 = ((value4 & 0x0f) << 4) | ((value5 & 0x1e) >> 1); | ||
543 | if (value6 != -1) { | ||
544 | byte4 = ((value5 & 0x01) << 7) | (value6 << 2) | ((value7 & 0x18) >> 3); | ||
545 | if (value8 != -1) { | ||
546 | byte5 = ((value7 & 0x07) << 5) | (value8); | ||
547 | } | ||
548 | } | ||
549 | } | ||
550 | } | ||
551 | |||
552 | this.appendByte(byte1); | ||
553 | this.appendByte(byte2); | ||
554 | this.appendByte(byte3); | ||
555 | this.appendByte(byte4); | ||
556 | this.appendByte(byte5); | ||
557 | |||
558 | i += 8; | ||
559 | } | ||
560 | |||
561 | return this; | ||
562 | }, | ||
563 | |||
564 | //------------------------------------------------------------------------- | ||
565 | |||
566 | 'toBase32String': function() { | ||
567 | var result; | ||
568 | var length; | ||
569 | var i; | ||
570 | var byte1, byte2, byte3, byte4, byte5; | ||
571 | var char1, char2, char3, char4, char5, char6, char7, char8; | ||
572 | |||
573 | i = 0; | ||
574 | length = this.length(); | ||
575 | result = new Array(Math.ceil(length/5)); | ||
576 | |||
577 | while (i < length) { | ||
578 | byte1 = this.byteAtIndex(i); | ||
579 | |||
580 | if ((i+4) < length) { | ||
581 | byte2 = this.byteAtIndex(i+1); | ||
582 | byte3 = this.byteAtIndex(i+2); | ||
583 | byte4 = this.byteAtIndex(i+3); | ||
584 | byte5 = this.byteAtIndex(i+4); | ||
585 | } else if ((i+4) == length) { | ||
586 | byte2 = this.byteAtIndex(i+1); | ||
587 | byte3 = this.byteAtIndex(i+2); | ||
588 | byte4 = this.byteAtIndex(i+3); | ||
589 | byte5 = null; | ||
590 | } else if ((i+3) == length) { | ||
591 | byte2 = this.byteAtIndex(i+1); | ||
592 | byte3 = this.byteAtIndex(i+2); | ||
593 | byte4 = null; | ||
594 | byte5 = null; | ||
595 | } else if ((i+2) == length) { | ||
596 | byte2 = this.byteAtIndex(i+1); | ||
597 | byte3 = null; | ||
598 | byte4 = null; | ||
599 | byte5 = null; | ||
600 | } else { | ||
601 | byte2 = null; | ||
602 | byte3 = null; | ||
603 | byte4 = null; | ||
604 | byte5 = null; | ||
605 | } | ||
606 | |||
607 | |||
608 | char1 = this.base32mapIndex[byte1 >> 3]; | ||
609 | char2 = char3 = char4 = char5 = char6 = char7 = char8 = "="; | ||
610 | |||
611 | if (byte2 != null) { | ||
612 | char2 = this.base32mapIndex[((byte1 & 0x07) << 2) | ((byte2 & 0xc0) >> 6)]; | ||
613 | char3 = this.base32mapIndex[((byte2 & 0x3e) >> 1)]; | ||
614 | if (byte3 != null) { | ||
615 | char4 = this.base32mapIndex[((byte2 & 0x01) << 4) | ((byte3 & 0xf0) >> 4)]; | ||
616 | if (byte4 != null) { | ||
617 | char5 = this.base32mapIndex[((byte3 & 0x0f) << 1) | ((byte4 & 0x80) >> 7)]; | ||
618 | char6 = this.base32mapIndex[(byte4 & 0x7c) >> 2]; | ||
619 | if (byte5 != null) { | ||
620 | char7 = this.base32mapIndex[((byte4 & 0x03) << 3) | ((byte5 & 0xe0) >> 5)]; | ||
621 | char8 = this.base32mapIndex[(byte5 & 0x1f)]; | ||
622 | } else { | ||
623 | char7 = this.base32mapIndex[(byte4 & 0x03) << 3]; | ||
624 | } | ||
625 | } else { | ||
626 | char5 = this.base32mapIndex[(byte3 & 0x0f) << 1]; | ||
627 | } | ||
628 | |||
629 | } else { | ||
630 | char4 = this.base32mapIndex[(byte2 & 0x01) << 4]; | ||
631 | } | ||
632 | } else { | ||
633 | char2 = this.base32mapIndex[(byte1 & 0x07) << 2]; | ||
634 | } | ||
635 | |||
636 | result.push(char1 + char2 + char3 + char4 + char5 + char6 + char7 + char8); | ||
637 | i += 5; | ||
638 | } | ||
639 | |||
640 | return result.join(""); | ||
641 | }, | ||
642 | |||
643 | //------------------------------------------------------------------------- | ||
644 | |||
645 | 'toBinaryString': function () { | ||
646 | vari, c; | ||
647 | var result; | ||
648 | |||
649 | result = ''; | ||
650 | |||
651 | c = this.length(); | ||
652 | for (i=0; i<c; i++) { | ||
653 | result += String.fromCharCode(this.byteAtIndex(i)); | ||
654 | } | ||
655 | |||
656 | return result; | ||
657 | }, | ||
658 | |||
659 | |||
660 | //------------------------------------------------------------------------- | ||
661 | |||
662 | 'split': function(aStartingIndex, anEndingIndex) { | ||
663 | throw Clipperz.Base.exception.AbstractMethod; | ||
664 | }, | ||
665 | |||
666 | //------------------------------------------------------------------------- | ||
667 | |||
668 | 'increment': function() { | ||
669 | var i; | ||
670 | var done; | ||
671 | |||
672 | done = false; | ||
673 | i = this.length() - 1; | ||
674 | |||
675 | while ((i>=0) && (done == false)) { | ||
676 | var currentByteValue; | ||
677 | |||
678 | currentByteValue = this.byteAtIndex(i); | ||
679 | |||
680 | if (currentByteValue == 0xff) { | ||
681 | this.setByteAtIndex(0, i); | ||
682 | if (i>= 0) { | ||
683 | i --; | ||
684 | } else { | ||
685 | done = true; | ||
686 | } | ||
687 | } else { | ||
688 | this.setByteAtIndex(currentByteValue + 1, i); | ||
689 | done = true; | ||
690 | } | ||
691 | } | ||
692 | }, | ||
693 | |||
694 | //------------------------------------------------------------------------- | ||
695 | |||
696 | 'arrayValues': function() { | ||
697 | throw Clipperz.Base.exception.AbstractMethod; | ||
698 | }, | ||
699 | |||
700 | //------------------------------------------------------------------------- | ||
701 | __syntaxFix__: "syntax fix" | ||
702 | |||
703 | }); | ||
704 | |||
705 | //============================================================================= | ||
706 | // | ||
707 | //Clipperz.ByteArray_hex | ||
708 | // | ||
709 | //============================================================================= | ||
710 | /* | ||
711 | Clipperz.ByteArray_hex = function (args) { | ||
712 | this._value = ""; | ||
713 | |||
714 | if (typeof(args) != 'undefined') { | ||
715 | if (args.constructor == Array) { | ||
716 | this.appendBytes(args); | ||
717 | } else if (args.constructor == String) { | ||
718 | if (args.indexOf("0x") == 0) { | ||
719 | varvalue; | ||
720 | |||
721 | value = args.substring(2).toLowerCase(); | ||
722 | if (/[0123456789abcdef]* /.test(value)) { the space in the regexp shoud be removed if the code is activate | ||
723 | if ((value.length % 2) == 0) { | ||
724 | this._value = value; | ||
725 | } else { | ||
726 | this._value = "0" + value; | ||
727 | } | ||
728 | } else { | ||
729 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | ||
730 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
731 | } | ||
732 | } else { | ||
733 | varvalue; | ||
734 | vari,c; | ||
735 | |||
736 | c = args.length; | ||
737 | value = new Array(c); | ||
738 | for (i=0; i<c; i++) { | ||
739 | value.push(Clipperz.ByteArray.unicodeToUtf8HexString(args.charCodeAt(i))); | ||
740 | } | ||
741 | |||
742 | this._value = value.join(""); | ||
743 | } | ||
744 | } else { | ||
745 | this.appendBytes(MochiKit.Base.extend(null, arguments)); | ||
746 | } | ||
747 | } | ||
748 | return this; | ||
749 | } | ||
750 | |||
751 | Clipperz.ByteArray_hex.prototype = MochiKit.Base.update(new Clipperz.ByteArray_abstract(), { | ||
752 | |||
753 | //------------------------------------------------------------------------- | ||
754 | |||
755 | 'toString': function() { | ||
756 | return "Clipperz.ByteArray_hex"; | ||
757 | }, | ||
758 | |||
759 | //------------------------------------------------------------------------- | ||
760 | |||
761 | 'clone': function() { | ||
762 | var result; | ||
763 | |||
764 | result = this.newInstance(); | ||
765 | result._value = this._value; | ||
766 | |||
767 | return result; | ||
768 | }, | ||
769 | |||
770 | //------------------------------------------------------------------------- | ||
771 | |||
772 | 'newInstance': function() { | ||
773 | return new Clipperz.ByteArray_hex(); | ||
774 | }, | ||
775 | |||
776 | //------------------------------------------------------------------------- | ||
777 | |||
778 | 'reset': function() { | ||
779 | this._value = ""; | ||
780 | }, | ||
781 | |||
782 | //------------------------------------------------------------------------- | ||
783 | |||
784 | 'length': function() { | ||
785 | return (this._value.length / 2); | ||
786 | }, | ||
787 | |||
788 | //------------------------------------------------------------------------- | ||
789 | |||
790 | 'appendBlock': function(aBlock) { | ||
791 | this._value = this._value += aBlock.toHexString().substring(2); | ||
792 | |||
793 | return this; | ||
794 | }, | ||
795 | |||
796 | //------------------------------------------------------------------------- | ||
797 | |||
798 | 'appendByte': function(aValue) { | ||
799 | if (aValue != null) { | ||
800 | this.checkByteValue(aValue); | ||
801 | this._value += Clipperz.ByteArray.byteToHex(aValue); | ||
802 | } | ||
803 | |||
804 | return this; | ||
805 | }, | ||
806 | |||
807 | //------------------------------------------------------------------------- | ||
808 | |||
809 | 'byteAtIndex': function(anIndex) { | ||
810 | return parseInt(this._value.substr(anIndex*2, 2), 16); | ||
811 | }, | ||
812 | |||
813 | 'setByteAtIndex': function(aValue, anIndex) { | ||
814 | varmissingBytes; | ||
815 | |||
816 | this.checkByteValue(aValue); | ||
817 | |||
818 | missingBytes = anIndex - this.length(); | ||
819 | |||
820 | if (missingBytes < 0) { | ||
821 | varcurrentValue; | ||
822 | varfirstCutIndex; | ||
823 | var secondCutIndex; | ||
824 | |||
825 | firstCutIndex = anIndex * 2; | ||
826 | secondCutIndex = firstCutIndex + 2; | ||
827 | currentValue = this._value; | ||
828 | this._value =currentValue.substring(0, firstCutIndex) + | ||
829 | Clipperz.ByteArray.byteToHex(aValue) + | ||
830 | currentValue.substring(secondCutIndex); | ||
831 | } else if (missingBytes == 0) { | ||
832 | this.appendByte(aValue); | ||
833 | } else { | ||
834 | var i,c; | ||
835 | |||
836 | c = missingBytes; | ||
837 | for (i=0; i<c; i++) { | ||
838 | this.appendByte(0); | ||
839 | } | ||
840 | |||
841 | this.appendByte(aValue); | ||
842 | } | ||
843 | }, | ||
844 | |||
845 | //------------------------------------------------------------------------- | ||
846 | |||
847 | 'toHexString': function() { | ||
848 | return "0x" + this._value; | ||
849 | }, | ||
850 | |||
851 | //------------------------------------------------------------------------- | ||
852 | |||
853 | 'split': function(aStartingIndex, anEndingIndex) { | ||
854 | var result; | ||
855 | varstartingIndex; | ||
856 | var endingIndex; | ||
857 | |||
858 | result = this.newInstance(); | ||
859 | |||
860 | startingIndex = aStartingIndex * 2; | ||
861 | if (typeof(anEndingIndex) != 'undefined') { | ||
862 | endingIndex = anEndingIndex * 2; | ||
863 | result._value = this._value.substring(startingIndex, endingIndex); | ||
864 | } else { | ||
865 | result._value = this._value.substring(startingIndex); | ||
866 | } | ||
867 | |||
868 | return result; | ||
869 | }, | ||
870 | |||
871 | //------------------------------------------------------------------------- | ||
872 | |||
873 | 'arrayValues': function() { | ||
874 | var result; | ||
875 | var i,c; | ||
876 | |||
877 | c = this.length(); | ||
878 | |||
879 | result = new Array(c); | ||
880 | for (i=0; i<c; i++) { | ||
881 | result[i] = this.byteAtIndex(i); | ||
882 | } | ||
883 | |||
884 | return result; | ||
885 | }, | ||
886 | |||
887 | //------------------------------------------------------------------------- | ||
888 | __syntaxFix__: "syntax fix" | ||
889 | }); | ||
890 | */ | ||
891 | |||
892 | //============================================================================= | ||
893 | // | ||
894 | //Clipperz.ByteArray_array | ||
895 | // | ||
896 | //============================================================================= | ||
897 | |||
898 | Clipperz.ByteArray_array = function (args) { | ||
899 | if (typeof(args) != 'undefined') { | ||
900 | if (args.constructor == Array) { | ||
901 | this._value = args.slice(0); | ||
902 | } else if (args.constructor == String) { | ||
903 | var result; | ||
904 | varvalue; | ||
905 | var i, c; | ||
906 | |||
907 | if (args.indexOf("0x") == 0) { | ||
908 | |||
909 | value = args.substring(2).toLowerCase(); | ||
910 | if (/[0123456789abcdef]*/.test(value)) { | ||
911 | if ((value.length % 2) != 0) { | ||
912 | value = "0" + value; | ||
913 | } | ||
914 | } else { | ||
915 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | ||
916 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
917 | } | ||
918 | |||
919 | c = value.length / 2 | ||
920 | result = new Array(c); | ||
921 | for (i=0; i<c; i++) { | ||
922 | result[i] = parseInt(value.substr(i*2, 2), 16); | ||
923 | } | ||
924 | |||
925 | } else { | ||
926 | var unicode; | ||
927 | result = []; | ||
928 | c = args.length; | ||
929 | for (i=0; i<c; i++) { | ||
930 | // Clipperz.ByteArray.pushUtf8BytesOfUnicodeChar(result, args.charCodeAt(i)); | ||
931 | |||
932 | unicode = args.charCodeAt(i); | ||
933 | if (unicode <= 0x7f) { //0x00000000 - 0x0000007f -> 0xxxxxxx | ||
934 | result.push(unicode); | ||
935 | // } else if ((unicode >= 0x80) && (unicode <= 0x7ff)) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
936 | } else if (unicode <= 0x7ff) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
937 | result.push((unicode >> 6) | 0xc0); | ||
938 | result.push((unicode & 0x3F) | 0x80); | ||
939 | // } else if ((unicode >= 0x0800) && (unicode <= 0xffff)) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
940 | } else if (unicode <= 0xffff) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
941 | result.push((unicode >> 12) | 0xe0); | ||
942 | result.push(((unicode >> 6) & 0x3f) | 0x80); | ||
943 | result.push((unicode & 0x3f) | 0x80); | ||
944 | } else { //0x00010000 - 0x001fffff -> 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | ||
945 | result.push((unicode >> 18) | 0xf0); | ||
946 | result.push(((unicode >> 12) & 0x3f) | 0x80); | ||
947 | result.push(((unicode >> 6) & 0x3f) | 0x80); | ||
948 | result.push((unicode & 0x3f) | 0x80); | ||
949 | } | ||
950 | } | ||
951 | } | ||
952 | |||
953 | |||
954 | this._value = result; | ||
955 | } else { | ||
956 | this._value = []; | ||
957 | this.appendBytes(MochiKit.Base.extend(null, arguments)); | ||
958 | } | ||
959 | } else { | ||
960 | this._value = []; | ||
961 | } | ||
962 | |||
963 | return this; | ||
964 | } | ||
965 | |||
966 | Clipperz.ByteArray_array.prototype = MochiKit.Base.update(new Clipperz.ByteArray_abstract(), { | ||
967 | |||
968 | //------------------------------------------------------------------------- | ||
969 | |||
970 | 'toString': function() { | ||
971 | return "Clipperz.ByteArray_array"; | ||
972 | }, | ||
973 | |||
974 | //------------------------------------------------------------------------- | ||
975 | |||
976 | 'clone': function() { | ||
977 | var result; | ||
978 | |||
979 | result = this.newInstance(); | ||
980 | result.appendBytes(this._value); | ||
981 | |||
982 | return result; | ||
983 | }, | ||
984 | |||
985 | //------------------------------------------------------------------------- | ||
986 | |||
987 | 'newInstance': function() { | ||
988 | return new Clipperz.ByteArray_array(); | ||
989 | }, | ||
990 | |||
991 | //------------------------------------------------------------------------- | ||
992 | |||
993 | 'reset': function() { | ||
994 | this._value = []; | ||
995 | }, | ||
996 | |||
997 | //------------------------------------------------------------------------- | ||
998 | |||
999 | 'length': function() { | ||
1000 | return (this._value.length); | ||
1001 | }, | ||
1002 | |||
1003 | //------------------------------------------------------------------------- | ||
1004 | |||
1005 | 'appendBlock': function(aBlock) { | ||
1006 | MochiKit.Base.extend(this._value, aBlock._value); | ||
1007 | |||
1008 | return this; | ||
1009 | }, | ||
1010 | |||
1011 | //------------------------------------------------------------------------- | ||
1012 | |||
1013 | 'appendByte': function(aValue) { | ||
1014 | if (aValue != null) { | ||
1015 | this.checkByteValue(aValue); | ||
1016 | this._value.push(aValue); | ||
1017 | } | ||
1018 | |||
1019 | return this; | ||
1020 | }, | ||
1021 | |||
1022 | //------------------------------------------------------------------------- | ||
1023 | |||
1024 | 'byteAtIndex': function(anIndex) { | ||
1025 | return this._value[anIndex]; | ||
1026 | }, | ||
1027 | |||
1028 | 'setByteAtIndex': function(aValue, anIndex) { | ||
1029 | varmissingBytes; | ||
1030 | |||
1031 | this.checkByteValue(aValue); | ||
1032 | |||
1033 | missingBytes = anIndex - this.length(); | ||
1034 | |||
1035 | if (missingBytes < 0) { | ||
1036 | this._value[anIndex] = aValue; | ||
1037 | } else if (missingBytes == 0) { | ||
1038 | this._value.push(aValue); | ||
1039 | } else { | ||
1040 | var i,c; | ||
1041 | |||
1042 | c = missingBytes; | ||
1043 | for (i=0; i<c; i++) { | ||
1044 | this._value.push(0); | ||
1045 | } | ||
1046 | |||
1047 | this._value.push(aValue); | ||
1048 | } | ||
1049 | }, | ||
1050 | |||
1051 | //------------------------------------------------------------------------- | ||
1052 | |||
1053 | 'toHexString': function() { | ||
1054 | var result; | ||
1055 | var i, c; | ||
1056 | |||
1057 | result = "0x"; | ||
1058 | c = this.length(); | ||
1059 | for (i=0; i<c; i++) { | ||
1060 | result += Clipperz.ByteArray.byteToHex(this._value[i]); | ||
1061 | } | ||
1062 | |||
1063 | return result; | ||
1064 | }, | ||
1065 | |||
1066 | //------------------------------------------------------------------------- | ||
1067 | |||
1068 | 'split': function(aStartingIndex, anEndingIndex) { | ||
1069 | var result; | ||
1070 | |||
1071 | result = this.newInstance(); | ||
1072 | result._value = this._value.slice(aStartingIndex, anEndingIndex ? anEndingIndex : this.length()); | ||
1073 | |||
1074 | return result; | ||
1075 | }, | ||
1076 | |||
1077 | //------------------------------------------------------------------------- | ||
1078 | |||
1079 | 'arrayValues': function() { | ||
1080 | return this._value.slice(0); | ||
1081 | }, | ||
1082 | |||
1083 | //------------------------------------------------------------------------- | ||
1084 | __syntaxFix__: "syntax fix" | ||
1085 | }); | ||
1086 | |||
1087 | |||
1088 | |||
1089 | |||
1090 | |||
1091 | //============================================================================= | ||
1092 | // | ||
1093 | //Clipperz.ByteArray_string | ||
1094 | // | ||
1095 | //============================================================================= | ||
1096 | /* | ||
1097 | Clipperz.ByteArray_string = function (args) { | ||
1098 | this._value = ""; | ||
1099 | |||
1100 | if (typeof(args) != 'undefined') { | ||
1101 | if (args.constructor == Array) { | ||
1102 | this.appendBytes(args); | ||
1103 | } else if (args.constructor == String) { | ||
1104 | var result; | ||
1105 | varvalue; | ||
1106 | var i, c; | ||
1107 | |||
1108 | if (args.indexOf("0x") == 0) { | ||
1109 | |||
1110 | value = args.substring(2).toLowerCase(); | ||
1111 | if (/[0123456789abcdef]* /.test(value)) { the space in the regexp shoud be removed if the code is activated | ||
1112 | if ((value.length % 2) != 0) { | ||
1113 | value = "0" + value; | ||
1114 | } | ||
1115 | } else { | ||
1116 | MochiKit.Logging.logError("Clipperz.ByteArray should be inizialized with an hex string."); | ||
1117 | throw Clipperz.ByteArray.exception.InvalidValue; | ||
1118 | } | ||
1119 | } else { | ||
1120 | value = ""; | ||
1121 | c = args.length; | ||
1122 | for (i=0; i<c; i++) { | ||
1123 | value += Clipperz.ByteArray.unicodeToUtf8HexString(args.charCodeAt(i)); | ||
1124 | } | ||
1125 | } | ||
1126 | |||
1127 | c = value.length / 2 | ||
1128 | for (i=0; i<c; i++) { | ||
1129 | this.appendByte(parseInt(value.substr(i*2, 2), 16)); | ||
1130 | } | ||
1131 | } else { | ||
1132 | this.appendBytes(MochiKit.Base.extend(null, arguments)); | ||
1133 | } | ||
1134 | } | ||
1135 | |||
1136 | return this; | ||
1137 | } | ||
1138 | |||
1139 | Clipperz.ByteArray_string.prototype = MochiKit.Base.update(new Clipperz.ByteArray_abstract(), { | ||
1140 | |||
1141 | //------------------------------------------------------------------------- | ||
1142 | |||
1143 | 'toString': function() { | ||
1144 | return "Clipperz.ByteArray_string"; | ||
1145 | }, | ||
1146 | |||
1147 | //------------------------------------------------------------------------- | ||
1148 | |||
1149 | 'clone': function() { | ||
1150 | var result; | ||
1151 | |||
1152 | result = this.newInstance(); | ||
1153 | result._value = this._value; | ||
1154 | |||
1155 | return result; | ||
1156 | }, | ||
1157 | |||
1158 | //------------------------------------------------------------------------- | ||
1159 | |||
1160 | 'newInstance': function() { | ||
1161 | return new Clipperz.ByteArray_string(); | ||
1162 | }, | ||
1163 | |||
1164 | //------------------------------------------------------------------------- | ||
1165 | |||
1166 | 'reset': function() { | ||
1167 | this._value = ""; | ||
1168 | }, | ||
1169 | |||
1170 | //------------------------------------------------------------------------- | ||
1171 | |||
1172 | 'length': function() { | ||
1173 | return (this._value.length); | ||
1174 | }, | ||
1175 | |||
1176 | //------------------------------------------------------------------------- | ||
1177 | |||
1178 | 'appendBlock': function(aBlock) { | ||
1179 | this._value += aBlock._value; | ||
1180 | |||
1181 | return this; | ||
1182 | }, | ||
1183 | |||
1184 | //------------------------------------------------------------------------- | ||
1185 | |||
1186 | 'appendByte': function(aValue) { | ||
1187 | if (aValue != null) { | ||
1188 | this.checkByteValue(aValue); | ||
1189 | this._value += String.fromCharCode(aValue); | ||
1190 | } | ||
1191 | |||
1192 | return this; | ||
1193 | }, | ||
1194 | |||
1195 | //------------------------------------------------------------------------- | ||
1196 | |||
1197 | 'byteAtIndex': function(anIndex) { | ||
1198 | return this._value.charCodeAt(anIndex); | ||
1199 | }, | ||
1200 | |||
1201 | 'setByteAtIndex': function(aValue, anIndex) { | ||
1202 | varmissingBytes; | ||
1203 | |||
1204 | this.checkByteValue(aValue); | ||
1205 | |||
1206 | missingBytes = anIndex - this.length(); | ||
1207 | |||
1208 | if (missingBytes < 0) { | ||
1209 | this._value = this._value.substring(0, anIndex) + String.fromCharCode(aValue) + this._value.substring(anIndex + 1); | ||
1210 | } else if (missingBytes == 0) { | ||
1211 | this.appendByte(aValue); | ||
1212 | } else { | ||
1213 | var i,c; | ||
1214 | |||
1215 | c = missingBytes; | ||
1216 | for (i=0; i<c; i++) { | ||
1217 | this.appendByte(0); | ||
1218 | } | ||
1219 | |||
1220 | this.appendByte(aValue); | ||
1221 | } | ||
1222 | }, | ||
1223 | |||
1224 | //------------------------------------------------------------------------- | ||
1225 | |||
1226 | 'toHexString': function() { | ||
1227 | var result; | ||
1228 | var i, c; | ||
1229 | |||
1230 | result = "0x"; | ||
1231 | c = this.length(); | ||
1232 | for (i=0; i<c; i++) { | ||
1233 | result += Clipperz.ByteArray.byteToHex(this.byteAtIndex(i)); | ||
1234 | } | ||
1235 | |||
1236 | return result; | ||
1237 | }, | ||
1238 | |||
1239 | //------------------------------------------------------------------------- | ||
1240 | |||
1241 | 'split': function(aStartingIndex, anEndingIndex) { | ||
1242 | var result; | ||
1243 | result = this.newInstance(); | ||
1244 | result._value = this._value.substring(aStartingIndex, anEndingIndex ? anEndingIndex : this.length()); | ||
1245 | |||
1246 | return result; | ||
1247 | }, | ||
1248 | |||
1249 | //------------------------------------------------------------------------- | ||
1250 | |||
1251 | 'arrayValues': function() { | ||
1252 | var result; | ||
1253 | var i,c; | ||
1254 | |||
1255 | c = this.length(); | ||
1256 | |||
1257 | result = new Array(c); | ||
1258 | for (i=0; i<c; i++) { | ||
1259 | result[i] = this.byteAtIndex(i); | ||
1260 | } | ||
1261 | |||
1262 | return result; | ||
1263 | }, | ||
1264 | |||
1265 | //------------------------------------------------------------------------- | ||
1266 | __syntaxFix__: "syntax fix" | ||
1267 | }); | ||
1268 | */ | ||
1269 | |||
1270 | //============================================================================= | ||
1271 | // | ||
1272 | //Clipperz.ByteArray | ||
1273 | // | ||
1274 | //============================================================================= | ||
1275 | |||
1276 | Clipperz.ByteArray = Clipperz.ByteArray_array; | ||
1277 | //Clipperz.ByteArray = Clipperz.ByteArray_string; | ||
1278 | //Clipperz.ByteArray = Clipperz.ByteArray_hex; | ||
1279 | |||
1280 | //############################################################################# | ||
1281 | |||
1282 | Clipperz.ByteArray.byteToHex = function(aByte) { | ||
1283 | return ((aByte < 16) ? "0" : "") + aByte.toString(16); | ||
1284 | } | ||
1285 | |||
1286 | |||
1287 | Clipperz.ByteArray.unicodeToUtf8HexString = function(aUnicode) { | ||
1288 | var result; | ||
1289 | varself; | ||
1290 | |||
1291 | self = Clipperz.ByteArray; | ||
1292 | |||
1293 | if (aUnicode <= 0x7f) { //0x00000000 - 0x0000007f -> 0xxxxxxx | ||
1294 | result = self.byteToHex(aUnicode); | ||
1295 | // } else if ((aUnicode >= 0x80) && (aUnicode <= 0x7ff)) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
1296 | } else if (aUnicode <= 0x7ff) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
1297 | result = self.byteToHex((aUnicode >> 6) | 0xc0); | ||
1298 | result += self.byteToHex((aUnicode & 0x3F) | 0x80); | ||
1299 | // } else if ((aUnicode >= 0x0800) && (aUnicode <= 0xffff)) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
1300 | } else if (aUnicode <= 0xffff) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
1301 | result = self.byteToHex((aUnicode >> 12) | 0xe0); | ||
1302 | result += self.byteToHex(((aUnicode >> 6) & 0x3f) | 0x80); | ||
1303 | result += self.byteToHex((aUnicode & 0x3f) | 0x80); | ||
1304 | } else { //0x00010000 - 0x001fffff -> 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | ||
1305 | result = self.byteToHex((aUnicode >> 18) | 0xf0); | ||
1306 | result += self.byteToHex(((aUnicode >> 12) & 0x3f) | 0x80); | ||
1307 | result += self.byteToHex(((aUnicode >> 6) & 0x3f) | 0x80); | ||
1308 | result += self.byteToHex((aUnicode & 0x3f) | 0x80); | ||
1309 | } | ||
1310 | |||
1311 | return result; | ||
1312 | } | ||
1313 | |||
1314 | Clipperz.ByteArray.pushUtf8BytesOfUnicodeChar = function(anArray, aUnicode) { | ||
1315 | varself; | ||
1316 | |||
1317 | self = Clipperz.ByteArray; | ||
1318 | |||
1319 | if (aUnicode <= 0x7f) { //0x00000000 - 0x0000007f -> 0xxxxxxx | ||
1320 | anArray.push(aUnicode); | ||
1321 | // } else if ((aUnicode >= 0x80) && (aUnicode <= 0x7ff)) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
1322 | } else if (aUnicode <= 0x7ff) { //0x00000080 - 0x000007ff -> 110xxxxx 10xxxxxx | ||
1323 | anArray.push((aUnicode >> 6) | 0xc0); | ||
1324 | anArray.push((aUnicode & 0x3F) | 0x80); | ||
1325 | // } else if ((aUnicode >= 0x0800) && (aUnicode <= 0xffff)) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
1326 | } else if (aUnicode <= 0xffff) { //0x00000800 - 0x0000ffff -> 1110xxxx 10xxxxxx 10xxxxxx | ||
1327 | anArray.push((aUnicode >> 12) | 0xe0); | ||
1328 | anArray.push(((aUnicode >> 6) & 0x3f) | 0x80); | ||
1329 | anArray.push((aUnicode & 0x3f) | 0x80); | ||
1330 | } else { //0x00010000 - 0x001fffff -> 11110xxx 10xxxxxx 10xxxxxx 10xxxxxx | ||
1331 | anArray.push((aUnicode >> 18) | 0xf0); | ||
1332 | anArray.push(((aUnicode >> 12) & 0x3f) | 0x80); | ||
1333 | anArray.push(((aUnicode >> 6) & 0x3f) | 0x80); | ||
1334 | anArray.push((aUnicode & 0x3f) | 0x80); | ||
1335 | } | ||
1336 | } | ||
1337 | |||
1338 | Clipperz.ByteArray.prefixMatchingBits = function (aValue, bValue) { | ||
1339 | varresult; | ||
1340 | var i,c; | ||
1341 | |||
1342 | result = 0; | ||
1343 | |||
1344 | c = Math.min(aValue.length(), bValue.length()); | ||
1345 | i = 0; | ||
1346 | while (i<c && (aValue.byteAtIndex(i) == bValue.byteAtIndex(i))) { | ||
1347 | result += 8; | ||
1348 | i++; | ||
1349 | } | ||
1350 | |||
1351 | if (i<c) { | ||
1352 | varxorValue; | ||
1353 | |||
1354 | xorValue = (aValue.byteAtIndex(i) ^ bValue.byteAtIndex(i)); | ||
1355 | |||
1356 | if (xorValue >= 128) { | ||
1357 | result += 0; | ||
1358 | } else if (xorValue >= 64) { | ||
1359 | result += 1; | ||
1360 | } else if (xorValue >= 32) { | ||
1361 | result += 2; | ||
1362 | } else if (xorValue >= 16) { | ||
1363 | result += 3; | ||
1364 | } else if (xorValue >= 8) { | ||
1365 | result += 4; | ||
1366 | } else if (xorValue >= 4) { | ||
1367 | result += 5; | ||
1368 | } else if (xorValue >= 2) { | ||
1369 | result += 6; | ||
1370 | } else if (xorValue >= 1) { | ||
1371 | result += 7; | ||
1372 | } | ||
1373 | } | ||
1374 | |||
1375 | return result; | ||
1376 | }; | ||
1377 | |||
1378 | Clipperz.ByteArray.exception = { | ||
1379 | InvalidValue: new MochiKit.Base.NamedError("Clipperz.ByteArray.exception.InvalidValue") | ||
1380 | }; | ||
1381 | |||
1382 | //############################################################################# | ||
1383 | |||
1384 | Clipperz.ByteArrayIterator = function(args) { | ||
1385 | args = args || {}; | ||
1386 | |||
1387 | this._byteArray = args.byteArray; | ||
1388 | this._blockSize = args.blockSize; | ||
1389 | this._finalPadding = args.finalPadding || false; | ||
1390 | |||
1391 | this._currentPosition = 0; | ||
1392 | |||
1393 | return this; | ||
1394 | } | ||
1395 | |||
1396 | Clipperz.ByteArrayIterator.prototype = MochiKit.Base.update(null, { | ||
1397 | |||
1398 | //------------------------------------------------------------------------- | ||
1399 | |||
1400 | 'toString': function() { | ||
1401 | return "Clipperz.ByteArrayIterator"; | ||
1402 | }, | ||
1403 | |||
1404 | //------------------------------------------------------------------------- | ||
1405 | |||
1406 | 'blockSize': function() { | ||
1407 | var result; | ||
1408 | |||
1409 | result = this._blockSize; | ||
1410 | |||
1411 | return result; | ||
1412 | }, | ||
1413 | |||
1414 | //------------------------------------------------------------------------- | ||
1415 | |||
1416 | 'currentPosition': function() { | ||
1417 | var result; | ||
1418 | |||
1419 | result = this._currentPosition; | ||
1420 | |||
1421 | return result; | ||
1422 | }, | ||
1423 | |||
1424 | //------------------------------------------------------------------------- | ||
1425 | |||
1426 | 'byteArray': function() { | ||
1427 | var result; | ||
1428 | |||
1429 | result = this._byteArray; | ||
1430 | |||
1431 | return result; | ||
1432 | }, | ||
1433 | |||
1434 | //------------------------------------------------------------------------- | ||
1435 | |||
1436 | 'finalPadding': function() { | ||
1437 | var result; | ||
1438 | |||
1439 | result = this._finalPadding; | ||
1440 | |||
1441 | return result; | ||
1442 | }, | ||
1443 | |||
1444 | //------------------------------------------------------------------------- | ||
1445 | |||
1446 | 'nextBlock': function() { | ||
1447 | var result; | ||
1448 | var currentPosition; | ||
1449 | varbyteArrayLength; | ||
1450 | |||
1451 | currentPosition = this._currentPosition; | ||
1452 | byteArrayLength = this.byteArray().length(); | ||
1453 | |||
1454 | if (currentPosition < byteArrayLength) { | ||
1455 | var i,c; | ||
1456 | |||
1457 | c = this.blockSize(); | ||
1458 | result = new Array(c); | ||
1459 | for (i=0; i<c; i++) { | ||
1460 | if (currentPosition < byteArrayLength) { | ||
1461 | result[i] = this.byteArray().byteAtIndex(currentPosition); | ||
1462 | currentPosition++; | ||
1463 | } else if (this.finalPadding() == true) { | ||
1464 | result[i] = 0; | ||
1465 | } | ||
1466 | } | ||
1467 | |||
1468 | this._currentPosition = currentPosition; | ||
1469 | } else { | ||
1470 | result = null; | ||
1471 | } | ||
1472 | |||
1473 | return result; | ||
1474 | }, | ||
1475 | |||
1476 | //------------------------------------------------------------------------- | ||
1477 | |||
1478 | 'nextBlockArray': function() { | ||
1479 | var result; | ||
1480 | var nextBlock; | ||
1481 | |||
1482 | nextBlock = this.nextBlock(); | ||
1483 | |||
1484 | if (nextBlock != null) { | ||
1485 | result = new Clipperz.ByteArray(nextBlock); | ||
1486 | } else { | ||
1487 | result = null; | ||
1488 | } | ||
1489 | |||
1490 | return result; | ||
1491 | }, | ||
1492 | |||
1493 | //----------------------------------------------------------------------------- | ||
1494 | __syntaxFix__: "syntax fix" | ||
1495 | |||
1496 | }); | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Curve.js b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Curve.js new file mode 100644 index 0000000..9c61bab --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Curve.js | |||
@@ -0,0 +1,545 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | //try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | //throw "Clipperz.Crypto.ECC depends on Clipperz.ByteArray!"; | ||
26 | //} | ||
27 | if (typeof(Clipperz.Crypto.ECC) == 'undefined') { Clipperz.Crypto.ECC = {}; } | ||
28 | if (typeof(Clipperz.Crypto.ECC.BinaryField) == 'undefined') { Clipperz.Crypto.ECC.BinaryField = {}; } | ||
29 | |||
30 | Clipperz.Crypto.ECC.BinaryField.Curve = function(args) { | ||
31 | args = args || {}; | ||
32 | |||
33 | this._modulus = args.modulus; | ||
34 | |||
35 | this._a = args.a; | ||
36 | this._b = args.b; | ||
37 | this._G = args.G; | ||
38 | this._r = args.r; | ||
39 | this._h = args.h; | ||
40 | |||
41 | this._finiteField = null; | ||
42 | |||
43 | return this; | ||
44 | } | ||
45 | |||
46 | Clipperz.Crypto.ECC.BinaryField.Curve.prototype = MochiKit.Base.update(null, { | ||
47 | |||
48 | 'asString': function() { | ||
49 | return "Clipperz.Crypto.ECC.BinaryField.Curve"; | ||
50 | }, | ||
51 | |||
52 | //----------------------------------------------------------------------------- | ||
53 | |||
54 | 'modulus': function() { | ||
55 | return this._modulus; | ||
56 | }, | ||
57 | |||
58 | 'a': function() { | ||
59 | return this._a; | ||
60 | }, | ||
61 | |||
62 | 'b': function() { | ||
63 | return this._b; | ||
64 | }, | ||
65 | |||
66 | 'G': function() { | ||
67 | return this._G; | ||
68 | }, | ||
69 | |||
70 | 'r': function() { | ||
71 | return this._r; | ||
72 | }, | ||
73 | |||
74 | 'h': function() { | ||
75 | return this._h; | ||
76 | }, | ||
77 | |||
78 | //----------------------------------------------------------------------------- | ||
79 | |||
80 | 'finiteField': function() { | ||
81 | if (this._finiteField == null) { | ||
82 | this._finiteField = new Clipperz.Crypto.ECC.BinaryField.FiniteField({modulus:this.modulus()}) | ||
83 | } | ||
84 | |||
85 | return this._finiteField; | ||
86 | }, | ||
87 | |||
88 | //----------------------------------------------------------------------------- | ||
89 | |||
90 | 'negate': function(aPointA) { | ||
91 | var result; | ||
92 | |||
93 | result = new Clipperz.Crypto.ECC.Point({x:aPointA.x(), y:this.finiteField().add(aPointA.y(), aPointA.x())}) | ||
94 | |||
95 | return result; | ||
96 | }, | ||
97 | |||
98 | //----------------------------------------------------------------------------- | ||
99 | |||
100 | 'add': function(aPointA, aPointB) { | ||
101 | var result; | ||
102 | |||
103 | //console.log(">>> ECC.BinaryField.Curve.add"); | ||
104 | if (aPointA.isZero()) { | ||
105 | //console.log("--- pointA == zero"); | ||
106 | result = aPointB; | ||
107 | } else if (aPointB.isZero()) { | ||
108 | //console.log("--- pointB == zero"); | ||
109 | result = aPointA; | ||
110 | } else if ((aPointA.x().compare(aPointB.x()) == 0) && ((aPointA.y().compare(aPointB.y()) != 0) || aPointB.x().isZero())) { | ||
111 | //console.log("compare A.x - B.x: ", aPointA.x().compare(aPointB.x())); | ||
112 | //console.log("compare A.y - B.y: ", (aPointA.y().compare(aPointB.y()) != 0)); | ||
113 | //console.log("compare B.x.isZero(): ", aPointB.x().isZero()); | ||
114 | |||
115 | //console.log("--- result = zero"); | ||
116 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | ||
117 | } else { | ||
118 | //console.log("--- result = ELSE"); | ||
119 | varf2m; | ||
120 | var x, y; | ||
121 | var lambda; | ||
122 | var aX, aY, bX, bY; | ||
123 | |||
124 | aX = aPointA.x()._value; | ||
125 | aY = aPointA.y()._value; | ||
126 | bX = aPointB.x()._value; | ||
127 | bY = aPointB.y()._value; | ||
128 | |||
129 | f2m = this.finiteField(); | ||
130 | |||
131 | if (aPointA.x().compare(aPointB.x()) != 0) { | ||
132 | //console.log(" a.x != b.x"); | ||
133 | lambda =f2m._fastMultiply( | ||
134 | f2m._add(aY, bY), | ||
135 | f2m._inverse(f2m._add(aX, bX)) | ||
136 | ); | ||
137 | x = f2m._add(this.a()._value, f2m._square(lambda)); | ||
138 | f2m._overwriteAdd(x, lambda); | ||
139 | f2m._overwriteAdd(x, aX); | ||
140 | f2m._overwriteAdd(x, bX); | ||
141 | } else { | ||
142 | //console.log(" a.x == b.x"); | ||
143 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); | ||
144 | //console.log(" lambda: " + lambda.asString(16)); | ||
145 | x = f2m._add(this.a()._value, f2m._square(lambda)); | ||
146 | //console.log(" x (step 1): " + x.asString(16)); | ||
147 | f2m._overwriteAdd(x, lambda); | ||
148 | //console.log(" x (step 2): " + x.asString(16)); | ||
149 | } | ||
150 | |||
151 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); | ||
152 | //console.log(" y (step 1): " + y.asString(16)); | ||
153 | f2m._overwriteAdd(y, x); | ||
154 | //console.log(" y (step 2): " + y.asString(16)); | ||
155 | f2m._overwriteAdd(y, bY); | ||
156 | //console.log(" y (step 3): " + y.asString(16)); | ||
157 | |||
158 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) | ||
159 | } | ||
160 | //console.log("<<< ECC.BinaryField.Curve.add"); | ||
161 | |||
162 | return result; | ||
163 | }, | ||
164 | |||
165 | //----------------------------------------------------------------------------- | ||
166 | |||
167 | 'addTwice': function(aPointA) { | ||
168 | return this.add(aPointA, aPointA); | ||
169 | }, | ||
170 | |||
171 | //----------------------------------------------------------------------------- | ||
172 | |||
173 | 'overwriteAdd': function(aPointA, aPointB) { | ||
174 | if (aPointA.isZero()) { | ||
175 | // result = aPointB; | ||
176 | aPointA._x._value = aPointB._x._value; | ||
177 | aPointA._y._value = aPointB._y._value; | ||
178 | } else if (aPointB.isZero()) { | ||
179 | // result = aPointA; | ||
180 | } else if ((aPointA.x().compare(aPointB.x()) == 0) && ((aPointA.y().compare(aPointB.y()) != 0) || aPointB.x().isZero())) { | ||
181 | // result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | ||
182 | aPointA._x = Clipperz.Crypto.ECC.BinaryField.Value.O; | ||
183 | aPointA._y = Clipperz.Crypto.ECC.BinaryField.Value.O; | ||
184 | } else { | ||
185 | varf2m; | ||
186 | var x, y; | ||
187 | var lambda; | ||
188 | var aX, aY, bX, bY; | ||
189 | |||
190 | aX = aPointA.x()._value; | ||
191 | aY = aPointA.y()._value; | ||
192 | bX = aPointB.x()._value; | ||
193 | bY = aPointB.y()._value; | ||
194 | |||
195 | f2m = this.finiteField(); | ||
196 | |||
197 | if (aPointA.x().compare(aPointB.x()) != 0) { | ||
198 | //console.log(" a.x != b.x"); | ||
199 | lambda =f2m._fastMultiply( | ||
200 | f2m._add(aY, bY), | ||
201 | f2m._inverse(f2m._add(aX, bX)) | ||
202 | ); | ||
203 | x = f2m._add(this.a()._value, f2m._square(lambda)); | ||
204 | f2m._overwriteAdd(x, lambda); | ||
205 | f2m._overwriteAdd(x, aX); | ||
206 | f2m._overwriteAdd(x, bX); | ||
207 | } else { | ||
208 | //console.log(" a.x == b.x"); | ||
209 | lambda = f2m._add(bX, f2m._fastMultiply(bY, f2m._inverse(bX))); | ||
210 | //console.log(" lambda: " + lambda.asString(16)); | ||
211 | x = f2m._add(this.a()._value, f2m._square(lambda)); | ||
212 | //console.log(" x (step 1): " + x.asString(16)); | ||
213 | f2m._overwriteAdd(x, lambda); | ||
214 | //console.log(" x (step 2): " + x.asString(16)); | ||
215 | } | ||
216 | |||
217 | y = f2m._fastMultiply(f2m._add(bX, x), lambda); | ||
218 | //console.log(" y (step 1): " + y.asString(16)); | ||
219 | f2m._overwriteAdd(y, x); | ||
220 | //console.log(" y (step 2): " + y.asString(16)); | ||
221 | f2m._overwriteAdd(y, bY); | ||
222 | //console.log(" y (step 3): " + y.asString(16)); | ||
223 | |||
224 | // result = new Clipperz.Crypto.ECC.BinaryField.Point({x:new Clipperz.Crypto.ECC.BinaryField.Value(x), y:new Clipperz.Crypto.ECC.BinaryField.Value(y)}) | ||
225 | aPointA._x._value = x; | ||
226 | aPointA._y._value = y; | ||
227 | |||
228 | } | ||
229 | //console.log("<<< ECC.BinaryField.Curve.add"); | ||
230 | |||
231 | return result; | ||
232 | }, | ||
233 | |||
234 | //----------------------------------------------------------------------------- | ||
235 | |||
236 | 'multiply': function(aValue, aPoint) { | ||
237 | var result; | ||
238 | |||
239 | //console.profile(); | ||
240 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | ||
241 | |||
242 | if (aValue.isZero() == false) { | ||
243 | var k, Q; | ||
244 | var i; | ||
245 | var countIndex; countIndex = 0; | ||
246 | |||
247 | if (aValue.compare(Clipperz.Crypto.ECC.BinaryField.Value.O) > 0) { | ||
248 | k = aValue; | ||
249 | Q = aPoint; | ||
250 | } else { | ||
251 | MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); | ||
252 | k = aValue.negate(); | ||
253 | Q = this.negate(aPoint); | ||
254 | } | ||
255 | |||
256 | //console.log("k: " + k.toString(16)); | ||
257 | //console.log("k.bitSize: " + k.bitSize()); | ||
258 | for (i=k.bitSize()-1; i>=0; i--) { | ||
259 | result = this.add(result, result); | ||
260 | // this.overwriteAdd(result, result); | ||
261 | if (k.isBitSet(i)) { | ||
262 | result = this.add(result, Q); | ||
263 | // this.overwriteAdd(result, Q); | ||
264 | } | ||
265 | |||
266 | // if (countIndex==100) {console.log("multiply.break"); break;} else countIndex++; | ||
267 | } | ||
268 | } | ||
269 | //console.profileEnd(); | ||
270 | |||
271 | return result; | ||
272 | }, | ||
273 | |||
274 | //----------------------------------------------------------------------------- | ||
275 | |||
276 | 'deferredMultiply': function(aValue, aPoint) { | ||
277 | var deferredResult; | ||
278 | var result; | ||
279 | |||
280 | MochiKit.Logging.logDebug(">>> deferredMultiply - value: " + aValue + ", point: " + aPoint); | ||
281 | //console.profile("ECC.Curve.multiply"); | ||
282 | deferredResult = new MochiKit.Async.Deferred(); | ||
283 | //deferredResult.addCallback(function(res) {console.profile("ECC.Curve.deferredMultiply"); return res;} ); | ||
284 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 1: " + res); return res;}); | ||
285 | |||
286 | result = new Clipperz.Crypto.ECC.BinaryField.Point({x:Clipperz.Crypto.ECC.BinaryField.Value.O, y:Clipperz.Crypto.ECC.BinaryField.Value.O}); | ||
287 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 2: " + res); return res;}); | ||
288 | |||
289 | if (aValue.isZero() == false) { | ||
290 | var k, Q; | ||
291 | var i; | ||
292 | var countIndex; countIndex = 0; | ||
293 | |||
294 | if (aValue.compare(Clipperz.Crypto.ECC.BinaryField.Value.O) > 0) { | ||
295 | k = aValue; | ||
296 | Q = aPoint; | ||
297 | } else { | ||
298 | MochiKit.Logging.logError("The Clipperz.Crypto.ECC.BinaryFields.Value does not work with negative values!!!!"); | ||
299 | k = aValue.negate(); | ||
300 | Q = this.negate(aPoint); | ||
301 | } | ||
302 | |||
303 | //console.log("k: " + k.toString(16)); | ||
304 | //console.log("k.bitSize: " + k.bitSize()); | ||
305 | |||
306 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 3: " + res); return res;}); | ||
307 | for (i=k.bitSize()-1; i>=0; i--) { | ||
308 | //MochiKit.Logging.logDebug("====> " + i); | ||
309 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4 > i = " + i + ": " + res); return res;}); | ||
310 | deferredResult.addMethod(this, "addTwice"); | ||
311 | //# result = this.add(result, result); | ||
312 | // this.overwriteAdd(result, result); | ||
313 | if (k.isBitSet(i)) { | ||
314 | deferredResult.addMethod(this, "add", Q); | ||
315 | //# result = this.add(result, Q); | ||
316 | // this.overwriteAdd(result, Q); | ||
317 | } | ||
318 | if (i%20 == 0) {deferredResult.addCallback(MochiKit.Async.wait, 0.1);} | ||
319 | |||
320 | // if (countIndex==100) {console.log("multiply.break"); break;} else countIndex++; | ||
321 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4 < i = " + i + ": " + res); return res;}); | ||
322 | } | ||
323 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 4: " + res); return res;}); | ||
324 | } | ||
325 | //#console.profileEnd(); | ||
326 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 5: " + res); return res;}); | ||
327 | //deferredResult.addBoth(function(res) {console.profileEnd(); return res;}); | ||
328 | //deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("# 6: " + res); return res;}); | ||
329 | deferredResult.callback(result); | ||
330 | |||
331 | //# return result; | ||
332 | return deferredResult; | ||
333 | }, | ||
334 | |||
335 | //----------------------------------------------------------------------------- | ||
336 | __syntaxFix__: "syntax fix" | ||
337 | }); | ||
338 | |||
339 | |||
340 | //############################################################################# | ||
341 | |||
342 | Clipperz.Crypto.ECC.StandardCurves = {}; | ||
343 | |||
344 | MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | ||
345 | /* | ||
346 | '_K571': null, | ||
347 | 'K571': function() { | ||
348 | if (Clipperz.Crypto.ECC.StandardCurves._K571 == null) { | ||
349 | Clipperz.Crypto.ECC.StandardCurves._K571 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
350 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000425', 16), | ||
351 | a: new Clipperz.Crypto.ECC.BinaryField.Value('0', 16), | ||
352 | b: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
353 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
354 | x: new Clipperz.Crypto.ECC.BinaryField.Value('026eb7a8 59923fbc 82189631 f8103fe4 ac9ca297 0012d5d4 60248048 01841ca4 43709584 93b205e6 47da304d b4ceb08c bbd1ba39 494776fb 988b4717 4dca88c7 e2945283 a01c8972', 16), | ||
355 | y: new Clipperz.Crypto.ECC.BinaryField.Value('0349dc80 7f4fbf37 4f4aeade 3bca9531 4dd58cec 9f307a54 ffc61efc 006d8a2c 9d4979c0 ac44aea7 4fbebbb9 f772aedc b620b01a 7ba7af1b 320430c8 591984f6 01cd4c14 3ef1c7a3', 16) | ||
356 | }), | ||
357 | r: new Clipperz.Crypto.ECC.BinaryField.Value('02000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 131850e1 f19a63e4 b391a8db 917f4138 b630d84b e5d63938 1e91deb4 5cfe778f 637c1001', 16), | ||
358 | h: new Clipperz.Crypto.ECC.BinaryField.Value('4', 16) | ||
359 | }); | ||
360 | } | ||
361 | |||
362 | return Clipperz.Crypto.ECC.StandardCurves._K571; | ||
363 | }, | ||
364 | |||
365 | |||
366 | |||
367 | '_K283': null, | ||
368 | 'K283': function() { //f(z) = z^283 + z^12 + z^7 + z^5 + 1 | ||
369 | if (Clipperz.Crypto.ECC.StandardCurves._K283 == null) { | ||
370 | Clipperz.Crypto.ECC.StandardCurves._K283 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
371 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010a1', 16), | ||
372 | a: new Clipperz.Crypto.ECC.BinaryField.Value('0', 16), | ||
373 | b: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
374 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
375 | x: new Clipperz.Crypto.ECC.BinaryField.Value('0503213f 78ca4488 3f1a3b81 62f188e5 53cd265f 23c1567a 16876913 b0c2ac24 58492836', 16), | ||
376 | y: new Clipperz.Crypto.ECC.BinaryField.Value('01ccda38 0f1c9e31 8d90f95d 07e5426f e87e45c0 e8184698 e4596236 4e341161 77dd2259', 16) | ||
377 | }), | ||
378 | r: new Clipperz.Crypto.ECC.BinaryField.Value('01ffffff ffffffff ffffffff ffffffff ffffe9ae 2ed07577 265dff7f 94451e06 1e163c61', 16), | ||
379 | h: new Clipperz.Crypto.ECC.BinaryField.Value('4', 16) | ||
380 | }); | ||
381 | } | ||
382 | |||
383 | return Clipperz.Crypto.ECC.StandardCurves._K283; | ||
384 | }, | ||
385 | */ | ||
386 | //----------------------------------------------------------------------------- | ||
387 | |||
388 | '_B571': null, | ||
389 | 'B571': function() { //f(z) = z^571 + z^10 + z^5 + z^2 + 1 | ||
390 | if (Clipperz.Crypto.ECC.StandardCurves._B571 == null) { | ||
391 | Clipperz.Crypto.ECC.StandardCurves._B571 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
392 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('80000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000425', 16), | ||
393 | a: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
394 | b: new Clipperz.Crypto.ECC.BinaryField.Value('02f40e7e2221f295de297117b7f3d62f5c6a97ffcb8ceff1cd6ba8ce4a9a18ad84ffabbd8efa59332be7ad6756a66e294afd185a78ff12aa520e4de739baca0c7ffeff7f2955727a', 16), | ||
395 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
396 | x: new Clipperz.Crypto.ECC.BinaryField.Value('0303001d 34b85629 6c16c0d4 0d3cd775 0a93d1d2 955fa80a a5f40fc8 db7b2abd bde53950 f4c0d293 cdd711a3 5b67fb14 99ae6003 8614f139 4abfa3b4 c850d927 e1e7769c 8eec2d19', 16), | ||
397 | y: new Clipperz.Crypto.ECC.BinaryField.Value('037bf273 42da639b 6dccfffe b73d69d7 8c6c27a6 009cbbca 1980f853 3921e8a6 84423e43 bab08a57 6291af8f 461bb2a8 b3531d2f 0485c19b 16e2f151 6e23dd3c 1a4827af 1b8ac15b', 16) | ||
398 | }), | ||
399 | r: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff e661ce18 ff559873 08059b18 6823851e c7dd9ca1 161de93d 5174d66e 8382e9bb 2fe84e47', 16), | ||
400 | h: new Clipperz.Crypto.ECC.BinaryField.Value('2', 16) | ||
401 | |||
402 | // S: new Clipperz.Crypto.ECC.BinaryField.Value('2aa058f73a0e33ab486b0f610410c53a7f132310', 10), | ||
403 | // n: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe661ce18ff55987308059b186823851ec7dd9ca1161de93d5174d66e8382e9bb2fe84e47', 16) | ||
404 | }); | ||
405 | |||
406 | //----------------------------------------------------------------------------- | ||
407 | // | ||
408 | //Guide to Elliptic Curve Cryptography | ||
409 | //Darrel Hankerson, Alfred Menezes, Scott Vanstone | ||
410 | //- Pag: 56, Alorithm 2.45 (with a typo!!!) | ||
411 | // | ||
412 | //----------------------------------------------------------------------------- | ||
413 | // | ||
414 | // http://www.milw0rm.com/papers/136 | ||
415 | // | ||
416 | // ------------------------------------------------------------------------- | ||
417 | // Polynomial Reduction Algorithm Modulo f571 | ||
418 | // ------------------------------------------------------------------------- | ||
419 | // | ||
420 | // Input: Polynomial p(x) of degree 1140 or less, stored as | ||
421 | // an array of 2T machinewords. | ||
422 | // Output: p(x) mod f571(x) | ||
423 | // | ||
424 | // FOR i = T-1, ..., 0 DO | ||
425 | // SET X := P[i+T] | ||
426 | // P[i] := P[i] ^ (X<<5) ^ (X<<7) ^ (X<<10) ^ (X<<15) | ||
427 | // P[i+1] := P[i+1] ^ (X>>17) ^ (X>>22) ^ (X>>25) ^ (X>>27) | ||
428 | // | ||
429 | // SET X := P[T-1] >> 27 | ||
430 | // P[0] := P[0] ^ X ^ (X<<2) ^ (X<<5) ^ (X<<10) | ||
431 | // P[T-1] := P[T-1] & 0x07ffffff | ||
432 | // | ||
433 | // RETURN P[T-1],...,P[0] | ||
434 | // | ||
435 | // ------------------------------------------------------------------------- | ||
436 | // | ||
437 | Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().module; | ||
438 | Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().module = function(aValue) { | ||
439 | varresult; | ||
440 | |||
441 | if (aValue.bitSize() > 1140) { | ||
442 | MochiKit.Logging.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); | ||
443 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); | ||
444 | } else { | ||
445 | varC, T; | ||
446 | var i; | ||
447 | |||
448 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
449 | // C = aValue.value().slice(0); | ||
450 | C = aValue._value.slice(0); | ||
451 | for (i=35; i>=18; i--) { | ||
452 | T = C[i]; | ||
453 | C[i-18] = (((C[i-18] ^ (T<<5) ^ (T<<7) ^ (T<<10) ^ (T<<15)) & 0xffffffff) >>> 0); | ||
454 | C[i-17] = ((C[i-17] ^ (T>>>27) ^ (T>>>25) ^ (T>>>22) ^ (T>>>17)) >>> 0); | ||
455 | } | ||
456 | T = (C[17] >>> 27); | ||
457 | C[0] = ((C[0] ^ T ^ ((T<<2) ^ (T<<5) ^ (T<<10)) & 0xffffffff) >>> 0); | ||
458 | C[17] = (C[17] & 0x07ffffff); | ||
459 | |||
460 | for(i=18; i<=35; i++) { | ||
461 | C[i] = 0; | ||
462 | } | ||
463 | |||
464 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | ||
465 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
466 | } | ||
467 | |||
468 | return result; | ||
469 | }; | ||
470 | } | ||
471 | |||
472 | return Clipperz.Crypto.ECC.StandardCurves._B571; | ||
473 | }, | ||
474 | |||
475 | //----------------------------------------------------------------------------- | ||
476 | |||
477 | '_B283': null, | ||
478 | 'B283': function() { //f(z) = z^283 + z^12 + z^7 + z^5 + 1 | ||
479 | if (Clipperz.Crypto.ECC.StandardCurves._B283 == null) { | ||
480 | Clipperz.Crypto.ECC.StandardCurves._B283 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
481 | // modulus: new Clipperz.Crypto.ECC.BinaryField.Value('10000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010a1', 16), | ||
482 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010a1', 16), | ||
483 | a: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
484 | b: new Clipperz.Crypto.ECC.BinaryField.Value('027b680a c8b8596d a5a4af8a 19a0303f ca97fd76 45309fa2 a581485a f6263e31 3b79a2f5', 16), | ||
485 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
486 | x: new Clipperz.Crypto.ECC.BinaryField.Value('05f93925 8db7dd90 e1934f8c 70b0dfec 2eed25b8 557eac9c 80e2e198 f8cdbecd 86b12053', 16), | ||
487 | y: new Clipperz.Crypto.ECC.BinaryField.Value('03676854 fe24141c b98fe6d4 b20d02b4 516ff702 350eddb0 826779c8 13f0df45 be8112f4', 16) | ||
488 | }), | ||
489 | r: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffff ffffffff ffffffff ffffffff ffffef90 399660fc 938a9016 5b042a7c efadb307', 16), | ||
490 | h: new Clipperz.Crypto.ECC.BinaryField.Value('2', 16) | ||
491 | |||
492 | // S: new Clipperz.Crypto.ECC.BinaryField.Value('2aa058f73a0e33ab486b0f610410c53a7f132310', 10), | ||
493 | // n: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe661ce18ff55987308059b186823851ec7dd9ca1161de93d5174d66e8382e9bb2fe84e47', 16) | ||
494 | }); | ||
495 | |||
496 | //----------------------------------------------------------------------------- | ||
497 | // | ||
498 | //Guide to Elliptic Curve Cryptography | ||
499 | //Darrel Hankerson, Alfred Menezes, Scott Vanstone | ||
500 | //- Pag: 56, Alorithm 2.43 | ||
501 | // | ||
502 | //----------------------------------------------------------------------------- | ||
503 | Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().module; | ||
504 | Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().module = function(aValue) { | ||
505 | varresult; | ||
506 | |||
507 | if (aValue.bitSize() > 564) { | ||
508 | MochiKit.Logging.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); | ||
509 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); | ||
510 | } else { | ||
511 | varC, T; | ||
512 | var i; | ||
513 | |||
514 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
515 | C = aValue._value.slice(0); | ||
516 | for (i=17; i>=9; i--) { | ||
517 | T = C[i]; | ||
518 | C[i-9] = (((C[i-9] ^ (T<<5) ^ (T<<10) ^ (T<<12) ^ (T<<17)) & 0xffffffff) >>> 0); | ||
519 | C[i-8] = ((C[i-8] ^ (T>>>27) ^ (T>>>22) ^ (T>>>20) ^ (T>>>15)) >>> 0); | ||
520 | } | ||
521 | T = (C[8] >>> 27); | ||
522 | C[0] = ((C[0] ^ T ^ ((T<<5) ^ (T<<7) ^ (T<<12)) & 0xffffffff) >>> 0); | ||
523 | C[8] = (C[8] & 0x07ffffff); | ||
524 | |||
525 | for(i=9; i<=17; i++) { | ||
526 | C[i] = 0; | ||
527 | } | ||
528 | |||
529 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | ||
530 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
531 | } | ||
532 | |||
533 | return result; | ||
534 | }; | ||
535 | } | ||
536 | |||
537 | return Clipperz.Crypto.ECC.StandardCurves._B283; | ||
538 | }, | ||
539 | |||
540 | //----------------------------------------------------------------------------- | ||
541 | __syntaxFix__: "syntax fix" | ||
542 | }); | ||
543 | |||
544 | //############################################################################# | ||
545 | |||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/FiniteField.js b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/FiniteField.js new file mode 100644 index 0000000..4d1ca67 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/FiniteField.js | |||
@@ -0,0 +1,521 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | //try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | //throw "Clipperz.Crypto.ECC depends on Clipperz.ByteArray!"; | ||
26 | //} | ||
27 | if (typeof(Clipperz.Crypto.ECC) == 'undefined') { Clipperz.Crypto.ECC = {}; } | ||
28 | if (typeof(Clipperz.Crypto.ECC.BinaryField) == 'undefined') { Clipperz.Crypto.ECC.BinaryField = {}; } | ||
29 | |||
30 | Clipperz.Crypto.ECC.BinaryField.FiniteField = function(args) { | ||
31 | args = args || {}; | ||
32 | this._modulus = args.modulus; | ||
33 | |||
34 | return this; | ||
35 | } | ||
36 | |||
37 | Clipperz.Crypto.ECC.BinaryField.FiniteField.prototype = MochiKit.Base.update(null, { | ||
38 | |||
39 | 'asString': function() { | ||
40 | return "Clipperz.Crypto.ECC.BinaryField.FiniteField (" + this.modulus().asString() + ")"; | ||
41 | }, | ||
42 | |||
43 | //----------------------------------------------------------------------------- | ||
44 | |||
45 | 'modulus': function() { | ||
46 | return this._modulus; | ||
47 | }, | ||
48 | |||
49 | //----------------------------------------------------------------------------- | ||
50 | |||
51 | '_module': function(aValue) { | ||
52 | varresult; | ||
53 | var modulusComparison; | ||
54 | //console.log(">>> binaryField.finiteField.(standard)module"); | ||
55 | |||
56 | modulusComparison = Clipperz.Crypto.ECC.BinaryField.Value._compare(aValue, this.modulus()._value); | ||
57 | |||
58 | if (modulusComparison < 0) { | ||
59 | result = aValue; | ||
60 | } else if (modulusComparison == 0) { | ||
61 | result = [0]; | ||
62 | } else { | ||
63 | var modulusBitSize; | ||
64 | var resultBitSize; | ||
65 | |||
66 | result = aValue; | ||
67 | |||
68 | modulusBitSize = this.modulus().bitSize(); | ||
69 | resultBitSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(result); | ||
70 | while (resultBitSize >= modulusBitSize) { | ||
71 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteXor(result, Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(this.modulus()._value, resultBitSize - modulusBitSize)); | ||
72 | resultBitSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(result); | ||
73 | } | ||
74 | } | ||
75 | //console.log("<<< binaryField.finiteField.(standard)module"); | ||
76 | |||
77 | return result; | ||
78 | }, | ||
79 | |||
80 | 'module': function(aValue) { | ||
81 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._module(aValue._value.slice(0))); | ||
82 | }, | ||
83 | |||
84 | //----------------------------------------------------------------------------- | ||
85 | |||
86 | '_add': function(a, b) { | ||
87 | return Clipperz.Crypto.ECC.BinaryField.Value._xor(a, b); | ||
88 | }, | ||
89 | |||
90 | '_overwriteAdd': function(a, b) { | ||
91 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteXor(a, b); | ||
92 | }, | ||
93 | |||
94 | 'add': function(a, b) { | ||
95 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._add(a._value, b._value)); | ||
96 | }, | ||
97 | |||
98 | //----------------------------------------------------------------------------- | ||
99 | |||
100 | 'negate': function(aValue) { | ||
101 | return aValue.clone(); | ||
102 | }, | ||
103 | |||
104 | //----------------------------------------------------------------------------- | ||
105 | |||
106 | '_multiply': function(a, b) { | ||
107 | var result; | ||
108 | var valueToXor; | ||
109 | var i,c; | ||
110 | |||
111 | result = [0]; | ||
112 | valueToXor = b; | ||
113 | c = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(a); | ||
114 | for (i=0; i<c; i++) { | ||
115 | if (Clipperz.Crypto.ECC.BinaryField.Value._isBitSet(a, i) === true) { | ||
116 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteXor(result, valueToXor); | ||
117 | } | ||
118 | valueToXor = Clipperz.Crypto.ECC.BinaryField.Value._overwriteShiftLeft(valueToXor, 1); | ||
119 | } | ||
120 | result = this._module(result); | ||
121 | |||
122 | return result; | ||
123 | }, | ||
124 | |||
125 | 'multiply': function(a, b) { | ||
126 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._multiply(a._value, b._value)); | ||
127 | }, | ||
128 | |||
129 | //----------------------------------------------------------------------------- | ||
130 | |||
131 | '_fastMultiply': function(a, b) { | ||
132 | var result; | ||
133 | var B; | ||
134 | var i,c; | ||
135 | |||
136 | result = [0]; | ||
137 | B = b.slice(0); //Is this array copy avoidable? | ||
138 | c = 32; | ||
139 | for (i=0; i<c; i++) { | ||
140 | var ii, cc; | ||
141 | |||
142 | cc = a.length; | ||
143 | for (ii=0; ii<cc; ii++) { | ||
144 | if (((a[ii] >>> i) & 0x01) == 1) { | ||
145 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteXor(result, B, ii); | ||
146 | } | ||
147 | } | ||
148 | |||
149 | if (i < (c-1)) { | ||
150 | B = Clipperz.Crypto.ECC.BinaryField.Value._overwriteShiftLeft(B, 1); | ||
151 | } | ||
152 | } | ||
153 | result = this._module(result); | ||
154 | |||
155 | return result; | ||
156 | }, | ||
157 | |||
158 | 'fastMultiply': function(a, b) { | ||
159 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._fastMultiply(a._value, b._value)); | ||
160 | }, | ||
161 | |||
162 | //----------------------------------------------------------------------------- | ||
163 | // | ||
164 | //Guide to Elliptic Curve Cryptography | ||
165 | //Darrel Hankerson, Alfred Menezes, Scott Vanstone | ||
166 | //- Pag: 49, Alorithm 2.34 | ||
167 | // | ||
168 | //----------------------------------------------------------------------------- | ||
169 | |||
170 | '_square': function(aValue) { | ||
171 | var result; | ||
172 | var value; | ||
173 | var c,i; | ||
174 | var precomputedValues; | ||
175 | |||
176 | value = aValue; | ||
177 | result = new Array(value.length * 2); | ||
178 | precomputedValues = Clipperz.Crypto.ECC.BinaryField.FiniteField.squarePrecomputedBytes; | ||
179 | |||
180 | c = value.length; | ||
181 | for (i=0; i<c; i++) { | ||
182 | result[i*2] = precomputedValues[(value[i] & 0x000000ff)]; | ||
183 | result[i*2] |= ((precomputedValues[(value[i] & 0x0000ff00) >>> 8]) << 16); | ||
184 | |||
185 | result[i*2 + 1] = precomputedValues[(value[i] & 0x00ff0000) >>> 16]; | ||
186 | result[i*2 + 1] |= ((precomputedValues[(value[i] & 0xff000000) >>> 24]) << 16); | ||
187 | } | ||
188 | |||
189 | return this._module(result); | ||
190 | }, | ||
191 | |||
192 | 'square': function(aValue) { | ||
193 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._square(aValue._value)); | ||
194 | }, | ||
195 | |||
196 | //----------------------------------------------------------------------------- | ||
197 | |||
198 | '_inverse': function(aValue) { | ||
199 | varresult; | ||
200 | var b, c; | ||
201 | var u, v; | ||
202 | |||
203 | // b = Clipperz.Crypto.ECC.BinaryField.Value.I._value; | ||
204 | b = [1]; | ||
205 | // c = Clipperz.Crypto.ECC.BinaryField.Value.O._value; | ||
206 | c = [0]; | ||
207 | u = this._module(aValue); | ||
208 | v = this.modulus()._value.slice(0); | ||
209 | |||
210 | while (Clipperz.Crypto.ECC.BinaryField.Value._bitSize(u) > 1) { | ||
211 | varbitDifferenceSize; | ||
212 | |||
213 | bitDifferenceSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(u) - Clipperz.Crypto.ECC.BinaryField.Value._bitSize(v); | ||
214 | if (bitDifferenceSize < 0) { | ||
215 | var swap; | ||
216 | |||
217 | swap = u; | ||
218 | u = v; | ||
219 | v = swap; | ||
220 | |||
221 | swap = c; | ||
222 | c = b; | ||
223 | b = swap; | ||
224 | |||
225 | bitDifferenceSize = -bitDifferenceSize; | ||
226 | } | ||
227 | |||
228 | u = this._add(u, Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(v, bitDifferenceSize)); | ||
229 | b = this._add(b, Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(c, bitDifferenceSize)); | ||
230 | // this._overwriteAdd(u, Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(v, bitDifferenceSize)); | ||
231 | // this._overwriteAdd(b, Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(c, bitDifferenceSize)); | ||
232 | } | ||
233 | |||
234 | result = this._module(b); | ||
235 | |||
236 | return result; | ||
237 | }, | ||
238 | |||
239 | 'inverse': function(aValue) { | ||
240 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._inverse(aValue._value)); | ||
241 | }, | ||
242 | |||
243 | //----------------------------------------------------------------------------- | ||
244 | __syntaxFix__: "syntax fix" | ||
245 | }); | ||
246 | |||
247 | |||
248 | Clipperz.Crypto.ECC.BinaryField.FiniteField.squarePrecomputedBytes = [ | ||
249 | 0x0000, // 0 = 0000 0000 -> 0000 0000 0000 0000 | ||
250 | 0x0001, // 1 = 0000 0001 -> 0000 0000 0000 0001 | ||
251 | 0x0004, // 2 = 0000 0010 -> 0000 0000 0000 0100 | ||
252 | 0x0005, // 3 = 0000 0011 -> 0000 0000 0000 0101 | ||
253 | 0x0010, // 4 = 0000 0100 -> 0000 0000 0001 0000 | ||
254 | 0x0011, // 5 = 0000 0101 -> 0000 0000 0001 0001 | ||
255 | 0x0014, // 6 = 0000 0110 -> 0000 0000 0001 0100 | ||
256 | 0x0015, // 7 = 0000 0111 -> 0000 0000 0001 0101 | ||
257 | 0x0040, // 8 = 0000 1000 -> 0000 0000 0100 0000 | ||
258 | 0x0041, // 9 = 0000 1001 -> 0000 0000 0100 0001 | ||
259 | 0x0044, // 10 = 0000 1010 -> 0000 0000 0100 0100 | ||
260 | 0x0045, // 11 = 0000 1011 -> 0000 0000 0100 0101 | ||
261 | 0x0050, // 12 = 0000 1100 -> 0000 0000 0101 0000 | ||
262 | 0x0051, // 13 = 0000 1101 -> 0000 0000 0101 0001 | ||
263 | 0x0054, // 14 = 0000 1110 -> 0000 0000 0101 0100 | ||
264 | 0x0055, // 15 = 0000 1111 -> 0000 0000 0101 0101 | ||
265 | |||
266 | 0x0100, // 16 = 0001 0000 -> 0000 0001 0000 0000 | ||
267 | 0x0101, // 17 = 0001 0001 -> 0000 0001 0000 0001 | ||
268 | 0x0104, // 18 = 0001 0010 -> 0000 0001 0000 0100 | ||
269 | 0x0105, // 19 = 0001 0011 -> 0000 0001 0000 0101 | ||
270 | 0x0110, // 20 = 0001 0100 -> 0000 0001 0001 0000 | ||
271 | 0x0111, // 21 = 0001 0101 -> 0000 0001 0001 0001 | ||
272 | 0x0114, // 22 = 0001 0110 -> 0000 0001 0001 0100 | ||
273 | 0x0115, // 23 = 0001 0111 -> 0000 0001 0001 0101 | ||
274 | 0x0140, // 24 = 0001 1000 -> 0000 0001 0100 0000 | ||
275 | 0x0141, // 25 = 0001 1001 -> 0000 0001 0100 0001 | ||
276 | 0x0144, // 26 = 0001 1010 -> 0000 0001 0100 0100 | ||
277 | 0x0145, // 27 = 0001 1011 -> 0000 0001 0100 0101 | ||
278 | 0x0150, // 28 = 0001 1100 -> 0000 0001 0101 0000 | ||
279 | 0x0151, // 28 = 0001 1101 -> 0000 0001 0101 0001 | ||
280 | 0x0154, // 30 = 0001 1110 -> 0000 0001 0101 0100 | ||
281 | 0x0155, // 31 = 0001 1111 -> 0000 0001 0101 0101 | ||
282 | |||
283 | 0x0400, // 32 = 0010 0000 -> 0000 0100 0000 0000 | ||
284 | 0x0401, // 33 = 0010 0001 -> 0000 0100 0000 0001 | ||
285 | 0x0404, // 34 = 0010 0010 -> 0000 0100 0000 0100 | ||
286 | 0x0405, // 35 = 0010 0011 -> 0000 0100 0000 0101 | ||
287 | 0x0410, // 36 = 0010 0100 -> 0000 0100 0001 0000 | ||
288 | 0x0411, // 37 = 0010 0101 -> 0000 0100 0001 0001 | ||
289 | 0x0414, // 38 = 0010 0110 -> 0000 0100 0001 0100 | ||
290 | 0x0415, // 39 = 0010 0111 -> 0000 0100 0001 0101 | ||
291 | 0x0440, // 40 = 0010 1000 -> 0000 0100 0100 0000 | ||
292 | 0x0441, // 41 = 0010 1001 -> 0000 0100 0100 0001 | ||
293 | 0x0444, // 42 = 0010 1010 -> 0000 0100 0100 0100 | ||
294 | 0x0445, // 43 = 0010 1011 -> 0000 0100 0100 0101 | ||
295 | 0x0450, // 44 = 0010 1100 -> 0000 0100 0101 0000 | ||
296 | 0x0451, // 45 = 0010 1101 -> 0000 0100 0101 0001 | ||
297 | 0x0454, // 46 = 0010 1110 -> 0000 0100 0101 0100 | ||
298 | 0x0455, // 47 = 0010 1111 -> 0000 0100 0101 0101 | ||
299 | |||
300 | 0x0500, // 48 = 0011 0000 -> 0000 0101 0000 0000 | ||
301 | 0x0501, // 49 = 0011 0001 -> 0000 0101 0000 0001 | ||
302 | 0x0504, // 50 = 0011 0010 -> 0000 0101 0000 0100 | ||
303 | 0x0505, // 51 = 0011 0011 -> 0000 0101 0000 0101 | ||
304 | 0x0510, // 52 = 0011 0100 -> 0000 0101 0001 0000 | ||
305 | 0x0511, // 53 = 0011 0101 -> 0000 0101 0001 0001 | ||
306 | 0x0514, // 54 = 0011 0110 -> 0000 0101 0001 0100 | ||
307 | 0x0515, // 55 = 0011 0111 -> 0000 0101 0001 0101 | ||
308 | 0x0540, // 56 = 0011 1000 -> 0000 0101 0100 0000 | ||
309 | 0x0541, // 57 = 0011 1001 -> 0000 0101 0100 0001 | ||
310 | 0x0544, // 58 = 0011 1010 -> 0000 0101 0100 0100 | ||
311 | 0x0545, // 59 = 0011 1011 -> 0000 0101 0100 0101 | ||
312 | 0x0550, // 60 = 0011 1100 -> 0000 0101 0101 0000 | ||
313 | 0x0551, // 61 = 0011 1101 -> 0000 0101 0101 0001 | ||
314 | 0x0554, // 62 = 0011 1110 -> 0000 0101 0101 0100 | ||
315 | 0x0555, // 63 = 0011 1111 -> 0000 0101 0101 0101 | ||
316 | |||
317 | 0x1000, // 64 = 0100 0000 -> 0001 0000 0000 0000 | ||
318 | 0x1001, // 65 = 0100 0001 -> 0001 0000 0000 0001 | ||
319 | 0x1004, // 66 = 0100 0010 -> 0001 0000 0000 0100 | ||
320 | 0x1005, // 67 = 0100 0011 -> 0001 0000 0000 0101 | ||
321 | 0x1010, // 68 = 0100 0100 -> 0001 0000 0001 0000 | ||
322 | 0x1011, // 69 = 0100 0101 -> 0001 0000 0001 0001 | ||
323 | 0x1014, // 70 = 0100 0110 -> 0001 0000 0001 0100 | ||
324 | 0x1015, // 71 = 0100 0111 -> 0001 0000 0001 0101 | ||
325 | 0x1040, // 72 = 0100 1000 -> 0001 0000 0100 0000 | ||
326 | 0x1041, // 73 = 0100 1001 -> 0001 0000 0100 0001 | ||
327 | 0x1044, // 74 = 0100 1010 -> 0001 0000 0100 0100 | ||
328 | 0x1045, // 75 = 0100 1011 -> 0001 0000 0100 0101 | ||
329 | 0x1050, // 76 = 0100 1100 -> 0001 0000 0101 0000 | ||
330 | 0x1051, // 77 = 0100 1101 -> 0001 0000 0101 0001 | ||
331 | 0x1054, // 78 = 0100 1110 -> 0001 0000 0101 0100 | ||
332 | 0x1055, // 79 = 0100 1111 -> 0001 0000 0101 0101 | ||
333 | |||
334 | 0x1100, // 80 = 0101 0000 -> 0001 0001 0000 0000 | ||
335 | 0x1101, // 81 = 0101 0001 -> 0001 0001 0000 0001 | ||
336 | 0x1104, // 82 = 0101 0010 -> 0001 0001 0000 0100 | ||
337 | 0x1105, // 83 = 0101 0011 -> 0001 0001 0000 0101 | ||
338 | 0x1110, // 84 = 0101 0100 -> 0001 0001 0001 0000 | ||
339 | 0x1111, // 85 = 0101 0101 -> 0001 0001 0001 0001 | ||
340 | 0x1114, // 86 = 0101 0110 -> 0001 0001 0001 0100 | ||
341 | 0x1115, // 87 = 0101 0111 -> 0001 0001 0001 0101 | ||
342 | 0x1140, // 88 = 0101 1000 -> 0001 0001 0100 0000 | ||
343 | 0x1141, // 89 = 0101 1001 -> 0001 0001 0100 0001 | ||
344 | 0x1144, // 90 = 0101 1010 -> 0001 0001 0100 0100 | ||
345 | 0x1145, // 91 = 0101 1011 -> 0001 0001 0100 0101 | ||
346 | 0x1150, // 92 = 0101 1100 -> 0001 0001 0101 0000 | ||
347 | 0x1151, // 93 = 0101 1101 -> 0001 0001 0101 0001 | ||
348 | 0x1154, // 94 = 0101 1110 -> 0001 0001 0101 0100 | ||
349 | 0x1155, // 95 = 0101 1111 -> 0001 0001 0101 0101 | ||
350 | |||
351 | 0x1400, // 96 = 0110 0000 -> 0001 0100 0000 0000 | ||
352 | 0x1401, // 97 = 0110 0001 -> 0001 0100 0000 0001 | ||
353 | 0x1404, // 98 = 0110 0010 -> 0001 0100 0000 0100 | ||
354 | 0x1405, // 99 = 0110 0011 -> 0001 0100 0000 0101 | ||
355 | 0x1410, //100 = 0110 0100 -> 0001 0100 0001 0000 | ||
356 | 0x1411, //101 = 0110 0101 -> 0001 0100 0001 0001 | ||
357 | 0x1414, //102 = 0110 0110 -> 0001 0100 0001 0100 | ||
358 | 0x1415, //103 = 0110 0111 -> 0001 0100 0001 0101 | ||
359 | 0x1440, //104 = 0110 1000 -> 0001 0100 0100 0000 | ||
360 | 0x1441, //105 = 0110 1001 -> 0001 0100 0100 0001 | ||
361 | 0x1444, //106 = 0110 1010 -> 0001 0100 0100 0100 | ||
362 | 0x1445, //107 = 0110 1011 -> 0001 0100 0100 0101 | ||
363 | 0x1450, //108 = 0110 1100 -> 0001 0100 0101 0000 | ||
364 | 0x1451, //109 = 0110 1101 -> 0001 0100 0101 0001 | ||
365 | 0x1454, //110 = 0110 1110 -> 0001 0100 0101 0100 | ||
366 | 0x1455, //111 = 0110 1111 -> 0001 0100 0101 0101 | ||
367 | |||
368 | 0x1500, //112 = 0111 0000 -> 0001 0101 0000 0000 | ||
369 | 0x1501, //113 = 0111 0001 -> 0001 0101 0000 0001 | ||
370 | 0x1504, //114 = 0111 0010 -> 0001 0101 0000 0100 | ||
371 | 0x1505, //115 = 0111 0011 -> 0001 0101 0000 0101 | ||
372 | 0x1510, //116 = 0111 0100 -> 0001 0101 0001 0000 | ||
373 | 0x1511, //117 = 0111 0101 -> 0001 0101 0001 0001 | ||
374 | 0x1514, //118 = 0111 0110 -> 0001 0101 0001 0100 | ||
375 | 0x1515, //119 = 0111 0111 -> 0001 0101 0001 0101 | ||
376 | 0x1540, //120 = 0111 1000 -> 0001 0101 0100 0000 | ||
377 | 0x1541, //121 = 0111 1001 -> 0001 0101 0100 0001 | ||
378 | 0x1544, //122 = 0111 1010 -> 0001 0101 0100 0100 | ||
379 | 0x1545, //123 = 0111 1011 -> 0001 0101 0100 0101 | ||
380 | 0x1550, //124 = 0111 1100 -> 0001 0101 0101 0000 | ||
381 | 0x1551, //125 = 0111 1101 -> 0001 0101 0101 0001 | ||
382 | 0x1554, //126 = 0111 1110 -> 0001 0101 0101 0100 | ||
383 | 0x1555, //127 = 0111 1111 -> 0001 0101 0101 0101 | ||
384 | |||
385 | 0x4000, //128 = 1000 0000 -> 0100 0000 0000 0000 | ||
386 | 0x4001, //129 = 1000 0001 -> 0100 0000 0000 0001 | ||
387 | 0x4004, //130 = 1000 0010 -> 0100 0000 0000 0100 | ||
388 | 0x4005, //131 = 1000 0011 -> 0100 0000 0000 0101 | ||
389 | 0x4010, //132 = 1000 0100 -> 0100 0000 0001 0000 | ||
390 | 0x4011, //133 = 1000 0101 -> 0100 0000 0001 0001 | ||
391 | 0x4014, //134 = 1000 0110 -> 0100 0000 0001 0100 | ||
392 | 0x4015, //135 = 1000 0111 -> 0100 0000 0001 0101 | ||
393 | 0x4040, //136 = 1000 1000 -> 0100 0000 0100 0000 | ||
394 | 0x4041, //137 = 1000 1001 -> 0100 0000 0100 0001 | ||
395 | 0x4044, //138 = 1000 1010 -> 0100 0000 0100 0100 | ||
396 | 0x4045, //139 = 1000 1011 -> 0100 0000 0100 0101 | ||
397 | 0x4050, //140 = 1000 1100 -> 0100 0000 0101 0000 | ||
398 | 0x4051, //141 = 1000 1101 -> 0100 0000 0101 0001 | ||
399 | 0x4054, //142 = 1000 1110 -> 0100 0000 0101 0100 | ||
400 | 0x4055, //143 = 1000 1111 -> 0100 0000 0101 0101 | ||
401 | |||
402 | 0x4100, //144 = 1001 0000 -> 0100 0001 0000 0000 | ||
403 | 0x4101, //145 = 1001 0001 -> 0100 0001 0000 0001 | ||
404 | 0x4104, //146 = 1001 0010 -> 0100 0001 0000 0100 | ||
405 | 0x4105, //147 = 1001 0011 -> 0100 0001 0000 0101 | ||
406 | 0x4110, //148 = 1001 0100 -> 0100 0001 0001 0000 | ||
407 | 0x4111, //149 = 1001 0101 -> 0100 0001 0001 0001 | ||
408 | 0x4114, //150 = 1001 0110 -> 0100 0001 0001 0100 | ||
409 | 0x4115, //151 = 1001 0111 -> 0100 0001 0001 0101 | ||
410 | 0x4140, //152 = 1001 1000 -> 0100 0001 0100 0000 | ||
411 | 0x4141, //153 = 1001 1001 -> 0100 0001 0100 0001 | ||
412 | 0x4144, //154 = 1001 1010 -> 0100 0001 0100 0100 | ||
413 | 0x4145, //155 = 1001 1011 -> 0100 0001 0100 0101 | ||
414 | 0x4150, //156 = 1001 1100 -> 0100 0001 0101 0000 | ||
415 | 0x4151, //157 = 1001 1101 -> 0100 0001 0101 0001 | ||
416 | 0x4154, //158 = 1001 1110 -> 0100 0001 0101 0100 | ||
417 | 0x4155, //159 = 1001 1111 -> 0100 0001 0101 0101 | ||
418 | |||
419 | 0x4400, //160 = 1010 0000 -> 0100 0100 0000 0000 | ||
420 | 0x4401, //161 = 1010 0001 -> 0100 0100 0000 0001 | ||
421 | 0x4404, //162 = 1010 0010 -> 0100 0100 0000 0100 | ||
422 | 0x4405, //163 = 1010 0011 -> 0100 0100 0000 0101 | ||
423 | 0x4410, //164 = 1010 0100 -> 0100 0100 0001 0000 | ||
424 | 0x4411, //165 = 1010 0101 -> 0100 0100 0001 0001 | ||
425 | 0x4414, //166 = 1010 0110 -> 0100 0100 0001 0100 | ||
426 | 0x4415, //167 = 1010 0111 -> 0100 0100 0001 0101 | ||
427 | 0x4440, //168 = 1010 1000 -> 0100 0100 0100 0000 | ||
428 | 0x4441, //169 = 1010 1001 -> 0100 0100 0100 0001 | ||
429 | 0x4444, //170 = 1010 1010 -> 0100 0100 0100 0100 | ||
430 | 0x4445, //171 = 1010 1011 -> 0100 0100 0100 0101 | ||
431 | 0x4450, //172 = 1010 1100 -> 0100 0100 0101 0000 | ||
432 | 0x4451, //173 = 1010 1101 -> 0100 0100 0101 0001 | ||
433 | 0x4454, //174 = 1010 1110 -> 0100 0100 0101 0100 | ||
434 | 0x4455, //175 = 1010 1111 -> 0100 0100 0101 0101 | ||
435 | |||
436 | 0x4500, //176 = 1011 0000 -> 0100 0101 0000 0000 | ||
437 | 0x4501, //177 = 1011 0001 -> 0100 0101 0000 0001 | ||
438 | 0x4504, //178 = 1011 0010 -> 0100 0101 0000 0100 | ||
439 | 0x4505, //179 = 1011 0011 -> 0100 0101 0000 0101 | ||
440 | 0x4510, //180 = 1011 0100 -> 0100 0101 0001 0000 | ||
441 | 0x4511, //181 = 1011 0101 -> 0100 0101 0001 0001 | ||
442 | 0x4514, //182 = 1011 0110 -> 0100 0101 0001 0100 | ||
443 | 0x4515, //183 = 1011 0111 -> 0100 0101 0001 0101 | ||
444 | 0x4540, //184 = 1011 1000 -> 0100 0101 0100 0000 | ||
445 | 0x4541, //185 = 1011 1001 -> 0100 0101 0100 0001 | ||
446 | 0x4544, //186 = 1011 1010 -> 0100 0101 0100 0100 | ||
447 | 0x4545, //187 = 1011 1011 -> 0100 0101 0100 0101 | ||
448 | 0x4550, //188 = 1011 1100 -> 0100 0101 0101 0000 | ||
449 | 0x4551, //189 = 1011 1101 -> 0100 0101 0101 0001 | ||
450 | 0x4554, //190 = 1011 1110 -> 0100 0101 0101 0100 | ||
451 | 0x4555, //191 = 1011 1111 -> 0100 0101 0101 0101 | ||
452 | |||
453 | 0x5000, //192 = 1100 0000 -> 0101 0000 0000 0000 | ||
454 | 0x5001, //193 = 1100 0001 -> 0101 0000 0000 0001 | ||
455 | 0x5004, //194 = 1100 0010 -> 0101 0000 0000 0100 | ||
456 | 0x5005, //195 = 1100 0011 -> 0101 0000 0000 0101 | ||
457 | 0x5010, //196 = 1100 0100 -> 0101 0000 0001 0000 | ||
458 | 0x5011, //197 = 1100 0101 -> 0101 0000 0001 0001 | ||
459 | 0x5014, //198 = 1100 0110 -> 0101 0000 0001 0100 | ||
460 | 0x5015, //199 = 1100 0111 -> 0101 0000 0001 0101 | ||
461 | 0x5040, //200 = 1100 1000 -> 0101 0000 0100 0000 | ||
462 | 0x5041, //201 = 1100 1001 -> 0101 0000 0100 0001 | ||
463 | 0x5044, //202 = 1100 1010 -> 0101 0000 0100 0100 | ||
464 | 0x5045, //203 = 1100 1011 -> 0101 0000 0100 0101 | ||
465 | 0x5050, //204 = 1100 1100 -> 0101 0000 0101 0000 | ||
466 | 0x5051, //205 = 1100 1101 -> 0101 0000 0101 0001 | ||
467 | 0x5054, //206 = 1100 1110 -> 0101 0000 0101 0100 | ||
468 | 0x5055, //207 = 1100 1111 -> 0101 0000 0101 0101 | ||
469 | |||
470 | 0x5100, //208 = 1101 0000 -> 0101 0001 0000 0000 | ||
471 | 0x5101, //209 = 1101 0001 -> 0101 0001 0000 0001 | ||
472 | 0x5104, //210 = 1101 0010 -> 0101 0001 0000 0100 | ||
473 | 0x5105, //211 = 1101 0011 -> 0101 0001 0000 0101 | ||
474 | 0x5110, //212 = 1101 0100 -> 0101 0001 0001 0000 | ||
475 | 0x5111, //213 = 1101 0101 -> 0101 0001 0001 0001 | ||
476 | 0x5114, //214 = 1101 0110 -> 0101 0001 0001 0100 | ||
477 | 0x5115, //215 = 1101 0111 -> 0101 0001 0001 0101 | ||
478 | 0x5140, //216 = 1101 1000 -> 0101 0001 0100 0000 | ||
479 | 0x5141, //217 = 1101 1001 -> 0101 0001 0100 0001 | ||
480 | 0x5144, //218 = 1101 1010 -> 0101 0001 0100 0100 | ||
481 | 0x5145, //219 = 1101 1011 -> 0101 0001 0100 0101 | ||
482 | 0x5150, //220 = 1101 1100 -> 0101 0001 0101 0000 | ||
483 | 0x5151, //221 = 1101 1101 -> 0101 0001 0101 0001 | ||
484 | 0x5154, //222 = 1101 1110 -> 0101 0001 0101 0100 | ||
485 | 0x5155, //223 = 1101 1111 -> 0101 0001 0101 0101 | ||
486 | |||
487 | 0x5400, //224 = 1110 0000 -> 0101 0100 0000 0000 | ||
488 | 0x5401, //225 = 1110 0001 -> 0101 0100 0000 0001 | ||
489 | 0x5404, //226 = 1110 0010 -> 0101 0100 0000 0100 | ||
490 | 0x5405, //227 = 1110 0011 -> 0101 0100 0000 0101 | ||
491 | 0x5410, //228 = 1110 0100 -> 0101 0100 0001 0000 | ||
492 | 0x5411, //229 = 1110 0101 -> 0101 0100 0001 0001 | ||
493 | 0x5414, //230 = 1110 0110 -> 0101 0100 0001 0100 | ||
494 | 0x5415, //231 = 1110 0111 -> 0101 0100 0001 0101 | ||
495 | 0x5440, //232 = 1110 1000 -> 0101 0100 0100 0000 | ||
496 | 0x5441, //233 = 1110 1001 -> 0101 0100 0100 0001 | ||
497 | 0x5444, //234 = 1110 1010 -> 0101 0100 0100 0100 | ||
498 | 0x5445, //235 = 1110 1011 -> 0101 0100 0100 0101 | ||
499 | 0x5450, //236 = 1110 1100 -> 0101 0100 0101 0000 | ||
500 | 0x5451, //237 = 1110 1101 -> 0101 0100 0101 0001 | ||
501 | 0x5454, //238 = 1110 1110 -> 0101 0100 0101 0100 | ||
502 | 0x5455, //239 = 1110 1111 -> 0101 0100 0101 0101 | ||
503 | |||
504 | 0x5500, //240 = 1111 0000 -> 0101 0101 0000 0000 | ||
505 | 0x5501, //241 = 1111 0001 -> 0101 0101 0000 0001 | ||
506 | 0x5504, //242 = 1111 0010 -> 0101 0101 0000 0100 | ||
507 | 0x5505, //243 = 1111 0011 -> 0101 0101 0000 0101 | ||
508 | 0x5510, //244 = 1111 0100 -> 0101 0101 0001 0000 | ||
509 | 0x5511, //245 = 1111 0101 -> 0101 0101 0001 0001 | ||
510 | 0x5514, //246 = 1111 0110 -> 0101 0101 0001 0100 | ||
511 | 0x5515, //247 = 1111 0111 -> 0101 0101 0001 0101 | ||
512 | 0x5540, //248 = 1111 1000 -> 0101 0101 0100 0000 | ||
513 | 0x5541, //249 = 1111 1001 -> 0101 0101 0100 0001 | ||
514 | 0x5544, //250 = 1111 1010 -> 0101 0101 0100 0100 | ||
515 | 0x5545, //251 = 1111 1011 -> 0101 0101 0100 0101 | ||
516 | 0x5550, //252 = 1111 1100 -> 0101 0101 0101 0000 | ||
517 | 0x5551, //253 = 1111 1101 -> 0101 0101 0101 0001 | ||
518 | 0x5554, //254 = 1111 1110 -> 0101 0101 0101 0100 | ||
519 | 0x5555 //255 = 1111 1111 -> 0101 0101 0101 0101 | ||
520 | |||
521 | ] | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Point.js b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Point.js new file mode 100644 index 0000000..fef3220 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Point.js | |||
@@ -0,0 +1,62 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | //try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | //throw "Clipperz.Crypto.ECC depends on Clipperz.ByteArray!"; | ||
26 | //} | ||
27 | if (typeof(Clipperz.Crypto.ECC) == 'undefined') { Clipperz.Crypto.ECC = {}; } | ||
28 | if (typeof(Clipperz.Crypto.ECC.BinaryField) == 'undefined') { Clipperz.Crypto.ECC.BinaryField = {}; } | ||
29 | |||
30 | Clipperz.Crypto.ECC.BinaryField.Point = function(args) { | ||
31 | args = args || {}; | ||
32 | this._x = args.x; | ||
33 | this._y = args.y; | ||
34 | |||
35 | return this; | ||
36 | } | ||
37 | |||
38 | Clipperz.Crypto.ECC.BinaryField.Point.prototype = MochiKit.Base.update(null, { | ||
39 | |||
40 | 'asString': function() { | ||
41 | return "Clipperz.Crypto.ECC.BinaryField.Point (" + this.x() + ", " + this.y() + ")"; | ||
42 | }, | ||
43 | |||
44 | //----------------------------------------------------------------------------- | ||
45 | |||
46 | 'x': function() { | ||
47 | return this._x; | ||
48 | }, | ||
49 | |||
50 | 'y': function() { | ||
51 | return this._y; | ||
52 | }, | ||
53 | |||
54 | //----------------------------------------------------------------------------- | ||
55 | |||
56 | 'isZero': function() { | ||
57 | return (this.x().isZero() && this.y().isZero()) | ||
58 | }, | ||
59 | |||
60 | //----------------------------------------------------------------------------- | ||
61 | __syntaxFix__: "syntax fix" | ||
62 | }); | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Value.js b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Value.js new file mode 100644 index 0000000..b046039 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/BinaryField/Value.js | |||
@@ -0,0 +1,381 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | //try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | //throw "Clipperz.Crypto.ECC depends on Clipperz.ByteArray!"; | ||
26 | //} | ||
27 | if (typeof(Clipperz) == 'undefined') { Clipperz = {}; } | ||
28 | if (typeof(Clipperz.Crypto) == 'undefined') { Clipperz.Crypto = {}; } | ||
29 | if (typeof(Clipperz.Crypto.ECC) == 'undefined') { Clipperz.Crypto.ECC = {}; } | ||
30 | if (typeof(Clipperz.Crypto.ECC.BinaryField) == 'undefined') { Clipperz.Crypto.ECC.BinaryField = {}; } | ||
31 | |||
32 | Clipperz.Crypto.ECC.BinaryField.Value = function(aValue, aBase, aBitSize) { | ||
33 | if (aValue.constructor == String) { | ||
34 | varvalue; | ||
35 | varstringLength; | ||
36 | var numberOfWords; | ||
37 | vari,c; | ||
38 | |||
39 | if (aBase != 16) { | ||
40 | throw Clipperz.Crypto.ECC.BinaryField.Value.exception.UnsupportedBase; | ||
41 | } | ||
42 | |||
43 | value = aValue.replace(/ /g, ''); | ||
44 | stringLength = value.length; | ||
45 | numberOfWords = Math.ceil(stringLength / 8); | ||
46 | this._value = new Array(numberOfWords); | ||
47 | |||
48 | c = numberOfWords; | ||
49 | for (i=0; i<c; i++) { | ||
50 | varword; | ||
51 | |||
52 | if (i < (c-1)) { | ||
53 | word = parseInt(value.substr(stringLength-((i+1)*8), 8), 16); | ||
54 | } else { | ||
55 | word = parseInt(value.substr(0, stringLength-(i*8)), 16); | ||
56 | } | ||
57 | |||
58 | this._value[i] = word; | ||
59 | } | ||
60 | } else if (aValue.constructor == Array) { | ||
61 | var itemsToCopy; | ||
62 | |||
63 | itemsToCopy = aValue.length; | ||
64 | while (aValue[itemsToCopy - 1] == 0) { | ||
65 | itemsToCopy --; | ||
66 | } | ||
67 | |||
68 | this._value = aValue.slice(0, itemsToCopy); | ||
69 | } else if (aValue.constructor == Number) { | ||
70 | this._value = [aValue]; | ||
71 | } else { | ||
72 | // throw Clipperz.Crypto.ECC.BinaryField.Value.exception.UnsupportedConstructorValueType; | ||
73 | } | ||
74 | |||
75 | this._bitSize == aBitSize || null; | ||
76 | |||
77 | return this; | ||
78 | } | ||
79 | |||
80 | Clipperz.Crypto.ECC.BinaryField.Value.prototype = MochiKit.Base.update(null, { | ||
81 | |||
82 | 'value': function() { | ||
83 | return this._value; | ||
84 | }, | ||
85 | |||
86 | //----------------------------------------------------------------------------- | ||
87 | |||
88 | 'wordSize': function() { | ||
89 | return this._value.length | ||
90 | }, | ||
91 | |||
92 | //----------------------------------------------------------------------------- | ||
93 | |||
94 | 'clone': function() { | ||
95 | return new Clipperz.Crypto.ECC.BinaryField.Value(this._value.slice(0), null, this._bitSize); | ||
96 | }, | ||
97 | |||
98 | //----------------------------------------------------------------------------- | ||
99 | |||
100 | 'isZero': function() { | ||
101 | return (this.compare(Clipperz.Crypto.ECC.BinaryField.Value.O) == 0); | ||
102 | }, | ||
103 | |||
104 | //----------------------------------------------------------------------------- | ||
105 | |||
106 | 'asString': function(aBase) { | ||
107 | varresult; | ||
108 | var i,c; | ||
109 | |||
110 | if (aBase != 16) { | ||
111 | throw Clipperz.Crypto.ECC.BinaryField.Value.exception.UnsupportedBase; | ||
112 | } | ||
113 | |||
114 | result = ""; | ||
115 | c = this.wordSize(); | ||
116 | for (i=0; i<c; i++) { | ||
117 | varwordAsString; | ||
118 | |||
119 | // wordAsString = ("00000000" + this.value()[i].toString(16)); | ||
120 | wordAsString = ("00000000" + this._value[i].toString(16)); | ||
121 | wordAsString = wordAsString.substring(wordAsString.length - 8); | ||
122 | result = wordAsString + result; | ||
123 | } | ||
124 | |||
125 | result = result.replace(/^(00)*/, ""); | ||
126 | |||
127 | if (result == "") { | ||
128 | result = "0"; | ||
129 | } | ||
130 | |||
131 | return result; | ||
132 | }, | ||
133 | |||
134 | //----------------------------------------------------------------------------- | ||
135 | |||
136 | 'shiftLeft': function(aNumberOfBitsToShift) { | ||
137 | //this method seems like it is never called. :-( | ||
138 | return new Clipperz.Crypto.ECC.BinaryField.Value(Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft(this._value, aNumberOfBitsToShift)); | ||
139 | }, | ||
140 | |||
141 | //----------------------------------------------------------------------------- | ||
142 | |||
143 | 'bitSize': function() { | ||
144 | if (this._bitSize == null) { | ||
145 | this._bitSize = Clipperz.Crypto.ECC.BinaryField.Value._bitSize(this._value); | ||
146 | } | ||
147 | |||
148 | return this._bitSize; | ||
149 | }, | ||
150 | |||
151 | //----------------------------------------------------------------------------- | ||
152 | |||
153 | 'isBitSet': function(aBitPosition) { | ||
154 | return Clipperz.Crypto.ECC.BinaryField.Value._isBitSet(this._value, aBitPosition); | ||
155 | }, | ||
156 | |||
157 | //----------------------------------------------------------------------------- | ||
158 | |||
159 | 'xor': function(aValue) { | ||
160 | return new Clipperz.Crypto.ECC.BinaryField.Value(Clipperz.Crypto.ECC.BinaryField.Value._xor(this._value, aValue._value)); | ||
161 | }, | ||
162 | |||
163 | //----------------------------------------------------------------------------- | ||
164 | |||
165 | 'compare': function(aValue) { | ||
166 | return Clipperz.Crypto.ECC.BinaryField.Value._compare(this._value, aValue._value); | ||
167 | }, | ||
168 | |||
169 | //----------------------------------------------------------------------------- | ||
170 | __syntaxFix__: "syntax fix" | ||
171 | }); | ||
172 | |||
173 | Clipperz.Crypto.ECC.BinaryField.Value.O = new Clipperz.Crypto.ECC.BinaryField.Value('0', 16); | ||
174 | Clipperz.Crypto.ECC.BinaryField.Value.I = new Clipperz.Crypto.ECC.BinaryField.Value('1', 16); | ||
175 | |||
176 | Clipperz.Crypto.ECC.BinaryField.Value._xor = function(a, b, aFirstItemOffset) { | ||
177 | var result; | ||
178 | var resultSize; | ||
179 | var i,c; | ||
180 | var firstItemOffset; | ||
181 | |||
182 | firstItemOffset = aFirstItemOffset || 0; | ||
183 | resultSize = Math.max((a.length - firstItemOffset), b.length) + firstItemOffset; | ||
184 | |||
185 | result = new Array(resultSize); | ||
186 | |||
187 | c = firstItemOffset; | ||
188 | for (i=0; i<c; i++) { | ||
189 | result[i] = a[i]; | ||
190 | } | ||
191 | |||
192 | c = resultSize; | ||
193 | for (i=firstItemOffset; i<c; i++) { | ||
194 | result[i] = (((a[i] || 0) ^ (b[i - firstItemOffset] || 0)) >>> 0); | ||
195 | } | ||
196 | |||
197 | return result; | ||
198 | }; | ||
199 | |||
200 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteXor = function(a, b, aFirstItemOffset) { | ||
201 | var i,c; | ||
202 | var firstItemOffset; | ||
203 | |||
204 | firstItemOffset = aFirstItemOffset || 0; | ||
205 | |||
206 | c = Math.max((a.length - firstItemOffset), b.length) + firstItemOffset; | ||
207 | for (i=firstItemOffset; i<c; i++) { | ||
208 | a[i] = (((a[i] || 0) ^ (b[i - firstItemOffset] || 0)) >>> 0); | ||
209 | } | ||
210 | }; | ||
211 | |||
212 | Clipperz.Crypto.ECC.BinaryField.Value._shiftLeft = function(aWordArray, aNumberOfBitsToShift) { | ||
213 | var numberOfWordsToShift; | ||
214 | varnumberOfBitsToShift; | ||
215 | var result; | ||
216 | varoverflowValue; | ||
217 | var nextOverflowValue; | ||
218 | vari,c; | ||
219 | |||
220 | numberOfWordsToShift = Math.floor(aNumberOfBitsToShift / 32); | ||
221 | numberOfBitsToShift = aNumberOfBitsToShift % 32; | ||
222 | |||
223 | result = new Array(aWordArray.length + numberOfWordsToShift); | ||
224 | |||
225 | c = numberOfWordsToShift; | ||
226 | for (i=0; i<c; i++) { | ||
227 | result[i] = 0; | ||
228 | } | ||
229 | |||
230 | overflowValue = 0; | ||
231 | nextOverflowValue = 0; | ||
232 | |||
233 | c = aWordArray.length; | ||
234 | for (i=0; i<c; i++) { | ||
235 | varvalue; | ||
236 | varresultWord; | ||
237 | |||
238 | // value = this.value()[i]; | ||
239 | value = aWordArray[i]; | ||
240 | |||
241 | if (numberOfBitsToShift > 0) { | ||
242 | nextOverflowValue = (value >>> (32 - numberOfBitsToShift)); | ||
243 | value = value & (0xffffffff >>> numberOfBitsToShift); | ||
244 | resultWord = (((value << numberOfBitsToShift) | overflowValue) >>> 0); | ||
245 | } else { | ||
246 | resultWord = value; | ||
247 | } | ||
248 | |||
249 | result[i+numberOfWordsToShift] = resultWord; | ||
250 | overflowValue = nextOverflowValue; | ||
251 | } | ||
252 | |||
253 | if (overflowValue != 0) { | ||
254 | result[aWordArray.length + numberOfWordsToShift] = overflowValue; | ||
255 | } | ||
256 | |||
257 | return result; | ||
258 | }; | ||
259 | |||
260 | Clipperz.Crypto.ECC.BinaryField.Value._overwriteShiftLeft = function(aWordArray, aNumberOfBitsToShift) { | ||
261 | var numberOfWordsToShift; | ||
262 | varnumberOfBitsToShift; | ||
263 | var result; | ||
264 | varoverflowValue; | ||
265 | vari,c; | ||
266 | |||
267 | numberOfWordsToShift = Math.floor(aNumberOfBitsToShift / 32); | ||
268 | numberOfBitsToShift = aNumberOfBitsToShift % 32; | ||
269 | |||
270 | result = new Array(aWordArray.length + numberOfWordsToShift); | ||
271 | |||
272 | c = numberOfWordsToShift; | ||
273 | for (i=0; i<c; i++) { | ||
274 | result[i] = 0; | ||
275 | } | ||
276 | |||
277 | overflowValue = 0; | ||
278 | nextOverflowValue = 0; | ||
279 | |||
280 | c = aWordArray.length; | ||
281 | for (i=0; i<c; i++) { | ||
282 | varvalue; | ||
283 | varresultWord; | ||
284 | |||
285 | // value = this.value()[i]; | ||
286 | value = aWordArray[i]; | ||
287 | |||
288 | if (numberOfBitsToShift > 0) { | ||
289 | var nextOverflowValue; | ||
290 | |||
291 | nextOverflowValue = (value >>> (32 - numberOfBitsToShift)); | ||
292 | value = value & (0xffffffff >>> numberOfBitsToShift); | ||
293 | resultWord = (((value << numberOfBitsToShift) | overflowValue) >>> 0); | ||
294 | } else { | ||
295 | resultWord = value; | ||
296 | } | ||
297 | |||
298 | result[i+numberOfWordsToShift] = resultWord; | ||
299 | overflowValue = nextOverflowValue; | ||
300 | } | ||
301 | |||
302 | if (overflowValue != 0) { | ||
303 | result[aWordArray.length + numberOfWordsToShift] = overflowValue; | ||
304 | } | ||
305 | |||
306 | return result; | ||
307 | }; | ||
308 | |||
309 | Clipperz.Crypto.ECC.BinaryField.Value._bitSize = function(aWordArray) { | ||
310 | varresult; | ||
311 | varnotNullElements; | ||
312 | var mostValuableWord; | ||
313 | var matchingBitsInMostImportantWord; | ||
314 | var mask; | ||
315 | var i,c; | ||
316 | |||
317 | notNullElements = aWordArray.length; | ||
318 | |||
319 | if ((aWordArray.length == 1) && (aWordArray[0] == 0)) { | ||
320 | result = 0; | ||
321 | } else { | ||
322 | notNullElements --; | ||
323 | while((notNullElements > 0) && (aWordArray[notNullElements] == 0)) { | ||
324 | notNullElements --; | ||
325 | } | ||
326 | |||
327 | result = notNullElements * 32; | ||
328 | mostValuableWord = aWordArray[notNullElements]; | ||
329 | |||
330 | matchingBits = 32; | ||
331 | mask = 0x80000000; | ||
332 | |||
333 | while ((matchingBits > 0) && ((mostValuableWord & mask) == 0)) { | ||
334 | matchingBits --; | ||
335 | mask >>>= 1; | ||
336 | } | ||
337 | |||
338 | result += matchingBits; | ||
339 | } | ||
340 | |||
341 | return result; | ||
342 | }; | ||
343 | |||
344 | Clipperz.Crypto.ECC.BinaryField.Value._isBitSet = function(aWordArray, aBitPosition) { | ||
345 | var result; | ||
346 | varbyteIndex; | ||
347 | var bitIndexInSelectedByte; | ||
348 | |||
349 | byteIndex = Math.floor(aBitPosition / 32); | ||
350 | bitIndexInSelectedByte = aBitPosition % 32; | ||
351 | |||
352 | if (byteIndex <= aWordArray.length) { | ||
353 | result = ((aWordArray[byteIndex] & (1 << bitIndexInSelectedByte)) != 0); | ||
354 | } else { | ||
355 | result = false; | ||
356 | } | ||
357 | |||
358 | return result; | ||
359 | }; | ||
360 | |||
361 | Clipperz.Crypto.ECC.BinaryField.Value._compare = function(a,b) { | ||
362 | varresult; | ||
363 | var i,c; | ||
364 | |||
365 | result = MochiKit.Base.compare(a.length, b.length); | ||
366 | |||
367 | c = a.length; | ||
368 | for (i=0; (i<c) && (result==0); i++) { | ||
369 | //console.log("compare[" + c + " - " + i + " - 1] " + this.value()[c-i-1] + ", " + aValue.value()[c-i-1]); | ||
370 | // result = MochiKit.Base.compare(this.value()[c-i-1], aValue.value()[c-i-1]); | ||
371 | result = MochiKit.Base.compare(a[c-i-1], b[c-i-1]); | ||
372 | } | ||
373 | |||
374 | return result; | ||
375 | }; | ||
376 | |||
377 | |||
378 | Clipperz.Crypto.ECC.BinaryField.Value['exception']= { | ||
379 | 'UnsupportedBase': new MochiKit.Base.NamedError("Clipperz.Crypto.ECC.BinaryField.Value.exception.UnsupportedBase"), | ||
380 | 'UnsupportedConstructorValueType':new MochiKit.Base.NamedError("Clipperz.Crypto.ECC.BinaryField.Value.exception.UnsupportedConstructorValueType") | ||
381 | }; | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/ECC/StandardCurves.js b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/StandardCurves.js new file mode 100644 index 0000000..ed971ae --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/ECC/StandardCurves.js | |||
@@ -0,0 +1,234 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | //try { if (typeof(Clipperz.Crypto.ECC.BinaryField.Curve) == 'undefined') { throw ""; }} catch (e) { | ||
25 | //throw "Clipperz.Crypto.ECC depends on Clipperz.Crypto.ECC.BinaryField.Curve!"; | ||
26 | //} | ||
27 | //try { if (typeof(Clipperz.Crypto.ECC.Koblitz.Curve) == 'undefined') { throw ""; }} catch (e) { | ||
28 | //throw "Clipperz.Crypto.ECC depends on Clipperz.Crypto.ECC.Koblitz.Curve!"; | ||
29 | //} | ||
30 | |||
31 | Clipperz.Crypto.ECC.StandardCurves = {}; | ||
32 | |||
33 | MochiKit.Base.update(Clipperz.Crypto.ECC.StandardCurves, { | ||
34 | |||
35 | //============================================================================== | ||
36 | |||
37 | '_K571': null, | ||
38 | 'K571': function() { //f(z) = z^571 + z^10 + z^5 + z^2 + 1 | ||
39 | if ((Clipperz.Crypto.ECC.StandardCurves._K571 == null) && (typeof(Clipperz.Crypto.ECC.Koblitz.Curve) != 'undefined')) { | ||
40 | Clipperz.Crypto.ECC.StandardCurves._K571 = new Clipperz.Crypto.ECC.Koblitz.Curve({ | ||
41 | modulus: new Clipperz.Crypto.ECC.Koblitz.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000425', 16), | ||
42 | a: new Clipperz.Crypto.ECC.Koblitz.Value('0', 16), | ||
43 | b: new Clipperz.Crypto.ECC.Koblitz.Value('1', 16), | ||
44 | G: new Clipperz.Crypto.ECC.Koblitz.Point({ | ||
45 | x: new Clipperz.Crypto.ECC.Koblitz.Value('026eb7a8 59923fbc 82189631 f8103fe4 ac9ca297 0012d5d4 60248048 01841ca4 43709584 93b205e6 47da304d b4ceb08c bbd1ba39 494776fb 988b4717 4dca88c7 e2945283 a01c8972', 16), | ||
46 | y: new Clipperz.Crypto.ECC.Koblitz.Value('0349dc80 7f4fbf37 4f4aeade 3bca9531 4dd58cec 9f307a54 ffc61efc 006d8a2c 9d4979c0 ac44aea7 4fbebbb9 f772aedc b620b01a 7ba7af1b 320430c8 591984f6 01cd4c14 3ef1c7a3', 16) | ||
47 | }), | ||
48 | r: new Clipperz.Crypto.ECC.Koblitz.Value('02000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 131850e1 f19a63e4 b391a8db 917f4138 b630d84b e5d63938 1e91deb4 5cfe778f 637c1001', 16), | ||
49 | h: new Clipperz.Crypto.ECC.Koblitz.Value('4', 16), | ||
50 | primeFactor: new Clipperz.Crypto.ECC.Koblitz.Value('02000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 131850e1 f19a63e4 b391a8db 917f4138 b630d84b e5d63938 1e91deb4 5cfe778f 637c1001', 16) | ||
51 | }); | ||
52 | } | ||
53 | |||
54 | return Clipperz.Crypto.ECC.StandardCurves._K571; | ||
55 | }, | ||
56 | |||
57 | //----------------------------------------------------------------------------- | ||
58 | |||
59 | '_K283': null, | ||
60 | 'K283': function() { //f(z) = z^283 + z^12 + z^7 + z^5 + 1 | ||
61 | if ((Clipperz.Crypto.ECC.StandardCurves._K283 == null) && (typeof(Clipperz.Crypto.ECC.Koblitz.Curve) != 'undefined')) { | ||
62 | Clipperz.Crypto.ECC.StandardCurves._K283 = new Clipperz.Crypto.ECC.Koblitz.Curve({ | ||
63 | modulus: new Clipperz.Crypto.ECC.Koblitz.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010a1', 16), | ||
64 | a: new Clipperz.Crypto.ECC.Koblitz.Value('0', 16), | ||
65 | b: new Clipperz.Crypto.ECC.Koblitz.Value('1', 16), | ||
66 | G: new Clipperz.Crypto.ECC.Koblitz.Point({ | ||
67 | x: new Clipperz.Crypto.ECC.Koblitz.Value('0503213f 78ca4488 3f1a3b81 62f188e5 53cd265f 23c1567a 16876913 b0c2ac24 58492836', 16), | ||
68 | y: new Clipperz.Crypto.ECC.Koblitz.Value('01ccda38 0f1c9e31 8d90f95d 07e5426f e87e45c0 e8184698 e4596236 4e341161 77dd2259', 16) | ||
69 | }), | ||
70 | r: new Clipperz.Crypto.ECC.Koblitz.Value('01ffffff ffffffff ffffffff ffffffff ffffe9ae 2ed07577 265dff7f 94451e06 1e163c61', 16), | ||
71 | h: new Clipperz.Crypto.ECC.Koblitz.Value('4', 16), | ||
72 | primeFactor: new Clipperz.Crypto.ECC.Koblitz.Value('01ffffff ffffffff ffffffff ffffffff ffffe9ae 2ed07577 265dff7f 94451e06 1e163c61', 16) | ||
73 | }); | ||
74 | } | ||
75 | |||
76 | return Clipperz.Crypto.ECC.StandardCurves._K283; | ||
77 | }, | ||
78 | |||
79 | //============================================================================== | ||
80 | |||
81 | '_B571': null, | ||
82 | 'B571': function() { //f(z) = z^571 + z^10 + z^5 + z^2 + 1 | ||
83 | if ((Clipperz.Crypto.ECC.StandardCurves._B571 == null) && (typeof(Clipperz.Crypto.ECC.BinaryField.Curve) != 'undefined')) { | ||
84 | Clipperz.Crypto.ECC.StandardCurves._B571 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
85 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000425', 16), | ||
86 | a: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
87 | b: new Clipperz.Crypto.ECC.BinaryField.Value('02f40e7e 2221f295 de297117 b7f3d62f 5c6a97ff cb8ceff1 cd6ba8ce 4a9a18ad 84ffabbd 8efa5933 2be7ad67 56a66e29 4afd185a 78ff12aa 520e4de7 39baca0c 7ffeff7f 2955727a', 16), | ||
88 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
89 | x: new Clipperz.Crypto.ECC.BinaryField.Value('0303001d 34b85629 6c16c0d4 0d3cd775 0a93d1d2 955fa80a a5f40fc8 db7b2abd bde53950 f4c0d293 cdd711a3 5b67fb14 99ae6003 8614f139 4abfa3b4 c850d927 e1e7769c 8eec2d19', 16), | ||
90 | y: new Clipperz.Crypto.ECC.BinaryField.Value('037bf273 42da639b 6dccfffe b73d69d7 8c6c27a6 009cbbca 1980f853 3921e8a6 84423e43 bab08a57 6291af8f 461bb2a8 b3531d2f 0485c19b 16e2f151 6e23dd3c 1a4827af 1b8ac15b', 16) | ||
91 | }), | ||
92 | r: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff e661ce18 ff559873 08059b18 6823851e c7dd9ca1 161de93d 5174d66e 8382e9bb 2fe84e47', 16), | ||
93 | h: new Clipperz.Crypto.ECC.BinaryField.Value('2', 16) | ||
94 | |||
95 | // S: new Clipperz.Crypto.ECC.BinaryField.Value('2aa058f73a0e33ab486b0f610410c53a7f132310', 10), | ||
96 | // n: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffe661ce18ff55987308059b186823851ec7dd9ca1161de93d5174d66e8382e9bb2fe84e47', 16) | ||
97 | }); | ||
98 | |||
99 | //----------------------------------------------------------------------------- | ||
100 | // | ||
101 | //Guide to Elliptic Curve Cryptography | ||
102 | //Darrel Hankerson, Alfred Menezes, Scott Vanstone | ||
103 | //- Pag: 56, Alorithm 2.45 (with a typo!!!) | ||
104 | // | ||
105 | //----------------------------------------------------------------------------- | ||
106 | // | ||
107 | // http://www.milw0rm.com/papers/136 | ||
108 | // | ||
109 | // ------------------------------------------------------------------------- | ||
110 | // Polynomial Reduction Algorithm Modulo f571 | ||
111 | // ------------------------------------------------------------------------- | ||
112 | // | ||
113 | // Input: Polynomial p(x) of degree 1140 or less, stored as | ||
114 | // an array of 2T machinewords. | ||
115 | // Output: p(x) mod f571(x) | ||
116 | // | ||
117 | // FOR i = T-1, ..., 0 DO | ||
118 | // SET X := P[i+T] | ||
119 | // P[i] := P[i] ^ (X<<5) ^ (X<<7) ^ (X<<10) ^ (X<<15) | ||
120 | // P[i+1] := P[i+1] ^ (X>>17) ^ (X>>22) ^ (X>>25) ^ (X>>27) | ||
121 | // | ||
122 | // SET X := P[T-1] >> 27 | ||
123 | // P[0] := P[0] ^ X ^ (X<<2) ^ (X<<5) ^ (X<<10) | ||
124 | // P[T-1] := P[T-1] & 0x07ffffff | ||
125 | // | ||
126 | // RETURN P[T-1],...,P[0] | ||
127 | // | ||
128 | // ------------------------------------------------------------------------- | ||
129 | // | ||
130 | Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().module; | ||
131 | Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().module = function(aValue) { | ||
132 | varresult; | ||
133 | |||
134 | if (aValue.bitSize() > 1140) { | ||
135 | MochiKit.Logging.logWarning("ECC.StandarCurves.B571.finiteField().module: falling back to default implementation"); | ||
136 | result = Clipperz.Crypto.ECC.StandardCurves._B571.finiteField().slowModule(aValue); | ||
137 | } else { | ||
138 | varC, T; | ||
139 | var i; | ||
140 | |||
141 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
142 | // C = aValue.value().slice(0); | ||
143 | C = aValue._value.slice(0); | ||
144 | for (i=35; i>=18; i--) { | ||
145 | T = C[i]; | ||
146 | C[i-18] = (((C[i-18] ^ (T<<5) ^ (T<<7) ^ (T<<10) ^ (T<<15)) & 0xffffffff) >>> 0); | ||
147 | C[i-17] = ((C[i-17] ^ (T>>>27) ^ (T>>>25) ^ (T>>>22) ^ (T>>>17)) >>> 0); | ||
148 | } | ||
149 | T = (C[17] >>> 27); | ||
150 | C[0] = ((C[0] ^ T ^ ((T<<2) ^ (T<<5) ^ (T<<10)) & 0xffffffff) >>> 0); | ||
151 | C[17] = (C[17] & 0x07ffffff); | ||
152 | |||
153 | for(i=18; i<=35; i++) { | ||
154 | C[i] = 0; | ||
155 | } | ||
156 | |||
157 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | ||
158 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
159 | } | ||
160 | |||
161 | return result; | ||
162 | }; | ||
163 | } | ||
164 | |||
165 | return Clipperz.Crypto.ECC.StandardCurves._B571; | ||
166 | }, | ||
167 | |||
168 | //----------------------------------------------------------------------------- | ||
169 | |||
170 | '_B283': null, | ||
171 | 'B283': function() { //f(z) = z^283 + z^12 + z^7 + z^5 + 1 | ||
172 | if ((Clipperz.Crypto.ECC.StandardCurves._B283 == null) && (typeof(Clipperz.Crypto.ECC.BinaryField.Curve) != 'undefined')) { | ||
173 | Clipperz.Crypto.ECC.StandardCurves._B283 = new Clipperz.Crypto.ECC.BinaryField.Curve({ | ||
174 | modulus: new Clipperz.Crypto.ECC.BinaryField.Value('08000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 000010a1', 16), | ||
175 | a: new Clipperz.Crypto.ECC.BinaryField.Value('1', 16), | ||
176 | b: new Clipperz.Crypto.ECC.BinaryField.Value('027b680a c8b8596d a5a4af8a 19a0303f ca97fd76 45309fa2 a581485a f6263e31 3b79a2f5', 16), | ||
177 | G: new Clipperz.Crypto.ECC.BinaryField.Point({ | ||
178 | x: new Clipperz.Crypto.ECC.BinaryField.Value('05f93925 8db7dd90 e1934f8c 70b0dfec 2eed25b8 557eac9c 80e2e198 f8cdbecd 86b12053', 16), | ||
179 | y: new Clipperz.Crypto.ECC.BinaryField.Value('03676854 fe24141c b98fe6d4 b20d02b4 516ff702 350eddb0 826779c8 13f0df45 be8112f4', 16) | ||
180 | }), | ||
181 | r: new Clipperz.Crypto.ECC.BinaryField.Value('03ffffff ffffffff ffffffff ffffffff ffffef90 399660fc 938a9016 5b042a7c efadb307', 16), | ||
182 | h: new Clipperz.Crypto.ECC.BinaryField.Value('2', 16) | ||
183 | }); | ||
184 | |||
185 | //----------------------------------------------------------------------------- | ||
186 | // | ||
187 | //Guide to Elliptic Curve Cryptography | ||
188 | //Darrel Hankerson, Alfred Menezes, Scott Vanstone | ||
189 | //- Pag: 56, Alorithm 2.43 | ||
190 | // | ||
191 | //----------------------------------------------------------------------------- | ||
192 | Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().module; | ||
193 | Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().module = function(aValue) { | ||
194 | varresult; | ||
195 | |||
196 | if (aValue.bitSize() > 564) { | ||
197 | MochiKit.Logging.logWarning("ECC.StandarCurves.B283.finiteField().module: falling back to default implementation"); | ||
198 | result = Clipperz.Crypto.ECC.StandardCurves._B283.finiteField().slowModule(aValue); | ||
199 | } else { | ||
200 | varC, T; | ||
201 | var i; | ||
202 | |||
203 | //console.log(">>> binaryField.finiteField.(improved)module"); | ||
204 | C = aValue._value.slice(0); | ||
205 | for (i=17; i>=9; i--) { | ||
206 | T = C[i]; | ||
207 | C[i-9] = (((C[i-9] ^ (T<<5) ^ (T<<10) ^ (T<<12) ^ (T<<17)) & 0xffffffff) >>> 0); | ||
208 | C[i-8] = ((C[i-8] ^ (T>>>27) ^ (T>>>22) ^ (T>>>20) ^ (T>>>15)) >>> 0); | ||
209 | } | ||
210 | T = (C[8] >>> 27); | ||
211 | C[0] = ((C[0] ^ T ^ ((T<<5) ^ (T<<7) ^ (T<<12)) & 0xffffffff) >>> 0); | ||
212 | C[8] = (C[8] & 0x07ffffff); | ||
213 | |||
214 | for(i=9; i<=17; i++) { | ||
215 | C[i] = 0; | ||
216 | } | ||
217 | |||
218 | result = new Clipperz.Crypto.ECC.BinaryField.Value(C); | ||
219 | //console.log("<<< binaryField.finiteField.(improved)module"); | ||
220 | } | ||
221 | |||
222 | return result; | ||
223 | }; | ||
224 | } | ||
225 | |||
226 | return Clipperz.Crypto.ECC.StandardCurves._B283; | ||
227 | }, | ||
228 | |||
229 | //============================================================================== | ||
230 | __syntaxFix__: "syntax fix" | ||
231 | }); | ||
232 | |||
233 | |||
234 | |||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/PRNG.js b/frontend/gamma/js/ClipperzCryptoLibrary/PRNG.js new file mode 100644 index 0000000..18cc260 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/PRNG.js | |||
@@ -0,0 +1,850 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.PRNG depends on Clipperz.ByteArray!"; | ||
26 | } | ||
27 | |||
28 | try { if (typeof(Clipperz.Crypto.SHA) == 'undefined') { throw ""; }} catch (e) { | ||
29 | throw "Clipperz.Crypto.PRNG depends on Clipperz.Crypto.SHA!"; | ||
30 | } | ||
31 | |||
32 | try { if (typeof(Clipperz.Crypto.AES) == 'undefined') { throw ""; }} catch (e) { | ||
33 | throw "Clipperz.Crypto.PRNG depends on Clipperz.Crypto.AES!"; | ||
34 | } | ||
35 | |||
36 | if (typeof(Clipperz.Crypto.PRNG) == 'undefined') { Clipperz.Crypto.PRNG = {}; } | ||
37 | |||
38 | //############################################################################# | ||
39 | |||
40 | Clipperz.Crypto.PRNG.EntropyAccumulator = function(args) { | ||
41 | args = args || {}; | ||
42 | //MochiKit.Base.bindMethods(this); | ||
43 | |||
44 | this._stack = new Clipperz.ByteArray(); | ||
45 | this._maxStackLengthBeforeHashing = args.maxStackLengthBeforeHashing || 256; | ||
46 | return this; | ||
47 | } | ||
48 | |||
49 | Clipperz.Crypto.PRNG.EntropyAccumulator.prototype = MochiKit.Base.update(null, { | ||
50 | |||
51 | 'toString': function() { | ||
52 | return "Clipperz.Crypto.PRNG.EntropyAccumulator"; | ||
53 | }, | ||
54 | |||
55 | //------------------------------------------------------------------------- | ||
56 | |||
57 | 'stack': function() { | ||
58 | return this._stack; | ||
59 | }, | ||
60 | |||
61 | 'setStack': function(aValue) { | ||
62 | this._stack = aValue; | ||
63 | }, | ||
64 | |||
65 | 'resetStack': function() { | ||
66 | this.stack().reset(); | ||
67 | }, | ||
68 | |||
69 | 'maxStackLengthBeforeHashing': function() { | ||
70 | return this._maxStackLengthBeforeHashing; | ||
71 | }, | ||
72 | |||
73 | //------------------------------------------------------------------------- | ||
74 | |||
75 | 'addRandomByte': function(aValue) { | ||
76 | this.stack().appendByte(aValue); | ||
77 | |||
78 | if (this.stack().length() > this.maxStackLengthBeforeHashing()) { | ||
79 | this.setStack(Clipperz.Crypto.SHA.sha_d256(this.stack())); | ||
80 | } | ||
81 | }, | ||
82 | |||
83 | //------------------------------------------------------------------------- | ||
84 | __syntaxFix__: "syntax fix" | ||
85 | }); | ||
86 | |||
87 | //############################################################################# | ||
88 | |||
89 | Clipperz.Crypto.PRNG.RandomnessSource = function(args) { | ||
90 | args = args || {}; | ||
91 | MochiKit.Base.bindMethods(this); | ||
92 | |||
93 | this._generator = args.generator || null; | ||
94 | this._sourceId = args.sourceId || null; | ||
95 | this._boostMode = args.boostMode || false; | ||
96 | |||
97 | this._nextPoolIndex = 0; | ||
98 | |||
99 | return this; | ||
100 | } | ||
101 | |||
102 | Clipperz.Crypto.PRNG.RandomnessSource.prototype = MochiKit.Base.update(null, { | ||
103 | |||
104 | 'generator': function() { | ||
105 | return this._generator; | ||
106 | }, | ||
107 | |||
108 | 'setGenerator': function(aValue) { | ||
109 | this._generator = aValue; | ||
110 | }, | ||
111 | |||
112 | //------------------------------------------------------------------------- | ||
113 | |||
114 | 'boostMode': function() { | ||
115 | return this._boostMode; | ||
116 | }, | ||
117 | |||
118 | 'setBoostMode': function(aValue) { | ||
119 | this._boostMode = aValue; | ||
120 | }, | ||
121 | |||
122 | //------------------------------------------------------------------------- | ||
123 | |||
124 | 'sourceId': function() { | ||
125 | return this._sourceId; | ||
126 | }, | ||
127 | |||
128 | 'setSourceId': function(aValue) { | ||
129 | this._sourceId = aValue; | ||
130 | }, | ||
131 | |||
132 | //------------------------------------------------------------------------- | ||
133 | |||
134 | 'nextPoolIndex': function() { | ||
135 | return this._nextPoolIndex; | ||
136 | }, | ||
137 | |||
138 | 'incrementNextPoolIndex': function() { | ||
139 | this._nextPoolIndex = ((this._nextPoolIndex + 1) % this.generator().numberOfEntropyAccumulators()); | ||
140 | }, | ||
141 | |||
142 | //------------------------------------------------------------------------- | ||
143 | |||
144 | 'updateGeneratorWithValue': function(aRandomValue) { | ||
145 | if (this.generator() != null) { | ||
146 | this.generator().addRandomByte(this.sourceId(), this.nextPoolIndex(), aRandomValue); | ||
147 | this.incrementNextPoolIndex(); | ||
148 | } | ||
149 | }, | ||
150 | |||
151 | //------------------------------------------------------------------------- | ||
152 | __syntaxFix__: "syntax fix" | ||
153 | }); | ||
154 | |||
155 | //############################################################################# | ||
156 | |||
157 | Clipperz.Crypto.PRNG.TimeRandomnessSource = function(args) { | ||
158 | args = args || {}; | ||
159 | //MochiKit.Base.bindMethods(this); | ||
160 | |||
161 | this._intervalTime = args.intervalTime || 1000; | ||
162 | |||
163 | Clipperz.Crypto.PRNG.RandomnessSource.call(this, args); | ||
164 | |||
165 | this.collectEntropy(); | ||
166 | return this; | ||
167 | } | ||
168 | |||
169 | Clipperz.Crypto.PRNG.TimeRandomnessSource.prototype = MochiKit.Base.update(new Clipperz.Crypto.PRNG.RandomnessSource, { | ||
170 | |||
171 | 'intervalTime': function() { | ||
172 | return this._intervalTime; | ||
173 | }, | ||
174 | |||
175 | //------------------------------------------------------------------------- | ||
176 | |||
177 | 'collectEntropy': function() { | ||
178 | varnow; | ||
179 | varentropyByte; | ||
180 | var intervalTime; | ||
181 | now = new Date(); | ||
182 | entropyByte = (now.getTime() & 0xff); | ||
183 | |||
184 | intervalTime = this.intervalTime(); | ||
185 | if (this.boostMode() == true) { | ||
186 | intervalTime = intervalTime / 9; | ||
187 | } | ||
188 | |||
189 | this.updateGeneratorWithValue(entropyByte); | ||
190 | setTimeout(this.collectEntropy, intervalTime); | ||
191 | }, | ||
192 | |||
193 | //------------------------------------------------------------------------- | ||
194 | |||
195 | 'numberOfRandomBits': function() { | ||
196 | return 5; | ||
197 | }, | ||
198 | |||
199 | //------------------------------------------------------------------------- | ||
200 | |||
201 | 'pollingFrequency': function() { | ||
202 | return 10; | ||
203 | }, | ||
204 | |||
205 | //------------------------------------------------------------------------- | ||
206 | __syntaxFix__: "syntax fix" | ||
207 | }); | ||
208 | |||
209 | //***************************************************************************** | ||
210 | |||
211 | Clipperz.Crypto.PRNG.MouseRandomnessSource = function(args) { | ||
212 | args = args || {}; | ||
213 | |||
214 | Clipperz.Crypto.PRNG.RandomnessSource.call(this, args); | ||
215 | |||
216 | this._numberOfBitsToCollectAtEachEvent = 4; | ||
217 | this._randomBitsCollector = 0; | ||
218 | this._numberOfRandomBitsCollected = 0; | ||
219 | |||
220 | MochiKit.Signal.connect(document, 'onmousemove', this, 'collectEntropy'); | ||
221 | |||
222 | return this; | ||
223 | } | ||
224 | |||
225 | Clipperz.Crypto.PRNG.MouseRandomnessSource.prototype = MochiKit.Base.update(new Clipperz.Crypto.PRNG.RandomnessSource, { | ||
226 | |||
227 | //------------------------------------------------------------------------- | ||
228 | |||
229 | 'numberOfBitsToCollectAtEachEvent': function() { | ||
230 | return this._numberOfBitsToCollectAtEachEvent; | ||
231 | }, | ||
232 | |||
233 | //------------------------------------------------------------------------- | ||
234 | |||
235 | 'randomBitsCollector': function() { | ||
236 | return this._randomBitsCollector; | ||
237 | }, | ||
238 | |||
239 | 'setRandomBitsCollector': function(aValue) { | ||
240 | this._randomBitsCollector = aValue; | ||
241 | }, | ||
242 | |||
243 | 'appendRandomBitsToRandomBitsCollector': function(aValue) { | ||
244 | var collectedBits; | ||
245 | var numberOfRandomBitsCollected; | ||
246 | |||
247 | numberOfRandomBitsCollected = this.numberOfRandomBitsCollected(); | ||
248 | collectetBits = this.randomBitsCollector() | (aValue << numberOfRandomBitsCollected); | ||
249 | this.setRandomBitsCollector(collectetBits); | ||
250 | numberOfRandomBitsCollected += this.numberOfBitsToCollectAtEachEvent(); | ||
251 | |||
252 | if (numberOfRandomBitsCollected == 8) { | ||
253 | this.updateGeneratorWithValue(collectetBits); | ||
254 | numberOfRandomBitsCollected = 0; | ||
255 | this.setRandomBitsCollector(0); | ||
256 | } | ||
257 | |||
258 | this.setNumberOfRandomBitsCollected(numberOfRandomBitsCollected) | ||
259 | }, | ||
260 | |||
261 | //------------------------------------------------------------------------- | ||
262 | |||
263 | 'numberOfRandomBitsCollected': function() { | ||
264 | return this._numberOfRandomBitsCollected; | ||
265 | }, | ||
266 | |||
267 | 'setNumberOfRandomBitsCollected': function(aValue) { | ||
268 | this._numberOfRandomBitsCollected = aValue; | ||
269 | }, | ||
270 | |||
271 | //------------------------------------------------------------------------- | ||
272 | |||
273 | 'collectEntropy': function(anEvent) { | ||
274 | var mouseLocation; | ||
275 | var randomBit; | ||
276 | var mask; | ||
277 | |||
278 | mask = 0xffffffff >>> (32 - this.numberOfBitsToCollectAtEachEvent()); | ||
279 | |||
280 | mouseLocation = anEvent.mouse().client; | ||
281 | randomBit = ((mouseLocation.x ^ mouseLocation.y) & mask); | ||
282 | this.appendRandomBitsToRandomBitsCollector(randomBit) | ||
283 | }, | ||
284 | |||
285 | //------------------------------------------------------------------------- | ||
286 | |||
287 | 'numberOfRandomBits': function() { | ||
288 | return 1; | ||
289 | }, | ||
290 | |||
291 | //------------------------------------------------------------------------- | ||
292 | |||
293 | 'pollingFrequency': function() { | ||
294 | return 10; | ||
295 | }, | ||
296 | |||
297 | //------------------------------------------------------------------------- | ||
298 | __syntaxFix__: "syntax fix" | ||
299 | }); | ||
300 | |||
301 | //***************************************************************************** | ||
302 | |||
303 | Clipperz.Crypto.PRNG.KeyboardRandomnessSource = function(args) { | ||
304 | args = args || {}; | ||
305 | Clipperz.Crypto.PRNG.RandomnessSource.call(this, args); | ||
306 | |||
307 | this._randomBitsCollector = 0; | ||
308 | this._numberOfRandomBitsCollected = 0; | ||
309 | |||
310 | MochiKit.Signal.connect(document, 'onkeypress', this, 'collectEntropy'); | ||
311 | |||
312 | return this; | ||
313 | } | ||
314 | |||
315 | Clipperz.Crypto.PRNG.KeyboardRandomnessSource.prototype = MochiKit.Base.update(new Clipperz.Crypto.PRNG.RandomnessSource, { | ||
316 | |||
317 | //------------------------------------------------------------------------- | ||
318 | |||
319 | 'randomBitsCollector': function() { | ||
320 | return this._randomBitsCollector; | ||
321 | }, | ||
322 | |||
323 | 'setRandomBitsCollector': function(aValue) { | ||
324 | this._randomBitsCollector = aValue; | ||
325 | }, | ||
326 | |||
327 | 'appendRandomBitToRandomBitsCollector': function(aValue) { | ||
328 | var collectedBits; | ||
329 | var numberOfRandomBitsCollected; | ||
330 | |||
331 | numberOfRandomBitsCollected = this.numberOfRandomBitsCollected(); | ||
332 | collectetBits = this.randomBitsCollector() | (aValue << numberOfRandomBitsCollected); | ||
333 | this.setRandomBitsCollector(collectetBits); | ||
334 | numberOfRandomBitsCollected ++; | ||
335 | |||
336 | if (numberOfRandomBitsCollected == 8) { | ||
337 | this.updateGeneratorWithValue(collectetBits); | ||
338 | numberOfRandomBitsCollected = 0; | ||
339 | this.setRandomBitsCollector(0); | ||
340 | } | ||
341 | |||
342 | this.setNumberOfRandomBitsCollected(numberOfRandomBitsCollected) | ||
343 | }, | ||
344 | |||
345 | //------------------------------------------------------------------------- | ||
346 | |||
347 | 'numberOfRandomBitsCollected': function() { | ||
348 | return this._numberOfRandomBitsCollected; | ||
349 | }, | ||
350 | |||
351 | 'setNumberOfRandomBitsCollected': function(aValue) { | ||
352 | this._numberOfRandomBitsCollected = aValue; | ||
353 | }, | ||
354 | |||
355 | //------------------------------------------------------------------------- | ||
356 | |||
357 | 'collectEntropy': function(anEvent) { | ||
358 | /* | ||
359 | var mouseLocation; | ||
360 | var randomBit; | ||
361 | |||
362 | mouseLocation = anEvent.mouse().client; | ||
363 | |||
364 | randomBit = ((mouseLocation.x ^ mouseLocation.y) & 0x1); | ||
365 | this.appendRandomBitToRandomBitsCollector(randomBit); | ||
366 | */ | ||
367 | }, | ||
368 | |||
369 | //------------------------------------------------------------------------- | ||
370 | |||
371 | 'numberOfRandomBits': function() { | ||
372 | return 1; | ||
373 | }, | ||
374 | |||
375 | //------------------------------------------------------------------------- | ||
376 | |||
377 | 'pollingFrequency': function() { | ||
378 | return 10; | ||
379 | }, | ||
380 | |||
381 | //------------------------------------------------------------------------- | ||
382 | __syntaxFix__: "syntax fix" | ||
383 | }); | ||
384 | |||
385 | //############################################################################# | ||
386 | |||
387 | Clipperz.Crypto.PRNG.Fortuna = function(args) { | ||
388 | vari,c; | ||
389 | |||
390 | args = args || {}; | ||
391 | |||
392 | this._key = args.seed || null; | ||
393 | if (this._key == null) { | ||
394 | this._counter = 0; | ||
395 | this._key = new Clipperz.ByteArray(); | ||
396 | } else { | ||
397 | this._counter = 1; | ||
398 | } | ||
399 | |||
400 | this._aesKey = null; | ||
401 | |||
402 | this._firstPoolReseedLevel = args.firstPoolReseedLevel || 32 || 64; | ||
403 | this._numberOfEntropyAccumulators = args.numberOfEntropyAccumulators || 32; | ||
404 | |||
405 | this._accumulators = []; | ||
406 | c = this.numberOfEntropyAccumulators(); | ||
407 | for (i=0; i<c; i++) { | ||
408 | this._accumulators.push(new Clipperz.Crypto.PRNG.EntropyAccumulator()); | ||
409 | } | ||
410 | |||
411 | this._randomnessSources = []; | ||
412 | this._reseedCounter = 0; | ||
413 | |||
414 | return this; | ||
415 | } | ||
416 | |||
417 | Clipperz.Crypto.PRNG.Fortuna.prototype = MochiKit.Base.update(null, { | ||
418 | |||
419 | 'toString': function() { | ||
420 | return "Clipperz.Crypto.PRNG.Fortuna"; | ||
421 | }, | ||
422 | |||
423 | //------------------------------------------------------------------------- | ||
424 | |||
425 | 'key': function() { | ||
426 | return this._key; | ||
427 | }, | ||
428 | |||
429 | 'setKey': function(aValue) { | ||
430 | this._key = aValue; | ||
431 | this._aesKey = null; | ||
432 | }, | ||
433 | |||
434 | 'aesKey': function() { | ||
435 | if (this._aesKey == null) { | ||
436 | this._aesKey = new Clipperz.Crypto.AES.Key({key:this.key()}); | ||
437 | } | ||
438 | |||
439 | return this._aesKey; | ||
440 | }, | ||
441 | |||
442 | 'accumulators': function() { | ||
443 | return this._accumulators; | ||
444 | }, | ||
445 | |||
446 | 'firstPoolReseedLevel': function() { | ||
447 | return this._firstPoolReseedLevel; | ||
448 | }, | ||
449 | |||
450 | //------------------------------------------------------------------------- | ||
451 | |||
452 | 'reseedCounter': function() { | ||
453 | return this._reseedCounter; | ||
454 | }, | ||
455 | |||
456 | 'incrementReseedCounter': function() { | ||
457 | this._reseedCounter = this._reseedCounter +1; | ||
458 | }, | ||
459 | |||
460 | //------------------------------------------------------------------------- | ||
461 | |||
462 | 'reseed': function() { | ||
463 | varnewKeySeed; | ||
464 | var reseedCounter; | ||
465 | varreseedCounterMask; | ||
466 | var i, c; | ||
467 | |||
468 | newKeySeed = this.key(); | ||
469 | this.incrementReseedCounter(); | ||
470 | reseedCounter = this.reseedCounter(); | ||
471 | |||
472 | c = this.numberOfEntropyAccumulators(); | ||
473 | reseedCounterMask = 0xffffffff >>> (32 - c); | ||
474 | for (i=0; i<c; i++) { | ||
475 | if ((i == 0) || ((reseedCounter & (reseedCounterMask >>> (c - i))) == 0)) { | ||
476 | newKeySeed.appendBlock(this.accumulators()[i].stack()); | ||
477 | this.accumulators()[i].resetStack(); | ||
478 | } | ||
479 | } | ||
480 | |||
481 | if (reseedCounter == 1) { | ||
482 | c = this.randomnessSources().length; | ||
483 | for (i=0; i<c; i++) { | ||
484 | this.randomnessSources()[i].setBoostMode(false); | ||
485 | } | ||
486 | } | ||
487 | |||
488 | this.setKey(Clipperz.Crypto.SHA.sha_d256(newKeySeed)); | ||
489 | if (reseedCounter == 1) { | ||
490 | //MochiKit.Logging.logDebug("### PRNG.readyToGenerateRandomBytes"); | ||
491 | Clipperz.log("### PRNG.readyToGenerateRandomBytes"); | ||
492 | MochiKit.Signal.signal(this, 'readyToGenerateRandomBytes'); | ||
493 | } | ||
494 | MochiKit.Signal.signal(this, 'reseeded'); | ||
495 | }, | ||
496 | |||
497 | //------------------------------------------------------------------------- | ||
498 | |||
499 | 'isReadyToGenerateRandomValues': function() { | ||
500 | return this.reseedCounter() != 0; | ||
501 | }, | ||
502 | |||
503 | //------------------------------------------------------------------------- | ||
504 | |||
505 | 'entropyLevel': function() { | ||
506 | return this.accumulators()[0].stack().length() + (this.reseedCounter() * this.firstPoolReseedLevel()); | ||
507 | }, | ||
508 | |||
509 | //------------------------------------------------------------------------- | ||
510 | |||
511 | 'counter': function() { | ||
512 | return this._counter; | ||
513 | }, | ||
514 | |||
515 | 'incrementCounter': function() { | ||
516 | this._counter += 1; | ||
517 | }, | ||
518 | |||
519 | 'counterBlock': function() { | ||
520 | var result; | ||
521 | |||
522 | result = new Clipperz.ByteArray().appendWords(this.counter(), 0, 0, 0); | ||
523 | |||
524 | return result; | ||
525 | }, | ||
526 | |||
527 | //------------------------------------------------------------------------- | ||
528 | |||
529 | 'getRandomBlock': function() { | ||
530 | var result; | ||
531 | |||
532 | result = new Clipperz.ByteArray(Clipperz.Crypto.AES.encryptBlock(this.aesKey(), this.counterBlock().arrayValues())); | ||
533 | this.incrementCounter(); | ||
534 | |||
535 | return result; | ||
536 | }, | ||
537 | |||
538 | //------------------------------------------------------------------------- | ||
539 | |||
540 | 'getRandomBytes': function(aSize) { | ||
541 | var result; | ||
542 | |||
543 | if (this.isReadyToGenerateRandomValues()) { | ||
544 | var i,c; | ||
545 | var newKey; | ||
546 | |||
547 | result = new Clipperz.ByteArray(); | ||
548 | |||
549 | c = Math.ceil(aSize / (128 / 8)); | ||
550 | for (i=0; i<c; i++) { | ||
551 | result.appendBlock(this.getRandomBlock()); | ||
552 | } | ||
553 | |||
554 | if (result.length() != aSize) { | ||
555 | result = result.split(0, aSize); | ||
556 | } | ||
557 | |||
558 | newKey = this.getRandomBlock().appendBlock(this.getRandomBlock()); | ||
559 | this.setKey(newKey); | ||
560 | } else { | ||
561 | MochiKit.Logging.logWarning("Fortuna generator has not enough entropy, yet!"); | ||
562 | throw Clipperz.Crypto.PRNG.exception.NotEnoughEntropy; | ||
563 | } | ||
564 | |||
565 | return result; | ||
566 | }, | ||
567 | |||
568 | //------------------------------------------------------------------------- | ||
569 | |||
570 | 'addRandomByte': function(aSourceId, aPoolId, aRandomValue) { | ||
571 | varselectedAccumulator; | ||
572 | |||
573 | selectedAccumulator = this.accumulators()[aPoolId]; | ||
574 | selectedAccumulator.addRandomByte(aRandomValue); | ||
575 | |||
576 | if (aPoolId == 0) { | ||
577 | MochiKit.Signal.signal(this, 'addedRandomByte') | ||
578 | if (selectedAccumulator.stack().length() > this.firstPoolReseedLevel()) { | ||
579 | this.reseed(); | ||
580 | } | ||
581 | } | ||
582 | }, | ||
583 | |||
584 | //------------------------------------------------------------------------- | ||
585 | |||
586 | 'numberOfEntropyAccumulators': function() { | ||
587 | return this._numberOfEntropyAccumulators; | ||
588 | }, | ||
589 | |||
590 | //------------------------------------------------------------------------- | ||
591 | |||
592 | 'randomnessSources': function() { | ||
593 | return this._randomnessSources; | ||
594 | }, | ||
595 | |||
596 | 'addRandomnessSource': function(aRandomnessSource) { | ||
597 | aRandomnessSource.setGenerator(this); | ||
598 | aRandomnessSource.setSourceId(this.randomnessSources().length); | ||
599 | this.randomnessSources().push(aRandomnessSource); | ||
600 | |||
601 | if (this.isReadyToGenerateRandomValues() == false) { | ||
602 | aRandomnessSource.setBoostMode(true); | ||
603 | } | ||
604 | }, | ||
605 | |||
606 | //------------------------------------------------------------------------- | ||
607 | |||
608 | 'deferredEntropyCollection': function(aValue) { | ||
609 | var result; | ||
610 | |||
611 | //MochiKit.Logging.logDebug(">>> PRNG.deferredEntropyCollection"); | ||
612 | |||
613 | if (this.isReadyToGenerateRandomValues()) { | ||
614 | //MochiKit.Logging.logDebug("--- PRNG.deferredEntropyCollection - 1"); | ||
615 | result = aValue; | ||
616 | } else { | ||
617 | //MochiKit.Logging.logDebug("--- PRNG.deferredEntropyCollection - 2"); | ||
618 | var deferredResult; | ||
619 | |||
620 | // Clipperz.NotificationCenter.notify(this, 'updatedProgressState', 'collectingEntropy', true); | ||
621 | |||
622 | deferredResult = new Clipperz.Async.Deferred("PRNG.deferredEntropyCollection"); | ||
623 | // deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("1.2.1 - PRNG.deferredEntropyCollection - 1: " + res); return res;}); | ||
624 | deferredResult.addCallback(MochiKit.Base.partial(MochiKit.Async.succeed, aValue)); | ||
625 | // deferredResult.addBoth(function(res) {MochiKit.Logging.logDebug("1.2.2 - PRNG.deferredEntropyCollection - 2: " + res); return res;}); | ||
626 | MochiKit.Signal.connect(this, | ||
627 | 'readyToGenerateRandomBytes', | ||
628 | deferredResult, | ||
629 | 'callback'); | ||
630 | |||
631 | result = deferredResult; | ||
632 | } | ||
633 | //MochiKit.Logging.logDebug("<<< PRNG.deferredEntropyCollection - result: " + result); | ||
634 | |||
635 | return result; | ||
636 | }, | ||
637 | |||
638 | //------------------------------------------------------------------------- | ||
639 | |||
640 | 'fastEntropyAccumulationForTestingPurpose': function() { | ||
641 | while (! this.isReadyToGenerateRandomValues()) { | ||
642 | this.addRandomByte(Math.floor(Math.random() * 32), Math.floor(Math.random() * 32), Math.floor(Math.random() * 256)); | ||
643 | } | ||
644 | }, | ||
645 | |||
646 | //------------------------------------------------------------------------- | ||
647 | |||
648 | 'dump': function(appendToDoc) { | ||
649 | var tbl; | ||
650 | var i,c; | ||
651 | |||
652 | tbl = document.createElement("table"); | ||
653 | tbl.border = 0; | ||
654 | with (tbl.style) { | ||
655 | border = "1px solid lightgrey"; | ||
656 | fontFamily = 'Helvetica, Arial, sans-serif'; | ||
657 | fontSize = '8pt'; | ||
658 | //borderCollapse = "collapse"; | ||
659 | } | ||
660 | var hdr = tbl.createTHead(); | ||
661 | var hdrtr = hdr.insertRow(0); | ||
662 | // document.createElement("tr"); | ||
663 | { | ||
664 | var ntd; | ||
665 | |||
666 | ntd = hdrtr.insertCell(0); | ||
667 | ntd.style.borderBottom = "1px solid lightgrey"; | ||
668 | ntd.style.borderRight = "1px solid lightgrey"; | ||
669 | ntd.appendChild(document.createTextNode("#")); | ||
670 | |||
671 | ntd = hdrtr.insertCell(1); | ||
672 | ntd.style.borderBottom = "1px solid lightgrey"; | ||
673 | ntd.style.borderRight = "1px solid lightgrey"; | ||
674 | ntd.appendChild(document.createTextNode("s")); | ||
675 | |||
676 | ntd = hdrtr.insertCell(2); | ||
677 | ntd.colSpan = this.firstPoolReseedLevel(); | ||
678 | ntd.style.borderBottom = "1px solid lightgrey"; | ||
679 | ntd.style.borderRight = "1px solid lightgrey"; | ||
680 | ntd.appendChild(document.createTextNode("base values")); | ||
681 | |||
682 | ntd = hdrtr.insertCell(3); | ||
683 | ntd.colSpan = 20; | ||
684 | ntd.style.borderBottom = "1px solid lightgrey"; | ||
685 | ntd.appendChild(document.createTextNode("extra values")); | ||
686 | |||
687 | } | ||
688 | |||
689 | c = this.accumulators().length; | ||
690 | for (i=0; i<c ; i++) { | ||
691 | varcurrentAccumulator; | ||
692 | var bdytr; | ||
693 | var bdytd; | ||
694 | var ii, cc; | ||
695 | |||
696 | currentAccumulator = this.accumulators()[i] | ||
697 | |||
698 | bdytr = tbl.insertRow(true); | ||
699 | |||
700 | bdytd = bdytr.insertCell(0); | ||
701 | bdytd.style.borderRight = "1px solid lightgrey"; | ||
702 | bdytd.style.color = "lightgrey"; | ||
703 | bdytd.appendChild(document.createTextNode("" + i)); | ||
704 | |||
705 | bdytd = bdytr.insertCell(1); | ||
706 | bdytd.style.borderRight = "1px solid lightgrey"; | ||
707 | bdytd.style.color = "gray"; | ||
708 | bdytd.appendChild(document.createTextNode("" + currentAccumulator.stack().length())); | ||
709 | |||
710 | |||
711 | cc = Math.max(currentAccumulator.stack().length(), this.firstPoolReseedLevel()); | ||
712 | for (ii=0; ii<cc; ii++) { | ||
713 | var cellText; | ||
714 | |||
715 | bdytd = bdytr.insertCell(ii + 2); | ||
716 | |||
717 | if (ii < currentAccumulator.stack().length()) { | ||
718 | cellText = Clipperz.ByteArray.byteToHex(currentAccumulator.stack().byteAtIndex(ii)); | ||
719 | } else { | ||
720 | cellText = "_"; | ||
721 | } | ||
722 | |||
723 | if (ii == (this.firstPoolReseedLevel() - 1)) { | ||
724 | bdytd.style.borderRight = "1px solid lightgrey"; | ||
725 | } | ||
726 | |||
727 | bdytd.appendChild(document.createTextNode(cellText)); | ||
728 | } | ||
729 | |||
730 | } | ||
731 | |||
732 | |||
733 | if (appendToDoc) { | ||
734 | var ne = document.createElement("div"); | ||
735 | ne.id = "entropyGeneratorStatus"; | ||
736 | with (ne.style) { | ||
737 | fontFamily = "Courier New, monospace"; | ||
738 | fontSize = "12px"; | ||
739 | lineHeight = "16px"; | ||
740 | borderTop = "1px solid black"; | ||
741 | padding = "10px"; | ||
742 | } | ||
743 | if (document.getElementById(ne.id)) { | ||
744 | MochiKit.DOM.swapDOM(ne.id, ne); | ||
745 | } else { | ||
746 | document.body.appendChild(ne); | ||
747 | } | ||
748 | ne.appendChild(tbl); | ||
749 | } | ||
750 | |||
751 | return tbl; | ||
752 | }, | ||
753 | |||
754 | //----------------------------------------------------------------------------- | ||
755 | __syntaxFix__: "syntax fix" | ||
756 | }); | ||
757 | |||
758 | //############################################################################# | ||
759 | |||
760 | Clipperz.Crypto.PRNG.Random = function(args) { | ||
761 | args = args || {}; | ||
762 | //MochiKit.Base.bindMethods(this); | ||
763 | |||
764 | return this; | ||
765 | } | ||
766 | |||
767 | Clipperz.Crypto.PRNG.Random.prototype = MochiKit.Base.update(null, { | ||
768 | |||
769 | 'toString': function() { | ||
770 | return "Clipperz.Crypto.PRNG.Random"; | ||
771 | }, | ||
772 | |||
773 | //------------------------------------------------------------------------- | ||
774 | |||
775 | 'getRandomBytes': function(aSize) { | ||
776 | //Clipperz.Profile.start("Clipperz.Crypto.PRNG.Random.getRandomBytes"); | ||
777 | varresult; | ||
778 | var i,c; | ||
779 | |||
780 | result = new Clipperz.ByteArray() | ||
781 | c = aSize || 1; | ||
782 | for (i=0; i<c; i++) { | ||
783 | result.appendByte((Math.random()*255) & 0xff); | ||
784 | } | ||
785 | |||
786 | //Clipperz.Profile.stop("Clipperz.Crypto.PRNG.Random.getRandomBytes"); | ||
787 | return result; | ||
788 | }, | ||
789 | |||
790 | //------------------------------------------------------------------------- | ||
791 | __syntaxFix__: "syntax fix" | ||
792 | }); | ||
793 | |||
794 | //############################################################################# | ||
795 | |||
796 | _clipperz_crypt_prng_defaultPRNG = null; | ||
797 | |||
798 | Clipperz.Crypto.PRNG.defaultRandomGenerator = function() { | ||
799 | if (_clipperz_crypt_prng_defaultPRNG == null) { | ||
800 | _clipperz_crypt_prng_defaultPRNG = new Clipperz.Crypto.PRNG.Fortuna(); | ||
801 | |||
802 | //............................................................. | ||
803 | // | ||
804 | // TimeRandomnessSource | ||
805 | // | ||
806 | //............................................................. | ||
807 | { | ||
808 | var newRandomnessSource; | ||
809 | |||
810 | newRandomnessSource = new Clipperz.Crypto.PRNG.TimeRandomnessSource({intervalTime:111}); | ||
811 | _clipperz_crypt_prng_defaultPRNG.addRandomnessSource(newRandomnessSource); | ||
812 | } | ||
813 | |||
814 | //............................................................. | ||
815 | // | ||
816 | // MouseRandomnessSource | ||
817 | // | ||
818 | //............................................................. | ||
819 | { | ||
820 | varnewRandomnessSource; | ||
821 | |||
822 | newRandomnessSource = new Clipperz.Crypto.PRNG.MouseRandomnessSource(); | ||
823 | _clipperz_crypt_prng_defaultPRNG.addRandomnessSource(newRandomnessSource); | ||
824 | } | ||
825 | |||
826 | //............................................................. | ||
827 | // | ||
828 | // KeyboardRandomnessSource | ||
829 | // | ||
830 | //............................................................. | ||
831 | { | ||
832 | varnewRandomnessSource; | ||
833 | |||
834 | newRandomnessSource = new Clipperz.Crypto.PRNG.KeyboardRandomnessSource(); | ||
835 | _clipperz_crypt_prng_defaultPRNG.addRandomnessSource(newRandomnessSource); | ||
836 | } | ||
837 | |||
838 | } | ||
839 | |||
840 | return _clipperz_crypt_prng_defaultPRNG; | ||
841 | }; | ||
842 | |||
843 | //############################################################################# | ||
844 | |||
845 | Clipperz.Crypto.PRNG.exception = { | ||
846 | NotEnoughEntropy: new MochiKit.Base.NamedError("Clipperz.Crypto.PRNG.exception.NotEnoughEntropy") | ||
847 | }; | ||
848 | |||
849 | |||
850 | MochiKit.DOM.addLoadEvent(Clipperz.Crypto.PRNG.defaultRandomGenerator); | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/RSA.js b/frontend/gamma/js/ClipperzCryptoLibrary/RSA.js new file mode 100644 index 0000000..5a480f1 --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/RSA.js | |||
@@ -0,0 +1,146 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.Crypto.BigInt) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.RSA depends on Clipperz.Crypto.BigInt!"; | ||
26 | } | ||
27 | |||
28 | if (typeof(Clipperz.Crypto.RSA) == 'undefined') { Clipperz.Crypto.RSA = {}; } | ||
29 | |||
30 | Clipperz.Crypto.RSA.VERSION = "0.1"; | ||
31 | Clipperz.Crypto.RSA.NAME = "Clipperz.RSA"; | ||
32 | |||
33 | //############################################################################# | ||
34 | |||
35 | MochiKit.Base.update(Clipperz.Crypto.RSA, { | ||
36 | |||
37 | //------------------------------------------------------------------------- | ||
38 | |||
39 | 'publicKeyWithValues': function (e, d, n) { | ||
40 | varresult; | ||
41 | |||
42 | result = {}; | ||
43 | |||
44 | if (e.isBigInt) { | ||
45 | result.e = e; | ||
46 | } else { | ||
47 | result.e = new Clipperz.Crypto.BigInt(e, 16); | ||
48 | } | ||
49 | |||
50 | if (d.isBigInt) { | ||
51 | result.d = d; | ||
52 | } else { | ||
53 | result.d = new Clipperz.Crypto.BigInt(d, 16); | ||
54 | } | ||
55 | |||
56 | if (n.isBigInt) { | ||
57 | result.n = n; | ||
58 | } else { | ||
59 | result.n = new Clipperz.Crypto.BigInt(n, 16); | ||
60 | } | ||
61 | |||
62 | return result; | ||
63 | }, | ||
64 | |||
65 | 'privateKeyWithValues': function(e, d, n) { | ||
66 | return Clipperz.Crypto.RSA.publicKeyWithValues(e, d, n); | ||
67 | }, | ||
68 | |||
69 | //----------------------------------------------------------------------------- | ||
70 | |||
71 | 'encryptUsingPublicKey': function (aKey, aMessage) { | ||
72 | varmessageValue; | ||
73 | varresult; | ||
74 | |||
75 | messageValue = new Clipperz.Crypto.BigInt(aMessage, 16); | ||
76 | result = messageValue.powerModule(aKey.e, aKey.n); | ||
77 | |||
78 | return result.asString(16); | ||
79 | }, | ||
80 | |||
81 | //............................................................................. | ||
82 | |||
83 | 'decryptUsingPublicKey': function (aKey, aMessage) { | ||
84 | return Clipperz.Crypto.RSA.encryptUsingPublicKey(aKey, aMessage); | ||
85 | }, | ||
86 | |||
87 | //----------------------------------------------------------------------------- | ||
88 | |||
89 | 'encryptUsingPrivateKey': function (aKey, aMessage) { | ||
90 | varmessageValue; | ||
91 | varresult; | ||
92 | |||
93 | messageValue = new Clipperz.Crypto.BigInt(aMessage, 16); | ||
94 | result = messageValue.powerModule(aKey.d, aKey.n); | ||
95 | |||
96 | return result.asString(16); | ||
97 | }, | ||
98 | |||
99 | //............................................................................. | ||
100 | |||
101 | 'decryptUsingPrivateKey': function (aKey, aMessage) { | ||
102 | return Clipperz.Crypto.RSA.encryptUsingPrivateKey(aKey, aMessage); | ||
103 | }, | ||
104 | |||
105 | //----------------------------------------------------------------------------- | ||
106 | |||
107 | 'generatePublicKey': function(aNumberOfBits) { | ||
108 | varresult; | ||
109 | vare; | ||
110 | vard; | ||
111 | varn; | ||
112 | |||
113 | e = new Clipperz.Crypto.BigInt("10001", 16); | ||
114 | |||
115 | { | ||
116 | var p, q; | ||
117 | varphi; | ||
118 | |||
119 | do { | ||
120 | p = Clipperz.Crypto.BigInt.randomPrime(aNumberOfBits); | ||
121 | } while (p.module(e).equals(1)); | ||
122 | |||
123 | do { | ||
124 | q = Clipperz.Crypto.BigInt.randomPrime(aNumberOfBits); | ||
125 | } while ((q.equals(p)) || (q.module(e).equals(1))); | ||
126 | |||
127 | n = p.multiply(q); | ||
128 | phi = (p.subtract(1).multiply(q.subtract(1))); | ||
129 | d = e.powerModule(-1, phi); | ||
130 | } | ||
131 | |||
132 | result = Clipperz.Crypto.RSA.publicKeyWithValues(e, d, n); | ||
133 | |||
134 | return result; | ||
135 | }, | ||
136 | |||
137 | //------------------------------------------------------------------------- | ||
138 | |||
139 | __syntaxFix__: "syntax fix" | ||
140 | |||
141 | //------------------------------------------------------------------------- | ||
142 | |||
143 | }); | ||
144 | |||
145 | //############################################################################# | ||
146 | |||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/SHA.js b/frontend/gamma/js/ClipperzCryptoLibrary/SHA.js new file mode 100644 index 0000000..f8bfe6e --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/SHA.js | |||
@@ -0,0 +1,296 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.PRNG depends on Clipperz.ByteArray!"; | ||
26 | } | ||
27 | |||
28 | if (typeof(Clipperz.Crypto) == 'undefined') { Clipperz.Crypto = {}; } | ||
29 | if (typeof(Clipperz.Crypto.SHA) == 'undefined') { Clipperz.Crypto.SHA = {}; } | ||
30 | |||
31 | Clipperz.Crypto.SHA.VERSION = "0.3"; | ||
32 | Clipperz.Crypto.SHA.NAME = "Clipperz.Crypto.SHA"; | ||
33 | |||
34 | MochiKit.Base.update(Clipperz.Crypto.SHA, { | ||
35 | |||
36 | '__repr__': function () { | ||
37 | return "[" + this.NAME + " " + this.VERSION + "]"; | ||
38 | }, | ||
39 | |||
40 | 'toString': function () { | ||
41 | return this.__repr__(); | ||
42 | }, | ||
43 | |||
44 | //----------------------------------------------------------------------------- | ||
45 | |||
46 | 'rotateRight': function(aValue, aNumberOfBits) { | ||
47 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.rotateRight"); | ||
48 | var result; | ||
49 | |||
50 | result = (aValue >>> aNumberOfBits) | (aValue << (32 - aNumberOfBits)); | ||
51 | |||
52 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.rotateRight"); | ||
53 | return result; | ||
54 | }, | ||
55 | |||
56 | 'shiftRight': function(aValue, aNumberOfBits) { | ||
57 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.shiftRight"); | ||
58 | var result; | ||
59 | |||
60 | result = aValue >>> aNumberOfBits; | ||
61 | |||
62 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.shiftRight"); | ||
63 | return result; | ||
64 | }, | ||
65 | |||
66 | //----------------------------------------------------------------------------- | ||
67 | |||
68 | 'safeAdd': function() { | ||
69 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.safeAdd"); | ||
70 | varresult; | ||
71 | vari, c; | ||
72 | |||
73 | result = arguments[0]; | ||
74 | c = arguments.length; | ||
75 | for (i=1; i<c; i++) { | ||
76 | varlowerBytesSum; | ||
77 | |||
78 | lowerBytesSum = (result & 0xffff) + (arguments[i] & 0xffff); | ||
79 | result = (((result >> 16) + (arguments[i] >> 16) + (lowerBytesSum >> 16)) << 16) | (lowerBytesSum & 0xffff); | ||
80 | } | ||
81 | |||
82 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.safeAdd"); | ||
83 | return result; | ||
84 | }, | ||
85 | |||
86 | //----------------------------------------------------------------------------- | ||
87 | |||
88 | 'sha256_array': function(aValue) { | ||
89 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.sha256_array"); | ||
90 | varresult; | ||
91 | varmessage; | ||
92 | var h0, h1, h2, h3, h4, h5, h6, h7; | ||
93 | vark; | ||
94 | varmessageLength; | ||
95 | varmessageLengthInBits; | ||
96 | var_i, _c; | ||
97 | var charBits; | ||
98 | var rotateRight; | ||
99 | var shiftRight; | ||
100 | var safeAdd; | ||
101 | varbytesPerBlock; | ||
102 | var currentMessageIndex; | ||
103 | |||
104 | bytesPerBlock = 512/8; | ||
105 | rotateRight = Clipperz.Crypto.SHA.rotateRight; | ||
106 | shiftRight = Clipperz.Crypto.SHA.shiftRight; | ||
107 | safeAdd = Clipperz.Crypto.SHA.safeAdd; | ||
108 | |||
109 | charBits = 8; | ||
110 | |||
111 | h0 = 0x6a09e667; | ||
112 | h1 = 0xbb67ae85; | ||
113 | h2 = 0x3c6ef372; | ||
114 | h3 = 0xa54ff53a; | ||
115 | h4 = 0x510e527f; | ||
116 | h5 = 0x9b05688c; | ||
117 | h6 = 0x1f83d9ab; | ||
118 | h7 = 0x5be0cd19; | ||
119 | |||
120 | k = [0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, | ||
121 | 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, | ||
122 | 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, | ||
123 | 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, | ||
124 | 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, | ||
125 | 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, | ||
126 | 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, | ||
127 | 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2]; | ||
128 | |||
129 | message = aValue; | ||
130 | messageLength = message.length; | ||
131 | |||
132 | //Pre-processing: | ||
133 | message.push(0x80); //append a single "1" bit to message | ||
134 | |||
135 | _c = (512 - (((messageLength + 1) * charBits) % 512) - 64) / charBits; | ||
136 | if (_c < 0) { | ||
137 | _c = _c + (512 / charBits); | ||
138 | } | ||
139 | |||
140 | for (_i=0; _i<_c; _i++) { | ||
141 | message.push(0x00); //append "0" bits until message length ≡ 448 ≡ -64 (mod 512) | ||
142 | } | ||
143 | |||
144 | messageLengthInBits = messageLength * charBits; | ||
145 | message.push(0x00); //the 4 most high byte are alway 0 as message length is represented with a 32bit value; | ||
146 | message.push(0x00); | ||
147 | message.push(0x00); | ||
148 | message.push(0x00); | ||
149 | message.push((messageLengthInBits >> 24)& 0xff); | ||
150 | message.push((messageLengthInBits >> 16)& 0xff); | ||
151 | message.push((messageLengthInBits >> 8) & 0xff); | ||
152 | message.push( messageLengthInBits & 0xff); | ||
153 | |||
154 | currentMessageIndex = 0; | ||
155 | while(currentMessageIndex < message.length) { | ||
156 | varw; | ||
157 | vara, b, c, d, e, f, g, h; | ||
158 | |||
159 | w = Array(64); | ||
160 | |||
161 | _c = 16; | ||
162 | for (_i=0; _i<_c; _i++) { | ||
163 | var _j; | ||
164 | |||
165 | _j = currentMessageIndex + _i*4; | ||
166 | w[_i] = (message[_j] << 24) | (message[_j + 1] << 16) | (message[_j + 2] << 8) | (message[_j + 3] << 0); | ||
167 | } | ||
168 | |||
169 | _c = 64; | ||
170 | for (_i=16; _i<_c; _i++) { | ||
171 | vars0, s1; | ||
172 | |||
173 | s0 = (rotateRight(w[_i-15], 7)) ^ (rotateRight(w[_i-15], 18)) ^ (shiftRight(w[_i-15], 3)); | ||
174 | s1 = (rotateRight(w[_i-2], 17)) ^ (rotateRight(w[_i-2], 19)) ^ (shiftRight(w[_i-2], 10)); | ||
175 | w[_i] = safeAdd(w[_i-16], s0, w[_i-7], s1); | ||
176 | } | ||
177 | |||
178 | a=h0; b=h1; c=h2; d=h3; e=h4; f=h5; g=h6; h=h7; | ||
179 | |||
180 | _c = 64; | ||
181 | for (_i=0; _i<_c; _i++) { | ||
182 | var s0, s1, ch, maj, t1, t2; | ||
183 | |||
184 | s0 = (rotateRight(a, 2)) ^ (rotateRight(a, 13)) ^ (rotateRight(a, 22)); | ||
185 | maj = (a & b) ^ (a & c) ^ (b & c); | ||
186 | t2 = safeAdd(s0, maj); | ||
187 | s1 = (rotateRight(e, 6)) ^ (rotateRight(e, 11)) ^ (rotateRight(e, 25)); | ||
188 | ch = (e & f) ^ ((~e) & g); | ||
189 | t1 = safeAdd(h, s1, ch, k[_i], w[_i]); | ||
190 | |||
191 | h = g; | ||
192 | g = f; | ||
193 | f = e; | ||
194 | e = safeAdd(d, t1); | ||
195 | d = c; | ||
196 | c = b; | ||
197 | b = a; | ||
198 | a = safeAdd(t1, t2); | ||
199 | } | ||
200 | |||
201 | h0 = safeAdd(h0, a); | ||
202 | h1 = safeAdd(h1, b); | ||
203 | h2 = safeAdd(h2, c); | ||
204 | h3 = safeAdd(h3, d); | ||
205 | h4 = safeAdd(h4, e); | ||
206 | h5 = safeAdd(h5, f); | ||
207 | h6 = safeAdd(h6, g); | ||
208 | h7 = safeAdd(h7, h); | ||
209 | |||
210 | currentMessageIndex += bytesPerBlock; | ||
211 | } | ||
212 | |||
213 | result = new Array(256/8); | ||
214 | result[0] = (h0 >> 24)& 0xff; | ||
215 | result[1] = (h0 >> 16)& 0xff; | ||
216 | result[2] = (h0 >> 8)& 0xff; | ||
217 | result[3] = h0 & 0xff; | ||
218 | |||
219 | result[4] = (h1 >> 24)& 0xff; | ||
220 | result[5] = (h1 >> 16)& 0xff; | ||
221 | result[6] = (h1 >> 8)& 0xff; | ||
222 | result[7] = h1 & 0xff; | ||
223 | |||
224 | result[8] = (h2 >> 24)& 0xff; | ||
225 | result[9] = (h2 >> 16)& 0xff; | ||
226 | result[10] = (h2 >> 8)& 0xff; | ||
227 | result[11] = h2 & 0xff; | ||
228 | |||
229 | result[12] = (h3 >> 24)& 0xff; | ||
230 | result[13] = (h3 >> 16)& 0xff; | ||
231 | result[14] = (h3 >> 8)& 0xff; | ||
232 | result[15] = h3 & 0xff; | ||
233 | |||
234 | result[16] = (h4 >> 24)& 0xff; | ||
235 | result[17] = (h4 >> 16)& 0xff; | ||
236 | result[18] = (h4 >> 8)& 0xff; | ||
237 | result[19] = h4 & 0xff; | ||
238 | |||
239 | result[20] = (h5 >> 24)& 0xff; | ||
240 | result[21] = (h5 >> 16)& 0xff; | ||
241 | result[22] = (h5 >> 8)& 0xff; | ||
242 | result[23] = h5 & 0xff; | ||
243 | |||
244 | result[24] = (h6 >> 24)& 0xff; | ||
245 | result[25] = (h6 >> 16)& 0xff; | ||
246 | result[26] = (h6 >> 8)& 0xff; | ||
247 | result[27] = h6 & 0xff; | ||
248 | |||
249 | result[28] = (h7 >> 24)& 0xff; | ||
250 | result[29] = (h7 >> 16)& 0xff; | ||
251 | result[30] = (h7 >> 8)& 0xff; | ||
252 | result[31] = h7 & 0xff; | ||
253 | |||
254 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.sha256_array"); | ||
255 | return result; | ||
256 | }, | ||
257 | |||
258 | //----------------------------------------------------------------------------- | ||
259 | |||
260 | 'sha256': function(aValue) { | ||
261 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.sha256"); | ||
262 | var result; | ||
263 | var resultArray; | ||
264 | varvalueArray; | ||
265 | |||
266 | valueArray = aValue.arrayValues(); | ||
267 | resultArray = Clipperz.Crypto.SHA.sha256_array(valueArray); | ||
268 | |||
269 | result = new Clipperz.ByteArray(resultArray); | ||
270 | |||
271 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.sha256"); | ||
272 | return result; | ||
273 | }, | ||
274 | |||
275 | //----------------------------------------------------------------------------- | ||
276 | |||
277 | 'sha_d256': function(aValue) { | ||
278 | //Clipperz.Profile.start("Clipperz.Crypto.SHA.sha_d256"); | ||
279 | var result; | ||
280 | var resultArray; | ||
281 | varvalueArray; | ||
282 | |||
283 | valueArray = aValue.arrayValues(); | ||
284 | resultArray = Clipperz.Crypto.SHA.sha256_array(valueArray); | ||
285 | resultArray = Clipperz.Crypto.SHA.sha256_array(resultArray); | ||
286 | |||
287 | result = new Clipperz.ByteArray(resultArray); | ||
288 | |||
289 | //Clipperz.Profile.stop("Clipperz.Crypto.SHA.sha256"); | ||
290 | return result; | ||
291 | }, | ||
292 | |||
293 | //----------------------------------------------------------------------------- | ||
294 | __syntaxFix__: "syntax fix" | ||
295 | |||
296 | }); | ||
diff --git a/frontend/gamma/js/ClipperzCryptoLibrary/SRP.js b/frontend/gamma/js/ClipperzCryptoLibrary/SRP.js new file mode 100644 index 0000000..8cc80ba --- a/dev/null +++ b/frontend/gamma/js/ClipperzCryptoLibrary/SRP.js | |||
@@ -0,0 +1,326 @@ | |||
1 | /* | ||
2 | |||
3 | Copyright 2008-2013 Clipperz Srl | ||
4 | |||
5 | This file is part of Clipperz, the online password manager. | ||
6 | For further information about its features and functionalities please | ||
7 | refer to http://www.clipperz.com. | ||
8 | |||
9 | * Clipperz is free software: you can redistribute it and/or modify it | ||
10 | under the terms of the GNU Affero General Public License as published | ||
11 | by the Free Software Foundation, either version 3 of the License, or | ||
12 | (at your option) any later version. | ||
13 | |||
14 | * Clipperz is distributed in the hope that it will be useful, but | ||
15 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | ||
17 | See the GNU Affero General Public License for more details. | ||
18 | |||
19 | * You should have received a copy of the GNU Affero General Public | ||
20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. | ||
21 | |||
22 | */ | ||
23 | |||
24 | try { if (typeof(Clipperz.ByteArray) == 'undefined') { throw ""; }} catch (e) { | ||
25 | throw "Clipperz.Crypto.PRNG depends on Clipperz.ByteArray!"; | ||
26 | } | ||
27 | |||
28 | try { if (typeof(Clipperz.Crypto.BigInt) == 'undefined') { throw ""; }} catch (e) { | ||
29 | throw "Clipperz.Crypto.SRP depends on Clipperz.Crypto.BigInt!"; | ||
30 | } | ||
31 | |||
32 | try { if (typeof(Clipperz.Crypto.PRNG) == 'undefined') { throw ""; }} catch (e) { | ||
33 | throw "Clipperz.Crypto.SRP depends on Clipperz.Crypto.PRNG!"; | ||
34 | } | ||
35 | |||
36 | if (typeof(Clipperz.Crypto.SRP) == 'undefined') { Clipperz.Crypto.SRP = {}; } | ||
37 | |||
38 | Clipperz.Crypto.SRP.VERSION = "0.1"; | ||
39 | Clipperz.Crypto.SRP.NAME = "Clipperz.Crypto.SRP"; | ||
40 | |||
41 | //############################################################################# | ||
42 | |||
43 | MochiKit.Base.update(Clipperz.Crypto.SRP, { | ||
44 | |||
45 | '_n': null, | ||
46 | '_g': null, | ||
47 | //------------------------------------------------------------------------- | ||
48 | |||
49 | 'n': function() { | ||
50 | if (Clipperz.Crypto.SRP._n == null) { | ||
51 | Clipperz.Crypto.SRP._n = new Clipperz.Crypto.BigInt("115b8b692e0e045692cf280b436735c77a5a9e8a9e7ed56c965f87db5b2a2ece3", 16); | ||
52 | } | ||
53 | |||
54 | return Clipperz.Crypto.SRP._n; | ||
55 | }, | ||
56 | |||
57 | //------------------------------------------------------------------------- | ||
58 | |||
59 | 'g': function() { | ||
60 | if (Clipperz.Crypto.SRP._g == null) { | ||
61 | Clipperz.Crypto.SRP._g = new Clipperz.Crypto.BigInt(2); //eventually 5 (as suggested on the Diffi-Helmann documentation) | ||
62 | } | ||
63 | |||
64 | return Clipperz.Crypto.SRP._g; | ||
65 | }, | ||
66 | |||
67 | //----------------------------------------------------------------------------- | ||
68 | |||
69 | 'exception': { | ||
70 | 'InvalidValue': new MochiKit.Base.NamedError("Clipperz.Crypto.SRP.exception.InvalidValue") | ||
71 | }, | ||
72 | |||
73 | //------------------------------------------------------------------------- | ||
74 | __syntaxFix__: "syntax fix" | ||
75 | |||
76 | }); | ||
77 | |||
78 | //############################################################################# | ||
79 | // | ||
80 | // S R P C o n n e c t i o n version 1.0 | ||
81 | // | ||
82 | //============================================================================= | ||
83 | Clipperz.Crypto.SRP.Connection = function (args) { | ||
84 | args = args || {}; | ||
85 | |||
86 | this._C = args.C; | ||
87 | this._P = args.P; | ||
88 | this.hash = args.hash; | ||
89 | |||
90 | this._a = null; | ||
91 | this._A = null; | ||
92 | |||
93 | this._s = null; | ||
94 | this._B = null; | ||
95 | |||
96 | this._x = null; | ||
97 | |||
98 | this._u = null; | ||
99 | this._K = null; | ||
100 | this._M1 = null; | ||
101 | this._M2 = null; | ||
102 | |||
103 | this._sessionKey = null; | ||
104 | |||
105 | return this; | ||
106 | } | ||
107 | |||
108 | Clipperz.Crypto.SRP.Connection.prototype = MochiKit.Base.update(null, { | ||
109 | |||
110 | 'toString': function () { | ||
111 | return "Clipperz.Crypto.SRP.Connection (username: " + this.username() + "). Status: " + this.statusDescription(); | ||
112 | }, | ||
113 | |||
114 | //------------------------------------------------------------------------- | ||
115 | |||
116 | 'C': function () { | ||
117 | return this._C; | ||
118 | }, | ||
119 | |||
120 | //------------------------------------------------------------------------- | ||
121 | |||
122 | 'P': function () { | ||
123 | return this._P; | ||
124 | }, | ||
125 | |||
126 | //------------------------------------------------------------------------- | ||
127 | |||
128 | 'a': function () { | ||
129 | if (this._a == null) { | ||
130 | this._a = new Clipperz.Crypto.BigInt(Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(32).toHexString().substring(2), 16); | ||
131 | // this._a = new Clipperz.Crypto.BigInt("37532428169486597638072888476611365392249575518156687476805936694442691012367", 10); | ||
132 | //MochiKit.Logging.logDebug("SRP a: " + this._a); | ||
133 | } | ||
134 | |||
135 | return this._a; | ||
136 | }, | ||
137 | |||
138 | //------------------------------------------------------------------------- | ||
139 | |||
140 | 'A': function () { | ||
141 | if (this._A == null) { | ||
142 | //Warning: this value should be strictly greater than zero: how should we perform this check? | ||
143 | this._A = Clipperz.Crypto.SRP.g().powerModule(this.a(), Clipperz.Crypto.SRP.n()); | ||
144 | |||
145 | if (this._A.equals(0)) { | ||
146 | MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'A' to 0."); | ||
147 | throw Clipperz.Crypto.SRP.exception.InvalidValue; | ||
148 | } | ||
149 | //MochiKit.Logging.logDebug("SRP A: " + this._A); | ||
150 | } | ||
151 | |||
152 | return this._A; | ||
153 | }, | ||
154 | |||
155 | //------------------------------------------------------------------------- | ||
156 | |||
157 | 's': function () { | ||
158 | return this._s; | ||
159 | //MochiKit.Logging.logDebug("SRP s: " + this._S); | ||
160 | }, | ||
161 | |||
162 | 'set_s': function(aValue) { | ||
163 | this._s = aValue; | ||
164 | }, | ||
165 | |||
166 | //------------------------------------------------------------------------- | ||
167 | |||
168 | 'B': function () { | ||
169 | return this._B; | ||
170 | }, | ||
171 | |||
172 | 'set_B': function(aValue) { | ||
173 | //Warning: this value should be strictly greater than zero: how should we perform this check? | ||
174 | if (! aValue.equals(0)) { | ||
175 | this._B = aValue; | ||
176 | //MochiKit.Logging.logDebug("SRP B: " + this._B); | ||
177 | } else { | ||
178 | MochiKit.Logging.logError("Clipperz.Crypto.SRP.Connection: trying to set 'B' to 0."); | ||
179 | throw Clipperz.Crypto.SRP.exception.InvalidValue; | ||
180 | } | ||
181 | }, | ||
182 | |||
183 | //------------------------------------------------------------------------- | ||
184 | |||
185 | 'x': function () { | ||
186 | if (this._x == null) { | ||
187 | this._x = new Clipperz.Crypto.BigInt(this.stringHash(this.s().asString(16, 64) + this.P()), 16); | ||
188 | //MochiKit.Logging.logDebug("SRP x: " + this._x); | ||
189 | } | ||
190 | |||
191 | return this._x; | ||
192 | }, | ||
193 | |||
194 | //------------------------------------------------------------------------- | ||
195 | |||
196 | 'u': function () { | ||
197 | if (this._u == null) { | ||
198 | this._u = new Clipperz.Crypto.BigInt(this.stringHash(this.B().asString()), 16); | ||
199 | //MochiKit.Logging.logDebug("SRP u: " + this._u); | ||
200 | } | ||
201 | |||
202 | return this._u; | ||
203 | }, | ||
204 | |||
205 | //------------------------------------------------------------------------- | ||
206 | |||
207 | 'S': function () { | ||
208 | if (this._S == null) { | ||
209 | var bigint; | ||
210 | varsrp; | ||
211 | |||
212 | bigint = Clipperz.Crypto.BigInt; | ||
213 | srp = Clipperz.Crypto.SRP; | ||
214 | |||
215 | this._S =bigint.powerModule( | ||
216 | bigint.subtract(this.B(), bigint.powerModule(srp.g(), this.x(), srp.n())), | ||
217 | bigint.add(this.a(), bigint.multiply(this.u(), this.x())), | ||
218 | srp.n() | ||
219 | ) | ||
220 | //MochiKit.Logging.logDebug("SRP S: " + this._S); | ||
221 | } | ||
222 | |||
223 | return this._S; | ||
224 | }, | ||
225 | |||
226 | //------------------------------------------------------------------------- | ||
227 | |||
228 | 'K': function () { | ||
229 | if (this._K == null) { | ||
230 | this._K = this.stringHash(this.S().asString()); | ||
231 | //MochiKit.Logging.logDebug("SRP K: " + this._K); | ||
232 | } | ||
233 | |||
234 | return this._K; | ||
235 | }, | ||
236 | |||
237 | //------------------------------------------------------------------------- | ||
238 | |||
239 | 'M1': function () { | ||
240 | if (this._M1 == null) { | ||
241 | this._M1 = this.stringHash(this.A().asString(10) + this.B().asString(10) + this.K()); | ||
242 | //MochiKit.Logging.logDebug("SRP M1: " + this._M1); | ||
243 | } | ||
244 | |||
245 | return this._M1; | ||
246 | }, | ||
247 | |||
248 | //------------------------------------------------------------------------- | ||
249 | |||
250 | 'M2': function () { | ||
251 | if (this._M2 == null) { | ||
252 | this._M2 = this.stringHash(this.A().asString(10) + this.M1() + this.K()); | ||
253 | //MochiKit.Logging.logDebug("SRP M2: " + this._M2); | ||
254 | } | ||
255 | |||
256 | return this._M2; | ||
257 | }, | ||
258 | |||
259 | //========================================================================= | ||
260 | |||
261 | 'serverSideCredentialsWithSalt': function(aSalt) { | ||
262 | var result; | ||
263 | var s, x, v; | ||
264 | |||
265 | s = aSalt; | ||
266 | x = this.stringHash(s + this.P()); | ||
267 | v = Clipperz.Crypto.SRP.g().powerModule(new Clipperz.Crypto.BigInt(x, 16), Clipperz.Crypto.SRP.n()); | ||
268 | |||
269 | result = {}; | ||
270 | result['C'] = this.C(); | ||
271 | result['s'] = s; | ||
272 | result['v'] = v.asString(16); | ||
273 | |||
274 | return result; | ||
275 | }, | ||
276 | |||
277 | 'serverSideCredentials': function() { | ||
278 | var result; | ||
279 | var s; | ||
280 | |||
281 | s = Clipperz.Crypto.PRNG.defaultRandomGenerator().getRandomBytes(32).toHexString().substring(2); | ||
282 | |||
283 | result = this.serverSideCredentialsWithSalt(s); | ||
284 | |||
285 | return result; | ||
286 | }, | ||
287 | |||
288 | //========================================================================= | ||
289 | /* | ||
290 | 'computeServerSide_S': function(b) { | ||
291 | var result; | ||
292 | var v; | ||
293 | var bigint; | ||
294 | varsrp; | ||
295 | |||
296 | bigint = Clipperz.Crypto.BigInt; | ||
297 | srp = Clipperz.Crypto.SRP; | ||
298 | |||
299 | v = new Clipperz.Crypto.BigInt(srpConnection.serverSideCredentialsWithSalt(this.s().asString(16, 64)).v, 16); | ||
300 | // _S = (this.A().multiply(this.v().modPow(this.u(), this.n()))).modPow(this.b(), this.n()); | ||
301 | result = bigint.powerModule( | ||
302 | bigint.multiply( | ||
303 | this.A(), | ||
304 | bigint.powerModule(v, this.u(), srp.n()) | ||
305 | ), new Clipperz.Crypto.BigInt(b, 10), srp.n() | ||
306 | ); | ||
307 | |||
308 | return result; | ||
309 | }, | ||
310 | */ | ||
311 | //========================================================================= | ||
312 | |||
313 | 'stringHash': function(aValue) { | ||
314 | varresult; | ||
315 | |||
316 | result = this.hash(new Clipperz.ByteArray(aValue)).toHexString().substring(2); | ||
317 | |||
318 | return result; | ||
319 | }, | ||
320 | |||
321 | //========================================================================= | ||
322 | __syntaxFix__: "syntax fix" | ||
323 | |||
324 | }); | ||
325 | |||
326 | //############################################################################# | ||
diff --git a/frontend/gamma/js/main.js b/frontend/gamma/js/main.js index 934b325..6816754 100644 --- a/frontend/gamma/js/main.js +++ b/frontend/gamma/js/main.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/js/main.mobile.js b/frontend/gamma/js/main.mobile.js index 60a32fa..2fdd920 100644 --- a/frontend/gamma/js/main.mobile.js +++ b/frontend/gamma/js/main.mobile.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/properties/gamma.properties.json b/frontend/gamma/properties/gamma.properties.json index eec4194..d00e03a 100644 --- a/frontend/gamma/properties/gamma.properties.json +++ b/frontend/gamma/properties/gamma.properties.json | |||
@@ -9,13 +9,13 @@ | |||
9 | "js": [ | 9 | "js": [ |
10 | "MochiKit/Base.js", | 10 | "MochiKit/Base.js", |
11 | "MochiKit/Iter.js", | 11 | "MochiKit/Iter.js", |
12 | "MochiKit/Logging.js", | 12 | "-- MochiKit/Logging.js", |
13 | "-- MochiKit/DateTime.js", | 13 | "-- MochiKit/DateTime.js", |
14 | "MochiKit/Format.js", | 14 | "MochiKit/Format.js", |
15 | "MochiKit/Async.js", | 15 | "MochiKit/Async.js", |
16 | "MochiKit/DOM.js", | 16 | "MochiKit/DOM.js", |
17 | "MochiKit/Style.js", | 17 | "MochiKit/Style.js", |
18 | "MochiKit/LoggingPane.js", | 18 | "-- MochiKit/LoggingPane.js", |
19 | "MochiKit/Color.js", | 19 | "MochiKit/Color.js", |
20 | "MochiKit/Signal.js", | 20 | "MochiKit/Signal.js", |
21 | "MochiKit/Position.js", | 21 | "MochiKit/Position.js", |
diff --git a/frontend/gamma/properties/mobile.properties.json b/frontend/gamma/properties/mobile.properties.json index bdb2d07..0127ce6 100644 --- a/frontend/gamma/properties/mobile.properties.json +++ b/frontend/gamma/properties/mobile.properties.json | |||
@@ -95,22 +95,36 @@ | |||
95 | "Clipperz/PM/DataModel/DirectLoginFormValue.js", | 95 | "Clipperz/PM/DataModel/DirectLoginFormValue.js", |
96 | "Clipperz/PM/DataModel/OneTimePassword.js", | 96 | "Clipperz/PM/DataModel/OneTimePassword.js", |
97 | 97 | ||
98 | "Zepto/zepto.js", | 98 | "-- Zepto/zepto.js", |
99 | "Zepto/ajax.js", | 99 | "-- Zepto/ajax.js", |
100 | "Zepto/assets.js", | 100 | "-- Zepto/assets.js", |
101 | "Zepto/data.js", | 101 | "-- Zepto/data.js", |
102 | "Zepto/detect.js", | 102 | "-- Zepto/detect.js", |
103 | "Zepto/event.js", | 103 | "-- Zepto/event.js", |
104 | "Zepto/form.js", | 104 | "-- Zepto/form.js", |
105 | "Zepto/fx.js", | 105 | "-- Zepto/fx.js", |
106 | "Zepto/fx_methods.js", | 106 | "-- Zepto/fx_methods.js", |
107 | "Zepto/gesture.js", | 107 | "-- Zepto/gesture.js", |
108 | "Zepto/polyfill.js", | 108 | "-- Zepto/polyfill.js", |
109 | "Zepto/selector.js", | 109 | "-- Zepto/selector.js", |
110 | "Zepto/stack.js", | 110 | "-- Zepto/stack.js", |
111 | "Zepto/touch.js", | 111 | "-- Zepto/touch.js", |
112 | 112 | ||
113 | "JQTouch/jqtouch.js", | 113 | "-- JQTouch/jqtouch.js", |
114 | |||
115 | "-- Bootstrap/bootstrap-affix.js", | ||
116 | "-- Bootstrap/bootstrap-alert.js", | ||
117 | "-- Bootstrap/bootstrap-button.js", | ||
118 | "-- Bootstrap/bootstrap-carousel.js", | ||
119 | "-- Bootstrap/bootstrap-collapse.js", | ||
120 | "-- Bootstrap/bootstrap-dropdown.js", | ||
121 | "-- Bootstrap/bootstrap-modal.js", | ||
122 | "-- Bootstrap/bootstrap-popover.js", | ||
123 | "-- Bootstrap/bootstrap-scrollspy.js", | ||
124 | "-- Bootstrap/bootstrap-tab.js", | ||
125 | "-- Bootstrap/bootstrap-tooltip.js", | ||
126 | "-- Bootstrap/bootstrap-transition.js", | ||
127 | "-- Bootstrap/bootstrap-typeahead.js", | ||
114 | 128 | ||
115 | "Clipperz/PM/UI/Common/Components/BaseComponent.js", | 129 | "Clipperz/PM/UI/Common/Components/BaseComponent.js", |
116 | "-- Clipperz/PM/UI/Common/Components/Button.js", | 130 | "-- Clipperz/PM/UI/Common/Components/Button.js", |
diff --git a/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js b/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js index 3633182..268a04d 100644 --- a/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js +++ b/frontend/gamma/tests/SimpleTest/SimpleTest.Async.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/index.html b/frontend/gamma/tests/index.html index ef89088..99fad81 100755 --- a/frontend/gamma/tests/index.html +++ b/frontend/gamma/tests/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Bookmarklet/Bookmarklet.css b/frontend/gamma/tests/tests/Bookmarklet/Bookmarklet.css index fd79d8a..8a6bae6 100644 --- a/frontend/gamma/tests/tests/Bookmarklet/Bookmarklet.css +++ b/frontend/gamma/tests/tests/Bookmarklet/Bookmarklet.css | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Bookmarklet/Fail.html b/frontend/gamma/tests/tests/Bookmarklet/Fail.html index d3d1ec9..dfca010 100644 --- a/frontend/gamma/tests/tests/Bookmarklet/Fail.html +++ b/frontend/gamma/tests/tests/Bookmarklet/Fail.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Bookmarklet/Twitter.html b/frontend/gamma/tests/tests/Bookmarklet/Twitter.html index 27dc6a1..025197e 100644 --- a/frontend/gamma/tests/tests/Bookmarklet/Twitter.html +++ b/frontend/gamma/tests/tests/Bookmarklet/Twitter.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Bookmarklet/index.html b/frontend/gamma/tests/tests/Bookmarklet/index.html index 9ee3dec..759ecc3 100644 --- a/frontend/gamma/tests/tests/Bookmarklet/index.html +++ b/frontend/gamma/tests/tests/Bookmarklet/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Async.html b/frontend/gamma/tests/tests/Clipperz/Async.html index 6d28fdb..2c752bb 100644 --- a/frontend/gamma/tests/tests/Clipperz/Async.html +++ b/frontend/gamma/tests/tests/Clipperz/Async.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Async.test.js b/frontend/gamma/tests/tests/Clipperz/Async.test.js index 443130e..83cea85 100644 --- a/frontend/gamma/tests/tests/Clipperz/Async.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Async.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Base.html b/frontend/gamma/tests/tests/Clipperz/Base.html index a1b1df8..d3bd96e 100644 --- a/frontend/gamma/tests/tests/Clipperz/Base.html +++ b/frontend/gamma/tests/tests/Clipperz/Base.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Base.test.js b/frontend/gamma/tests/tests/Clipperz/Base.test.js index fc827f7..7ae611d 100644 --- a/frontend/gamma/tests/tests/Clipperz/Base.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Base.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/ByteArray.html b/frontend/gamma/tests/tests/Clipperz/ByteArray.html index 6dc7116..5c496c9 100644 --- a/frontend/gamma/tests/tests/Clipperz/ByteArray.html +++ b/frontend/gamma/tests/tests/Clipperz/ByteArray.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/ByteArray.test.js b/frontend/gamma/tests/tests/Clipperz/ByteArray.test.js index 43d74a0..643bbf8 100644 --- a/frontend/gamma/tests/tests/Clipperz/ByteArray.test.js +++ b/frontend/gamma/tests/tests/Clipperz/ByteArray.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/AES.html b/frontend/gamma/tests/tests/Clipperz/Crypto/AES.html index 16f64d0..27a81a4 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/AES.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/AES.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/AES.performance.html b/frontend/gamma/tests/tests/Clipperz/Crypto/AES.performance.html index a90d815..13dade4 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/AES.performance.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/AES.performance.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/Base.html b/frontend/gamma/tests/tests/Clipperz/Crypto/Base.html index 83f0766..0e42790 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/Base.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/Base.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/BigInt.html b/frontend/gamma/tests/tests/Clipperz/Crypto/BigInt.html index f4db3b7..f94618c 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/BigInt.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/BigInt.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.B283.deferred.html b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.B283.deferred.html index 9ef9146..6e3f871 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.B283.deferred.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.B283.deferred.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.B283.html b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.B283.html index 93d8695..f87bdbe 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.B283.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.B283.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.html b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.html index 658c402..5feb7df 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.FiniteField.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.Value.html b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.Value.html index 0d0903d..8da2b6d 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.Value.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.BinaryField.Value.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.K283.deferred.html b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.K283.deferred.html index b784f66..ab0fc5c 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.K283.deferred.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/ECC.K283.deferred.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.html b/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.html index 2968894..95f21a3 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.test.js b/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.test.js index 1580e6c..b3675f1 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/JSCrypto_vs_Clipperz.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/PRNG.html b/frontend/gamma/tests/tests/Clipperz/Crypto/PRNG.html index 61aa1c2..1ba19c6 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/PRNG.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/PRNG.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/RSA.html b/frontend/gamma/tests/tests/Clipperz/Crypto/RSA.html index 4c7fd86..043ab40 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/RSA.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/RSA.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.html b/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.html index a2f6c04..de2021a 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.test.js b/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.test.js index 2864aaf..6530844 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/SHA.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html b/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html index ba842a9..5da2327 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/SRP.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/Usage.html b/frontend/gamma/tests/tests/Clipperz/Crypto/Usage.html index 4e7ad3d..f253553 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/Usage.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/Usage.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/index.html b/frontend/gamma/tests/tests/Clipperz/Crypto/index.html index dd63ceb..5ee8b8c 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/index.html +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Crypto/jscrypto.js b/frontend/gamma/tests/tests/Clipperz/Crypto/jscrypto.js index 9a0d5fa..7781380 100644 --- a/frontend/gamma/tests/tests/Clipperz/Crypto/jscrypto.js +++ b/frontend/gamma/tests/tests/Clipperz/Crypto/jscrypto.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/DOM.html b/frontend/gamma/tests/tests/Clipperz/DOM.html index 782b1fe..c5c6ffe 100644 --- a/frontend/gamma/tests/tests/Clipperz/DOM.html +++ b/frontend/gamma/tests/tests/Clipperz/DOM.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/DOM.test.js b/frontend/gamma/tests/tests/Clipperz/DOM.test.js index e8c6225..38c24e6 100644 --- a/frontend/gamma/tests/tests/Clipperz/DOM.test.js +++ b/frontend/gamma/tests/tests/Clipperz/DOM.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Date.html b/frontend/gamma/tests/tests/Clipperz/Date.html index 1f425c8..5d6a12e 100644 --- a/frontend/gamma/tests/tests/Clipperz/Date.html +++ b/frontend/gamma/tests/tests/Clipperz/Date.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Date.test.js b/frontend/gamma/tests/tests/Clipperz/Date.test.js index f184fd6..7deda3f 100644 --- a/frontend/gamma/tests/tests/Clipperz/Date.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Date.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.data.js b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.data.js index 3c407f7..ed9fc09 100644 --- a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.data.js +++ b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.html b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.html index 969b517..f2dc9ad 100644 --- a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.html +++ b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.test.js b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.test.js index 4d1aa12..4099aee 100644 --- a/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.test.js +++ b/frontend/gamma/tests/tests/Clipperz/KeePassExportProcessor.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.html b/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.html index ece8a9c..19dbd8b 100644 --- a/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.html +++ b/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.test.js b/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.test.js index ac56386..3fbbe7e 100644 --- a/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.test.js +++ b/frontend/gamma/tests/tests/Clipperz/KeyValueObjectStore.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.html b/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.html index b61057c..1a127a0 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.test.js b/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.test.js index 45bf76b..bcb77ea 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/BookmarkletProcessor.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Connection.data.js b/frontend/gamma/tests/tests/Clipperz/PM/Connection.data.js index 3e01411..7a4f01d 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Connection.data.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/Connection.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Connection.html b/frontend/gamma/tests/tests/Clipperz/PM/Connection.html index e2a3394..1f3a472 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Connection.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Connection.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Connection.test.js b/frontend/gamma/tests/tests/Clipperz/PM/Connection.test.js index 9d0036a..df409c0 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Connection.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/Connection.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Crypto.html b/frontend/gamma/tests/tests/Clipperz/PM/Crypto.html index 044658e..67627f8 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Crypto.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Crypto.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Crypto_performanceEvaluation.html b/frontend/gamma/tests/tests/Clipperz/PM/Crypto_performanceEvaluation.html index e8ce0bc..5529121 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Crypto_performanceEvaluation.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Crypto_performanceEvaluation.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Crypto_test.html b/frontend/gamma/tests/tests/Clipperz/PM/Crypto_test.html index dc01dae..d4750f5 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Crypto_test.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Crypto_test.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.html index 0a5bcfb..73b8225 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.test.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.test.js index 7df0971..11009f5 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLogin.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLoginConfigurations.data.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLoginConfigurations.data.js index 1678515..eaf4035 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLoginConfigurations.data.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/DirectLoginConfigurations.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.html index 3297ab4..a711ba9 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.test.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.test.js index 9c50c43..c5f0e00 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/EncryptedRemoteObject.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.html index 7861b80..949154b 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.test.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.test.js index 85aae4e..835be38 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/OneTimePassword.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.html index 3685a7a..0332008 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.test.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.test.js index 667e2ae..3478743 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/Record.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.js index 96c6962..1dc932a 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.old.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.old.js index ed3a6a4..fae7ff0 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.old.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.data.old.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.html index a651830..793f763 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.test.js b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.test.js index c9ca3d6..45f3297 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/User.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/index.html b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/index.html index 237c0ea..8aacac5 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/DataModel/index.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/DataModel/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Date.html b/frontend/gamma/tests/tests/Clipperz/PM/Date.html index 7b87185..4a2760a 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Date.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Date.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Date.test.js b/frontend/gamma/tests/tests/Clipperz/PM/Date.test.js index e4b4db6..ff4745f 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Date.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/Date.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/PIN.html b/frontend/gamma/tests/tests/Clipperz/PM/PIN.html index a08b286..9282bb9 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/PIN.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/PIN.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/PIN.test.js b/frontend/gamma/tests/tests/Clipperz/PM/PIN.test.js index ed795dd..abd489e 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/PIN.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/PIN.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Proxy.html b/frontend/gamma/tests/tests/Clipperz/PM/Proxy.html index 8177285..704d232 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Proxy.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Proxy.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Proxy.test.js b/frontend/gamma/tests/tests/Clipperz/PM/Proxy.test.js index 8225823..1bec17d 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Proxy.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/Proxy.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Toll.html b/frontend/gamma/tests/tests/Clipperz/PM/Toll.html index 6c2e000..b5a35f6 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Toll.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/Toll.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/Toll.test.js b/frontend/gamma/tests/tests/Clipperz/PM/Toll.test.js index 6de67c3..bab0713 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/Toll.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/Toll.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.html b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.html index 1eea01b..6a2d3a0 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.test.js b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.test.js index 919215e..512104b 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.test.js +++ b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/MainController.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/index.html b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/index.html index 3f04d4f..a49fcd6 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/index.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/Controllers/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/index.html b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/index.html index 250a70d..cdec066 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/index.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/UI/Web/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/UI/index.html b/frontend/gamma/tests/tests/Clipperz/PM/UI/index.html index d46ced1..89deab8 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/UI/index.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/UI/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/PM/index.html b/frontend/gamma/tests/tests/Clipperz/PM/index.html index c3df56a..eeda692 100644 --- a/frontend/gamma/tests/tests/Clipperz/PM/index.html +++ b/frontend/gamma/tests/tests/Clipperz/PM/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/RoboFormExportProcessor.html b/frontend/gamma/tests/tests/Clipperz/RoboFormExportProcessor.html index b4500e3..3065b32 100644 --- a/frontend/gamma/tests/tests/Clipperz/RoboFormExportProcessor.html +++ b/frontend/gamma/tests/tests/Clipperz/RoboFormExportProcessor.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Set.html b/frontend/gamma/tests/tests/Clipperz/Set.html index 82bb249..401d89c 100644 --- a/frontend/gamma/tests/tests/Clipperz/Set.html +++ b/frontend/gamma/tests/tests/Clipperz/Set.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/Set.test.js b/frontend/gamma/tests/tests/Clipperz/Set.test.js index f908816..f5574ee 100644 --- a/frontend/gamma/tests/tests/Clipperz/Set.test.js +++ b/frontend/gamma/tests/tests/Clipperz/Set.test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/index.html b/frontend/gamma/tests/tests/Clipperz/index.html index d4556eb..c86cbe0 100644 --- a/frontend/gamma/tests/tests/Clipperz/index.html +++ b/frontend/gamma/tests/tests/Clipperz/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/index_googleCode.html b/frontend/gamma/tests/tests/Clipperz/index_googleCode.html index 3878809..cf07043 100644 --- a/frontend/gamma/tests/tests/Clipperz/index_googleCode.html +++ b/frontend/gamma/tests/tests/Clipperz/index_googleCode.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Clipperz/index_testECC.html b/frontend/gamma/tests/tests/Clipperz/index_testECC.html index bac17d1..34039fd 100644 --- a/frontend/gamma/tests/tests/Clipperz/index_testECC.html +++ b/frontend/gamma/tests/tests/Clipperz/index_testECC.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogEditing/CardDialogEditing_test.js b/frontend/gamma/tests/tests/Components/CardDialogEditing/CardDialogEditing_test.js index d2136af..b052384 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogEditing/CardDialogEditing_test.js +++ b/frontend/gamma/tests/tests/Components/CardDialogEditing/CardDialogEditing_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogEditing/User.data.js b/frontend/gamma/tests/tests/Components/CardDialogEditing/User.data.js index 0e55ff5..2a8fca3 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogEditing/User.data.js +++ b/frontend/gamma/tests/tests/Components/CardDialogEditing/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogEditing/dragAndDrop_test.js b/frontend/gamma/tests/tests/Components/CardDialogEditing/dragAndDrop_test.js index 91909fa..cfe94d4 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogEditing/dragAndDrop_test.js +++ b/frontend/gamma/tests/tests/Components/CardDialogEditing/dragAndDrop_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogEditing/index.html b/frontend/gamma/tests/tests/Components/CardDialogEditing/index.html index e484719..70a6d87 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogEditing/index.html +++ b/frontend/gamma/tests/tests/Components/CardDialogEditing/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogNew/User.data.js b/frontend/gamma/tests/tests/Components/CardDialogNew/User.data.js index 49abe46..ba60878 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogNew/User.data.js +++ b/frontend/gamma/tests/tests/Components/CardDialogNew/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogNew/cardDialogNew_test.js b/frontend/gamma/tests/tests/Components/CardDialogNew/cardDialogNew_test.js index 60a2757..9eba347 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogNew/cardDialogNew_test.js +++ b/frontend/gamma/tests/tests/Components/CardDialogNew/cardDialogNew_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/CardDialogNew/index.html b/frontend/gamma/tests/tests/Components/CardDialogNew/index.html index 64f9e4d..ff8c77f 100644 --- a/frontend/gamma/tests/tests/Components/CardDialogNew/index.html +++ b/frontend/gamma/tests/tests/Components/CardDialogNew/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/FullApp/User.data.js b/frontend/gamma/tests/tests/Components/FullApp/User.data.js index 4dfc81c..fb099c0 100644 --- a/frontend/gamma/tests/tests/Components/FullApp/User.data.js +++ b/frontend/gamma/tests/tests/Components/FullApp/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/FullApp/index.html b/frontend/gamma/tests/tests/Components/FullApp/index.html index fab110b..f0e6be3 100644 --- a/frontend/gamma/tests/tests/Components/FullApp/index.html +++ b/frontend/gamma/tests/tests/Components/FullApp/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/FullApp/mobile.index.html b/frontend/gamma/tests/tests/Components/FullApp/mobile.index.html index 818e3d6..53fbcf6 100644 --- a/frontend/gamma/tests/tests/Components/FullApp/mobile.index.html +++ b/frontend/gamma/tests/tests/Components/FullApp/mobile.index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/GridLayout_test.js b/frontend/gamma/tests/tests/Components/GridLayout/GridLayout_test.js index 15244b6..fcb8c1e 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/GridLayout_test.js +++ b/frontend/gamma/tests/tests/Components/GridLayout/GridLayout_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js b/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js index a066001..f9bb5da 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js +++ b/frontend/gamma/tests/tests/Components/GridLayout/TestPageComponent.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/User.data.js b/frontend/gamma/tests/tests/Components/GridLayout/User.data.js index 142e511..3cee32d 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/User.data.js +++ b/frontend/gamma/tests/tests/Components/GridLayout/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/index.html b/frontend/gamma/tests/tests/Components/GridLayout/index.html index f1ed116..400f958 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/index.html +++ b/frontend/gamma/tests/tests/Components/GridLayout/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/GridLayout/test.css b/frontend/gamma/tests/tests/Components/GridLayout/test.css index e5983f4..b4bb372 100644 --- a/frontend/gamma/tests/tests/Components/GridLayout/test.css +++ b/frontend/gamma/tests/tests/Components/GridLayout/test.css | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/ProgressBar/index.html b/frontend/gamma/tests/tests/Components/ProgressBar/index.html index 295c2c6..13b2586 100644 --- a/frontend/gamma/tests/tests/Components/ProgressBar/index.html +++ b/frontend/gamma/tests/tests/Components/ProgressBar/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js b/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js index 8e2ce51..5a2cf9d 100644 --- a/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js +++ b/frontend/gamma/tests/tests/Components/ProgressBar/progressBar_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/SimpleMessagePanel/index.html b/frontend/gamma/tests/tests/Components/SimpleMessagePanel/index.html index f09d9f6..15a777c 100644 --- a/frontend/gamma/tests/tests/Components/SimpleMessagePanel/index.html +++ b/frontend/gamma/tests/tests/Components/SimpleMessagePanel/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/SimpleMessagePanel/simpleMessagePanel_test.js b/frontend/gamma/tests/tests/Components/SimpleMessagePanel/simpleMessagePanel_test.js index 8513909..2865f3a 100644 --- a/frontend/gamma/tests/tests/Components/SimpleMessagePanel/simpleMessagePanel_test.js +++ b/frontend/gamma/tests/tests/Components/SimpleMessagePanel/simpleMessagePanel_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/Tooltips/index.html b/frontend/gamma/tests/tests/Components/Tooltips/index.html index 3772227..3f3327d 100644 --- a/frontend/gamma/tests/tests/Components/Tooltips/index.html +++ b/frontend/gamma/tests/tests/Components/Tooltips/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/Tooltips/tooltips_test.js b/frontend/gamma/tests/tests/Components/Tooltips/tooltips_test.js index 9ed1c05..42ae70b 100644 --- a/frontend/gamma/tests/tests/Components/Tooltips/tooltips_test.js +++ b/frontend/gamma/tests/tests/Components/Tooltips/tooltips_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/UnlockPassword/User.data.js b/frontend/gamma/tests/tests/Components/UnlockPassword/User.data.js index 49abe46..ba60878 100644 --- a/frontend/gamma/tests/tests/Components/UnlockPassword/User.data.js +++ b/frontend/gamma/tests/tests/Components/UnlockPassword/User.data.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/UnlockPassword/index.html b/frontend/gamma/tests/tests/Components/UnlockPassword/index.html index 7a5e95b..a124739 100644 --- a/frontend/gamma/tests/tests/Components/UnlockPassword/index.html +++ b/frontend/gamma/tests/tests/Components/UnlockPassword/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/UnlockPassword/unlockPassword_test.js b/frontend/gamma/tests/tests/Components/UnlockPassword/unlockPassword_test.js index 80a8c30..6722b60 100644 --- a/frontend/gamma/tests/tests/Components/UnlockPassword/unlockPassword_test.js +++ b/frontend/gamma/tests/tests/Components/UnlockPassword/unlockPassword_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/CrossWindowsBookmarklet_test.js b/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/CrossWindowsBookmarklet_test.js index 9908c6a..1585449 100644 --- a/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/CrossWindowsBookmarklet_test.js +++ b/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/CrossWindowsBookmarklet_test.js | |||
@@ -1,25 +1,23 @@ | |||
1 | /* | 1 | /* |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | */ | 22 | */ |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/index.html b/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/index.html index 50928d2..0247fcc 100644 --- a/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/index.html +++ b/frontend/gamma/tests/tests/Components/crossWindowsBookmarklet/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||
diff --git a/frontend/gamma/tests/tests/index.html b/frontend/gamma/tests/tests/index.html index 9775f93..8d89092 100644 --- a/frontend/gamma/tests/tests/index.html +++ b/frontend/gamma/tests/tests/index.html | |||
@@ -1,25 +1,23 @@ | |||
1 | <!-- | 1 | <!-- |
2 | 2 | ||
3 | Copyright 2008-2011 Clipperz Srl | 3 | Copyright 2008-2013 Clipperz Srl |
4 | 4 | ||
5 | This file is part of Clipperz Community Edition. | 5 | This file is part of Clipperz, the online password manager. |
6 | Clipperz Community Edition is an online password manager. | ||
7 | For further information about its features and functionalities please | 6 | For further information about its features and functionalities please |
8 | refer to http://www.clipperz.com. | 7 | refer to http://www.clipperz.com. |
9 | 8 | ||
10 | * Clipperz Community Edition is free software: you can redistribute | 9 | * Clipperz is free software: you can redistribute it and/or modify it |
11 | it and/or modify it under the terms of the GNU Affero General Public | 10 | under the terms of the GNU Affero General Public License as published |
12 | License as published by the Free Software Foundation, either version | 11 | by the Free Software Foundation, either version 3 of the License, or |
13 | 3 of the License, or (at your option) any later version. | 12 | (at your option) any later version. |
14 | 13 | ||
15 | * Clipperz Community Edition is distributed in the hope that it will | 14 | * Clipperz is distributed in the hope that it will be useful, but |
16 | be useful, but WITHOUT ANY WARRANTY; without even the implied | 15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
17 | warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
18 | See the GNU Affero General Public License for more details. | 17 | See the GNU Affero General Public License for more details. |
19 | 18 | ||
20 | * You should have received a copy of the GNU Affero General Public | 19 | * You should have received a copy of the GNU Affero General Public |
21 | License along with Clipperz Community Edition. If not, see | 20 | License along with Clipperz. If not, see http://www.gnu.org/licenses/. |
22 | <http://www.gnu.org/licenses/>. | ||
23 | 21 | ||
24 | --> | 22 | --> |
25 | 23 | ||