<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="ad.size" content="width=320, height=480">
<title>Youtube Video Ad</title>
<meta name="description" content="Youtube Video Ad">
<meta name="author" content="GBP">
<style>
body {
margin: 0px;
cursor: pointer;
}
div#smad-ytvid-ad {
width: 320px;
height: 480px;
position: relative;
margin: auto;
overflow: hidden;
background-color: #000000;
}
div#smad-ytvid-ad * {
position: absolute;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
a#smad-ytvid-link {
width: 100%;
height: 100%;
}
div#smad-ytvid-player, iframe#smad-ytvid-player {
width: 320px;
height: 180px;
left: 0px;
top: 150px;
overflow: hidden;
}
</style>
</head>
<body>
<div id="smad-ytvid-ad">
<div id="smad-ytvid-player"></div>
<a id="smad-ytvid-link" href=" {CLICK_URL}https://www.youtube.com/watch?v=HinL5jCy_oI" target="_blank"></a>
</div>
<script>
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
var ytPlayer;
function onYouTubeIframeAPIReady() {
ytPlayer = new YT.Player('smad-ytvid-player', {
videoId: 'HinL5jCy_oI',
width: '300',
height: '169',
playerVars: {'controls': 0 },
events: {
'onReady': onPlayerReady,
}
});
}
function onPlayerReady(event) {
event.target.mute();
event.target.playVideo();
}
</script>
</body>
</html>
30
10
1049KB
3713KB
144.0ms
169.0ms
1,893.0ms