|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="en"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
| 6 | + <title>Code of Conduct Agreement – UltraHTML</title> |
| 7 | + <link rel="stylesheet" href="../ultra.css" /> |
| 8 | + <script src="../ultra.js" defer></script> |
| 9 | + <style> |
| 10 | + .page-wrapper { |
| 11 | + max-width: 600px; |
| 12 | + margin: 50px auto; |
| 13 | + text-align: center; |
| 14 | + font-family: sans-serif; |
| 15 | + } |
| 16 | + .ultra-section { |
| 17 | + margin-top: 30px; |
| 18 | + } |
| 19 | + .hidden { |
| 20 | + display: none; |
| 21 | + } |
| 22 | + </style> |
| 23 | +</head> |
| 24 | +<body> |
| 25 | + <div class="page-wrapper"> |
| 26 | + <h1 class="ultra-section-ul cover-only">Code of Conduct</h1> |
| 27 | + <section class="ultra-section"> |
| 28 | + <p>Before using UltraHTML's CSS or JS libraries, please read and agree to the following:</p> |
| 29 | + <ul style="text-align: left; padding: 0 20px;"> |
| 30 | + <li>Be respectful and inclusive in all public use cases.</li> |
| 31 | + <li>Don’t use UltraHTML to build or support hate, harm, or harassment.</li> |
| 32 | + <li>Give proper credit when showcasing UltraHTML publicly.</li> |
| 33 | + <li>Use responsibly in commercial/public projects.</li> |
| 34 | + <li>Comply with the full <a href="https://github.com/Natuworkguy/UltraHTML/blob/main/CODE_OF_CONDUCT.md" target="_blank">Code of Conduct</a>.</li> |
| 35 | + </ul> |
| 36 | + <p>By clicking the button below, you confirm that you agree to these rules.</p> |
| 37 | + <button id="agree-btn" class="ultra-button button-wave">I Agree & Continue</button> |
| 38 | + </section> |
| 39 | + <section id="thank-you" class="ultra-section hidden"> |
| 40 | + <h2>✅ Thanks!</h2> |
| 41 | + <p>You may now continue using UltraHTML. Stay ultra!</p> |
| 42 | + </section> |
| 43 | + </div> |
| 44 | + |
| 45 | + <script> |
| 46 | + document.addEventListener("DOMContentLoaded", () => { |
| 47 | + const agreeBtn = document.getElementById("agree-btn"); |
| 48 | + const thankYou = document.getElementById("thank-you"); |
| 49 | + const agreementKey = "ultraHTML_agreed"; |
| 50 | + |
| 51 | + if (localStorage.getItem(agreementKey)) { |
| 52 | + document.querySelector("section").classList.add("hidden"); |
| 53 | + thankYou.classList.remove("hidden"); |
| 54 | + } |
| 55 | + |
| 56 | + agreeBtn.addEventListener("click", () => { |
| 57 | + localStorage.setItem(agreementKey, "yes"); |
| 58 | + Ultra.popupmsg("Agreement saved."); |
| 59 | + setTimeout(() => { |
| 60 | + location.reload(); |
| 61 | + }, 1000); |
| 62 | + }); |
| 63 | + }); |
| 64 | + </script> |
| 65 | +</body> |
| 66 | +</html> |
0 commit comments