Created
August 1, 2019 16:11
-
-
Save akeem/6d164e832fadf495f7dd128d8cafe442 to your computer and use it in GitHub Desktop.
This file contains 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
<html> | |
<head> | |
<script> | |
var unlockProtocolConfig = { | |
locks: { | |
"0xB0114bbDCe17e0AF91b2Be32916a1e236cf6034F": { | |
name: "One Week" | |
}, | |
icon: | |
"https://staging-app.unlock-protocol.com/static/images/svg/default.svg", | |
callToAction: { | |
default: | |
"This content is locked. Pay with cryptocurrency to access it!" | |
} | |
}; | |
</script> | |
<script> | |
function displayModal(){ | |
window.unlockProtocol && window.unlockProtocol.loadCheckoutModal() | |
} | |
</script> | |
<script> | |
(function(d, s) { | |
var js = d.createElement(s), | |
sc = d.getElementsByTagName(s)[0]; | |
js.src = "https://paywall.unlock-protocol.com/static/unlock.1.0.min.js"; | |
sc.parentNode.insertBefore(js, sc); | |
})(document, "script"); | |
</script> | |
</head> | |
<body> | |
<button onclick='displayModal()'>Display Checkout Modal</button> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment