Skip to content

Instantly share code, notes, and snippets.

@xy0
xy0 / jsAreYouLegalPopup
Last active Jun 21, 2017
Simple javascript popup that requires the user to select yes or no, then saves a cookie and won't show up again
View jsAreYouLegalPopup
<div id="o98uy5eiofg" style="background-color:#2c2d30cc;position:fixed;left:0;right:0;bottom:0;top:0;z-index: 900;"></div>
<style>
body {
overflow: hidden;
}
div.popup {
position: fixed;
left: 50%;
top: 50%;