wrap the layout definitions in immediately executing anonymous functions

This commit is contained in:
Manuel Friedli 2014-07-03 20:37:34 +02:00
parent 85b5670dfc
commit 3d0245abfa
7 changed files with 440 additions and 395 deletions

View file

@ -12,6 +12,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
var h = { var h = {
"_es_ist": {1:[1,2,4,5,6]}, "_es_ist": {1:[1,2,4,5,6]},
@ -69,3 +70,4 @@ var layout = {
} }
}; };
$.fritteli.uhr.register('de', layout); $.fritteli.uhr.register('de', layout);
}());

View file

@ -12,6 +12,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
// hilfsvariablen // hilfsvariablen
var h = { var h = {
@ -95,3 +96,4 @@ var layout = {
}; };
// Das Layout bei der Uhr unter dem Code "de_CH" registrieren. // Das Layout bei der Uhr unter dem Code "de_CH" registrieren.
$.fritteli.uhr.register('de_CH', layout); $.fritteli.uhr.register('de_CH', layout);
}());

View file

@ -12,6 +12,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
var h = { var h = {
"_es_isch": {1: [1, 2, 4, 5, 6, 7]}, "_es_isch": {1: [1, 2, 4, 5, 6, 7]},
@ -70,3 +71,4 @@ var layout = {
} }
}; };
$.fritteli.uhr.register('de_CH_genau', layout); $.fritteli.uhr.register('de_CH_genau', layout);
}());

View file

@ -12,6 +12,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
var h = { var h = {
"_it_is": {1: [1, 2, 4, 5]}, "_it_is": {1: [1, 2, 4, 5]},
@ -78,3 +79,4 @@ var layout = {
} }
}; };
$.fritteli.uhr.register('en', layout); $.fritteli.uhr.register('en', layout);
}());

View file

@ -13,6 +13,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
var h = { var h = {
"_il_est": {1: [1, 2, 4, 5, 6]}, "_il_est": {1: [1, 2, 4, 5, 6]},
@ -58,17 +59,50 @@ var layout = {
}, },
"hours": { "hours": {
"0": {5: [6, 7, 8, 9, 10, 11]}, "0": {5: [6, 7, 8, 9, 10, 11]},
"1,13": [{3:[5,6,7]}, h._heures], "1,13": [
"2,14": [{1:[8,9,10,11]}, h._heures], {3: [5, 6, 7]},
"3,15": [{2:[7,8,9,10,11]}, h._heures], h._heures
"4,16": [{2:[1,2,3,4,5,6]}, h._heures], ],
"5,17": [{4:[8,9,10,11]}, h._heures], "2,14": [
"6,18": [{4:[5,6,7]}, h._heures], {1: [8, 9, 10, 11]},
"7,19": [{3:[8,9,10,11]}, h._heures], h._heures
"8,20": [{4:[1,2,3,4]}, h._heures], ],
"9,21": [{3:[1,2,3,4]}, h._heures], "3,15": [
"10,22": [{5:[3,4,5]}, h._heures], {2: [7, 8, 9, 10, 11]},
"11,23": [{6:[1,2,3,4]}, h._heures], h._heures
],
"4,16": [
{2: [1, 2, 3, 4, 5, 6]},
h._heures
],
"5,17": [
{4: [8, 9, 10, 11]},
h._heures
],
"6,18": [
{4: [5, 6, 7]},
h._heures
],
"7,19": [
{3: [8, 9, 10, 11]},
h._heures
],
"8,20": [
{4: [1, 2, 3, 4]},
h._heures
],
"9,21": [
{3: [1, 2, 3, 4]},
h._heures
],
"10,22": [
{5: [3, 4, 5]},
h._heures
],
"11,23": [
{6: [1, 2, 3, 4]},
h._heures
],
"12": {5: [1, 2, 3, 4]} "12": {5: [1, 2, 3, 4]}
}, },
"getHour": function (date) { "getHour": function (date) {
@ -80,3 +114,4 @@ var layout = {
} }
}; };
$.fritteli.uhr.register('fr', layout); $.fritteli.uhr.register('fr', layout);
}());

View file

@ -12,6 +12,7 @@ GNU General Public License for more details.
You should have received a copy of the GNU General Public License You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>. along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
(function () {
'use strict'; 'use strict';
var h = { var h = {
"_sono_le": {1: [1, 2, 3, 4, 6, 7]}, "_sono_le": {1: [1, 2, 3, 4, 6, 7]},
@ -77,3 +78,4 @@ var layout = {
} }
}; };
$.fritteli.uhr.register('it', layout); $.fritteli.uhr.register('it', layout);
}());