master
handlebars 258 lines 18.9 KB
Raw
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html lang="en">
3 <head>
4 <meta http-equiv="X-UA-Compatible" content="IE=edge" />
5 <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
6 <meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0" />
7 <meta name="apple-mobile-web-app-capable" content="yes" />
8 <meta name="format-detection" content="telephone=no" />
9 <meta name="robots" content="noindex,nofollow" />
10 <link type="text/css" href="styles/style.css" media="screen" rel="stylesheet" title="CSS" />
11 {{{customCSSTags}}}
12 <link rel="apple-touch-icon" href="/favicon-303x303.png" />
13 <script type="text/javascript" src="scripts/common-0.0.1{{min}}.js"></script>
14 {{{customJSTags}}}
15 <title>{{{title}}} - Terms of use</title>
16 </head>
17 <body id="body" onload="if (typeof(startup) !== 'undefined') startup();" style="display:none;overflow:hidden">
18 <div id="container">
19 <!-- Begin Masthead -->
20 <div id="masthead" class=noselect style="background:url(logo.png) 0px 0px;background-color:#036;background-repeat:no-repeat;height:66px;width:100%;overflow:hidden;">
21 <div style="float:left;text-shadow: 1px 1px 2px #000">{{{titlehtml}}}</div>
22 <div style="float:left; height: 66px; color:#c8c8c8; padding-left:14px; padding-top:7px">
23 <strong><font style="font-size:46px; font-family: Arial, Helvetica, sans-serif;text-shadow: 1px 1px 2px #000">{{{title1}}}</font></strong>
24 </div>
25 <div style="float:left; height: 66px; color:#c8c8c8; padding-left:5px; padding-top:14px">
26 <strong><font style="font-size:14px; font-family: Arial, Helvetica, sans-serif;text-shadow: 1px 1px 2px #000">{{{title2}}}</font></strong>
27 </div>
28 <p id="logoutControl" style="color:white;font-size:11px;margin: 10px 10px 0;"></p>
29 </div>
30 <div id="page_leftbar">
31 <div style="height:16px"></div>
32 </div>
33 <div id=topbar class="noselect style3" style="height:24px;position:relative">
34 <div id=uiMenuButton title="User interface selection" onclick="showUserInterfaceSelectMenu()">
35 &diams;
36 <div id=uiMenu style="display:none">
37 <div id=uiViewButton1 class=uiSelector onclick=userInterfaceSelectMenu(1) title="Left bar interface"><div class="uiSelector1"></div></div>
38 <div id=uiViewButton2 class=uiSelector onclick=userInterfaceSelectMenu(2) title="Top bar interface"><div class="uiSelector2"></div></div>
39 <div id=uiViewButton3 class=uiSelector onclick=userInterfaceSelectMenu(3) title="Fixed width interface"><div class="uiSelector3"></div></div>
40 <div id=uiViewButton4 class=uiSelector onclick=toggleNightMode() title="Toggle night mode"><div class="uiSelector4"></div></div>
41 </div>
42 </div>
43 </div>
44 <div id="column_l" style="max-height:calc(100vh - 135px);overflow-y:auto">
45 <h1>Terms of use</h1>
46 <p>Please contact the site administrator for terms of use.</p>
47 <hr />
48 <p class="MsoNormal">
49 The following are the required disclosures of open source components and software incorporated into this software.
50 </p>
51 <p class="MsoNormal">
52 <b><span>1. AJAX Control Toolkit - New BSD License</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
53 </p>
54 <p class="MsoNormal">
55 <span>Copyright (c) 2009, CodePlex Foundation. All rights reserved.<o:p></o:p></span>
56 </p>
57 <p class="MsoNormal">
58 <span>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:<o:p></o:p></span>
59 </p>
60 <p class="MsoNormal">
61 <span>1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.<o:p></o:p></span>
62 </p>
63 <p class="MsoNormal">
64 <span>2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.<o:p></o:p></span>
65 </p>
66 <p class="MsoNormal">
67 <span>3. Neither the name of CodePlex Foundation nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.<o:p></o:p></span>
68 </p>
69 <p class="MsoNormal">
70 <span>THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<o:p></o:p></span>
71 </p>
72 <p class="MsoNormal">
73 <b><span>2. OpenSSL – OpenSSL and SSLeay License</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
74 </p>
75 <p class="MsoNormal">
76 <span><a href="http://www.openssl.org/source/license.html">http://www.openssl.org/source/license.html</a> </span>
77 </p>
78 <p class="MsoNormal">
79 <span>Copyright (c) 1998-2011 The OpenSSL Project. All rights reserved.<o:p></o:p></span>
80 </p>
81 <p class="MsoNormal">
82 <span>Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:<o:p></o:p></span>
83 </p>
84 <p class="MsoNormal">
85 <span>1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.<o:p></o:p></span>
86 </p>
87 <p class="MsoNormal">
88 <span>2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. <o:p></o:p></span>
89 </p>
90 <p class="MsoNormal">
91 <span>3. All advertising materials mentioning features or use of this software must display the following acknowledgment: &quot;This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit. (http://www.openssl.org/)&quot; <o:p></o:p></span>
92 </p>
93 <p class="MsoNormal">
94 <span>4. The names &quot;OpenSSL Toolkit&quot; and &quot;OpenSSL Project&quot; must not be used to endorse or promote products derived from this software without prior written permission. For written permission, please contact openssl-core@openssl.org.<o:p></o:p></span>
95 </p>
96 <p class="MsoNormal">
97 <span>5. Products derived from this software may not be called &quot;OpenSSL&quot; nor may &quot;OpenSSL&quot; appear in their names without prior written permission of the OpenSSL Project.<o:p></o:p></span>
98 </p>
99 <p class="MsoNormal">
100 <span>6. Redistributions of any form whatsoever must retain the following acknowledgment: &quot;This product includes software developed by the OpenSSL Project for use in the OpenSSL Toolkit (http://www.openssl.org/)&quot;. <o:p></o:p></span>
101 </p>
102 <p class="MsoNormal">
103 <span>THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS&#39;&#39; AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.<o:p></o:p></span>
104 </p>
105 <p class="MsoNormal">
106 <b><span>3. jQuery Foundation - MIT License</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
107 </p>
108 <p class="MsoNormal">
109 <span>Copyright 2013 jQuery Foundation and other contributors <a href="http://jquery.com/">http://jquery.com/</a></span>
110 </p>
111 <p class="MsoNormal">
112 <span>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.</span>
113 </p>
114 <p class="MsoNormal">
115 <b><span>4. jQuery User Interface - MIT License</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
116 </p>
117 <p class="MsoNormal">
118 <span>Copyright 2013 jQuery Foundation and other contributors, <a href="http://jqueryui.com/">http://jqueryui.com/</a></span>
119 </p>
120 <p class="MsoNormal">
121 <span>This software consists of voluntary contributions made by many individuals (AUTHORS.txt, http://jqueryui.com/about ). For exact contribution history,see the revision history and logs, available at http://jquery-ui.googlecode.com/svn/ <o:p></o:p></span>
122 </p>
123 <p class="MsoNormal">
124 <span>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<o:p></o:p></span>
125 </p>
126 <p class="MsoNormal">
127 <b><span>5. noVNC - Mozilla Public License 2.0</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
128 </p>
129 <p class="MsoNormal">
130 <span><a href="https://github.com/kanaka/noVNC/blob/master/LICENSE.txt">https://github.com/kanaka/noVNC/blob/master/LICENSE.txt</a></span>
131 </p>
132 <p class="MsoNormal">
133 <span>Copyright (C) 2011 Joel Martin This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.<o:p></o:p></span>
134 </p>
135 <p class="MsoNormal">
136 <b><span>6. Rcarousel - MIT LIcense</span></b><span style="font-size:10.0pt;font-family:&quot;Courier New&quot;;mso-fareast-font-family:&quot;Times New Roman&quot;"><o:p></o:p></span>
137 </p>
138 <p class="MsoNormal">
139 <span><a href="https://github.com/ryrych/rcarousel/blob/master/widget/license">https://github.com/ryrych/rcarousel/blob/master/widget/license</a></span>
140 </p>
141 <p class="MsoNormal">
142 <span>Copyright (c) 2010 Wojciech &#39;RRH&#39; Ryrych<o:p></o:p></span>
143 </p>
144 <p class="MsoNormal">
145 <span>THE SOFTWARE IS PROVIDED &quot;AS IS&quot;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.<o:p></o:p></span>
146 </p>
147 <p class="MsoNormal">
148 <b><span>7. Webtoolkit Javascript Base 64 – Creative Commons Attribution 2.0 UK License</span></b><span><o:p></o:p></span>
149 </p>
150 <p class="MsoNormal">
151 <span>This software uses code from <a href="http://www.webtoolkit.info/javascript-base64.html">http://www.webtoolkit.info/javascript-base64.html</a> licensed under the <a href="http://creativecommons.org/licenses/by/2.0/uk/legalcode">http://creativecommons.org/licenses/by/2.0/uk/legalcode</a> and its source can be downloaded from <a href="http://www.webtoolkit.info/javascript-base64.html">http://www.webtoolkit.info/javascript-base64.html</a>.<o:p></o:p></span>
152 </p>
153 <br />
154 </div>
155 <div id="footer">
156 <table cellpadding="0" cellspacing="10" style="width: 100%">
157 <tr>
158 <td style="text-align:left"></td>
159 <td style="text-align:right"><a id="backLink" href="/">Back</a></td>
160 </tr>
161 </table>
162 </div>
163 </div>
164 <script>
165 'use strict';
166 var random = '{{{randomlength}}}' // Random length string for BREACH mitigation
167 var uiMode = parseInt(getstore('uiMode', 1));
168 var webPageStackMenu = false;
169 var webPageFullScreen = true;
170 var nightMode = (getstore('_nightMode', '0') == '1');
171 var logoutControls = JSON.parse(decodeURIComponent('{{{logoutControls}}}'));
172 console.log(logoutControls);
173
174 var terms = '{{{terms}}}';
175 if (terms != '') { QH('column_l', decodeURIComponent(terms)); }
176 QV('column_l', true);
177 userInterfaceSelectMenu();
178
179 // Fix links if a loginKey if used
180 var urlargs = parseUriArgs();
181 if (urlargs.key && (isAlphaNumeric(urlargs.key) == false)) { delete urlargs.key; }
182 if (urlargs.key) { Q('backLink').href += '?key=' + urlargs.key; }
183
184 // Setup logout control
185 var logoutControl = '';
186 if (logoutControls.name != null) { logoutControl = format("Welcome {0}.", logoutControls.name); }
187 if (logoutControls.logoutUrl != null) { logoutControl += format(' <a href=\"' + logoutControls.logoutUrl + '\" style="color:white">' + "Logout" + '</a>'); }
188 QH('logoutControl', logoutControl);
189
190 // Toggle user interface menu
191 function showUserInterfaceSelectMenu() {
192 Q('uiViewButton1').classList.remove('uiSelectorSel');
193 Q('uiViewButton2').classList.remove('uiSelectorSel');
194 Q('uiViewButton3').classList.remove('uiSelectorSel');
195 Q('uiViewButton4').classList.remove('uiSelectorSel');
196 try { Q('uiViewButton' + uiMode).classList.add('uiSelectorSel'); } catch (ex) { }
197 QV('uiMenu', (QS('uiMenu').display == 'none'));
198 if (nightMode) { Q('uiViewButton4').classList.add('uiSelectorSel'); }
199 }
200
201 function userInterfaceSelectMenu(s) {
202 if (s) { uiMode = s; putstore('uiMode', uiMode); }
203 webPageFullScreen = (uiMode < 3);
204 webPageStackMenu = true;//(uiMode > 1);
205 toggleFullScreen(0);
206 toggleStackMenu(0);
207 QC('column_l').add('room4submenu');
208 }
209
210 function toggleNightMode() {
211 nightMode = !nightMode;
212 if (nightMode) { QC('body').add('night'); } else { QC('body').remove('night'); }
213 putstore('_nightMode', nightMode ? '1' : '0');
214 }
215
216 // Toggle the web page to full screen
217 function toggleFullScreen(toggle) {
218 if (toggle === 1) { webPageFullScreen = !webPageFullScreen; putstore('webPageFullScreen', webPageFullScreen); }
219 var hide = 0;
220 //if (args.hide) { hide = parseInt(args.hide); }
221 if (webPageFullScreen == false) {
222 QC('body').remove('menu_stack');
223 QC('body').remove('fullscreen');
224 QC('body').remove('arg_hide');
225 //if (xxcurrentView >= 10) QC('column_l').add('room4submenu');
226 //QV('UserDummyMenuSpan', false);
227 //QV('page_leftbar', false);
228 } else {
229 QC('body').add('fullscreen');
230 if (hide & 16) QC('body').add('arg_hide'); // This is replacement for QV('page_leftbar', !(hide & 16));
231 //QV('UserDummyMenuSpan', (xxcurrentView < 10) && webPageFullScreen);
232 //QV('page_leftbar', true);
233 }
234 QV('body', true);
235 }
236
237 // If FullScreen, toggle menu to be horisontal or vertical
238 function toggleStackMenu(toggle) {
239 if (webPageFullScreen == true) {
240 if (toggle === 1) {
241 webPageStackMenu = !webPageStackMenu;
242 putstore('webPageStackMenu', webPageStackMenu);
243 }
244 if (webPageStackMenu == false) {
245 QC('body').remove('menu_stack');
246 } else {
247 QC('body').add('menu_stack');
248 //if (xxcurrentView >= 10) QC('column_l').remove('room4submenu');
249 }
250 }
251 }
252
253 function putstore(name, val) { try { if (typeof (localStorage) === 'undefined') return; localStorage.setItem(name, val); } catch (e) { } }
254 function getstore(name, val) { try { if (typeof (localStorage) === 'undefined') return val; var v = localStorage.getItem(name); if ((v == null) || (v == null)) return val; return v; } catch (e) { return val; } }
255 function format(format) { var args = Array.prototype.slice.call(arguments, 1); return format.replace(/{(\d+)}/g, function (match, number) { return typeof args[number] != 'undefined' ? args[number] : match; }); };
256 </script>
257 </body>
258 </html>