migrated en to v2

This commit is contained in:
Manuel Friedli 2014-06-27 12:28:19 +02:00
parent 14d7ee79bc
commit d4874d1ec2

View file

@ -13,14 +13,16 @@ 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/>.
*/ */
var h = { var h = {
"_es_isch": {1:[1,2,4,5,6,7]}, "_it_is": {1:[1,2,4,5]},
"_ab": {4:[1,2]}, "_half": {4:[1,2,3,4]},
"_vor": {3:[9,10,11]}, "_to": {4:[10,11]},
"_haubi": {4:[4,5,6,7,8]}, "_past": {5:[1,2,3,4]},
"_5": {1:[9,10,11]}, "_o_clock": {10:[6,7,8,9,10,11]},
"_10": {2:[9,10,11]}, "_5": {3:[7,8,9,10]},
"_15": {2:[1,2,3,4,5,6]}, "_10": {4:[6,7,8]},
"_20": {3:[1,2,3,4,5,6]} "_15": {2:[1,3,4,5,6,7,8,9]},
"_20": {3:[1,2,3,4,5,6]},
"_25": {3:[1,2,3,4,5,6,7,8,9,10]}
}; };
var layout = { var layout = {
"version": 2, "version": 2,
@ -49,33 +51,34 @@ var layout = {
'SEVENTWELVE', 'SEVENTWELVE',
'TENSEOCLOCK' 'TENSEOCLOCK'
], ],
"permanent": h._es_isch, "permanent": h._it_is,
"minutes": { "minutes": {
"5,6,7,8,9": [h._5, h._ab], "0,1,2,3,4": h._o_clock,
"10,11,12,13,14": [h._10, h._ab], "5,6,7,8,9": [h._5, h._past],
"15,16,17,18,19": [h._15, h._ab], "10,11,12,13,14": [h._10, h._past],
"20,21,22,23,24": [h._20, h._ab], "15,16,17,18,19": [h._15, h._past],
"25,26,27,28,29": [h._5, h._vor, h._haubi], "20,21,22,23,24": [h._20, h._past],
"30,31,32,33,34": [h._haubi], "25,26,27,28,29": [h._25, h._past],
"35,36,37,38,39": [h._5, h._ab, h._haubi], "30,31,32,33,34": [h._half, h._past],
"40,41,42,43,44": [h._20, h._vor], "35,36,37,38,39": [h._25, h._to],
"45,46,47,48,49": [h._15, h._vor], "40,41,42,43,44": [h._20, h._to],
"50,51,52,53,54": [h._10, h._vor], "45,46,47,48,49": [h._15, h._to],
"55,56,57,58,59": [h._5, h._vor] "50,51,52,53,54": [h._10, h._to],
"55,56,57,58,59": [h._5, h._to]
}, },
"hours": { "hours": {
"1": {5:[1,2,3]}, "1": {6:[1,2,3]},
"2": {5:[4,5,6,7]}, "2": {7:[9,10,11]},
"3": {5:[9,10,11]}, "3": {6:[7,8,9,10,11]},
"4": {6:[1,2,3,4,5]}, "4": {7:[1,2,3,4]},
"5": {6:[6,7,8,9]}, "5": {7:[5,6,7,8]},
"6": {7:[1,2,3,4,5,6]}, "6": {6:[4,5,6]},
"7": {7:[7,8,9,10,11]}, "7": {9:[1,2,3,4,5]},
"8": {8:[1,2,3,4,5]}, "8": {8:[1,2,3,4,5]},
"9": {8:[6,7,8,9]}, "9": {5:[8,9,10,11]},
"10": {9:[1,2,3,4]}, "10": {10:[1,2,3]},
"11": {9:[8,9,10,11]}, "11": {8:[6,7,8,9,10,11]},
"12": {10:[1,2,3,4,5,6]} "12": {9:[6,7,8,9,10,11]}
}, },
"getHour": function(date) { "getHour": function(date) {
var hour = date.getHours(); var hour = date.getHours();