www-thermferm/js/main.js

changeset 127
f2f45c44942f
equal deleted inserted replaced
126:480bbe88ce0e 127:f2f45c44942f
1 /*****************************************************************************
2 * Copyright (C) 2014
3 *
4 * Michiel Broek <mbroek at mbse dot eu>
5 *
6 * This file is part of ThermFerm
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 * ThermFerm 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
24 function addEventListeners() {
25 $("#maintenance").mousedown(function () {
26 $("#maintenance_window").jqxWindow('open');
27 });
28 }
29
30 function createMaintenance() {
31 $("#maintenance_window").jqxWindow({
32 height: 400, width: 800, autoOpen: false, theme: 'ui-redmond',
33 position: { x:100, y:50 },
34 resizable: false, isModal: true, modalOpacity: 0.5,
35 okButton: $("#maintenance_ok"),
36 initContent: function () {
37 $("#maintenance_ok").jqxButton({ width: 70, height: 25, theme: 'ui-redmond' });
38 }
39 });
40 $("#maintenance").jqxButton({ width: 150, height: 25, theme: 'ui-redmond' });
41 }
42
43 $(document).ready(function () {
44 // Create jqxTabs.
45 $("#jqxTabs").jqxTabs({ width: 978, height: 428, position: 'top', theme: 'ui-redmond'});
46 addEventListeners();
47 createMaintenance();
48 });
49

mercurial