-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.18 KB
/
index.html
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
<?php
header('Content-Type: text/html; charset=utf-8');
?>
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'/>
<meta name='viewport' content='width=device-width, initial-scale=1, maximum-scale=1'/>
</head>
<body>
<!-- carousel begin. -->
<div id='hcai_crls_plchldr'></div>
<script type='text/javascript'>
var hcai_c = 'amedia';
var hcai_d = 'dt.no';
(function () {
var script = document.createElement('script');
script.src= 'http://54.229.161.117/hcai/carousel/crsl1.php?c=amedia&d=' + hcai_d + '&callback=hcai_exists';
document.body.appendChild(script);
}());
function hcai_exists(data) {
if(!data.count) {
return;
}
var iframe = document.createElement('iframe');
iframe.setAttribute('src', 'http://54.229.161.117/hcai/carousel/crsl2.php?c='+hcai_c+'&d='+hcai_d+'&m='+data.mobile + "&im=" + encodeURIComponent(JSON.stringify(data.images, null, "\t")) + "&cl=" + encodeURIComponent(JSON.stringify(data.clients, null, "\t")));
iframe.setAttribute('scrolling', 'no');
iframe.setAttribute('frameborder', '0');
iframe.setAttribute('height', '250');
iframe.setAttribute('width', '100%');
document.getElementById('hcai_crls_plchldr').appendChild(iframe);
}
</script>
<!-- carousel end -->
</body>
</html>