added it layout and updated documentation and manifest.appcache
This commit is contained in:
parent
ff850fca64
commit
9971763697
5 changed files with 86 additions and 4 deletions
|
@ -31,6 +31,7 @@ Beim Einbinden muss das attribut `data-class` angegeben werden, welches die CSS-
|
|||
* uhr-de.js
|
||||
* uhr-en.js
|
||||
* uhr-fr.js
|
||||
* uhr-it.js
|
||||
|
||||
`uhr-de_CH_genau.js` ist eine Variante von Berndeutsch, bei der zur vollen Stunde zusätlich das Wort "genau" angezeigt wird (also z.B. "ES ISCH GENAU DRÜ").
|
||||
|
||||
|
|
|
@ -91,7 +91,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<script type="text/javascript" src="uhr-de_CH_genau.js"></script>
|
||||
<script type="text/javascript" src="uhr-de.js"></script>
|
||||
<script type="text/javascript" src="uhr-en.js"></script>
|
||||
<script type="text/javascript" src="uhr-fr.js"></script></code>
|
||||
<script type="text/javascript" src="uhr-fr.js"></script>
|
||||
<script type="text/javascript" src="uhr-it.js"></script></code>
|
||||
</p>
|
||||
<p>Von den Stylesheets zwingend ist <code>uhr.css</code> und mindestens eines der Farbschema-Stylesheets. Die Attribute <code>data-class</code> bzw. <code>data-name</code> definieren dabei die im Stylesheet deklarierte Klasse bzw. den im Auswahlmenu anzuzeigenden Namen. Der Name kann frei gewählt werden, die Style-Klasse muss mit der im Stylesheet definierten übereinstimmen.</p>
|
||||
<p><code>uhr-de_CH_genau.js</code> ist eine Variante von Berndeutsch, bei der zur vollen Stunde zusätlich das Wort <tt>genau</tt> angezeigt wird (also z.B. <tt>ES ISCH GENAU DRÜ</tt>).</p>
|
||||
|
@ -125,11 +126,11 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<br/>Typ: String
|
||||
<br/> Default: <code>'on'</code></dd>
|
||||
<dt><code>language</code></dt>
|
||||
<dd>Die anfänglich ausgewählte Sprache als String. Welche Sprachen unterstützt werden, hängt davon ab, welche Sprachdateien eingebunden werden. Bis anhin unterstützte Sprachen umfassen <code>'de_CH'</code> (Berndeutsch), <code>'de'</code> (Hochdeutsch) und <code>'en'</code> (Englisch).
|
||||
<dd>Die anfänglich ausgewählte Sprache als String. Welche Sprachen unterstützt werden, hängt davon ab, welche Sprachdateien eingebunden werden.
|
||||
<br/>Typ: String
|
||||
<br/>Default: <code>'de_CH'</code></dd>
|
||||
<dt><code>theme</code></dt>
|
||||
<dd>Die anfänglich ausgewählte Farbe der Uhr. Welche Farben unterstützt werden, hängt davon ab, welche CSS-Dateien eingebunden werden. Bis anhin unterstützte Farben sind zur Zeit <code>'black'</code> (schwarz), <code>'red'</code> (rot), <code>'blue'</code> (blau), <code>'green'</code> (grün), <code>'white'</code> (weiss) und <code>'pink'</code> (pink).
|
||||
<dd>Die anfänglich ausgewählte Farbe der Uhr. Welche Farben unterstützt werden, hängt davon ab, welche CSS-Dateien eingebunden werden.
|
||||
<br/>Typ: String
|
||||
<br/>Default: Farbe der ersten eingebundenen CSS-Datei</dd>
|
||||
<dt><code>force</code></dt>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
CACHE MANIFEST
|
||||
# 6.1
|
||||
# 6.1.1
|
||||
|
||||
COPYING
|
||||
README.md
|
||||
|
@ -17,6 +17,7 @@ uhr-de_CH_genau.js
|
|||
uhr-en.js
|
||||
uhr-fr.js
|
||||
uhr-green.css
|
||||
uhr-it.js
|
||||
uhr-pink.css
|
||||
uhr-red.css
|
||||
uhr-white.css
|
||||
|
|
|
@ -44,6 +44,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<script type="text/javascript" src="../uhr-de.js"></script>
|
||||
<script type="text/javascript" src="../uhr-en.js"></script>
|
||||
<script type="text/javascript" src="../uhr-fr.js"></script>
|
||||
<script type="text/javascript" src="../uhr-it.js"></script>
|
||||
<script type="text/javascript">
|
||||
(function($) {
|
||||
var width = $(window).width();
|
||||
|
|
78
uhr-it.js
Normal file
78
uhr-it.js
Normal file
|
@ -0,0 +1,78 @@
|
|||
/*
|
||||
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/>.
|
||||
*/
|
||||
var h = {
|
||||
"_sono_le": {1:[1,2,3,4,6,7]},
|
||||
"_e_l": {2:[1,3,4]},
|
||||
"_e": {8:[1]},
|
||||
"_meno": {7:[8,9,10,11]},
|
||||
"_mezza": {10:[7,8,9,10,11]},
|
||||
"_5": {9:[6,7,8,9,10,11]},
|
||||
"_10": {10:[1,2,3,4,5]},
|
||||
"_un_quarto": {8:[3,4,6,7,8,9,10,11]},
|
||||
"_20": {9:[1,2,3,4,5]},
|
||||
"_25": {9:[1,2,3,4,5,6,7,8,9,10,11]}
|
||||
};
|
||||
var layout = {
|
||||
"version": 2,
|
||||
"language": 'Italiano',
|
||||
"letters": [
|
||||
'SONORLEBORE',
|
||||
'ÈRL\'UNASDUE',
|
||||
'TREOTTONOVE',
|
||||
'DIECIUNDICI',
|
||||
'DODICISETTE',
|
||||
'QUATTROCSEI',
|
||||
'CINQUEAMENO',
|
||||
'ECUNOQUARTO',
|
||||
'VENTICINQUE',
|
||||
'DIECIPMEZZA'
|
||||
],
|
||||
"permanent": [],
|
||||
"minutes": {
|
||||
"5,6,7,8,9": [h._e, h._5],
|
||||
"10,11,12,13,14": [h._e, h._10],
|
||||
"15,16,17,18,19": [h._e, h._un_quarto],
|
||||
"20,21,22,23,24": [h._e, h._20],
|
||||
"25,26,27,28,29": [h._e, h._25],
|
||||
"30,31,32,33,34": [h._e, h._mezza],
|
||||
"35,36,37,38,39": [h._meno, h._25],
|
||||
"40,41,42,43,44": [h._meno, h._20],
|
||||
"45,46,47,48,49": [h._meno, h._un_quarto],
|
||||
"50,51,52,53,54": [h._meno, h._10],
|
||||
"55,56,57,58,59": [h._meno, h._5]
|
||||
},
|
||||
"hours": {
|
||||
"0,12": [h._sono_le, {5:[1,2,3,4,5,6]}],
|
||||
"1,13": [h._e_l, {2:[5,6,7]}],
|
||||
"2,14": [h._sono_le, {2:[9,10,11]}],
|
||||
"3,15": [h._sono_le, {3:[1,2,3]}],
|
||||
"4,16": [h._sono_le, {6:[1,2,3,4,5,6,7]}],
|
||||
"5,17": [h._sono_le, {7:[1,2,3,4,5,6]}],
|
||||
"6,18": [h._sono_le, {6:[9,10,11]}],
|
||||
"7,19": [h._sono_le, {5:[7,8,9,10,11]}],
|
||||
"8,20": [h._sono_le, {3:[4,5,6,7]}],
|
||||
"9,21": [h._sono_le, {3:[8,9,10,11]}],
|
||||
"10,22": [h._sono_le, {4:[1,2,3,4,5]}],
|
||||
"11,23": [h._sono_le, {4:[6,7,8,9,10,11]}]
|
||||
},
|
||||
"getHour": function(date) {
|
||||
var hour = date.getHours();
|
||||
if (date.getMinutes() >= 35) {
|
||||
return hour + 1;
|
||||
}
|
||||
return hour;
|
||||
}
|
||||
};
|
||||
window,_uhr.register('it', layout);
|
Loading…
Reference in a new issue