Created
January 17, 2019 22:24
-
-
Save yongzhihuang/f4573bb805f72907a59433058fa45ee4 to your computer and use it in GitHub Desktop.
// source https://jsbin.com
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
<style> | |
@font-face { | |
font-family: "Adobe Caslon"; | |
font-style: normal; | |
font-weight: normal; | |
src: url('https://www.newyorker.com/fonts/AdobeCaslonPro-Regular.woff2') format('woff2'), url('https://www.newyorker.com/fonts/AdobeCaslonPro-Regular.woff') format('woff'); | |
} | |
@font-face { | |
font-family: "Graphik Web"; | |
font-stretch: normal; | |
font-style: normal; | |
font-weight: 500; | |
src: url('https://www.newyorker.com/fonts/Graphik-Medium.eot'); | |
src: url('https://www.newyorker.com/fonts/Graphik-Medium.eot?#iefix') format('embedded-opentype'), url('https://www.newyorker.com/fonts/Graphik-Medium.woff2') format('woff2'), url('https://www.newyorker.com/fonts/Graphik-Medium.woff') format('woff'); | |
} | |
html, | |
body { | |
height: 100%; | |
width: 100%; | |
margin: 0; | |
padding: 0; | |
} | |
body { | |
background: #efb425; | |
text-align: center; | |
font-family: "Adobe Caslon", Georgia, "Times New Roman", Times, serif; | |
overflow: hidden; | |
} | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6, | |
time, | |
div, | |
p, | |
span, | |
a { | |
-webkit-font-smoothing: antialiased; | |
-moz-osx-font-smoothing: grayscale; | |
text-rendering: geometricPrecision; | |
} | |
h1, | |
h2 { | |
font-weight: normal; | |
} | |
img { | |
width: 500px; | |
} | |
.wrapper { | |
min-width: 520px; | |
min-height: 640px; | |
padding-top: 40px; | |
} | |
.text-wrapper { | |
padding: 0 10px 10px; | |
} | |
.header { | |
font-size: 36px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.subheader { | |
font-size: 24px; | |
margin-top: 10px; | |
margin-bottom: 10px; | |
} | |
.body { | |
font-size: 20px; | |
margin-bottom: 10px; | |
margin-top: 0; | |
} | |
.button, | |
.later, | |
.login { | |
font-family: "Graphik Web", "Helvetica Neue", Helvetica, Arial, sans-serif; | |
font-weight: 500; | |
font-size: 13px; | |
} | |
.button { | |
width: 380px; | |
border-radius: 2px; | |
background-color: #000; | |
display: inline-block; | |
color: #fff; | |
text-decoration: none; | |
padding: 18px 0; | |
margin-top: 18px; | |
} | |
.later, .login { | |
color: #121212; | |
display: block; | |
cursor: pointer; | |
margin-top: 15px; | |
text-decoration: none; | |
} | |
.login a { | |
color: #121212; | |
} | |
</style> | |
<div id="paywall"> | |
<div class="Paywall__barrier___1LkDX Paywall__show___yW09h"> | |
<div class="Paywall__wall___2oG6R"> | |
<div class="Paywall__container___28KEB"> | |
<div class="wrapper"> | |
<img src="%%FILE:PNG1%%" alt="Print + Digital – 12 weeks for $12."> | |
<div class="text-wrapper"> | |
<h2 class="subheader">You’ve read your last complimentary article.</h2> | |
<h1 class="header">Rejoin the party.</h1> | |
<p class="body">Print + Digital - 12 weeks for $12.</p> | |
<p class="body">Plus a FREE New Yorker Tote.</p> | |
<a class="button" href="%%CLICK_URL_UNESC%%%%DEST_URL%%" target="_blank">Subscribe</a> | |
<p class="login">Already have a login? <a id="signUp" href="#">Sign up</a></p> | |
</div> | |
</div> | |
<a class="Link__link___3dWao Paywall__homeLink___3W08A " href="/">newyorker.com <span class="Paywall__rightArrow___MjNe1">»</span></a> | |
</div> | |
</div> | |
</div> | |
</div> | |
<script> | |
(function init(window, document) { | |
let signUp = document.getElementById('signUp'); | |
try { | |
window.parent._satellite.track('barrierfull'); | |
window.parent.digitalData.articleNumSession = 4; | |
} catch (e) { | |
console.error('Error in barrier ad tracking calls', e); | |
} | |
// redirect the user to accounts passing the current url | |
signUp.addEventListener('click', function (e) { | |
e.preventDefault(); | |
window.top.location.href = `https://account.newyorker.com/?retURL=${window.top.location.href}?reload=true`; | |
}); | |
})(window, document); | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment