Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add advertisement rectangle #21

Merged
merged 2 commits into from Dec 6, 2018
Merged
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

@@ -0,0 +1,117 @@
.slide,
.slides {
width: 300px;
height: 250px
}

.nav label,
.nav-dots .nav-dot {
background-color: rgba(255, 255, 255, .5)
}

.slides {
display: block;
position: relative;
overflow: hidden
}

.slides .nav label,
.slides .nav-dots,
.slides .slide {
position: absolute !important
}

.slides input {
display: none
}

.slide,
.slide-container {
display: block;
}

.slides .nav {
position: absolute;
bottom: 0;
width: 300px;
}

.slide {
top: 0;
opacity: 0;
transform: translateX(300px);
transition: all .7s ease-in-out
}

.slide img {
width: 100%;
height: 100%
}

.slides .nav label {
width: 80px;
height: 25px;
display: none;
opacity: .7;
z-index: 9;
cursor: pointer;
transition: opacity .2s;
color: #FFF;
font-size: 16px;
text-align: center;
bottom: 0;
line-height: 25px;
text-shadow: 0 0 15px #777;
}

.slides .nav-dots,
.slides input:checked+.slide-container .nav label {
display: block;
}

.slides .slide:hover+.nav label {
opacity: .9
}

.slides .nav label:hover {
opacity: 1
}

.slides .nav label.next {
right: 0
}

.slides input:checked+.slide-container .slide {
opacity: 1;
transform: scale(1);
transition: opacity 1s ease-in-out
}

.slides .nav-dots {
width: 100%;
bottom: 9px;
height: 9px;
text-align: center
}

.slides .nav-dots .nav-dot {
top: -5px;
width: 8px;
height: 8px;
margin: 0 4px;
position: relative;
border-radius: 100%;
display: inline-block
}

.slides .nav-dots .nav-dot:hover {
cursor: pointer;
background-color: rgba(255, 255, 255, .8)
}

.slides
input#img-1:checked~.nav-dots label#img-dot-1,
input#img-2:checked~.nav-dots label#img-dot-2,
input#img-3:checked~.nav-dots label#img-dot-3{
background: rgba(255, 255, 255, 1)
}
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Advertiser Banner Slide</title>
<link rel='stylesheet' href='https://maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css'>
<link rel="stylesheet" href="css/style.css">
</head>

<body style="margin:0;">
<div class="slides">
<!-- images-1 -->
<input type="radio" name="radio-btn" id="img-1" checked>
<div class="slide-container">
<div class="slide">
<a href="#" rel="nofollow" target="_blank">
<img src="img/ads-1.jpeg" alt="advertisement-1" title="advertisement-1" width="300" height="250" />
</a>
</div>
<!-- images-1 nav -->
<div class="nav">
<label for="img-3" class="prev"><i class="fa fa-chevron-left"></i></label>
<label for="img-2" class="next"><i class="fa fa-chevron-right"></i></label>
</div>
</div>
<!-- images-2 -->
<input type="radio" name="radio-btn" id="img-2">
<div class="slide-container">
<div class="slide">
<a href="#" rel="nofollow" target="_blank">
<img src="img/ads-2.jpeg" alt="advertisement-2" title="advertisement-2" width="300" height="250" />
</a>
</div>
<!-- images-2 nav -->
<div class="nav">
<label for="img-1" class="prev"><i class="fa fa-chevron-left"></i></label>
<label for="img-3" class="next"><i class="fa fa-chevron-right"></i></label>
</div>
</div>
<!-- images-3 -->
<input type="radio" name="radio-btn" id="img-3">
<div class="slide-container">
<div class="slide">
<a href="#" rel="nofollow" target="_blank">
<img src="img/ads-3.jpeg" alt="advertisement-3" title="advertisement-3" width="300" height="250" />
</a>
</div>
<!-- images-3 nav -->
<div class="nav">
<label for="img-2" class="prev"><i class="fa fa-chevron-left"></i></label>
<label for="img-1" class="next"><i class="fa fa-chevron-right"></i></label>
</div>
</div>
<!-- navigation dots -->
<div class="nav-dots">
<label for="img-1" class="nav-dot" id="img-dot-1"></label>
<label for="img-2" class="nav-dot" id="img-dot-2"></label>
<label for="img-3" class="nav-dot" id="img-dot-3"></label>
</div>
</div>
</body>

</html>
@@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Staging | Testing Over The Page (OTP)</title>

<!-- start tags DFP -->
<script async='async' src='https://www.googletagservices.com/tag/js/gpt.js'></script>
<script>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
</script>

<script>
googletag.cmd.push(function() {
var desktop_mapping = googletag.sizeMapping()
.addSize([800, 600], [[1, 1]])
.addSize([0, 0], [])
.build();
var mobile_mapping = googletag.sizeMapping()
.addSize([800, 600], [])
.addSize([0, 0], [[1, 1]])
.build();
googletag.defineOutOfPageSlot('/118200697/GVM_Staging/OTP_test', 'staging-overlay-desktop')
.defineSizeMapping(desktop_mapping)
.addService(googletag.pubads());
googletag.defineOutOfPageSlot('/118200697/GVM_Staging/OTP_test_mobile', 'staging-overlay-mobile')
.defineSizeMapping(mobile_mapping)
.addService(googletag.pubads());
googletag.pubads().enableSingleRequest();
googletag.pubads().collapseEmptyDivs(true);
googletag.enableServices();
});
</script>
<!-- end tags DFP -->

</head>

<body>
<!-- start body tags DFP -->
<!-- OTP Desktop -->
<div id='staging-overlay-desktop' class="overlay-desktop">
<script>
googletag.cmd.push(function () { googletag.display('staging-overlay-desktop'); });
</script>
</div>

<!-- OTP Mobile -->
<div id='staging-overlay-mobile' class="overlay-mobile">
<script>
googletag.cmd.push(function () { googletag.display('staging-overlay-mobile'); });
</script>
</div>
<!-- end body tags DFP -->
</body>

</html>
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.