-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathGDPRacceptance.html
88 lines (74 loc) · 3.43 KB
/
GDPRacceptance.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<!--
// CLMS-UI
// Copyright 2015 Colin Combe, Rappsilber Laboratory, Edinburgh University
//
// This file is part of CLMS-UI.
//
// CLMS-UI is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// CLMS-UI is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with CLMS-UI. If not, see <http://www.gnu.org/licenses/>.
-->
<html lang="en">
<head>
<meta charset="utf-8">
<title>Xi GDPR Acceptance</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="a common platform for the downstream analysis of CLMS data" />
<meta name="google" content="notranslate" />
<meta name="author" content="Rappsilber Laboratory">
<meta name="copyright" content="2015">
<meta charset="UTF-8">
<link rel="stylesheet" href="../vendor/css/common.css" />
<link rel="stylesheet" href="css/login.css" />
<link rel="stylesheet" href="../vendor/css/example.wink.css" />
<script type="text/javascript" src="./../vendor/js/jquery-3.4.1.js"></script>
<script type="text/javascript" src="../vendor/js/hideShowPassword.js"></script>
<script type="text/javascript" src="./js/forms.js"></script>
</head>
<body>
<header>
<span class="topRight"><button id="helpButton"></button></span>
<h1>Xi GDPR Acceptance</h1>
</header>
<div class="login">
<p id="msg"></p>
<script type="text/javascript">
$(document).ready (function() {
$.getJSON("./json/msgs.json", function (msgs) {
CLMSUI.loginForms.msgs = msgs;
CLMSUI.loginForms.makeFooter();
CLMSUI.loginForms.makeHelpButton();
var passwordValidationMsg = CLMSUI.loginForms.getMsg("clientPasswordValidationInfo");
$("#new-login-pass").attr("oninvalid", "this.setCustomValidity('"+passwordValidationMsg+"')");
$("#pass-errorMsg").text("< "+passwordValidationMsg);
// https://css-tricks.com/snippets/javascript/get-url-variables/
function getQueryVariable (variable) {
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return false;
}
CLMSUI.loginForms.simpleAjaxPost (
{method: "POST", url: "php/GDPRacceptance.php"},
{token: getQueryVariable("gdpr_token")},
function () { $("#msg").html(CLMSUI.loginForms.getMsg("GDPRacceptance")); }
)
});
});
</script>
</div>
</body>
</html>