xp3857 commited on
Commit
d69c979
1 Parent(s): 4e98d1d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -66
app.py CHANGED
@@ -34,17 +34,9 @@ models=[
34
  o = "V"
35
 
36
  t_out = ("""
37
- <head>
38
-
39
- <!--====== Design by foolishdeveloper.com =====-->
40
-
41
-
42
- <title>Automatic Popup</title>
43
- <!--Google Fonts-->
44
- <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
45
- <!--Stylesheets-->
46
- <style media="screen">
47
- *,
48
  *:before,
49
  *:after{
50
  padding: 0;
@@ -59,15 +51,17 @@ body{
59
  width: 420px;
60
  padding: 30px 40px;
61
  position: absolute;
62
- <!--transform: translate(-50%,-50%);-->
63
  left: 50%;
64
  top: 50%;
65
  border-radius: 8px;
66
- font-family: "Poppins",sans-serif;
67
- display: none;
68
  text-align: center;
69
- z-index:1999999;
70
  }
 
 
 
71
  .popup button{
72
  display: block;
73
  margin: 0 0 20px auto;
@@ -82,57 +76,6 @@ body{
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
-
109
- <div class="popup">
110
- <button id="close">&times;</button>
111
- <h2>Automatic Pop-Up</h2>
112
- <p>
113
- Time Out!
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
-
134
-
135
-
136
  """)
137
 
138
 
 
34
  o = "V"
35
 
36
  t_out = ("""
37
+ <div class=”popup”>
38
+ </div>
39
+ *,
 
 
 
 
 
 
 
 
40
  *:before,
41
  *:after{
42
  padding: 0;
 
51
  width: 420px;
52
  padding: 30px 40px;
53
  position: absolute;
54
+ transform: translate(-50%,-50%);
55
  left: 50%;
56
  top: 50%;
57
  border-radius: 8px;
58
+ display: none;
59
+ font-family: “Poppins”,sans-serif;
60
  text-align: center;
 
61
  }
62
+
63
+
64
+ <button id=”close”>&times;</button>
65
  .popup button{
66
  display: block;
67
  margin: 0 0 20px auto;
 
76
  outline: none;
77
  cursor: pointer;
78
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  """)
80
 
81