Merge branch 'feature/language-pt' into 'develop'
Feature/language pt See merge request !44
This commit is contained in:
		
						commit
						5db6f042cf
					
				
					 22 changed files with 432 additions and 57 deletions
				
			
		|  | @ -28,7 +28,7 @@ Alternativ kannst Du auch direkt die benötigten Bibliotheken einbinden: | |||
| 		* Von jquery-ui werden die Komponenten 'core' und 'widget' benötigt. | ||||
| 	* jquery-cookie (getestet mit Version 1.4.0) | ||||
| Je nach dem, in welchen Sprachen du die Uhr verwenden willst, noch eine der folgenden Dateien: | ||||
| 	* dist/jquery.uhr.complete.min.js: Enthält die Hauptdatei sowie alle unterstützden Sprachdateien | ||||
| 	* dist/jquery.uhr.complete.min.js: Enthält die Hauptdatei sowie alle unterstützten Sprachdateien | ||||
| 	* dist/jquery.uhr.base.min.js: Enthält die Hauptdatei sowie Bärndütsch (de_CH) | ||||
| 	* dist/jquery.uhr.main.min.js: Enthält ausschliesslich die Hauptdatei. Zusätzlich muss noch mindestens eine Sprachdatei eingebunden werden (siehe unten). | ||||
| 
 | ||||
|  | @ -44,6 +44,7 @@ Je nach dem, in welchen Sprachen du die Uhr verwenden willst, noch eine der folg | |||
| 	* src/uhr-fr.js (Französisch) | ||||
| 	* src/uhr-it.js (Italienisch) | ||||
| 	* src/uhr-nl.js (Niederländisch) | ||||
| 	* src/uhr-pt.js (Portugiesisch) | ||||
| 
 | ||||
| `src/uhr-de_CH_genau.js` ist eine Variante von Bärndütsch, bei der zur vollen Stunde zusätzlich das Wort "genau" angezeigt wird (also z.B. um 15:00 Uhr "ES ISCH GENAU DRÜ" anstelle von "ES ISCH DRÜ"). | ||||
| 
 | ||||
|  | @ -86,7 +87,7 @@ Der uhr()-Methode kann ein Options-Objekt mitgegeben werden: | |||
| 	jQuery('#uhrcontainer').uhr({ | ||||
| 		status: 'on',         // 'on' (default) oder 'off' | ||||
| 		theme: 'black',       // 'black' (default), 'white', 'red', 'yellow', 'green', 'blue' oder 'pink' (je nach eingebundenen Theme-Stylesheets) | ||||
| 		language: 'de_CH',    // 'de_CH' (default), 'de_CH_genau', 'de', 'dk', 'en', 'es', 'fr', 'it' oder 'nl' (je nach eingebundenen Sprachdateien) | ||||
| 		language: 'de_CH',    // 'de_CH' (default), 'de_CH_genau', 'de', 'dk', 'en', 'es', 'fr', 'it', 'nl' oder 'pt' (je nach eingebundenen Sprachdateien) | ||||
| 		mode: 'normal',       // 'normal' (default): Die Uhr zeigt die aktuelle Zeit (Stunden und Minuten) in Worten an | ||||
| 		                      // 'seconds': Die Uhr zeigt die aktuellen Sekunden als grosse Ziffern an | ||||
| 		width: '100%',        // eine CSS-Grössenangabe (default: 100%) | ||||
|  | @ -126,6 +127,7 @@ Es ist möglich, die Uhr durch den Aufruf mit URL-Parameters zu konfigurieren. D | |||
| 	* fr: Französisch | ||||
| 	* it: Italienisch | ||||
| 	* nl: Niederländisch | ||||
| 	* pt: Portugiesisch | ||||
| * `t` oder `theme`: Bestimmt die Farbe der Uhr. Der Wert ist der Farb-Code (abhängig von den eingebundenen CSS-Dateien): | ||||
| 	* black: Schwarz | ||||
| 	* white: Weiss | ||||
|  |  | |||
							
								
								
									
										4
									
								
								dist/jquery.uhr.base.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/jquery.uhr.base.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| (function($) { | ||||
|     'use strict'; | ||||
|     var uhrGlobals = { | ||||
|  |  | |||
							
								
								
									
										6
									
								
								dist/jquery.uhr.base.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/jquery.uhr.base.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										69
									
								
								dist/jquery.uhr.baselangs.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										69
									
								
								dist/jquery.uhr.baselangs.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| (function($) { | ||||
|     'use strict'; | ||||
|     var es_ist = {1: [1, 2, 4, 5, 6]}; | ||||
|  | @ -650,3 +650,68 @@ | |||
|     }; | ||||
|     $.fritteli.uhr.register('nl', layout); | ||||
| }(jQuery)); | ||||
| (function ($) { | ||||
|     'use strict'; | ||||
|     var e_ = {1: [1]}; | ||||
|     var sao = {1: [2, 3, 4]}; | ||||
|     var e1 = {7: [8]}; | ||||
|     var e2 = {10: [5]}; | ||||
|     var menos = {7: [7, 8, 9, 10, 11]}; | ||||
|     var meia = {8: [8, 9, 10, 11]}; | ||||
|     var cinco = {10: [7, 8, 9, 10, 11]}; | ||||
|     var dez = {10: [1, 2, 3]}; | ||||
|     var um_quarto = {9: [1, 2, 4, 5, 6, 7, 8, 9]}; | ||||
|     var vinte = {8: [1, 2, 3, 4, 5]}; | ||||
|     var layout = { | ||||
|         "version": 2, | ||||
|         "language": 'Português', | ||||
|         "letters": [ | ||||
|             'ÉSÃOUMATRÊS', | ||||
|             'MEIOLDIADEZ', | ||||
|             'DUASEISETEY', | ||||
|             'QUATROHNOVE', | ||||
|             'CINCOITONZE', | ||||
|             'ZMEIALNOITE', | ||||
|             'HORASYMENOS', | ||||
|             'VINTECAMEIA', | ||||
|             'UMVQUARTOPM', | ||||
|             'DEZOEYCINCO' | ||||
|         ], | ||||
|         "minutes": { | ||||
|             "5,6,7,8,9": [e1, cinco], | ||||
|             "10,11,12,13,14": [e1, dez], | ||||
|             "15,16,17,18,19": [e1, um_quarto], | ||||
|             "20,21,22,23,24": [e1, vinte], | ||||
|             "25,26,27,28,29": [e1, vinte, e2, cinco], | ||||
|             "30,31,32,33,34": [e1, meia], | ||||
|             "35,36,37,38,39": [menos, vinte, e2, cinco], | ||||
|             "40,41,42,43,44": [menos, vinte], | ||||
|             "45,46,47,48,49": [menos, um_quarto], | ||||
|             "50,51,52,53,54": [menos, dez], | ||||
|             "55,56,57,58,59": [menos, cinco] | ||||
|         }, | ||||
|         "hours": { | ||||
|             "0": [e_, {"6": [2, 3, 4, 5, 7, 8, 9, 10, 11]}], | ||||
|             "12": [e_, {"2": [1, 2, 3, 4, 6, 7, 8]}], | ||||
|             "1,13": [e_, {"1": [5, 6, 7]}], | ||||
|             "2,14": [sao, {"3": [1, 2, 3, 4]}], | ||||
|             "3,15": [sao, {"1": [8, 9, 10, 11]}], | ||||
|             "4,16": [sao, {"4": [1, 2, 3, 4, 5, 6]}], | ||||
|             "5,17": [sao, {"5": [1, 2, 3, 4, 5]}], | ||||
|             "6,18": [sao, {"3": [4, 5, 6, 7]}], | ||||
|             "7,19": [sao, {"3": [7, 8, 9, 10]}], | ||||
|             "8,20": [sao, {"5": [5, 6, 7, 8]}], | ||||
|             "9,21": [sao, {"4": [8, 9, 10, 11]}], | ||||
|             "10,22": [sao, {"2": [9, 10, 11]}], | ||||
|             "11,23": [sao, {"5": [8, 9, 10, 11]}] | ||||
|         }, | ||||
|         "getHour": function (date) { | ||||
|             var hour = date.getHours(); | ||||
|             if (date.getMinutes() >= 35) { | ||||
|                 return (hour + 1) % 24; | ||||
|             } | ||||
|             return hour; | ||||
|         } | ||||
|     }; | ||||
|     $.fritteli.uhr.register('pt', layout); | ||||
| }(jQuery)); | ||||
|  |  | |||
							
								
								
									
										6
									
								
								dist/jquery.uhr.baselangs.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/jquery.uhr.baselangs.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										69
									
								
								dist/jquery.uhr.complete.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										69
									
								
								dist/jquery.uhr.complete.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| (function($) { | ||||
|     'use strict'; | ||||
|     var uhrGlobals = { | ||||
|  | @ -1434,3 +1434,68 @@ | |||
|     }; | ||||
|     $.fritteli.uhr.register('nl', layout); | ||||
| }(jQuery)); | ||||
| (function ($) { | ||||
|     'use strict'; | ||||
|     var e_ = {1: [1]}; | ||||
|     var sao = {1: [2, 3, 4]}; | ||||
|     var e1 = {7: [8]}; | ||||
|     var e2 = {10: [5]}; | ||||
|     var menos = {7: [7, 8, 9, 10, 11]}; | ||||
|     var meia = {8: [8, 9, 10, 11]}; | ||||
|     var cinco = {10: [7, 8, 9, 10, 11]}; | ||||
|     var dez = {10: [1, 2, 3]}; | ||||
|     var um_quarto = {9: [1, 2, 4, 5, 6, 7, 8, 9]}; | ||||
|     var vinte = {8: [1, 2, 3, 4, 5]}; | ||||
|     var layout = { | ||||
|         "version": 2, | ||||
|         "language": 'Português', | ||||
|         "letters": [ | ||||
|             'ÉSÃOUMATRÊS', | ||||
|             'MEIOLDIADEZ', | ||||
|             'DUASEISETEY', | ||||
|             'QUATROHNOVE', | ||||
|             'CINCOITONZE', | ||||
|             'ZMEIALNOITE', | ||||
|             'HORASYMENOS', | ||||
|             'VINTECAMEIA', | ||||
|             'UMVQUARTOPM', | ||||
|             'DEZOEYCINCO' | ||||
|         ], | ||||
|         "minutes": { | ||||
|             "5,6,7,8,9": [e1, cinco], | ||||
|             "10,11,12,13,14": [e1, dez], | ||||
|             "15,16,17,18,19": [e1, um_quarto], | ||||
|             "20,21,22,23,24": [e1, vinte], | ||||
|             "25,26,27,28,29": [e1, vinte, e2, cinco], | ||||
|             "30,31,32,33,34": [e1, meia], | ||||
|             "35,36,37,38,39": [menos, vinte, e2, cinco], | ||||
|             "40,41,42,43,44": [menos, vinte], | ||||
|             "45,46,47,48,49": [menos, um_quarto], | ||||
|             "50,51,52,53,54": [menos, dez], | ||||
|             "55,56,57,58,59": [menos, cinco] | ||||
|         }, | ||||
|         "hours": { | ||||
|             "0": [e_, {"6": [2, 3, 4, 5, 7, 8, 9, 10, 11]}], | ||||
|             "12": [e_, {"2": [1, 2, 3, 4, 6, 7, 8]}], | ||||
|             "1,13": [e_, {"1": [5, 6, 7]}], | ||||
|             "2,14": [sao, {"3": [1, 2, 3, 4]}], | ||||
|             "3,15": [sao, {"1": [8, 9, 10, 11]}], | ||||
|             "4,16": [sao, {"4": [1, 2, 3, 4, 5, 6]}], | ||||
|             "5,17": [sao, {"5": [1, 2, 3, 4, 5]}], | ||||
|             "6,18": [sao, {"3": [4, 5, 6, 7]}], | ||||
|             "7,19": [sao, {"3": [7, 8, 9, 10]}], | ||||
|             "8,20": [sao, {"5": [5, 6, 7, 8]}], | ||||
|             "9,21": [sao, {"4": [8, 9, 10, 11]}], | ||||
|             "10,22": [sao, {"2": [9, 10, 11]}], | ||||
|             "11,23": [sao, {"5": [8, 9, 10, 11]}] | ||||
|         }, | ||||
|         "getHour": function (date) { | ||||
|             var hour = date.getHours(); | ||||
|             if (date.getMinutes() >= 35) { | ||||
|                 return (hour + 1) % 24; | ||||
|             } | ||||
|             return hour; | ||||
|         } | ||||
|     }; | ||||
|     $.fritteli.uhr.register('pt', layout); | ||||
| }(jQuery)); | ||||
|  |  | |||
							
								
								
									
										6
									
								
								dist/jquery.uhr.complete.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/jquery.uhr.complete.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										69
									
								
								dist/jquery.uhr.langs.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										69
									
								
								dist/jquery.uhr.langs.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| (function($) { | ||||
|     'use strict'; | ||||
|     var es_ist = {1: [1, 2, 4, 5, 6]}; | ||||
|  | @ -650,3 +650,68 @@ | |||
|     }; | ||||
|     $.fritteli.uhr.register('nl', layout); | ||||
| }(jQuery)); | ||||
| (function ($) { | ||||
|     'use strict'; | ||||
|     var e_ = {1: [1]}; | ||||
|     var sao = {1: [2, 3, 4]}; | ||||
|     var e1 = {7: [8]}; | ||||
|     var e2 = {10: [5]}; | ||||
|     var menos = {7: [7, 8, 9, 10, 11]}; | ||||
|     var meia = {8: [8, 9, 10, 11]}; | ||||
|     var cinco = {10: [7, 8, 9, 10, 11]}; | ||||
|     var dez = {10: [1, 2, 3]}; | ||||
|     var um_quarto = {9: [1, 2, 4, 5, 6, 7, 8, 9]}; | ||||
|     var vinte = {8: [1, 2, 3, 4, 5]}; | ||||
|     var layout = { | ||||
|         "version": 2, | ||||
|         "language": 'Português', | ||||
|         "letters": [ | ||||
|             'ÉSÃOUMATRÊS', | ||||
|             'MEIOLDIADEZ', | ||||
|             'DUASEISETEY', | ||||
|             'QUATROHNOVE', | ||||
|             'CINCOITONZE', | ||||
|             'ZMEIALNOITE', | ||||
|             'HORASYMENOS', | ||||
|             'VINTECAMEIA', | ||||
|             'UMVQUARTOPM', | ||||
|             'DEZOEYCINCO' | ||||
|         ], | ||||
|         "minutes": { | ||||
|             "5,6,7,8,9": [e1, cinco], | ||||
|             "10,11,12,13,14": [e1, dez], | ||||
|             "15,16,17,18,19": [e1, um_quarto], | ||||
|             "20,21,22,23,24": [e1, vinte], | ||||
|             "25,26,27,28,29": [e1, vinte, e2, cinco], | ||||
|             "30,31,32,33,34": [e1, meia], | ||||
|             "35,36,37,38,39": [menos, vinte, e2, cinco], | ||||
|             "40,41,42,43,44": [menos, vinte], | ||||
|             "45,46,47,48,49": [menos, um_quarto], | ||||
|             "50,51,52,53,54": [menos, dez], | ||||
|             "55,56,57,58,59": [menos, cinco] | ||||
|         }, | ||||
|         "hours": { | ||||
|             "0": [e_, {"6": [2, 3, 4, 5, 7, 8, 9, 10, 11]}], | ||||
|             "12": [e_, {"2": [1, 2, 3, 4, 6, 7, 8]}], | ||||
|             "1,13": [e_, {"1": [5, 6, 7]}], | ||||
|             "2,14": [sao, {"3": [1, 2, 3, 4]}], | ||||
|             "3,15": [sao, {"1": [8, 9, 10, 11]}], | ||||
|             "4,16": [sao, {"4": [1, 2, 3, 4, 5, 6]}], | ||||
|             "5,17": [sao, {"5": [1, 2, 3, 4, 5]}], | ||||
|             "6,18": [sao, {"3": [4, 5, 6, 7]}], | ||||
|             "7,19": [sao, {"3": [7, 8, 9, 10]}], | ||||
|             "8,20": [sao, {"5": [5, 6, 7, 8]}], | ||||
|             "9,21": [sao, {"4": [8, 9, 10, 11]}], | ||||
|             "10,22": [sao, {"2": [9, 10, 11]}], | ||||
|             "11,23": [sao, {"5": [8, 9, 10, 11]}] | ||||
|         }, | ||||
|         "getHour": function (date) { | ||||
|             var hour = date.getHours(); | ||||
|             if (date.getMinutes() >= 35) { | ||||
|                 return (hour + 1) % 24; | ||||
|             } | ||||
|             return hour; | ||||
|         } | ||||
|     }; | ||||
|     $.fritteli.uhr.register('pt', layout); | ||||
| }(jQuery)); | ||||
|  |  | |||
							
								
								
									
										6
									
								
								dist/jquery.uhr.langs.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/jquery.uhr.langs.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										4
									
								
								dist/jquery.uhr.main.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								dist/jquery.uhr.main.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,6 +1,6 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| (function($) { | ||||
|     'use strict'; | ||||
|     var uhrGlobals = { | ||||
|  |  | |||
							
								
								
									
										6
									
								
								dist/jquery.uhr.main.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										6
									
								
								dist/jquery.uhr.main.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										40
									
								
								dist/libs.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										40
									
								
								dist/libs.js
									
										
									
									
										vendored
									
									
								
							|  | @ -1,8 +1,8 @@ | |||
| /*! uhr - v8.0.1-dev.0 - 2015-01-19 | ||||
| /*! uhr - v8.0.1-dev.0 - 2015-07-15 | ||||
| * http://bärneruhr.ch/
 | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPLv3 */ | ||||
| * Copyright (c) 2015 Manuel Friedli; Licensed GPL-3.0 */ | ||||
| /*! | ||||
|  * jQuery JavaScript Library v2.1.3 | ||||
|  * jQuery JavaScript Library v2.1.4 | ||||
|  * http://jquery.com/
 | ||||
|  * | ||||
|  * Includes Sizzle.js | ||||
|  | @ -12,7 +12,7 @@ | |||
|  * Released under the MIT license | ||||
|  * http://jquery.org/license
 | ||||
|  * | ||||
|  * Date: 2014-12-18T15:11Z | ||||
|  * Date: 2015-04-28T16:01Z | ||||
|  */ | ||||
| 
 | ||||
| (function( global, factory ) { | ||||
|  | @ -70,7 +70,7 @@ var | |||
| 	// Use the correct document accordingly with window argument (sandbox)
 | ||||
| 	document = window.document, | ||||
| 
 | ||||
| 	version = "2.1.3", | ||||
| 	version = "2.1.4", | ||||
| 
 | ||||
| 	// Define a local copy of jQuery
 | ||||
| 	jQuery = function( selector, context ) { | ||||
|  | @ -534,7 +534,12 @@ jQuery.each("Boolean Number String Function Array Date RegExp Object Error".spli | |||
| }); | ||||
| 
 | ||||
| function isArraylike( obj ) { | ||||
| 	var length = obj.length, | ||||
| 
 | ||||
| 	// Support: iOS 8.2 (not reproducible in simulator)
 | ||||
| 	// `in` check used to prevent JIT error (gh-2145)
 | ||||
| 	// hasOwn isn't used here due to false negatives
 | ||||
| 	// regarding Nodelist length in IE
 | ||||
| 	var length = "length" in obj && obj.length, | ||||
| 		type = jQuery.type( obj ); | ||||
| 
 | ||||
| 	if ( type === "function" || jQuery.isWindow( obj ) ) { | ||||
|  | @ -9208,10 +9213,10 @@ return jQuery; | |||
| })); | ||||
| 
 | ||||
| /*! | ||||
|  * jQuery UI Core 1.11.2 | ||||
|  * jQuery UI Core 1.11.4 | ||||
|  * http://jqueryui.com
 | ||||
|  * | ||||
|  * Copyright 2014 jQuery Foundation and other contributors | ||||
|  * Copyright jQuery Foundation and other contributors | ||||
|  * Released under the MIT license. | ||||
|  * http://jquery.org/license
 | ||||
|  * | ||||
|  | @ -9233,7 +9238,7 @@ return jQuery; | |||
| $.ui = $.ui || {}; | ||||
| 
 | ||||
| $.extend( $.ui, { | ||||
| 	version: "1.11.2", | ||||
| 	version: "1.11.4", | ||||
| 
 | ||||
| 	keyCode: { | ||||
| 		BACKSPACE: 8, | ||||
|  | @ -9306,7 +9311,7 @@ function focusable( element, isTabIndexNotNaN ) { | |||
| 		img = $( "img[usemap='#" + mapName + "']" )[ 0 ]; | ||||
| 		return !!img && visible( img ); | ||||
| 	} | ||||
| 	return ( /input|select|textarea|button|object/.test( nodeName ) ? | ||||
| 	return ( /^(input|select|textarea|button|object)$/.test( nodeName ) ? | ||||
| 		!element.disabled : | ||||
| 		"a" === nodeName ? | ||||
| 			element.href || isTabIndexNotNaN : | ||||
|  | @ -9513,10 +9518,10 @@ $.ui.plugin = { | |||
| })); | ||||
| 
 | ||||
| /*! | ||||
|  * jQuery UI Widget 1.11.2 | ||||
|  * jQuery UI Widget 1.11.4 | ||||
|  * http://jqueryui.com
 | ||||
|  * | ||||
|  * Copyright 2014 jQuery Foundation and other contributors | ||||
|  * Copyright jQuery Foundation and other contributors | ||||
|  * Released under the MIT license. | ||||
|  * http://jquery.org/license
 | ||||
|  * | ||||
|  | @ -9704,11 +9709,6 @@ $.widget.bridge = function( name, object ) { | |||
| 			args = widget_slice.call( arguments, 1 ), | ||||
| 			returnValue = this; | ||||
| 
 | ||||
| 		// allow multiple hashes to be passed on init
 | ||||
| 		options = !isMethodCall && args.length ? | ||||
| 			$.widget.extend.apply( null, [ options ].concat(args) ) : | ||||
| 			options; | ||||
| 
 | ||||
| 		if ( isMethodCall ) { | ||||
| 			this.each(function() { | ||||
| 				var methodValue, | ||||
|  | @ -9733,6 +9733,12 @@ $.widget.bridge = function( name, object ) { | |||
| 				} | ||||
| 			}); | ||||
| 		} else { | ||||
| 
 | ||||
| 			// Allow multiple hashes to be passed on init
 | ||||
| 			if ( args.length ) { | ||||
| 				options = $.widget.extend.apply( null, [ options ].concat(args) ); | ||||
| 			} | ||||
| 
 | ||||
| 			this.each(function() { | ||||
| 				var instance = $.data( this, fullName ); | ||||
| 				if ( instance ) { | ||||
|  |  | |||
							
								
								
									
										10
									
								
								dist/libs.min.js
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										10
									
								
								dist/libs.min.js
									
										
									
									
										vendored
									
									
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								dist/uhr-pink.min.css
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/uhr-pink.min.css
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1 @@ | |||
| .uhr.pink{background-color:#f0a}.uhr.pink .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.pink .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.pink .onoffswitch-inner:before{background-color:#f0a}.uhr.pink .dot:not(.active){border-color:rgba(255,255,255,.1);box-shadow:0 0 .1em rgba(255,255,255,.1)}.uhr.pink .letter:not(.active){color:rgba(255,255,255,.1);text-shadow:0 0 .1em rgba(255,255,255,.1)} | ||||
| .pink .onoffswitch-inner:before,.uhr.pink{background-color:#f0a}.uhr.pink .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.pink .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.uhr.pink .dot:not(.active){border-color:rgba(255,255,255,.1);box-shadow:0 0 .1em rgba(255,255,255,.1)}.uhr.pink .letter:not(.active){color:rgba(255,255,255,.1);text-shadow:0 0 .1em rgba(255,255,255,.1)} | ||||
							
								
								
									
										2
									
								
								dist/uhr-white.min.css
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/uhr-white.min.css
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1 @@ | |||
| .uhr.white{background-color:#ccc}.uhr.white .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.white .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.white .onoffswitch-inner:before{background-color:#ccc}.uhr.white .dot:not(.active){border-color:rgba(0,0,0,.1);box-shadow:0 0 .1em rgba(0,0,0,.1)}.uhr.white .letter:not(.active){color:rgba(0,0,0,.1);text-shadow:0 0 .1em rgba(0,0,0,.1)} | ||||
| .uhr.white,.white .onoffswitch-inner:before{background-color:#ccc}.uhr.white .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.white .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.uhr.white .dot:not(.active){border-color:rgba(0,0,0,.1);box-shadow:0 0 .1em rgba(0,0,0,.1)}.uhr.white .letter:not(.active){color:rgba(0,0,0,.1);text-shadow:0 0 .1em rgba(0,0,0,.1)} | ||||
							
								
								
									
										2
									
								
								dist/uhr-yellow.min.css
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/uhr-yellow.min.css
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1 @@ | |||
| .uhr.yellow{background-color:#fd0}.uhr.yellow .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.yellow .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.yellow .onoffswitch-inner:before{background-color:#fd0}.uhr.yellow .dot:not(.active){border-color:rgba(0,0,0,.05);box-shadow:0 0 .1em rgba(0,0,0,.05)}.uhr.yellow .letter:not(.active){color:rgba(0,0,0,.05);text-shadow:0 0 .1em rgba(0,0,0,.05)} | ||||
| .uhr.yellow,.yellow .onoffswitch-inner:before{background-color:#fd0}.uhr.yellow .dot.active{border-color:#fff;box-shadow:0 0 .1em #fff}.uhr.yellow .letter.active{color:#fff;text-shadow:0 0 .1em #fff}.uhr.yellow .dot:not(.active){border-color:rgba(0,0,0,.05);box-shadow:0 0 .1em rgba(0,0,0,.05)}.uhr.yellow .letter:not(.active){color:rgba(0,0,0,.05);text-shadow:0 0 .1em rgba(0,0,0,.05)} | ||||
							
								
								
									
										2
									
								
								dist/uhr.min.css
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								dist/uhr.min.css
									
										
									
									
										vendored
									
									
								
							|  | @ -1 +1 @@ | |||
| @font-face{font-family:Uhrenfont;src:url(../resources/uhr.woff) format('woff')}body{font-family:Uhrenfont,sans-serif}.uhr{position:relative;margin:0;transition:background-color .5s}.uhr .reflection{position:absolute;top:0;bottom:0;left:0;right:0;background:radial-gradient(225em 45em at 160% 0,rgba(255,255,255,.4) 0,rgba(255,255,255,.05) 40%,rgba(255,255,255,0) 40%) no-repeat;display:block;margin:.15em}.uhr .letterarea{display:block;position:absolute;top:12%;bottom:12%;left:12%;right:12%;overflow:hidden;font-size:200%}.item{transition:box-shadow .5s,text-shadow .5s,border-color .5s,color .5s}.dot{position:absolute;display:block;height:0;width:0;border:.2em solid;border-radius:1em}.dot.active{border-color:#eee;box-shadow:0 0 .2em #eee}.dot1{top:3.75%;left:3.75%}.dot2{top:3.75%;right:3.75%}.dot3{bottom:3.75%;right:3.75%}.dot4{bottom:3.75%;left:3.75%}.letter{height:10%;width:9.0909%;padding:0;margin:0;display:inline-block;text-align:center;line-height:160%}.letter.active{color:#eee;text-shadow:0 0 .2em #eee}.onoffswitch{position:relative;width:86px;margin:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{display:none}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #999;border-radius:50px}.modeswitch-inner,.onoffswitch-inner{width:200%;margin-left:-100%;-moz-transition:margin .3s ease-in 0s;-webkit-transition:margin .3s ease-in 0s;-o-transition:margin .3s ease-in 0s;transition:margin .3s ease-in 0s}.modeswitch-inner:after,.modeswitch-inner:before,.onoffswitch-inner:after,.onoffswitch-inner:before{float:left;width:50%;height:24px;padding:0;line-height:24px;font-size:18px;font-weight:700;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.onoffswitch-inner:before{content:"EIN";padding-left:12px;color:#eee;transition:background-color .5s}.onoffswitch-inner:after{content:"AUS";padding-right:12px;background-color:#eee;color:#999;text-align:right}.onoffswitch-switch{width:30px;margin:-3px;background:#fff;border:2px solid #999;border-radius:50px;position:absolute;top:0;bottom:0;right:58px;-moz-transition:all .3s ease-in 0s;-webkit-transition:all .3s ease-in 0s;-o-transition:all .3s ease-in 0s;transition:all .3s ease-in 0s}.onoffswitch-checkbox:checked+.onoffswitch-label .modeswitch-inner,.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner{margin-left:0}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch{right:0}.modeswitch-inner:before{content:"MIN";padding-left:12px;background-color:#fff;color:#000}.modeswitch-inner:after{content:"SEC";padding-right:12px;background-color:#fff;color:#000;text-align:right}a.uhr-configlink{cursor:pointer;background:url(../resources/settings.png) no-repeat;width:24px;height:24px;display:inline-block;margin:2px;vertical-align:top}.uhr-controlpanel{border-radius:.5em;box-shadow:0 0 1em #000;background-color:#fff;display:inline-block;padding:.5em;position:sticky;bottom:0;margin-left:1em}.uhr-controlpanel .content{position:relative}a.uhr-closecontrolpanel{cursor:pointer;display:inline-block;position:absolute;right:0;top:-1em;width:24px;height:24px;background:url(../resources/close.png) no-repeat}#disclaimer{font-size:.5em}#disclaimer a{color:#444;text-decoration:underline} | ||||
| @font-face{font-family:Uhrenfont;src:url(../resources/uhr.woff) format('woff')}body{font-family:Uhrenfont,sans-serif}.uhr{position:relative;margin:0;transition:background-color .5s}.dot,.uhr .letterarea,.uhr .reflection{position:absolute;display:block}.uhr .reflection{top:0;bottom:0;left:0;right:0;background:radial-gradient(225em 45em at 160% 0,rgba(255,255,255,.4) 0,rgba(255,255,255,.05) 40%,rgba(255,255,255,0) 40%) no-repeat;margin:.15em}.uhr .letterarea{top:12%;bottom:12%;left:12%;right:12%;overflow:hidden;font-size:200%}.dot2,.dot3{right:3.75%}.dot1,.dot4{left:3.75%}.dot3,.dot4{bottom:3.75%}.item{transition:box-shadow .5s,text-shadow .5s,border-color .5s,color .5s}.dot{height:0;width:0;border:.2em solid;border-radius:1em}.dot.active{border-color:#eee;box-shadow:0 0 .2em #eee}.dot1,.dot2{top:3.75%}.letter{height:10%;width:9.0909%;padding:0;margin:0;display:inline-block;text-align:center;line-height:160%}.letter.active{color:#eee;text-shadow:0 0 .2em #eee}.onoffswitch{position:relative;width:86px;margin:1em;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}.onoffswitch-checkbox{display:none}.onoffswitch-label{display:block;overflow:hidden;cursor:pointer;border:2px solid #999;border-radius:50px}.modeswitch-inner,.onoffswitch-inner{width:200%;margin-left:-100%;-moz-transition:margin .3s ease-in 0s;-webkit-transition:margin .3s ease-in 0s;-o-transition:margin .3s ease-in 0s;transition:margin .3s ease-in 0s}.modeswitch-inner:after,.modeswitch-inner:before,.onoffswitch-inner:after,.onoffswitch-inner:before{float:left;width:50%;height:24px;padding:0;line-height:24px;font-size:18px;font-weight:700;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.onoffswitch-inner:before{content:"EIN";padding-left:12px;color:#eee;transition:background-color .5s}.onoffswitch-inner:after{content:"AUS";padding-right:12px;background-color:#eee;color:#999;text-align:right}.onoffswitch-switch{width:30px;margin:-3px;background:#fff;border:2px solid #999;border-radius:50px;position:absolute;top:0;bottom:0;right:58px;-moz-transition:all .3s ease-in 0s;-webkit-transition:all .3s ease-in 0s;-o-transition:all .3s ease-in 0s;transition:all .3s ease-in 0s}a.uhr-closecontrolpanel,a.uhr-configlink{cursor:pointer;display:inline-block;width:24px;height:24px}.onoffswitch-checkbox:checked+.onoffswitch-label .modeswitch-inner,.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-inner{margin-left:0}.onoffswitch-checkbox:checked+.onoffswitch-label .onoffswitch-switch{right:0}.modeswitch-inner:before{content:"MIN";padding-left:12px;background-color:#fff;color:#000}.modeswitch-inner:after{content:"SEC";padding-right:12px;background-color:#fff;color:#000;text-align:right}a.uhr-configlink{background:url(../resources/settings.png) no-repeat;margin:2px;vertical-align:top}.uhr-controlpanel{border-radius:.5em;box-shadow:0 0 1em #000;background-color:#fff;display:inline-block;padding:.5em;position:sticky;bottom:0;margin-left:1em}.uhr-controlpanel .content{position:relative}a.uhr-closecontrolpanel{position:absolute;right:0;top:-1em;background:url(../resources/close.png) no-repeat}#disclaimer{font-size:.5em}#disclaimer a{color:#444;text-decoration:underline} | ||||
|  | @ -171,6 +171,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | |||
|             <li>fr</li> | ||||
|             <li>it</li> | ||||
|             <li>nl</li> | ||||
|             <li>pt</li> | ||||
|         </ul> | ||||
|         <br/>Typ: String | ||||
|         <br/>Default: <code>'de_CH'</code></dd> | ||||
|  | @ -246,6 +247,7 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>. | |||
|             <li>fr</li> | ||||
|             <li>it</li> | ||||
|             <li>nl</li> | ||||
|             <li>pt</li> | ||||
|         </ul> | ||||
|     </dd> | ||||
|     <dt><code>t</code> oder <code>theme</code></dt> | ||||
|  |  | |||
|  | @ -18,9 +18,10 @@ | |||
|   }, | ||||
|   "licenses": [ | ||||
|     { | ||||
|       "type": "GPLv3" | ||||
|       "type": "GPL-3.0" | ||||
|     } | ||||
|   ], | ||||
|   "license": "GPL-3.0", | ||||
|   "devDependencies": { | ||||
|     "bower": "^1.3.12", | ||||
|     "grunt": "~0.4.5", | ||||
|  |  | |||
							
								
								
									
										79
									
								
								src/uhr-pt.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										79
									
								
								src/uhr-pt.js
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,79 @@ | |||
| /* | ||||
|  This program is free software: you can redistribute it and/or modify | ||||
|  it under the terms of the GNU General Public License as published by | ||||
|  the Free Software Foundation, either version 3 of the License, or | ||||
|  (at your option) any later version. | ||||
| 
 | ||||
|  This program is distributed in the hope that it will be useful, | ||||
|  but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
|  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
|  GNU General Public License for more details. | ||||
| 
 | ||||
|  You should have received a copy of the GNU General Public License | ||||
|  along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | ||||
|  */ | ||||
| (function ($) { | ||||
|     'use strict'; | ||||
|     var e_ = {1: [1]}; | ||||
|     var sao = {1: [2, 3, 4]}; | ||||
|     var e1 = {7: [8]}; | ||||
|     var e2 = {10: [5]}; | ||||
|     var menos = {7: [7, 8, 9, 10, 11]}; | ||||
|     var meia = {8: [8, 9, 10, 11]}; | ||||
|     var cinco = {10: [7, 8, 9, 10, 11]}; | ||||
|     var dez = {10: [1, 2, 3]}; | ||||
|     var um_quarto = {9: [1, 2, 4, 5, 6, 7, 8, 9]}; | ||||
|     var vinte = {8: [1, 2, 3, 4, 5]}; | ||||
|     var layout = { | ||||
|         "version": 2, | ||||
|         "language": 'Português', | ||||
|         "letters": [ | ||||
|             'ÉSÃOUMATRÊS', | ||||
|             'MEIOLDIADEZ', | ||||
|             'DUASEISETEY', | ||||
|             'QUATROHNOVE', | ||||
|             'CINCOITONZE', | ||||
|             'ZMEIALNOITE', | ||||
|             'HORASYMENOS', | ||||
|             'VINTECAMEIA', | ||||
|             'UMVQUARTOPM', | ||||
|             'DEZOEYCINCO' | ||||
|         ], | ||||
|         "minutes": { | ||||
|             "5,6,7,8,9": [e1, cinco], | ||||
|             "10,11,12,13,14": [e1, dez], | ||||
|             "15,16,17,18,19": [e1, um_quarto], | ||||
|             "20,21,22,23,24": [e1, vinte], | ||||
|             "25,26,27,28,29": [e1, vinte, e2, cinco], | ||||
|             "30,31,32,33,34": [e1, meia], | ||||
|             "35,36,37,38,39": [menos, vinte, e2, cinco], | ||||
|             "40,41,42,43,44": [menos, vinte], | ||||
|             "45,46,47,48,49": [menos, um_quarto], | ||||
|             "50,51,52,53,54": [menos, dez], | ||||
|             "55,56,57,58,59": [menos, cinco] | ||||
|         }, | ||||
|         "hours": { | ||||
|             "0": [e_, {"6": [2, 3, 4, 5, 7, 8, 9, 10, 11]}], | ||||
|             "12": [e_, {"2": [1, 2, 3, 4, 6, 7, 8]}], | ||||
|             "1,13": [e_, {"1": [5, 6, 7]}], | ||||
|             "2,14": [sao, {"3": [1, 2, 3, 4]}], | ||||
|             "3,15": [sao, {"1": [8, 9, 10, 11]}], | ||||
|             "4,16": [sao, {"4": [1, 2, 3, 4, 5, 6]}], | ||||
|             "5,17": [sao, {"5": [1, 2, 3, 4, 5]}], | ||||
|             "6,18": [sao, {"3": [4, 5, 6, 7]}], | ||||
|             "7,19": [sao, {"3": [7, 8, 9, 10]}], | ||||
|             "8,20": [sao, {"5": [5, 6, 7, 8]}], | ||||
|             "9,21": [sao, {"4": [8, 9, 10, 11]}], | ||||
|             "10,22": [sao, {"2": [9, 10, 11]}], | ||||
|             "11,23": [sao, {"5": [8, 9, 10, 11]}] | ||||
|         }, | ||||
|         "getHour": function (date) { | ||||
|             var hour = date.getHours(); | ||||
|             if (date.getMinutes() >= 35) { | ||||
|                 return (hour + 1) % 24; | ||||
|             } | ||||
|             return hour; | ||||
|         } | ||||
|     }; | ||||
|     $.fritteli.uhr.register('pt', layout); | ||||
| }(jQuery)); | ||||
							
								
								
									
										76
									
								
								test/fastforward.html
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										76
									
								
								test/fastforward.html
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,76 @@ | |||
| <!DOCTYPE html> | ||||
| <!-- | ||||
| This program is free software: you can redistribute it and/or modify | ||||
| it under the terms of the GNU General Public License as published by | ||||
| the Free Software Foundation, either version 3 of the License, or | ||||
| (at your option) any later version. | ||||
| 
 | ||||
| This program is distributed in the hope that it will be useful, | ||||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| GNU General Public License for more details. | ||||
| 
 | ||||
| You should have received a copy of the GNU General Public License | ||||
| along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| --> | ||||
| <html lang="de" manifest="manifest.appcache"> | ||||
| <head> | ||||
|     <title>Fastforward bärneruhr.ch</title> | ||||
|     <meta charset="utf-8"/> | ||||
|     <meta name="apple-mobile-web-app-capable" content="yes"/> | ||||
|     <meta name="apple-mobile-web-app-status-bar-style" content="black"/> | ||||
|     <meta name="apple-mobile-web-app-title" content="Bärneruhr"/> | ||||
|     <meta name="viewport" content="width=device-width,user-scalable=no,initial-scale=1"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr.min.css"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-black.min.css" data-class="black" data-name="Schwarz"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-white.min.css" data-class="white" data-name="Weiss"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-red.min.css" data-class="red" data-name="Rot"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-yellow.min.css" data-class="yellow" data-name="Gelb"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-green.min.css" data-class="green" data-name="Grün"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-blue.min.css" data-class="blue" data-name="Blau"/> | ||||
|     <link rel="stylesheet" type="text/css" href="../dist/uhr-pink.min.css" data-class="pink" data-name="Pink"/> | ||||
|     <link rel="shortcut icon" type="image/png" href="../resources/favicon.png"/> | ||||
|     <link rel="apple-touch-icon-precomposed" href="../resources/apple-touch-icon-precomposed.png"/> | ||||
|     <script type="text/javascript" src="../dist/libs.min.js"></script> | ||||
|     <script type="text/javascript" src="../dist/jquery.uhr.complete.min.js"></script> | ||||
| </head> | ||||
| <body> | ||||
| <div id="uhr"></div> | ||||
| <button id="timer">Start</button> | ||||
| <button id="reset">Reset</button> | ||||
| <script type="text/javascript"> | ||||
|     (function ($) { | ||||
|         var time = new Date(2000, 0, 1, 0, 0, 0, 0); | ||||
|         var timer = null; | ||||
|         $('#timer').on('click', function () { | ||||
|             if (timer == null) { | ||||
|                 timer = window.setInterval(function () { | ||||
|                     var minutes = time.getMinutes(); | ||||
|                     var hours = time.getHours(); | ||||
|                     minutes = (minutes + 1) % 60; | ||||
|                     if (minutes == 0) { | ||||
|                         hours = (hours + 1) % 24; | ||||
|                         time.setHours(hours); | ||||
|                     } | ||||
|                     time.setMinutes(minutes); | ||||
|                     $('#uhr').uhr('time', time); | ||||
|                 }, 200); | ||||
|                 $('#timer').html('Pause'); | ||||
|             } else { | ||||
|                 window.clearInterval(timer); | ||||
|                 timer = null; | ||||
|                 $('#timer').html('Start'); | ||||
|             } | ||||
|         }); | ||||
|         $('#reset').on('click', function () { | ||||
|             time = new Date(2000, 0, 1, 0, 0, 0, 0); | ||||
|             $('#uhr').uhr('time', time); | ||||
|         }); | ||||
|         $('#uhr').uhr({ | ||||
|             width: '200px', | ||||
|             time: time | ||||
|         }); | ||||
|     })(jQuery); | ||||
| </script> | ||||
| </body> | ||||
| </html> | ||||
|  | @ -1,4 +1,18 @@ | |||
| <!DOCTYPE html> | ||||
| <!-- | ||||
| This program is free software: you can redistribute it and/or modify | ||||
| it under the terms of the GNU General Public License as published by | ||||
| the Free Software Foundation, either version 3 of the License, or | ||||
| (at your option) any later version. | ||||
| 
 | ||||
| This program is distributed in the hope that it will be useful, | ||||
| but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
| MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the | ||||
| GNU General Public License for more details. | ||||
| 
 | ||||
| You should have received a copy of the GNU General Public License | ||||
| along with this program.  If not, see <http://www.gnu.org/licenses/>. | ||||
| --> | ||||
| <html> | ||||
| <head lang="en"> | ||||
|     <meta charset="UTF-8"> | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue