Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,18 @@ models=[
|
|
34 |
o = "V"
|
35 |
|
36 |
t_out = ("""
|
37 |
-
|
38 |
-
|
39 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
*:before,
|
41 |
*:after{
|
42 |
padding: 0;
|
@@ -55,13 +64,10 @@ body{
|
|
55 |
left: 50%;
|
56 |
top: 50%;
|
57 |
border-radius: 8px;
|
58 |
-
|
59 |
-
|
60 |
text-align: center;
|
61 |
}
|
62 |
-
|
63 |
-
|
64 |
-
<button id=”close”>×</button>
|
65 |
.popup button{
|
66 |
display: block;
|
67 |
margin: 0 0 20px auto;
|
@@ -76,6 +82,56 @@ body{
|
|
76 |
outline: none;
|
77 |
cursor: pointer;
|
78 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
""")
|
80 |
|
81 |
|
|
|
34 |
o = "V"
|
35 |
|
36 |
t_out = ("""
|
37 |
+
<html lang="en">
|
38 |
+
<head>
|
39 |
+
|
40 |
+
<!--====== Design by foolishdeveloper.com =====-->
|
41 |
+
|
42 |
+
|
43 |
+
<title>Automatic Popup</title>
|
44 |
+
<!--Google Fonts-->
|
45 |
+
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
|
46 |
+
<!--Stylesheets-->
|
47 |
+
<style media="screen">
|
48 |
+
*,
|
49 |
*:before,
|
50 |
*:after{
|
51 |
padding: 0;
|
|
|
64 |
left: 50%;
|
65 |
top: 50%;
|
66 |
border-radius: 8px;
|
67 |
+
font-family: "Poppins",sans-serif;
|
68 |
+
display: none;
|
69 |
text-align: center;
|
70 |
}
|
|
|
|
|
|
|
71 |
.popup button{
|
72 |
display: block;
|
73 |
margin: 0 0 20px auto;
|
|
|
82 |
outline: none;
|
83 |
cursor: pointer;
|
84 |
}
|
85 |
+
.popup h2{
|
86 |
+
margin-top: -20px;
|
87 |
+
}
|
88 |
+
.popup p{
|
89 |
+
font-size: 14px;
|
90 |
+
text-align: justify;
|
91 |
+
margin: 20px 0;
|
92 |
+
line-height: 25px;
|
93 |
+
}
|
94 |
+
a{
|
95 |
+
display: block;
|
96 |
+
width: 150px;
|
97 |
+
position: relative;
|
98 |
+
margin: 10px auto;
|
99 |
+
text-align: center;
|
100 |
+
background-color: #0f72e5;
|
101 |
+
border-radius: 20px;
|
102 |
+
color: #ffffff;
|
103 |
+
text-decoration: none;
|
104 |
+
padding: 8px 0;
|
105 |
+
}
|
106 |
+
</style>
|
107 |
+
</head>
|
108 |
+
<body>
|
109 |
+
<div class="popup">
|
110 |
+
<button id="close">×</button>
|
111 |
+
<h2>Automatic Pop-Up</h2>
|
112 |
+
<p>
|
113 |
+
Lorem, ipsum dolor sit amet consectetur adipisicing elit. Expedita distinctio fugiat alias iure qui, commodi minima magni ullam aliquam dignissimos?
|
114 |
+
</p>
|
115 |
+
<a href="#">Let's Go</a>
|
116 |
+
</div>
|
117 |
+
<!--Script-->
|
118 |
+
<script type="text/javascript">
|
119 |
+
window.addEventListener("load", function(){
|
120 |
+
setTimeout(
|
121 |
+
function open(event){
|
122 |
+
document.querySelector(".popup").style.display = "block";
|
123 |
+
},
|
124 |
+
2000
|
125 |
+
)
|
126 |
+
});
|
127 |
+
|
128 |
+
|
129 |
+
document.querySelector("#close").addEventListener("click", function(){
|
130 |
+
document.querySelector(".popup").style.display = "none";
|
131 |
+
});
|
132 |
+
</script>
|
133 |
+
</body>
|
134 |
+
</html>
|
135 |
""")
|
136 |
|
137 |
|