-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcontribute.html
202 lines (187 loc) · 8.25 KB
/
contribute.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
190
191
192
193
194
195
196
197
198
199
200
201
202
<!DOCTYPE html>
<html>
<head>
<title>PUJA 2021</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Gloria+Hallelujah&family=Lora&family=Open+Sans&family=Roboto&family=Shadows+Into+Light&display=swap" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<style type="text/css">
.joy
{
font-family: 'Gloria Hallelujah', cursive,bold;
font-weight: bolder;
}
.jo
{
font-family: 'Gloria Hallelujah', cursive,bold;
font-weight: bolder;
color:#FFE53B;
background: -webkit-linear-gradient(147deg, #FFE53B 0%, #FF2525 74%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.k
{
font-family: 'Shadows Into Light', cursive;
font-weight: bolder;
}
.jumbotron
{
background-color: #FBAB7E;
background-image: linear-gradient(62deg, #FBAB7E 0%, #F7CE68 100%);
}
</style>
<!-- background-color: #FFE53B;
background-image: linear-gradient(147deg, #FFE53B 0%, #FF2525 74%); -->
</head>
<body >
<div class="jumbotron text-center" >
<h1 class="jo" >DURGA PUJA 2021</h1>
</div>
<div class="modal fade" id="exampleModalCenter" tabindex="-1" role="dialog" aria-labelledby="exampleModalCenterTitle" aria-hidden="true">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLongTitle">Modal title</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRQHwWJqvvc6KCz7qxGgRV57d9Qq3-GrpRTpw&usqp=CAU" alt="First slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQrVVo5r9-h0aVbStvFkE70c15hDFExbZCuoA&usqp=CAU" alt="Second slide">
</div>
<div class="carousel-item">
<img class="d-block w-100" src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSZfxfIUrtD5Y43UCow2_Y7g7vkGlGukzlGfA&usqp=CAU" alt="Third slide">
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
<script type="text/javascript">
$(document).ready(function(){
$('.carousel').carousel({
interval: 2000
})
})
</script>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- <img src=""> -->
<div class="container">
<form id="tform">
<div class="form-group">
<label for="formGroupExampleInput">Editor Name</label><span style="color: red">*</span>
<input type="text" id="e_name" name="e_name" class="form-control" placeholder="Example Animxxx xxxar" required>
</div>
<div class="form-group">
<label for="formGroupExampleInput">Puja Pandal Name</label><span style="color: red">*</span>
<input type="text" id="p_name" name="p_name" class="form-control" placeholder="Example Deshopriya park" required>
</div>
<div class="form-group">
<label for="formGroupExampleInput">Pincode</label><span style="color: red">*</span>
<input type="text" id="pin" name="pin" class="form-control" id="formGroupExampleInput" placeholder="Example 700129" required>
</div>
<div class="form-group">
<label for="formGroupExampleInput">Address</label>
<input type="text" id="address" name="address" class="form-control" placeholder="Example kolkata....." >
</div>
<div class="form-group">
<label for="formGroupExampleInput">Google map link</label><span style="color: red">*</span><button type="button" class="btn btn-link" data-toggle="modal" data-target="#exampleModalCenter">
HOW?
</button>
<input type="text" id="map" name="map" class="form-control" placeholder="Example input placeholder" required>
</div>
<div class="form-group">
<label for="exampleFormControlFile1">Image</label><span style="color: red">*</span>
<input type="file" id="image" name="image" class="form-control-file" required>
</div>
<div class="form-group">
<label for="formControlRange">Rate This Place</label><span style="color: red">*</span>
<input type="range" id="rate" name="rate" class="form-control-range" required>
</div>
<div class="form-group">
<label for="exampleFormControlTextarea1">Comments</label>
<textarea class="form-control" id="comment" name="comment"rows="2" placeholder="Amazing puja ....."></textarea>
</div>
<button type="submit" class="btn btn-warning btn-lg btn-block" id="plasma"><h3 class="joy" style="color:#ff2c0af5">JOY DURGA MA</h3> <h4 class="k" style="color: blue">(Add)</h4></button>
</form>
</div>
<br>
<br>
<footer class="py-4 bg-dark flex-shrink-0">
<div class="container text-center">
<a href="#" class="text-muted">© DESIGNED BY THUNDERSLASH</a>
</div>
</footer>
<script type="text/javascript">
$(document).ready(function(){
$("#plasma").click(function(e){
e.preventDefault();
let myForm =$('#tform')[0];
var data = new FormData(myForm);
data.append("cmd", "register");
var PINCODE=document.getElementById("pin").value;
if (PINCODE.length==6) {
$.ajax({
type: "POST",
url: "CONT.php",
data: data, // serializes the form's elements.
processData: false,
contentType: false,
success: function(result)
{
if(result == 'OK' )
{
// show response from the php script.
//console.log(dat);
swal(result, "JOY DURGA MA", "success");
}
else
{
swal(result, "seems sever error", "error");
}
},
error: function (request, error) {
alert(" Can't do because: " + error);
}
});
}
else
{
alert("ENTER VALID PINCODE");
}
});
});
</script>
</body>
</html>