-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathteamspeak3.php
More file actions
40 lines (37 loc) · 1.18 KB
/
teamspeak3.php
File metadata and controls
40 lines (37 loc) · 1.18 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
<?php
require_once 'AdminContentInterface/config.php';
include_once $path.'/htmlbuildHelper.php';
session_name('WATGSESSID');
session_start();
$script ="\r\n window.onload = function() {
loadTsOverview();
}
function loadTsOverview(){
var request = new XMLHttpRequest();
request.onreadystatechange = function() {
if (request.readyState == 4 && request.status == 200){
var div = document.getElementById('body');
div.innerHTML += request.responseText;
repeat_char();
}
}
request.open('GET', 'TSOverlay', true);
request.send('');
}
function repeat_char(){
var to_repeat = document.getElementsByClassName('repeated');
var finalstring = '';
for(var x = 0; x < to_repeat.length; x++) {
var size = parseFloat(window.getComputedStyle(to_repeat[x],null).getPropertyValue('font-size')) * 2;
var repeat = parseInt(document.getElementById('teamspeak-overview').offsetWidth / size);
finalstring = '';
var char = to_repeat[x].innerHTML;
for (var y = 0; y < repeat; y++) {
finalstring += char; }
to_repeat[x].innerHTML = finalstring }
}";
getHeaderExtraScript($script);
getNormalBodyTop(NULL);
?>
</body>
</html>