-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex2.html
40 lines (40 loc) · 1.85 KB
/
index2.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
39
40
<!DOCTYPE html>
<html>
<head>
<title>Adtima</title>
<meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
* {margin: 0;padding: 0}
html,body {height: 100%;overflow: hidden;background-color: white;}
iframe {overflow: hidden;border: none;}
#wrapper {width: 60vw!important;height: 60vh!important;transform-origin: 0 0;}
</style>
</head>
<body>
<div id="wrapper">
<script async="async" src="https://www.googletagservices.com/tag/js/gpt.js"></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>
<div id='div-gpt-ad-1687243456273-0' style="width:60vw!important;height: 60vh!important;">
<script>
googletag.cmd.push(function() {
googletag.pubads().display('/21723026843/00005404_PM_PG_MS_Dove-Duel_Inpage_19-30June2023', [640, 1280], 'div-gpt-ad-1687243456273-0');
});
</script>
</div>
</div>
<script>
// scale ads
var phoneWidth = parseInt('viewportSize' in window ? viewportSize.windowWidth : (window.innerWidth || window.screen.width));
var phoneHeight = parseInt('viewportSize' in window ? viewportSize.windowHeight : (window.innerHeight || window.screen.height));
var w_ads = 640;
var phoneScale = phoneWidth / w_ads;
//var phoneScaleY = phoneHeight*0.92 / 1400;
var elem = document.getElementById('wrapper');
elem.style.cssText ="transform: scale("+phoneScale+");-moz-transform: scale("+phoneScale+");-webkit-transform: scale("+phoneScale+");-o-transform: scale("+phoneScale+");-ms-transform: scale("+phoneScale+");transform-origin:0 0;-moz-transform-origin:0 0; -webkit-transform-origin:0 0; -o-transform-origin:0 0;-ms-transform-origin:0 0";
</script>
</body>
</html>