xp3857 commited on
Commit
4469684
1 Parent(s): aa9a0e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +80 -6
app.py CHANGED
@@ -34,7 +34,17 @@ models=[
34
  o = "V"
35
 
36
  t_out = ("""
37
- <style>
 
 
 
 
 
 
 
 
 
 
38
  #container{
39
  position: relative;
40
  width: 200px;
@@ -53,11 +63,75 @@ t_out = ("""
53
  height: 30px;
54
  background: red;
55
  }
56
- </style>
57
- <div id="container">
58
- <div id="main_image"></div>
59
- <div id="overlay_image"></div>
60
- </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  """)
62
 
63
 
 
34
  o = "V"
35
 
36
  t_out = ("""
37
+
38
+ <link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
39
+ <!--Stylesheets-->
40
+ <style media="screen">
41
+ *,
42
+ *:before,
43
+ *:after{
44
+ padding: 0;
45
+ margin: 0;
46
+ box-sizing: border-box;
47
+ }
48
  #container{
49
  position: relative;
50
  width: 200px;
 
63
  height: 30px;
64
  background: red;
65
  }
66
+ .popup{
67
+ background-color: #ffffff;
68
+ width: 420px;
69
+ padding: 30px 40px;
70
+ transform: translate(-50%,-50%);
71
+ left: 50%;
72
+ top: 50%;
73
+ border-radius: 8px;
74
+ font-family: "Poppins",sans-serif;
75
+ display: none;
76
+ text-align: center;
77
+ position: fixed;
78
+ width: 200px;
79
+ height: 200px;
80
+ top: 0px;
81
+ left: 0px;
82
+ z-index:19999;
83
+ }
84
+ .popup button{
85
+ display: block;
86
+ margin: 0 0 20px auto;
87
+ background-color: transparent;
88
+ font-size: 30px;
89
+ color: #ffffff;
90
+ background: #03549a;
91
+ border-radius: 100%;
92
+ width: 40px;
93
+ height: 40px;
94
+ border: none;
95
+ outline: none;
96
+ cursor: pointer;
97
+ }
98
+ .popup h2{
99
+ margin-top: -20px;
100
+ }
101
+ .popup p{
102
+ font-size: 14px;
103
+ text-align: justify;
104
+ margin: 20px 0;
105
+ line-height: 25px;
106
+ }
107
+
108
+ </style>
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
+
118
+ <!--Script-->
119
+ <script type="text/javascript">
120
+ window.addEventListener("load", function(){
121
+ setTimeout(
122
+ function open(event){
123
+ document.querySelector(".popup").style.display = "block";
124
+ },
125
+ 2000
126
+ )
127
+ });
128
+
129
+
130
+ document.querySelector("#close").addEventListener("click", function(){
131
+ document.querySelector(".popup").style.display = "none";
132
+ });
133
+ </script>
134
+
135
  """)
136
 
137