diff -r c26af32428a4 -r b8c3ca152984 www/js/global.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/www/js/global.js Mon Aug 13 15:11:26 2018 +0200 @@ -0,0 +1,96 @@ +/***************************************************************************** + * Copyright (C) 2014 + * + * Michiel Broek + * + * This file is part of BrewCloud + * + * This 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 2, or (at your option) any + * later version. + * + * BrewCloud 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 ThermFerm; see the file COPYING. If not, write to the Free + * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. + *****************************************************************************/ + +function createElements() { + $('#aboutWindow').jqxWindow({ + resizable: true, + minWidth: 300, + minHeight: 300, + theme: theme, + autoOpen: false, + isModal: true + }); + $('#aboutWindow').jqxWindow('focus'); +} + + + +function getLocalization() { + var localizationobj = {}; + localizationobj.pagerGoToPageString = "Gehe zu:"; + localizationobj.pagerShowRowsString = "Zeige Zeile:"; + localizationobj.pagerRangeString = " von "; + localizationobj.pagerNextButtonString = "voriger"; + localizationobj.pagerFirstButtonString = "first"; + localizationobj.pagerLastButtonString = "last"; + localizationobj.pagerPreviousButtonString = "nächster"; + localizationobj.sortAscendingString = "Sortiere aufsteigend"; + localizationobj.sortDescendingString = "Sortiere absteigend"; + localizationobj.sortRemoveString = "Entferne Sortierung"; + localizationobj.firstDay = 1; + localizationobj.percentSymbol = "%"; + localizationobj.currencySymbol = "€"; + localizationobj.currencySymbolPosition = "after"; + localizationobj.decimalSeparator = ","; + localizationobj.thousandsSeparator = "."; + var days = { + // full day names + names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], + // abbreviated day names + namesAbbr: ["Sonn", "Mon", "Dien", "Mitt", "Donn", "Fre", "Sams"], + // shortest day names + namesShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"] + }; + localizationobj.days = days; + var months = { + // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) + names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], + // abbreviated month names + namesAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dez", ""] + }; + var patterns = { + d: "dd.MM.yyyy", + D: "dddd, d. MMMM yyyy", + t: "HH:mm", + T: "HH:mm:ss", + f: "dddd, d. MMMM yyyy HH:mm", + F: "dddd, d. MMMM yyyy HH:mm:ss", + M: "dd MMMM", + Y: "MMMM yyyy" + } + localizationobj.patterns = patterns; + localizationobj.months = months; + return localizationobj; +} + + + +$(document).ready(function () { + $("#jqxMenu").jqxMenu({ + width: 1280, + height: '30px', + theme: theme + }); + createElements(); + $("#jqxWidget").css('visibility', 'visible'); +}); +