-
Notifications
You must be signed in to change notification settings - Fork 0
/
helprtvv.js
48 lines (40 loc) · 1.13 KB
/
helprtvv.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
37
38
39
40
41
42
43
44
45
46
47
48
function display() {
if (document.cookie.indexOf("tpbr") >= 0) {
document.getElementById('tbds').checked = 'checked';
$(".bar").css('position','absolute');
$("#appmenu").css('position','absolute');
$("#accountinfo").css('position','absolute');
$("#settingsmenu").css('position','absolute');
$(".notif1").css('position','absolute');
}
if (document.cookie.indexOf("sdbr") <= 0) {
$(".sidebar").fadeIn(500);
$("#homebody").css('margin-left','250px');
}
else { document.getElementById('sbds').checked = 'checked'; }
}
function tpbrcck() {
if (document.cookie.indexOf("tpbr") >= 0) {
document.cookie="tpbr=cck; expires=Thu, 18 Dec 1970 12:00:00 GMT";
}
else {
document.cookie="tpbr=cck; expires=Thu, 18 Dec 2070 12:00:00 GMT";
}
}
function sdbrcck() {
if (document.cookie.indexOf("sdbr") >= 0) {
document.cookie="sdbr=cck; expires=Thu, 18 Dec 1970 12:00:00 GMT";
}
else {
document.cookie="sdbr=cck; expires=Thu, 18 Dec 2070 12:00:00 GMT";
}
}
$(document).mouseup(function (e)
{
var container = $(".menus");
if (!container.is(e.target)
&& container.has(e.target).length === 0)
{
container.hide();
}
});