WebBrowser/data/html/speeddialPage.html

Sun, 11 Feb 2018 12:49:27 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sun, 11 Feb 2018 12:49:27 +0100
changeset 6129
049ab6ad3144
parent 6127
128d9567a533
child 6135
12e48d27f1d7
permissions
-rw-r--r--

Some more GreaseMonkey changes.

4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
1 <!DOCTYPE html>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
2 <html>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
3 <head>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
4 <meta http-equiv="content-type" content="text/html; charset=utf-8">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
5 <title>@SITE-TITLE@</title>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
6 <link rel="icon" href="@FAVICON@" type="image/x-icon" />
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
7 <style type="text/css" media="screen">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
8 body {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
9 background: -webkit-gradient(linear, left top, left bottom, from(#85784A), to(#FDFDFD), color-stop(0.5, #FDFDFD));
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
10 background-repeat: repeat-x;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
11 font: 13px/22px "Helvetica Neue", Helvetica, Arial, sans-serif;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
12 color: #525c66;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
13 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
14 body * {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
15 -webkit-user-select: none;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
16 font-size: 100%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
17 line-height: 1.6;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
18 margin: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
19 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
20 .add {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
21 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
22 right:10px;top:10px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
23 width: 24px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
24 height: 24px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
25 background: url(@IMG_PLUS@);
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
26 cursor: pointer;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
27 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
28
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
29
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
30 #quickdial {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
31 margin: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
32 text-align: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
33 font-weight: bold;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
34 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
35 #quickdial div.entry {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
36 position: relative;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
37 float: left;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
38 border-width: 10px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
39 -webkit-border-image: url(@BOX-BORDER@) 10;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
40 margin: 5px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
41 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
42 #quickdial img {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
43 display: block;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
44 margin: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
45 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
46 #quickdial a {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
47 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
48 left: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
49 top: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
50 width: 100%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
51 height: 87%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
52 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
53
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
54
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
55 div.entry:hover .edit,
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
56 div.entry:hover .close,
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
57 div.entry:hover .reload {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
58 display: inline;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
59 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
60 span.boxTitle {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
61 width:100%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
62 max-height: 20px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
63 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
64 top: 88%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
65 left: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
66 text-align: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
67 overflow:hidden;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
68 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
69 span.close {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
70 width: 14px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
71 height: 14px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
72 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
73 left: 92%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
74 top: 90%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
75 background: url(@IMG_CLOSE@) no-repeat;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
76 background-position: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
77 border: 1px solid transparent;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
78 display: none;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
79 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
80 span.close:hover {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
81 border-color: grey;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
82 border-radius: 3px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
83 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
84 span.edit {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
85 width: 14px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
86 height: 14px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
87 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
88 left: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
89 top: 90%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
90 background: url(@IMG_EDIT@) no-repeat;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
91 background-position: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
92 border: 1px solid transparent;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
93 display: none;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
94 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
95 span.edit:hover {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
96 border-color: grey;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
97 border-radius: 3px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
98 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
99 span.reload {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
100 width: 16px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
101 height: 16px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
102 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
103 left: 92%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
104 top: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
105 background: url(@IMG_RELOAD@) no-repeat;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
106 background-position: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
107 border: 1px solid transparent;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
108 display: none;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
109 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
110 span.reload:hover {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
111 border-color: grey;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
112 border-radius: 4px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
113 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
114
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
115
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
116 #overlay-edit {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
117 width: 380px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
118 max-height: 265px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
119 margin-left: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
120 margin-right: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
121 margin-top: 100px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
122 border-width: 20px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
123 -webkit-border-image: url(@BOX-BORDER@) 25;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
124 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
125 #overlay-edit img {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
126 display: block;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
127 margin-left: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
128 margin-right: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
129 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
130 #overlay-edit .buttonbox input {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
131 margin-right: 3px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
132 margin-left: 3px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
133 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
134
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
135
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
136 .formTable {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
137 width: 350px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
138 margin-left: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
139 margin-right: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
140 margin-top: 15px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
141 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
142 .formTable input[type="text"] {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
143 width: 100%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
144 -webkit-user-select: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
145 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
146
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
147
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
148 .sett {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
149 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
150 right:36px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
151 top:10px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
152 width: 24px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
153 height: 24px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
154 background: url(@IMG_SETTINGS@);
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
155 cursor: pointer;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
156 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
157 #settingsBox {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
158 position: absolute;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
159 right: 58px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
160 top: 25px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
161 min-width: 250px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
162 width: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
163 height: auto;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
164 background: #EDECE6;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
165 margin: 5px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
166 border-radius: 15px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
167 padding: 8px 15px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
168 border: 1px solid transparent;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
169 opacity: 1;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
170 z-index: 200;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
171 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
172 #settingsBox .content {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
173 float: right;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
174 margin-left: 115px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
175 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
176 #settingsBox p label {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
177 margin: 2px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
178 padding: 1px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
179 text-align: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
180 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
181 #settingsBox .togop {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
182 margin-bottom: 1px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
183 padding-bottom: 2px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
184 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
185 #settingsBox .button {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
186 margin: 2px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
187 padding: 1px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
188 text-align:center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
189 width: 98%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
190 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
191 #settingsBox .rowsel {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
192 margin: 2px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
193 padding: 3px 0;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
194 border-bottom: 1px solid #888;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
195 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
196 #settingsBox .rowsel input {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
197 text-align: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
198 width: 80%;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
199 height: 12px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
200 margin: 0px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
201 padding-bottom: 0;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
202 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
203 #settingsBox .rowsel span {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
204 font-weight: bold;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
205 text-align: center;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
206 margin: 2px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
207 margin-right: 7px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
208 display: inline-block;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
209 width: 25px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
210 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
211
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
212 .buttonbox {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
213 margin-top: 5px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
214 margin-bottom: -5px;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
215 text-align: right;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
216 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
217 </style>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
218
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
219 <script type="text/javascript" src="@JQUERY@"></script>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
220 <script type="text/javascript" src="@JQUERY-UI@"></script>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
221 <script type="text/javascript">
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
222 var LOADING_IMAGE = '@LOADING-IMG@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
223 var URL = '@URL@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
224 var TITLE = '@TITLE@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
225 var EDIT = '@APPLY@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
226 var NEW_PAGE = '@NEW-PAGE@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
227 var TITLE_EDIT = '@TITLE-EDIT@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
228 var TITLE_REMOVE = '@TITLE-REMOVE@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
229 var TITLE_RELOAD = '@TITLE-RELOAD@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
230 var TITLE_FETCHTITLE = '@TITLE-FETCHTITLE@';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
231 var MAX_PAGES_ROW = @ROW-PAGES@;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
232 var DIAL_WIDTH = @SD-SIZE@;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
233
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
234 var editingId = -1;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
235 var ignoreNextChanged = false;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
236
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
237 function escapeTitle(title) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
238 title = title.replace(/"/g, '&quot;');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
239 title = title.replace(/'/g, '&apos;');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
240 return title;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
241 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
242
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
243 function unescapeTitle(title) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
244 title = title.replace(/&quot;/g, '"');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
245 title = title.replace(/&apos;/g, '\'');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
246 return title;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
247 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
248
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
249 function escapeUrl(url) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
250 url = url.replace(/"/g, '');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
251 url = url.replace(/'/g, '');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
252 return url;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
253 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
254
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
255 function onRemoveClick(box) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
256 removeBox($(box).index());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
257 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
258
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
259 function onEditKeyPress(e) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
260 if (e.keyCode == 13) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
261 boxEdited();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
262 return false;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
263 }
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
264 else if (e.keyCode == 27) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
265 $('#fadeOverlay').click();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
266 return false;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
267 }
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
268 return true;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
269 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
270
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
271 function onFetchTitleClick(checkbox) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
272 var displayStyle;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
273 checkbox.checked ? displayStyle = 'hidden' : displayStyle = 'visible';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
274 $('#titleLine').css({'visibility' : displayStyle });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
275 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
276
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
277 function hideEditBox() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
278 $('#fadeOverlay').fadeOut("slow", function() {$("#fadeOverlay").remove();});
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
279 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
280
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
281 function emitChanged(pages) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
282 ignoreNextChanged = true;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
283 external.speedDial.changed(pages);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
284 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
285
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
286 function addSpeedDial() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
287 onEditClick(addBox('', NEW_PAGE, ''));
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
288 alignPage();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
289 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
290
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
291 function onEditClick(box) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
292 editingId = $(box).index();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
293 var boxUrl = $(box).children('a').first().attr('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
294 var boxTitle = escapeTitle($(box).children('span').first().text());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
295 if (boxUrl === '')
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
296 boxUrl = 'http://';
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
297
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
298 $('body').append('<div id="fadeOverlay" style="opacity:0.9;display:none;position:fixed;left:0;' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
299 'top:0;width:100%;height:100%;z-index:9999;background:#85784A;">' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
300 '<div id="overlay-edit" onkeypress="return onEditKeyPress(event)">' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
301 '<img src="' + $(box).children('img').first().attr('src') + '"> ' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
302 '<table class="formTable"><tr><td>' + URL + ': </td><td>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
303 '<input type="text" id="formUrl" value="' + boxUrl + '"></td></tr>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
304 '<tr id="titleLine"><td>' + TITLE + ': </td><td>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
305 '<input type="text" id="formTitle" value="' + boxTitle + '"></td></tr>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
306 '<tr><td></td><td><input type="checkbox" id="fetchTitle" onclick="onFetchTitleClick(this)">' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
307 '<label for="fetchTitle"> ' + TITLE_FETCHTITLE + ' </label></td></tr>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
308 '</table><p class="buttonbox">' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
309 '<input type="button" value=" @CLOSE@ " onClick="hideEditBox();">' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
310 '<input type="button" value=" ' + EDIT + ' " onClick="boxEdited()"></p>' +
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
311 '</div></div>');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
312
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
313 $('#fadeOverlay').css({'filter' : 'alpha(opacity=90)'}).fadeIn();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
314 $('#fadeOverlay').click(function() {hideEditBox()});
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
315 $('#overlay-edit').click(function(event) { event.stopPropagation(); });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
316 $('#formUrl').focus();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
317 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
318
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
319 function onReloadClick(box) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
320 var url = $(box).children('a').first().attr('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
321 var img = $(box).children('img').first();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
322
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
323 if (url === '')
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
324 return;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
325
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
326 $(img).attr('src', LOADING_IMAGE);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
327 external.speedDial.loadThumbnail(url, false);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
328 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
329
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
330 function boxEdited() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
331 if (editingId == -1)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
332 return;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
333
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
334 external.speedDial.urlFromUserInput($('#formUrl').attr("value"), function(newUrl) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
335 var box = document.getElementById('quickdial').getElementsByTagName('div')[editingId];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
336 var a = box.getElementsByTagName('a')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
337 var originalUrl = a.getAttribute('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
338 setBoxUrl(editingId, newUrl);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
339 setBoxTitle(editingId, $('#formTitle').attr("value"));
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
340 var changedUrl = a.getAttribute('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
341 var fetchTitleChecked = document.getElementById('fetchTitle').checked;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
342
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
343 var pages = allPages()
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
344
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
345 if (fetchTitleChecked || (originalUrl != changedUrl && changedUrl !== '') ) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
346 var img = box.getElementsByTagName('img')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
347 img.setAttribute('src', LOADING_IMAGE);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
348
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
349 $('#fadeOverlay').fadeOut("slow", function() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
350 $("#fadeOverlay").remove();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
351 });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
352 external.speedDial.loadThumbnail(a.getAttribute('href'), fetchTitleChecked);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
353 external.speedDial.removeImageForUrl(a.getAttribute('href'));
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
354 } else {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
355 hideEditBox();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
356 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
357 emitChanged(pages);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
358 });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
359 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
360
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
361 function allPages() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
362 var urls = $('a[class="boxUrl"]');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
363 var titles = $('span[class="boxTitle"]');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
364 var value = "";
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
365 $('div.entry').each(function(i) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
366 var url = $(this).children('a').first().attr('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
367 var title = $(this).children('span[class="boxTitle"]').first().text();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
368 var img = $(this).children('img').first().attr('src');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
369 value += 'url:"' + escapeUrl(url) + '"|title:"' + escapeTitle(title) + '"|img:"' + escapeUrl(img) + '";';
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
370 });
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
371
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
372 return value;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
373 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
374
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
375 function addBox(url, title, img_source) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
376 var div = document.createElement('div');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
377 div.setAttribute('class', 'entry');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
378 var img = document.createElement('img');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
379 img.setAttribute('src', img_source);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
380 var a = document.createElement('a');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
381 a.setAttribute('href', url);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
382 a.setAttribute('class', 'boxUrl');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
383 var span1 = document.createElement('span');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
384 span1.setAttribute('class', 'boxTitle');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
385 span1.innerText = unescapeTitle(title);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
386 var span2 = document.createElement('span');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
387 span2.setAttribute('class', 'edit');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
388 span2.setAttribute('onClick', 'onEditClick(parentNode)');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
389 span2.setAttribute('title', TITLE_EDIT);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
390 var span3 = document.createElement('span');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
391 span3.setAttribute('class', 'close');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
392 span3.setAttribute('onClick', 'onRemoveClick(parentNode)');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
393 span3.setAttribute('title', TITLE_REMOVE);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
394 var span4 = document.createElement('span');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
395 span4.setAttribute('class', 'reload');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
396 span4.setAttribute('onClick', 'onReloadClick(parentNode)');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
397 span4.setAttribute('title', TITLE_RELOAD);
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
398
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
399 div.appendChild(img);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
400 div.appendChild(img);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
401 div.appendChild(a);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
402 div.appendChild(span1);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
403 div.appendChild(span2);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
404 div.appendChild(span3);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
405 div.appendChild(span4);
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
406
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
407 document.getElementById("quickdial").appendChild(div);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
408
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
409 if (img_source == LOADING_IMAGE) {
4868
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
410 external.speedDial.loadThumbnail(url, false);
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
411 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
412
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
413 return div;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
414 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
415
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
416 function setBoxImage(id, img_source) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
417 var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
418 if (box === undefined)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
419 return;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
420
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
421 var img = box.getElementsByTagName('img')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
422 img.setAttribute('src', img_source + '?' + new Date());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
423 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
424
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
425 function setTitleToUrl(url, title) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
426 var changed = false;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
427 var boxes = document.getElementById('quickdial').getElementsByTagName('div');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
428 for (i = 0; i < boxes.length; ++i) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
429 var box = boxes[i];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
430
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
431 if (box === undefined)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
432 continue;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
433
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
434 var boxUrl = box.getElementsByTagName('a')[0].getAttribute('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
435 if (url != boxUrl)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
436 continue;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
437
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
438 var span = box.getElementsByTagName('span')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
439 if (span.innerText != title) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
440 changed = true;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
441 span.innerText = title;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
442 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
443 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
444
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
445 emitChanged(allPages());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
446 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
447
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
448 function setImageToUrl(url, img_source) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
449 var aElement = $('a[href="' + url + '"]');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
450 $(aElement).each(function() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
451 var box = $(this).parent();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
452 var imgElement = $(box).children("img").first();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
453 if ($(imgElement).size() == 0)
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
454 return;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
455
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
456 $(imgElement).attr('src', img_source);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
457 });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
458 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
459
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
460 function setBoxUrl(id, url) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
461 var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
462 if (box === undefined)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
463 return;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
464
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
465 var a = box.getElementsByTagName('a')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
466 a.setAttribute('href', url);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
467 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
468
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
469 function setBoxTitle(id, title) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
470 var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
471 if (box === undefined)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
472 return;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
473
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
474 var span = box.getElementsByTagName('span')[0];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
475 span.innerText = title;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
476 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
477
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
478 function removeBox(id) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
479 if (confirm("@TITLE-WARN@"))
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
480 var box = document.getElementById('quickdial').getElementsByTagName('div')[id];
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
481 if (box === undefined)
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
482 return;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
483
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
484 var url = box.getElementsByTagName('a')[0].getAttribute('href');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
485 document.getElementById("quickdial").removeChild(box);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
486 alignPage();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
487
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
488 external.speedDial.removeImageForUrl(url);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
489 emitChanged(allPages());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
490 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
491
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
492 function alignPage() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
493 $('head').append('<style>#quickdial img[src*=".png"]{height:auto;width:'+DIAL_WIDTH+'px}</style>');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
494 $('#quickdial div.entry').css({'width' : DIAL_WIDTH + 'px',
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
495 'height' : Math.round(DIAL_WIDTH / 1.54) + 'px'});
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
496
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
497 var width = $(window).width();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
498 var height = $(window).height();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
499 var boxWidth = Math.floor(DIAL_WIDTH + 30);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
500 var boxHeight = Math.floor(Math.round(DIAL_WIDTH / 1.54) + 40);
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
501
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
502 var maxBoxes = Math.floor(width / boxWidth);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
503 if (maxBoxes > MAX_PAGES_ROW) maxBoxes = MAX_PAGES_ROW;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
504 if (maxBoxes < 1) maxBoxes = 1;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
505
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
506 var maxwidth = maxBoxes * boxWidth;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
507 $("#quickdial").css('width', maxwidth + 'px');
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
508
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
509 var boxesCount = $("#quickdial").children("div").size();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
510 var rows = Math.ceil(boxesCount / maxBoxes);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
511 var margintop = (height - rows * boxHeight) / 2;
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
512
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
513 if (margintop < 0) margintop = 0;
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
514
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
515 $("#quickdial").css('margin-top', margintop + 'px');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
516 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
517
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
518 function saveSettings() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
519 MAX_PAGES_ROW = $('#PgInRow').val();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
520 DIAL_WIDTH = parseInt($('#SdSize').val());
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
521
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
522 external.speedDial.setPagesInRow(MAX_PAGES_ROW);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
523 external.speedDial.setSdSize(DIAL_WIDTH);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
524
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
525 alignPage();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
526 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
527
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
528 function sdSizeToggle() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
529 var check = document.getElementById('SdSizeToggle');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
530 var SdSize = document.getElementById('SdSize');
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
531 var SdSizeSl = document.getElementById('sliderValueSd');
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
532
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
533 SdSize.disabled = (check.checked ? false : true);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
534 SdSize.value = (check.checked ? SdSize.value : 231);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
535 SdSizeSl.innerHTML = (check.checked ? DIAL_WIDTH : 231);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
536 }
4885
362360f9a979 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4868
diff changeset
537
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
538 function configureSpeedDial() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
539 // Load settings
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
540 $('#PgInRow').val(MAX_PAGES_ROW);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
541 $('#sliderValuePg').html(MAX_PAGES_ROW);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
542 $('#SdSize').val(DIAL_WIDTH);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
543 $('#SdSizeToggle').prop('checked', DIAL_WIDTH != 231);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
544 $('#sliderValueSd').html(DIAL_WIDTH);
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
545 $('#SdSizeToggle').is(':checked') ? $('#SdSize').removeAttr('disabled') : $('#SdSize').attr('disabled', 'disabled');
4885
362360f9a979 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4868
diff changeset
546
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
547 // Show dialog
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
548 $('#fadeOverlay2').css({'filter' : 'alpha(opacity=100)'}).fadeIn();
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
549 $('#fadeOverlay2').click(function() { $(this).fadeOut('slow'); });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
550 $('#settingsBox').click(function(event) { event.stopPropagation(); });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
551 }
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
552
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
553 function reloadAll() {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
554 if (confirm("@TITLE-WARN-REL@"))
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
555 $('div.entry').each(function(i) {
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
556 onReloadClick($(this));
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
557 });
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
558 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
559 </script>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
560 </head>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
561
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
562 <body>
6127
128d9567a533 Some improvements of the Web Browser NG.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5747
diff changeset
563 <div id="quickdial">
128d9567a533 Some improvements of the Web Browser NG.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5747
diff changeset
564 <noscript>@JAVASCRIPT_DISABLED@</noscript>
128d9567a533 Some improvements of the Web Browser NG.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 5747
diff changeset
565 </div>
4885
362360f9a979 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4868
diff changeset
566 <a onClick="configureSpeedDial();" title="@SETTINGS-TITLE@" class="sett"></a>
362360f9a979 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4868
diff changeset
567 <a onClick="addSpeedDial();" title="@ADD-TITLE@" class="add"></a>
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
568
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
569 <script type="text/javascript">
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
570 function init() {
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
571 @INITIAL-SCRIPT@
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
572
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
573 external.speedDial.pagesChanged.connect(function() {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
574 if (ignoreNextChanged) {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
575 ignoreNextChanged = false;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
576 return;
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
577 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
578 window.location.reload();
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
579 });
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
580
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
581 external.speedDial.thumbnailLoaded.connect(setImageToUrl);
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
582 external.speedDial.pageTitleLoaded.connect(setTitleToUrl);
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
583
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
584 alignPage();
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
585 $(window).resize(function() { alignPage(); });
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
586 $("div").disableSelection();
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
587 $("#quickdial").sortable({
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
588 revert: true,
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
589 cursor: 'move',
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
590 containment: 'document',
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
591 opacity: 0.8,
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
592 distance: 40,
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
593 update: function(event, ui) {
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
594 emitChanged(allPages());
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
595 }
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
596 });
4868
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
597 }
5747
fcc83c509ce9 LIttle change to prepare for Qt 5.9.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4885
diff changeset
598
4868
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
599 // Initialize
6129
049ab6ad3144 Some more GreaseMonkey changes.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 6127
diff changeset
600 if (window._eric_external) {
4868
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
601 init();
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
602 } else {
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
603 document.addEventListener('_eric_external_created', init);
985d275502c8 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents: 4865
diff changeset
604 }
4865
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
605 </script>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
606 <div id="fadeOverlay2" style="opacity:0.9;display:none;position:fixed;left:0;top:0;width:100%;height:100%;z-index:100;background:#85784A;">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
607 <div id="settingsBox">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
608 <div class="togop">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
609 <label for="PgInRow">@TXT_NRROWS@</label>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
610 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
611 <div class="rowsel">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
612 <span id="sliderValuePg">@ROW-PAGES@</span>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
613 <input id="PgInRow" type="range" min="2" max="8" value="@ROW-PAGES@" step="1" onchange="$('#sliderValuePg').html(this.value);" />
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
614 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
615 <div class="togop">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
616 <input type="checkbox" name="sdsizet" id="SdSizeToggle" onchange="sdSizeToggle()" />&nbsp;<label for="SdSizeToggle">@TXT_SDSIZE@</label>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
617 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
618 <div class="rowsel">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
619 <span id="sliderValueSd">@SD-SIZE@</span>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
620 <input id="SdSize" type="range" min="145" max="360" value="@SD-SIZE@" step="1" onchange="$('#sliderValueSd').html(this.value);" />
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
621 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
622 <div class="content">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
623 <p class="buttonbox">
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
624 <input type="button" value=" @CLOSE@ " onClick="$('#fadeOverlay2').fadeOut('slow');" />
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
625 <input type="button" value=" @APPLY@ " onClick="saveSettings();$('#fadeOverlay2').fadeOut('slow');"/>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
626 </p>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
627 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
628 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
629 </div>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
630 </body>
4adc526bc4b3 Continued porting the web browser.
Detlev Offenbach <detlev@die-offenbachs.de>
parents:
diff changeset
631 </html>

eric ide

mercurial