Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <label class="auth_margin"><input id="agree" type="checkbox" name="agree"> I agree to NAME's </label><p id="termsBtn"> Terms & Conditions</p> and their <p id="privacyBtn">Privacy Policy.</p><br/>
- var modal = document.getElementById('termsModal');
- var btn = document.getElementById("termsBtn");
- var span = document.getElementsByClassName("close")[0];
- btn.onclick = function() {
- modal.style.display = "block";
- }
- span.onclick = function() {
- modal.style.display = "none";
- }
- window.onclick = function(event) {
- if (event.target == pmodal) {
- pmodal.style.display = "none";
- }
- }
- var pmodal = document.getElementById('privacyModal');
- var pbtn = document.getElementById("privacyBtn");
- var span = document.getElementsByClassName("close")[0];
- pbtn.onclick = function() {
- pmodal.style.display = "block";
- }
- span.onclick = function() {
- pmodal.style.display = "none";
- }
- window.onclick = function(event) {
- if (event.target == pmodal) {
- pmodal.style.display = "none";
- }
- }
Add Comment
Please, Sign In to add comment