-
Notifications
You must be signed in to change notification settings - Fork 0
/
contacts.html
189 lines (167 loc) · 9.98 KB
/
contacts.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!DOCTYPE html>
<html lang="ru">
<head>
<!-- The core Firebase JS SDK is always required and must be listed first -->
<script src="https://www.gstatic.com/firebasejs/8.5.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.5.0/firebase-firestore.js"></script>
<script>
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
var firebaseConfig = {
apiKey: "AIzaSyCVD0ub2K56Ow0VfLJLzpaL1tHsh2LGBDw",
authDomain: "clear-variety-298016.firebaseapp.com",
projectId: "clear-variety-298016",
storageBucket: "clear-variety-298016.appspot.com",
messagingSenderId: "125601561382",
appId: "1:125601561382:web:e7ceb496383d27bd29dfe7",
measurementId: "G-NN2CNLDRDG"
};
// Initialize Firebase
firebase.initializeApp(firebaseConfig);
</script>
<meta http-equiv="content-type" content="text/html" charset="utf-8"/>
<title>Контакты</title>
<meta name="viewport" content="width=1200"/>
<meta name="description" content=""/>
<meta name="keywords" content=""/>
<meta property="og:title" content="Контакты"/>
<meta property="og:description" content=""/>
<meta property="og:image" content=""/>
<meta property="og:type" content="article"/>
<link href="css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
<script src="js/jquery-1.11.3.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/main.js?v=20200214105035" type="text/javascript"></script>
<link href="css/font-awesome/font-awesome.min.css?v=4.7.0" rel="stylesheet" type="text/css"/>
<link href="css/site.css?v=20200214105037" rel="stylesheet" type="text/css" id="wb-site-stylesheet"/>
<link href="css/common.css?ts=1593169607" rel="stylesheet" type="text/css"/>
<link href="css/3.css?ts=1593169607" rel="stylesheet" type="text/css" id="wb-page-stylesheet"/>
<link rel="icon" href="gallery_gen/alert.png" type="image/png">
</head>
<body class="site ">
<div class="root">
<div class="vbox wb_container" id="wb_header">
<div class="wb_cont_inner">
<div id="wb_element_instance19" class="wb_element wb-menu">
<ul class="hmenu">
<li><a href="index.html" target="_self">Главная</a></li>
<li><a href="signs.html" target="_self">Знаки</a></li>
<li><a href="mark.html" target="_self">Разметка</a></li>
<li class="active"><a href="contacts.html" target="_self">Контакты</a></li>
</ul>
<div class="clearfix"></div>
</div>
<div id="wb_element_instance20" class="wb_element wb_text_element" style=" line-height: normal;"><h4
class="wb-stl-pagetitle" style="text-align: center;"><span style="color:rgba(0,0,0,1);"><strong>Справочник ПДД</strong></span>
</h4>
</div>
<div id="wb_element_instance21" class="wb_element wb_element_picture" title=""><img
alt="gallery/105046-omfvij-906aa" src="gallery_gen/577c207bb4382de9aad296c5e44f2e95_40x40.png">
</div>
<div id="wb_element_instance22" class="wb_element wb_element_shape"><a class="wb_shp"></a></div>
</div>
<div class="wb_cont_outer"></div>
<div class="wb_cont_bg"></div>
</div>
<div class="vbox wb_container" id="wb_main">
<div class="wb_cont_inner">
<div id="wb_element_instance25" class="wb_element wb_text_element" style=" line-height: normal;"><p
class="wb-stl-normal">На этой странице вы найдете самую последнюю информацию</p>
<p class="wb-stl-normal">о нас. Наша компания постоянно развивается и растет. Мы предоставляем широкий
спектр услуг...</p>
<p class="wb-stl-normal"></p>
<p class="wb-stl-normal"><span dir="ltr" style="direction: ltr;"><span dir="ltr"
style="direction: ltr;"><span
dir="ltr" style="direction: ltr;"><span dir="ltr" style="direction: ltr;"><span dir="ltr"
style="direction: ltr;"><span
dir="ltr" style="direction: ltr;"><span dir="ltr" style="direction: ltr;"><span dir="ltr"
style="direction: ltr;"><span
dir="ltr" style="direction: ltr;"><span dir="ltr" style="direction: ltr;"><span dir="ltr"
style="direction: ltr;">+998 ** *** ** **</span></span></span></span></span></span></span></span></span></span></span>
</p>
<p class="wb-stl-normal">Узбекистан</p>
<p class="wb-stl-normal">город Карши</p>
<p class="wb-stl-normal">10800</p>
</div>
<div id="wb_element_instance26" class="wb_element">
<form class="wb_form" method="post" enctype="multipart/form-data"><input type="hidden" name="wb_form_id"
value="8e667035"><textarea
name="message" rows="3" cols="20" class="hpc" autocomplete="off"></textarea>
<table>
<tr>
<th class="wb-stl-normal">Имя </th>
<td><input type="hidden" id="wb_input_0" ><input
class="form-control form-field" type="text" id="wb_input_name"
required="required"></td>
</tr>
<tr>
<th class="wb-stl-normal">Эл. почта </th>
<td><input type="hidden" id="wb_input_1" ><input
class="form-control form-field" type="text" id="wb_input_email"
required="required"></td>
</tr>
<tr class="area-row">
<th class="wb-stl-normal">Сообщение </th>
<td><input type="hidden" id="wb_input_2" ><textarea
class="form-control form-field form-area-field" rows="3" cols="20" id="wb_input_message"
required="required"></textarea></td>
</tr>
<tr>
<th class="wb-stl-normal"> </th>
<td><label class="checkbox-label wb-stl-normal"><input class="form-control form-field"
type="checkbox"
id="wb_input_3"
required="required"> Я согласен с
Условиями использования</label></td>
</tr>
<tr class="form-footer">
<td colspan="2">
<button id="button" onclick="firestore_add();" type="button"> Отправить </button>
</td>
</tr>
</table>
</form>
</div>
<div id="wb_element_instance27" class="wb_element wb_text_element" style=" line-height: normal;"><h1
class="wb-stl-heading1" style="text-align: center;">Контакты</h1></div>
</div>
<div class="wb_cont_outer"></div>
<div class="wb_cont_bg"></div>
</div>
<div class="vbox wb_container" id="wb_footer">
<div class="wb_cont_inner">
<div id="wb_element_instance23" class="wb_element wb_text_element" style=" line-height: normal;"><p
class="wb-stl-normal"><span style="color:rgba(255,255,255,1);">© 2020 Created by <strong>Artur Shakirov</strong></span>
</p>
</div>
</div>
<div class="wb_cont_outer">
<div id="wb_element_instance24" class="wb_element wb_element_shape"><a class="wb_shp"></a></div>
</div>
<div class="wb_cont_bg"></div>
</div>
<div class="wb_sbg"></div>
</div>
<script>
function firestore_add() {
var checkBox = document.getElementById("wb_input_3");
var name = document.getElementById('wb_input_name').value;
var email = document.getElementById('wb_input_email').value;
var text = document.getElementById('wb_input_message').value;
if (checkBox.checked == true && name != "" && email != "" && text != ""){
firebase.firestore().collection('Messages').add({
Name: name,
Email: email,
Text: text,
Time: firebase.firestore.FieldValue.serverTimestamp()})
alert("Успешно отправлено!");
document.getElementById('wb_input_name').value = '';
document.getElementById('wb_input_email').value = '';
document.getElementById('wb_input_message').value = '';
} else {
alert("Заполните все поля!");
}
}
</script>
</body>
</html>