Mon, 13 Aug 2018 15:11:26 +0200
Added hops inventory
13 | 1 | /***************************************************************************** |
2 | * Copyright (C) 2014 | |
3 | * | |
4 | * Michiel Broek <mbroek at mbse dot eu> | |
5 | * | |
6 | * This file is part of BrewCloud | |
7 | * | |
8 | * This is free software; you can redistribute it and/or modify it | |
9 | * under the terms of the GNU General Public License as published by the | |
10 | * Free Software Foundation; either version 2, or (at your option) any | |
11 | * later version. | |
12 | * | |
13 | * BrewCloud is distributed in the hope that it will be useful, but | |
14 | * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 | * General Public License for more details. | |
17 | * | |
18 | * You should have received a copy of the GNU General Public License | |
19 | * along with ThermFerm; see the file COPYING. If not, write to the Free | |
20 | * Software Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. | |
21 | *****************************************************************************/ | |
22 | ||
23 | function createElements() { | |
24 | $('#aboutWindow').jqxWindow({ | |
25 | resizable: true, | |
26 | minWidth: 300, | |
27 | minHeight: 300, | |
28 | theme: theme, | |
29 | autoOpen: false, | |
30 | isModal: true | |
31 | }); | |
32 | $('#aboutWindow').jqxWindow('focus'); | |
33 | } | |
34 | ||
35 | ||
36 | ||
37 | function getLocalization() { | |
38 | var localizationobj = {}; | |
39 | localizationobj.pagerGoToPageString = "Gehe zu:"; | |
40 | localizationobj.pagerShowRowsString = "Zeige Zeile:"; | |
41 | localizationobj.pagerRangeString = " von "; | |
42 | localizationobj.pagerNextButtonString = "voriger"; | |
43 | localizationobj.pagerFirstButtonString = "first"; | |
44 | localizationobj.pagerLastButtonString = "last"; | |
45 | localizationobj.pagerPreviousButtonString = "nächster"; | |
46 | localizationobj.sortAscendingString = "Sortiere aufsteigend"; | |
47 | localizationobj.sortDescendingString = "Sortiere absteigend"; | |
48 | localizationobj.sortRemoveString = "Entferne Sortierung"; | |
49 | localizationobj.firstDay = 1; | |
50 | localizationobj.percentSymbol = "%"; | |
51 | localizationobj.currencySymbol = "€"; | |
52 | localizationobj.currencySymbolPosition = "after"; | |
53 | localizationobj.decimalSeparator = ","; | |
54 | localizationobj.thousandsSeparator = "."; | |
55 | var days = { | |
56 | // full day names | |
57 | names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"], | |
58 | // abbreviated day names | |
59 | namesAbbr: ["Sonn", "Mon", "Dien", "Mitt", "Donn", "Fre", "Sams"], | |
60 | // shortest day names | |
61 | namesShort: ["So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"] | |
62 | }; | |
63 | localizationobj.days = days; | |
64 | var months = { | |
65 | // full month names (13 months for lunar calendards -- 13th month should be "" if not lunar) | |
66 | names: ["Januar", "Februar", "März", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Dezember", ""], | |
67 | // abbreviated month names | |
68 | namesAbbr: ["Jan", "Feb", "Mär", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dez", ""] | |
69 | }; | |
70 | var patterns = { | |
71 | d: "dd.MM.yyyy", | |
72 | D: "dddd, d. MMMM yyyy", | |
73 | t: "HH:mm", | |
74 | T: "HH:mm:ss", | |
75 | f: "dddd, d. MMMM yyyy HH:mm", | |
76 | F: "dddd, d. MMMM yyyy HH:mm:ss", | |
77 | M: "dd MMMM", | |
78 | Y: "MMMM yyyy" | |
79 | } | |
80 | localizationobj.patterns = patterns; | |
81 | localizationobj.months = months; | |
82 | return localizationobj; | |
83 | } | |
84 | ||
85 | ||
86 | ||
87 | $(document).ready(function () { | |
88 | $("#jqxMenu").jqxMenu({ | |
89 | width: 1280, | |
90 | height: '30px', | |
91 | theme: theme | |
92 | }); | |
93 | createElements(); | |
94 | $("#jqxWidget").css('visibility', 'visible'); | |
95 | }); | |
96 |