-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
472 lines (442 loc) · 18.7 KB
/
index.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
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
<!DOCTYPE html>
<html lang="en">
<!--
///////////////////////////////////////////////////////////////
Designed and built by Brandon Batten
///////////////////////////////////////////////////////////////
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<meta name="description" content="Princeton Baptist Church meets in Princeton, North Carolina and has something for everyone. Ministries include children's church, youth group, women and men's groups, and seniors.">
<meta name="author" content="Brandon Batten">
<link rel="icon" type="image/png" href="favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="favicon-16x16.png" sizes="16x16" />
<title>Princeton Baptist Church | Connecting with God. Connecting with Others. Connecting Others with God. | Home</title>
<link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Merriweather" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/animate.css@3.5.2/animate.min.css">
<link rel="stylesheet" href="css/styles.css">
<!-- or -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<![endif]-->
</head>
<body data-spy="scroll" data-target=".navbar" data-offset="75">
<!-- /////////////////////////////////////////////
NAVBAR
///////////////////////////////////////////// -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#myNavbar">
<img src="images/hamburger.svg" alt="hamburger menu" class="hamburger">
</button>
<a class="navbar-brand" href="index.html">
<picture>
<source media="(min-width: 768px)" srcset="images/PBC_logo_alt_revision1-white.svg" class="navbar-logo">
<img src="images/PBC_logo_alt_revision1.svg" alt="Princeton Baptist logo" class="navbar-logo">
</picture>
</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">
<ul class="nav navbar-nav navbar-right">
<li><a href="#home">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">About <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#about">About</a></li>
<li><a href="#history">History</a></li>
<li><a href="staff.html">Staff</a></li>
<li><a href="beliefs.html">Beliefs</a></li>
<li><a href="contact.html">Contact Us</a> </li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Ministries <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="#ministries">Ministries</a></li>
<!-- <li><a href="awana.html">AWANA</a></li> -->
<li><a href="youth.html">Youth</a></li>
<li><a href="music.html">Music</a></li>
<li><a href="seniors.html">Seniors</a></li>
<li><a href="missions.html">Missions</a></li>
</ul>
</li>
<li><a href="#events">Events</a></li>
<li>
<a href="https://www.facebook.com/princetonbconnect/" target="blank">
<img src="images/FB-fLogo_2016_blue.svg" alt="facebook-logo" class="facebook-logo">
</a>
</li>
</ul>
</div>
</div>
</nav>
<!-- /////////////////////////////////////////////
Home section
///////////////////////////////////////////// -->
<section class= "home parallax" id="home">
<div class="headline-container">
<h1 class="animated fadeInDown">Connecting with God.<br>
Connecting with Others.<br>
Connecting Others with God.</h1>
<div class="underline animated slideInLeft"></div>
<button type="button" name="headline-btn" class="btn headline-btn animated fadeIn services" data-toggle="modal" data-target="#servicesModal">Services and Location</button>
<button type="button" name="headline-btn" class="btn headline-btn animated fadeIn watch">Watch</button>
</div>
<!-- Assignment -->
<div class="assignment-container animated fadeIn">
<div class="assignment-img-container">
<img src="images/rise_up_white.svg" alt="Rise Up logo" class="rise-up-logo">
</div>
<div class="divider"></div>
<div class="assignment-text-container" data-bind="foreach: assignments.slice(0,1)">
<p class="this-assignment">This Week's Assignment: <br>
<span data-bind="text: assignment" class="assignment"></span>
</p>
</div>
</div>
</section>
<!-- /////////////////////////////////////////////
About section
///////////////////////////////////////////// -->
<section class="section about" id="about">
<div class="section-header parallax">
<h2>About</h2>
</div>
<div class="container">
<div class="history-container">
<h3 class="text-center about-label" id="history">History</h3>
<img src="images/church-doors.JPG" alt="Front of church building">
<p>
Princeton Baptist Church was instituted in September 1889 with eight
charter members. The church worshipped in an old vacant building on the
edge of Princeton. On August 22, 1892 the church moved into a new
wooden structure at the same location as the current sanctuary. In 1927,
construction began that included six Sunday School rooms and parts of the
church were remodeled and repainted. In November of 1950 plans were
laid for a larger sanctuary. Construction of an educational building
with eighteen Sunday School rooms was already underway and completed in
1951. First worship services in the new sanctuary were held on Sunday,
February 7, 1954. In recent years numerous modifications have been made
in the sanctuary as well as other parts of the facility.
</p>
</div>
<div class="staff-container" id="staff">
<h3 class="text-center about-label">Staff</h3>
<ul class="staff-pic-list" data-bind="foreach: staff">
<li class="staff-bio-container">
<img data-bind="attr: { src: pic, alt: name }" class="img-responsive">
<h4 data-bind="text: name"></h4>
<h5 data-bind="text: positionShort"></h5>
<a data-bind="attr: { href: 'staff.html#' + id }" class="staff-bio-link">More info</a>
</li>
</ul>
</div>
<div class="beliefs-container" id="beliefs">
<h3 class="text-center about-label">What We Believe</h3>
<div class="beliefs-img-container">
<ul class="beliefs-list" data-bind="foreach: beliefs.slice(0, 7)">
<li>
<h4 data-bind="text: topic"></h4>
<p data-bind="text: text"></p>
</li>
</ul>
<div class="link-container">
<a href="beliefs.html">More...</a>
</div>
</div>
<!-- </div> end container -->
</div>
</div>
</section>
<!-- /////////////////////////////////////////////
Ministries section
///////////////////////////////////////////// -->
<section class="section ministries" id="ministries">
<div class="section-header parallax">
<h2>Ministries</h2>
</div>
<ul class="ministries-list container-fluid ">
<!-- <li class="awana" id="awana">
<a href="awana.html">
<img src="images/awana-logo.svg" alt="Awana logo">
</a>
</li> -->
<li class="youth" id="youth">
<a href="youth.html">
<img src="images/youth_logo_white.svg" alt="Youth logo">
</a>
</li>
<li class="music" id="music">
<a href="music.html">
<img src="images/music_icon.svg" alt="Music icon">
</a>
</li>
<li class="seniors" id="seniors">
<a href="seniors.html">
<img src="images/PBC_lll_logo_white.svg" alt="Tripple L logo">
</a>
</li>
<li class="missions" id="missions">
<a href="missions.html">
<img src="images/missions-white.svg" alt="Missions icon">
</a>
</li>
</ul>
</section>
<!-- /////////////////////////////////////////////
Events section
///////////////////////////////////////////// -->
<section class="section events" id="events">
<div class="section-header parallax">
<h2>Events</h2>
</div>
<div class="container">
<ul class="events-list" data-bind="foreach: events.slice(0).reverse()">
<li class="row">
<div class="col-sm-3 events-img-container">
<img data-bind="attr: { src: pic, alt: title }" class="img-responsive">
</div>
<div class="col-sm-9">
<h3 data-bind="text: title"></h3>
<h4 data-bind="text: time"></h4>
<h5 data-bind="text: description"></h5>
<a data-bind="attr: { href: link }, text: linkText" target="_blank"></a>
</div>
</li>
</ul>
</div>
</section>
<!-- /////////////////////////////////////////////
Footer
///////////////////////////////////////////// -->
<footer>
<div class="container-fluid">
<ul class="row">
<li class="footer-map col-md-2">
<div class="footer-map-container" id="footerMap"></div>
</li>
<li class="footer-contact col-md-2">
<h3>
<a href="contact.html">Contact</a>
</h3>
<h4 data-bind="with: contact">
<span data-bind="text: churchAddress"></span><br>
<span data-bind="text: city + ', ' + stateAbbr + ' ' + zip"></span>
</h4>
<h4 data-bind="with: contact">Church Office:<br>
<span data-bind="text: officeAddress"></span><br>
<span data-bind="text: city + ', ' + stateAbbr + ' ' + zip"></span>
</h4>
<h4>
<a data-bind="text: contact().officePhone, attr: { href: 'tel:' + contact().officeTel }"></a>
</h4>
<h4>
<a data-bind="attr: { href: 'mailto:' + contact().email }">Email Us</a>
</h4>
</li>
<li class="footer-about col-md-2">
<a href="index.html#about"><h3>About</h3></a>
<ul>
<li><a href="index.html#history">History</a></li>
<li>
<a href="staff.html">Staff</a>
<ul data-bind="foreach: staff" class="footer-staff-list">
<li>
<a data-bind="attr: { href: 'staff.html#' + id }, text: name"></a>
</li>
</ul>
</li>
<li><a href="beliefs.html">Our Beliefs</a></li>
</ul>
</li>
<li class="footer-ministries col-md-2">
<a href="#ministries"><h3>Ministries</h3></a>
<ul>
<!-- <li><a href="awana.html">AWANA</a></li> -->
<li><a href="missions.html">Missions</a></li>
<li><a href="music.html">Music</a></li>
<li><a href="seniors.html">LLLs</a></li>
<li><a href="youth.html">Youth</a></li>
</ul>
</li>
<li class="footer-resources col-md-2">
<h3>Resources</h3>
<ul>
<li>
<a href="https://vbspro.events/p/events/2018pbc" target="_blank">
VBS Sign-up
</a>
</li>
<li>
<a href="https://www.dropbox.com/sh/194zuuoygg106bo/AAB_vwMg8szzPtooO5WWuvNma/Friend%20Day%20Audio%20Files%209781570522291?dl=0" target="_blank">
Teacher Helps
</a>
</li>
</ul>
</li>
<li class="footer-publications col-md-2">
<h3>Publications</h3>
<ul class="pubs-list" data-bind="foreach: publications">
<li class="dropdown">
<button class="btn dropdown-toggle" type="button" data-toggle="dropdown">
<span data-bind="text: pubName + ' '"> </span><span class="caret"></span>
</button>
<ul class="dropdown-menu" data-bind="foreach: pubs">
<li>
<a data-bind="attr: { href: file }, text: edition" target="_blank" class="dropdown-links"></a>
</li>
</ul>
</ul>
<a href="https://acrobat.adobe.com/us/en/acrobat/pdf-reader.html" target="_blank">
Download Adobe Acrobat
</a>
</li>
</li>
</ul> <!-- end row -->
<div class="footer-logo-container text-center">
<a href="index.html">
<img src="images/PBC_logo_alt_revision1-white.svg" alt="Princeton Baptist Church logo" class="footer-logo">
</a>
</div>
</div> <!-- end container-fluid -->
</footer>
<!-- /////////////////////////////////////////////
Services modal
///////////////////////////////////////////// -->
<div id="servicesModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<!-- Services Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Service Times and Location</h4>
</div>
<div class="modal-body">
<div class="map-wrapper">
<div id="modal-map"></div>
<address class="modal-address" data-bind="with: contact">
<p>Princeton Baptist Church</p>
<p data-bind="text: churchAddress"></p>
<p data-bind="text: city + ', ' + stateAbbr + ' ' + zip">Princeton, NC 27569</p>
</address>
</div>
<div class="table-container">
<table>
<tr>
<th>Sunday</th>
<th></th>
</tr>
<tr>
<td>Sunday School</td>
<td class="text-right">9:45am</td>
</tr>
<tr>
<td>Worship</td>
<td class="text-right">11:00am</td>
</tr>
</table>
<table>
<tr>
<th>Wednesday</th>
<th></th>
</tr>
<tr>
<td>Bible Study</td>
<td class="text-right">10:00am</td>
</tr>
<!-- <tr>
<td>AWANA</td>
<td class="text-right">6:30pm</td>
</tr> -->
<tr>
<td>Youth Group</td>
<td class="text-right">6:45pm</td>
</tr>
<tr>
<td>College Bible Study</td>
<td class="text-right">6:30pm</td>
</tr>
<tr>
<td>Choir</td>
<td class="text-right">8:00pm</td>
</tr>
</table>
</div> <!-- end table-container -->
</div> <!-- end modal-body -->
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- /////////////////////////////////////////////
Scripts
///////////////////////////////////////////// -->
<!-- Knockout CDN -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.4.2/knockout-min.js"></script>
<!-- jQuery CDN -->
<script
src="https://code.jquery.com/jquery-3.3.1.min.js"
integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<!-- model.js -->
<script src="js/model.js"></script>
<!-- Bootstrap js CDN -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- Google Map logic -->
<script src="js/map.js"></script>
<!-- Initialize Map -->
<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDGL_wEbysdduJdV4SryzBmJV_KjTFVWDY&callback=initMap"></script>
<!-- Change color of .navbar-default on resize and scroll -->
<script>
$(document).ready(function(){
$(window).resize(function() {
if (window.innerWidth < 768){
$('.navbar-default').css('background', '#f8f8f8');
}
else {
$('.navbar-default').css('background', 'none');
}
});
$(window).scroll(function(){
var scroll = $(document).scrollTop();
if (window.innerWidth < 768){
if (scroll <= (window.innerHeight * 0.9 )) {
$('.navbar-default').css('background', '#f8f8f8');
}
}
if (window.innerWidth >= 768) {
if (scroll <= (window.innerHeight * 0.9)) {
$('.navbar-default').css('background', 'none');
}
else {
$('.navbar-default').css('background', 'rgba(66, 75, 84, 0.6)');
}
}
});
});
</script>
<script>
// Function that actually set offset
function offsetAnchor(e) {
// location.hash.length different to 0 to ignore empty anchor (domain.me/page#)
if (location.hash.length !== 0) {
// Get the Y position of the element you want to go and place an offset
window.scrollTo(0, $(e.target.hash).position().top - ($('.navbar-header').height() + 4));
}
}
// Catch the event with a time out to perform the offset function properly
$(document).on('click', 'a[href]', function (e) {
window.setTimeout(function () {
// Send event to get the target id later
offsetAnchor(e);
}, 10);
});
</script>
</body>
</html>