-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathutils.js
36 lines (30 loc) · 831 Bytes
/
utils.js
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
/**
* Created by Anton on 18.09.2016.
*/
function prepareFlat() {
$('header').empty();
$("#content").empty();
navBar = generateNavigationBar();
$(navBar).appendTo($("header"));
show_usermenu();
}
function prepareData(prData) {
return encodeURIComponent(JSON.stringify(prData))
}
function logout() {
$.ajax({
type: 'POST',
url: 'login.php',
dataType: 'text',
data: 'logout',
success: function () {
show_usermenu();
//generateSignMenu();
}
});
}
function activateLeanModal() {
$('#modaltrigger').leanModal({top: 175, overlay: 0.45, closeButton: ".hidemodal"});
$('#regmodaltrigger').leanModal({top: 175, overlay: 0.45, closeButton: ".hidemodal"});
$('#accmodaltrigger').leanModal({top: 175, overlay: 0.45});
}