-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbackend.js
40 lines (40 loc) · 1.36 KB
/
backend.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
$(function(){
$('.bar, .vbar, .expand').poshytip({
className: 'tip-twitter',
showTimeout: 1,
alignTo: 'cursor',
offsetX: 15,
alignX: 'left',
alignY: 'center',
followCursor: true,
fade: true,
slide: false
});
$('.expandunder').poshytip({
className: 'tip-twitter',
alignTo: 'target',
showTimeout: 1,
offsetX: 15,
alignX: 'center',
alignY: 'bottom',
fade: true,
slide: false
});
$(".bar").each(function() { $.data(this, "realHeight", $(this).height()); }).css({ height: "1px" }).each(function() { $(this).animate({ height: $(this).data("realHeight") }, 1000); });
});
function OnBeforeUnLoad () { document.getElementById('loading').style.display = 'block'; }
window.onbeforeunload = OnBeforeUnLoad;
function GetCurrentPage() {
if (!document.getElementsByTagName) return;
var anchors = document.getElementsByTagName("a");
var thisPage = location.href;
for (var i=0; i<anchors.length; i++) {
var anchor = anchors[i];
thisHREF = anchor.getAttribute("href");
if (thisHREF == thisPage || location.protocol + "//" + location.hostname + thisHREF == thisPage) {
anchor.id = "current";
return;
}
}
}
window.onload = GetCurrentPage;