forked from SAAR-IITP/SAAR-IITP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
donateUs.php
225 lines (200 loc) · 9.52 KB
/
donateUs.php
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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>SAAR | Donate Page</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans|Roboto" rel="stylesheet">
<link rel='stylesheet' type='text/css' href='http://oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.css' />
<link href="stylesheet/donateUs/donate.less" type="text/less" rel="stylesheet">
<link href="stylesheet/donateUs/1030.css" rel="stylesheet" type="text/css" media="only screen and (max-width:1030px)"/>
<link href="stylesheet/donateUs/947.css" rel="stylesheet" type="text/css" media="only screen and (max-width:947px)"/>
<link href="stylesheet/donateUs/830.css" rel="stylesheet" type="text/css" media="only screen and (max-width:830px)"/>
<link href="stylesheet/donateUs/776.css" rel="stylesheet" type="text/css" media="only screen and (max-width:776px)"/>
<link href="stylesheet/donateUs/711.css" rel="stylesheet" type="text/css" media="only screen and (max-width:710px)"/>
<link href="stylesheet/donateUs/600.css" rel="stylesheet" type="text/css" media="only screen and (max-width:600px)"/>
<link href="stylesheet/donateUs/580.css" rel="stylesheet" type="text/css" media="only screen and (max-width:580px)"/>
<link href="stylesheet/donateUs/490.css" rel="stylesheet" type="text/css" media="only screen and (max-width:490px)"/>
<link href="stylesheet/donateUs/450.css" rel="stylesheet" type="text/css" media="only screen and (max-width:450px)"/>
<script src="asset/less js/less.min.js" type="text/javascript"></script>
</head>
<body>
<section>
<div id="parallax" >
<div class="parallax-background">
<div class="caption">
<span class="caption-text" >Welcome To SAAR</span>
</div>
</div>
</div>
</section>
<div id="nav-bar" class="box-shadow" onclick="stickyNavbar()">
<div class="nav ">
<a href="#">HOME</a>
<a href="#way">WAYS TO DONATE</a>
<a href="#donate_for">DONATE FOR</a>
<a href="#nav_link">NAVIGATION LINKS</a>
</div>
</div>
<section id="way">
<div class="way_container">
<div class="way_title">
<h1>Make Payment Through</h1>
</div>
<div class="table">
<div class="cell">
<h3>Demand Draft</h3>
<p>Labore provident optio quis commodi quod quaerat quo similique perspiciatis libero facere.
Suscipit odit quas nemo, enim laudantium. </p>
</div>
<div class="cell">
<h3>Cheque</h3>
<p>Labore provident optio quis commodi quod quaerat quo similique perspiciatis libero facere.
Suscipit odit quas nemo, enim laudantium. </p>
</div>
<div class="cell">
<h3>Credit card/Debit card</h3>
<p>Labore provident optio quis commodi quod quaerat quo similique perspiciatis libero facere.
Suscipit odit quas nemo, enim laudantium. </p>
<button type="submit" id="PTP" class="w2d"><a href="#donate_for">Continue</a></button>
</div>
<div class="cell">
<h3>Net Banking</h3>
<p>Labore provident optio quis commodi quod quaerat quo similique perspiciatis libero facere.
Suscipit odit quas nemo, enim laudantium. </p>
<button type="submit" id="PTP" class="w2d"><a href="#donate_for">Continue</a></button>
</div>
</div>
</div>
</section>
<section id="donate_for">
<div class="donate_for_container">
<div class="donate_for_title">
<h1>Donate To Our Leaders</h1>
</div>
<div class="donate_content">
<div class="list" ><div id="anwesha"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="HOSCA"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="E-club"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="Celesta"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="ACE"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="Sparkonics"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="NJACK"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="Threshold"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="Robocon"><span><a href="#">Donate Now</a></span></div></div>
<div class="list" ><div id="Supra-Baha"><span><a href="#">Donate Now</a></span></div></div>
<div class="btn"><span id="button" onclick="show_list()">more</span></div>
</div>
</div>
</section>
<section id="donate_form">
<form action="" method="post">
<div class="ui form">
<h1>DONATE FORM</h1>
<div class="field">
<label for="full_name">Name</label>
<input type="text" name="full_name" id="full_name" required="">
</div>
<div class="field">
<label for="roll_no">Roll No</label>
<input type="text" id="roll_no" name="roll_no" maxlength="8">
</div>
<div class="field">
<label for="batch">Batch</label>
<input tye="text" id="batch" name="batch" >
</div>
<div class=" field">
<label id="branch">Department</label>
<div class="sel">
<select id="branch" name="dept" class="">
<option value=""></option>
<option value="CSE">Computer Science and Engineering</option>
<option value="EE">Electrical Engineering</option>
<option value="ME">Mechanical Engineering</option>
<option value="CE">Chemical Engineering</option>
<option value="CBE">Chemical and Biochemical Engineering</option>
</select>
</div>
</div>
<div class="field">
<label for="donate_to">Donate </label>
<input type="text" name="donate_to" id="donate_to">
</div>
<div class="field">
<label id="donate_amount">Amount</label>
<input type="text" min="0" name="donate_amount" required="" id="donate_amount">
</div>
<div class="field">
<label for="comment">Comments</label>
<textarea id="comment" name="comment" ></textarea>
</div>
<button type="submit" id="PTP">Proceed</button>
</div>
</form>
</section>
<script src='https://code.jquery.com/jquery-2.2.0.min.js'></script>
<script src='http://oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.js'></script>
<script>
var a;
if(window.innerWidth<=580){
a=1;
}else{
if(window.innerWidth<=830){
a=2;
}else{
a=3;
}
}
function show_list(){
var i=0;
var j=a+3;
var list = document.querySelectorAll('.list')
var length= list.length;
if(j>length){
j=length;
var btn = document.querySelector('#button');
btn.style.display="none";
}else{
j=a+3;
}
for(i=a;i<j;i++){
list.item(i).style.display="block";
}
a=a+3;
}
$(document).ready(function(){
var list=document.querySelectorAll('.list') ;
var i=0;
if(window.innerWidth<=580){
i=1;
}else{if(window.innerWidth<=830){
i=2;
}else{
i=3;
}
}
for(i=3;i<list.length;i++){
list.item(i).style.display ="none";
}
});
window.onload = function(){
window.onscroll = stickyNavbar;
var nav = document.getElementById('nav-bar');
var sticky =nav.offsetTop;
function stickyNavbar(){
if(window.pageYOffset >= sticky){
document.getElementById('nav-bar').classList.add('sticky');
}
else{
document.getElementById('nav-bar').classList.remove('sticky');
}
}
};
</script>
</body>
</html>
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/