Last active
July 15, 2016 08:56
-
-
Save constantm/752caf79b764f542c13f3824a307649f to your computer and use it in GitHub Desktop.
tshirt popup
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="tshirt-claim"> | |
<div class="close" onclick="document.getElementById('tshirt-claim').style.display = 'none';">×</div> | |
<img src="https://gifts.offerzen.com/tshirt.jpg" alt="Offerzen Tshirt"> | |
<h3>Get a free shirt!</h3> | |
<h4>JSinSA attendees get a free tshirt, just complete Offerzen's onboarding.</h4> | |
<a class="button button-primary" href="https://www.offerzen.com?source=jsinsa&id=IDPARAMGOESHERE">Claim my tshirt</a> | |
</div> | |
<style> | |
#tshirt-claim { | |
display:none; | |
font-family: Arial; | |
box-shadow: 4px 3px 8px rgba(0,0,0,0.2); | |
z-index:1000; | |
position: fixed; | |
bottom: 20px; | |
right: 20px; | |
background: #FFF; | |
padding: 30px 4px 25px 30px; | |
} | |
#tshirt-claim h3 { | |
font-size: 32px; | |
padding: 32px 0 0 0; | |
} | |
#tshirt-claim h4 { | |
padding: 5px 0 12px 0; | |
font-size: 20px; | |
color: gray; | |
font-weight: 300; | |
} | |
#tshirt-claim img { | |
float: left; | |
height: 225px; | |
padding: 0 40px 0 0; | |
} | |
#tshirt-claim .close { | |
position: absolute; | |
top: 5px; | |
right: 17px; | |
font-size: 32px; | |
font-weight: 200; | |
cursor: pointer; | |
} | |
@media only screen and (max-width : 435px) { | |
#tshirt-claim { | |
bottom: 0; | |
right: 0; | |
padding: 30px 4px 25px 30px; | |
} | |
#tshirt-claim img { | |
height: 145px; | |
padding: 0 30px 0 0; | |
} | |
#tshirt-claim h4 { | |
padding: 13px 10px 12px 0; | |
clear: both; | |
} | |
} | |
</style> | |
<script> | |
setTimeout(function(){ | |
document.getElementById('tshirt-claim').style.display = 'block' | |
}, 15000) | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment