forked from hestiacp/hestiacp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.html
More file actions
175 lines (153 loc) · 6.04 KB
/
Copy pathheader.html
File metadata and controls
175 lines (153 loc) · 6.04 KB
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<link rel="icon" href="/images/favicon.ico" type="image/x-icon">
<title>Vesta - <?="$TAB"?> </title>
<link rel="stylesheet" href="/css/styles.min.css">
<link type="text/css" href="/css/jquery-custom-dialogs.css" rel="stylesheet" />
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="/js/jquery.cookie.js"></script>
<script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js"></script>
<script type="text/javascript" src="/js/events.js"></script>
<script type="text/javascript">
var checked=false;
var frmname='';
function checkedAll(frmname) {
if ($('.l-unit.selected').length > 0) {
$('.l-unit').removeClass("selected");
$('.ch-toggle').attr("checked", false);
$('.toggle-all').removeClass('clicked-on');
}
else {
$('.l-unit').addClass("selected");
$('.ch-toggle').attr("checked", true);
$('.toggle-all').addClass('clicked-on');
}
}
function doSearch(url) {
var url = url || '/search/';
var loc = url + '?q=' + $('.search-input').val();
location.href = loc;
return false;
}
</script>
<script type="text/javascript">
var search_activated = 0;
var search_display_interval = 0;
var search_hover_interval = 0;
$(document).ready(function() {
$('.l-sort__create-btn').hover(function(){
$(".l-sort__create-btn").append("<div id='add-icon'></div>");
$(".l-sort__create-btn").append("<div id='tooltip'>"+$('.l-sort__create-btn').attr('title').replace(' ',' ')+"</div>");
}, function(){
$("#add-icon").remove();
$("#tooltip").remove();
});
$('.l-sort-toolbar__search-box').hover(function(){
clearTimeout(search_display_interval);
clearTimeout(search_hover_interval);
search_display_interval = setTimeout(function(){$('.search-input').addClass('activated');}, 150);
}, function(){
clearTimeout(search_display_interval);
clearTimeout(search_hover_interval);
search_hover_interval = setTimeout(function(){
if(!search_activated && !$(".search-input").val().length){
$(".search-input").removeClass('activated');
}
}, 600);
});
$('.search-input').focus(function(){
search_activated = 1;
clearTimeout(search_hover_interval);
});
$('.search-input').blur(function(){
search_activated = 0;
clearTimeout(search_hover_interval);
search_hover_interval = setTimeout(function(){
if(!$(".search-input").val().length){
$(".search-input").removeClass('activated');
}
}, 600);
});
if($('.movement.left').length){
refresh_timer.right = $('.movement.right');
refresh_timer.left = $('.movement.left');
refresh_timer.start();
$('.pause').click(function(){
refresh_timer.stop();
$('.pause').addClass('hidden');
$('.play').removeClass('hidden');
$('.refresh-timer').addClass('paused');
});
$('.play').click(function(){
refresh_timer.start();
$('.pause').removeClass('hidden');
$('.play').addClass('hidden');
$('.refresh-timer').removeClass('paused');
});
}
});
refresh_timer = {
speed: 50,
degr: 180,
right: 0,
left: 0,
periodical: 0,
first: 1,
start: function(){
this.periodical = setInterval(function(){refresh_timer.turn()}, this.speed);
},
stop: function(){
clearTimeout(this.periodical);
},
turn: function(){
this.degr += 1;
if (this.first && this.degr >= 361){
this.first = 0;
this.degr = 180;
this.left.css({'-webkit-transform': 'rotate(180deg)'});
this.left.css({'transform': 'rotate(180deg)'});
this.left.children('.loader-half').addClass('dark');
}
if (!this.first && this.degr >= 360){
this.first = 1;
this.degr = 180;
this.left.css({'-webkit-transform': 'rotate(0deg)'});
this.right.css({'-webkit-transform': 'rotate(180deg)'});
this.left.css({'transform': 'rotate(0deg)'});
this.right.css({'transform': 'rotate(180deg)'});
this.left.children('.loader-half').removeClass('dark');
this.stop();
location.reload();
}
if (this.first){
this.right.css({'-webkit-transform': 'rotate('+this.degr+'deg)'});
this.right.css({'transform': 'rotate('+this.degr+'deg)'});
}
else{
this.left.css({'-webkit-transform': 'rotate('+this.degr+'deg)'});
this.left.css({'transform': 'rotate('+this.degr+'deg)'});
}
}
}
</script>
<script language="text/javascript">
$(document).ready(function(){
$(".submenu-select-dropdown").each(function(){
$(this).wrap( "<span class='submenu-select-wrapper'></span>" );
$(this).after("<span class='holder'></span>");
});
$(".submenu-select-dropdown").change(function(){
var selectedOption = $(this).find(":selected").text();
$(this).next(".holder").text(selectedOption);
}).trigger('change');
$('.to-top').bind('click', function(evt) {
$("html, body").animate({ scrollTop: 0 }, "normal");
});
})
</script>
<script type="text/javascript" src="/js/app.js"></script>
<script type="text/javascript" src="/js/templates.js"></script>
</head>
<body class="body-<?=strtolower($TAB)?> lang-<?=$_SESSION['language']?>">