diff --git a/uhr-de_CH_TEST.js b/uhr-de_CH_TEST.js index b48f260..df62791 100644 --- a/uhr-de_CH_TEST.js +++ b/uhr-de_CH_TEST.js @@ -12,10 +12,13 @@ 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 . */ +var helper = { + "es_isch": {1:[1,2,4,5,6,7]} +}; var layout = { "version": 2, - "helper": {1:[1,2,4,5,6,7]}, "language": 'Bärndütsch (test)', - "permanent": this.helper, + "permanent": helper.es_isch, }; +helper = undefined; window._uhr.languages['de_CH_TEST'] = layout; diff --git a/uhr-de_CH_new.js b/uhr-de_CH_new.js index 5ca9dda..d78869c 100644 --- a/uhr-de_CH_new.js +++ b/uhr-de_CH_new.js @@ -12,8 +12,7 @@ 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 . */ -var layout = { - "version": 2, +var h = { "_es_isch": {1:[1,2,4,5,6,7]}, "_genau": {3:[7,8,9,10,11]}, "_ab": {4:[4,5]}, @@ -23,6 +22,9 @@ var layout = { "_10": {2:[9,10,11]}, "_15": {2:[1,2,3,4,5,6]}, "_20": {3:[1,2,3,4,5,6]}, +}; +var layout = { + "version": 2, "language": 'Bärndütsch (nöi)', "letters": [ 'ESKISCHAFÜF', @@ -36,21 +38,21 @@ var layout = { 'ZÄNIERBEUFI', 'ZWÜUFINAUHR' ], - "permanent": this._es_isch, + "permanent": h._es_isch, "minutes": { - "0": this._genau, + "0": h._genau, "1": {}, - "5": [this._5, this._ab], - "10": [this._10, this._ab], - "15": [this._15, this._ab], - "20": [this._20, this._ab], - "25": [this._5, this._vor, this._haubi], - "30": [this._haubi], - "35": [this._5, this._ab, this._haubi], - "40": [this._20, this._vor], - "45": [this._15, this._vor], - "50": [this._10, this._vor], - "55": [this._5, this._vor] + "5": [h._5, h._ab], + "10": [h._10, h._ab], + "15": [h._15, h._ab], + "20": [h._20, h._ab], + "25": [h._5, h._vor, h._haubi], + "30": [h._haubi], + "35": [h._5, h._ab, h._haubi], + "40": [h._20, h._vor], + "45": [h._15, h._vor], + "50": [h._10, h._vor], + "55": [h._5, h._vor] }, "hours": { "0": {10:[1,2,3,4,5,6]},