Dashboard Temp Share Shortlinks Frames API

HTMLify

Cil.html
Views: 397 | Author: amar
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Cookie Consent</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            text-align: center;
            background: #f4f4f4;
            margin: 0;
            padding: 50px;
            transition: background 0.5s ease-in-out;
        }
        .content {
            max-width: 600px;
            margin: auto;
            padding: 20px;
            background: white;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
            border-radius: 10px;
            transition: opacity 0.5s ease-in-out;
        }
        #message {
            font-size: 24px;
            font-weight: bold;
            margin-top: 20px;
            opacity: 0;
            transform: scale(0.9);
            transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
        }
        .show {
            opacity: 1 !important;
            transform: scale(1) !important;
        }
        /* Pop-up Styling */
        .modal {
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: white;
            padding: 20px;
            box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2);
            border-radius: 10px;
            text-align: center;
            width: 300px;
            opacity: 1;
            z-index: 999;
        }
        .hidden {
            display: none;
        }
        .modal p {
            font-size: 16px;
            margin-bottom: 15px;
        }
        button {
            background: #007BFF;
            color: white;
            border: none;
            padding: 10px 15px;
            cursor: pointer;
            margin: 10px;
            border-radius: 5px;
            transition: background 0.3s ease-in-out;
        }
        button:hover {
            background: #0056b3;
        }
        .dismiss {
            background: #aaa;
        }
        .dismiss:hover {
            background: #888;
        }
    </style>
</head>
<body>

    <div class="content" id="article">
        <h2>Why We Don't Use Python?</h2>
        <p>Python is an excellent programming language known for its simplicity and flexibility. However, in web development, it has some limitations. Many websites prefer JavaScript because:</p>
        <ul>
            <li>JavaScript runs directly in the browser, making pages more interactive.</li>
            <li>Python requires a backend setup, which can be more complex.</li>
            <li>JavaScript frameworks like React and Vue provide better user experiences.</li>
            <li>Performance-wise, JavaScript is often faster for front-end tasks.</li>
        </ul>
        <p>While Python is great for backend and AI applications, JavaScript dominates web development due to its speed and browser compatibility.</p>
    </div>

    <h1 id="message">Waiting for your choice...</h1>

    <div class="modal" id="cookieModal">
        <p>We use cookies to improve your experience. Do you accept?</p>
        <button onclick="acceptCookies()">Yes, Accept</button>
        <button class="dismiss" onclick="dismissCookies()">Dismiss</button>
    </div>

    <script>
        function acceptCookies() {
            document.getElementById('cookieModal').classList.add('hidden');

            // Fade out the article and show the message
            document.getElementById('article').style.opacity = '0';
            setTimeout(() => {
                document.getElementById('article').style.display = 'none';
                document.body.style.background = "#d4edda";
                showMessage("Tudwa liya Ramjan.");
            }, 500);
        }

        function dismissCookies() {
            document.getElementById('cookieModal').classList.add('hidden');
        }

        function showMessage(text) {
            const message = document.getElementById('message');
            message.innerText = text;
            message.classList.add("show");
        }

        function showPopup() {
            document.getElementById('cookieModal').classList.remove('hidden');
        }

        // Always show the pop-up when the page loads
        window.onload = showPopup;
    </script>

</body>
</html>