-
Notifications
You must be signed in to change notification settings - Fork 0
/
helprtss.js
31 lines (22 loc) · 1.27 KB
/
helprtss.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
function showaccountinfo() {
if (document.getElementById('settingsmenu').style.display == 'block') { $('#settingsmenu').addClass('animated fadeOutDown');$('#settingsmenu').fadeOut(200) }
if (document.getElementById('accountinfo').style.display == 'block') { $('#accountinfo').addClass('animated fadeOutDown');$('#accountinfo').fadeOut(200) }
else if (document.getElementById('accountinfo').style.display == 'none') { $('#accountinfo').addClass('animated pulse');$('#accountinfo').fadeIn(200) }
}
function showsettings() {
if (document.getElementById('accountinfo').style.display == 'block') { $('#accountinfo').fadeOut(200) }
if (document.getElementById('settingsmenu').style.display == 'block') { $('#settingsmenu').fadeOut(200) }
else if (document.getElementById('settingsmenu').style.display == 'none') { $('#settingsmenu').addClass('animated fadeInLeft');$('#settingsmenu').fadeIn(200) }
}
function dropdown(element) {
$(element).addClass('animated flipInX');$(element).fadeIn(500);
}
$(document).mouseup(function (e)
{
var container = $(".dropdown");
if (!container.is(e.target) // if the target of the click isn't the container...
&& container.has(e.target).length === 0) // ... nor a descendant of the container
{
container.fadeOut(200);
}
});