-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathindex.html
More file actions
695 lines (550 loc) · 31.2 KB
/
index.html
File metadata and controls
695 lines (550 loc) · 31.2 KB
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
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>LuvLdh</title>
<!-- Favicon -->
<link rel="shortcut icon" type="image/icon" href="images/together.jpg"/>
<!-- Font Awesome -->
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css" rel="stylesheet">
<!-- Bootstrap -->
<link href="assets/css/bootstrap.min.css" rel="stylesheet">
<!-- Slick slider -->
<link href="assets/css/slick.css" rel="stylesheet">
<!-- Theme color -->
<link id="switcher" href="assets/css/theme-color/green-theme.css" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script type="text/javascript" src="./rankerold.json"></script>
<!-- Main Style -->
<link href="style.css" rel="stylesheet">
<!-- Fonts -->
<!-- Open Sans for body font -->
<link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,400i,600,700,800" rel="stylesheet">
<!-- Montserrat for title -->
<link href="https://fonts.googleapis.com/css?family=Montserrat" rel="stylesheet">
<link href="/css/style.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<style>
/* .img-container {
width: 125px;
height: 200px;
position: relative;
}
.img-container .stretch {
width: 100%;
height: auto;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}*/
.stretch {
object-fit: cover;
width: 125px;
height: 125px;
}
</style>
</head>
<body>
<div id="go-top" style="display: block;">
<a class="smoothscroll" title="Back to Top" href="#top"><i class="icon ion-android-arrow-up"></i></a>
</div>
<!-- Start Header -->
<header id="mu-hero" class="" role="banner">
<!-- Start menu -->
<nav class="navbar navbar-fixed-top navbar-default mu-navbar">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<!-- Logo -->
<a class="navbar-brand" href="index.html">#LuvLdh</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav mu-menu navbar-right">
<li><a href="#mu-hero">Home</a></li>
<li><a href="#mu-about">About Us</a></li>
<!--li><a href="#mu-schedule">Schedule</a></li-->
<li><a href="#mu-category">Category</a></li>
<li><a href="#mu-pricing">Prizes</a></li>
<li><a href="#mu-rules">Rules</a></li>
<li><a href="#mu-contact">Contact</a></li>
<li><a href="https://ldh.gdy.club/oauth/login/facebook/">Submit Entry</a></li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<!-- End menu -->
<div class="mu-hero-overlay">
<div class="container">
<div class="mu-hero-area">
<a class="btn btn-primary" style="color:black" id="login" href="https://www.facebook.com/sscsLdh" role="button">Follow Us</a>
<a class="btn btn-primary" style="color:black" id="login" href="https://ldh.gdy.club/oauth/login/facebook/" role="button">Login</a>
<div class="mu-hero-featured-content">
<h1 id="heading" >prizes worth ₹ 50,000</h1>
<h1><font size="50" color="red">Love Ludhiana </font></h1>
<h2>Do you Love your City?</h2>
<p class="mu-event-date-line">Login to Submit Entry: Last day for entry submission Jan 31, 2018</p>
</div>
</div>
</div>
<!-- End hero featured area -->
<div class="container">
<div class="row">
<div class="mu-title-area">
<br/> <h2>Top ranker of the moment</h2>
</div>
<!-- Start spnonsors brand logo -->
<div class="mu-sponsors-content">
<div class="container">
<div class="row">
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="mu-sponsors-single">
<h3 class="col-md-offset-2">Photography</h3> <div class="col-md-5 col-sm-6 col-xs-6"> <a class="photo_first_likes_link" href="#"><div class="img-container"><img class="stretch" id= "photo_img_first" src="assets/images/photo1.png" alt="Brand Logo"></div></a>
<br><a id="photo_first_username_link" href="#"><p id="photo_first_username"><strong>Username</strong></p></a>
<a class="photo_first_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="photo_first_likes" style="display:inline"></p>
</div>
<div class="col-md-5 col-sm-6 col-xs-6">
<a class="photo_second_likes_link" href="#"><div class="img-container"><img class="stretch" id= "photo_img_second" src="assets/images/photo1.png" alt="Brand Logo"></div></a>
<br><a id="photo_second_username_link" href="#"><p id="photo_second_username"><strong>Username</strong></p></a>
<a class="photo_second_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="photo_second_likes" style="display:inline"></p>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="mu-sponsors-single">
<h3 class="col-md-offset-3">Souvenir</h3>
<div class="col-md-5 col-sm-6 col-xs-6"> <a class="souvenir_first_likes_link" href="#"><div class="img-container"><img class="stretch" id= "souvenir_img_first" src="assets/images/photo1.png" alt="Brand Logo"></div></a>
<br><a id="souvenir_first_username_link" href="#"><p id="souvenir_first_username"><strong>Username</strong></p></a>
<a class="souvenir_first_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="souvenir_first_likes" style="display:inline"></p>
</div>
<div class="col-md-5 col-sm-6 col-xs-6">
<a class="souvenir_second_likes_link" href="#"><div class="img-container"><img class="stretch" id= "souvenir_img_second" src="assets/images/souvenir_alt1.jpg" alt="Brand Logo"></div></a>
<br><a id="souvenir_second_username_link" href="#"><p id="souvenir_second_username">Empty</p></a>
<a class="souvenir_first_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="souvenir_second_likes" style="display:inline"></p>
</div>
</div>
</div>
<div class="col-md-4 col-sm-12 col-xs-12">
<div class="mu-sponsors-single">
<h3 class="col-md-offset-1">Content Writing</h3>
<div class="col-md-5 col-sm-6 col-xs-6"> <a class="content_first_likes_link" href="#"><div class="img-container"><img class="stretch" id= "content_img_first" src="images/photo1.png" alt="Brand Logo"></div></a>
<br><a id="content_first_username_link" href="#"><p id="content_first_username"><strong>Username</strong></p></a>
<a class="content_first_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="content_first_likes" style="display:inline"></p>
</div>
<div class="col-md-5 col-sm-6 col-xs-6"> <a class="content_second_likes_link" href="#"><div class="img-container"><img class="stretch" id= "content_img_second" src="assets/images/souvenir_alt1.jpg" alt="Brand Logo"></div></a>
<br><a id="content_second_username_link" href="#"><p id="content_second_username">Empty</p></a>
<a class="content_first_likes_link" href="#"><i class="fa fa-thumbs-up" style="color:blue;display:inline"></i></a><p id="content_second_likes" style="display:inline"></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</header>
<!-- End Header -->
<!-- Start main content -->
<main role="main">
<!-- Start About -->
<section id="mu-about">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-about-area">
<!-- Start Feature Content -->
<div class="row">
<div class="col-md-6">
<div class="mu-about-left">
<img class="" src="images/ludhiana.jpeg" alt=" My Ludhiana">
</div>
</div>
<div class="col-md-6">
<div class="mu-about-right">
<h2>About The Event</h2>
<p>This event is a little effort to encourage people of Ludhiana to know more about their city, explore it and show your "Love" towards the city. There is no age bar on participation.</p>
<p>There are currently 3 categories, for which the participants can submit their entries.
<ol>
<li>Photography Contest</li>
<li>Souvenir Contest</li>
<li>Content Writing Contest</li>
</ol>
</p>
<p>There are following 3 themes for this event.
<ol>
<li>History of Ludhiana</li>
<li>Beauty of Ludhiana</li>
<li>Tourist Destinations</li>
</ol>
</p>
<p>Top ten entries shall be selected on the basis of likes received for an entry on the Facebook Page and final winning entry amongst top ten entries shall be chosen by a panel of renowned experts/residents of Ludhiana.
</p>
</div>
</div>
</div>
<!-- End Feature Content -->
</div>
</div>
</div>
</div>
</section>
<!-- End About -->
<!-- Start Speakers -->
<section id="mu-category">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-speakers-area">
<div class="mu-title-area">
<h2 class="mu-title">Categories</h2>
<p>Express your Love by participating in...</p>
</div>
</div>
<!-- Start Speakers Content -->
<!-- Start single speaker -->
<div class="mu-single-speakers col-md-4">
<a class="hovertext" href="#" title="Ludhiana has many beautiful places, land marks, historical place. Capture the Ludhiana's history, culture, heritage, beauty and places of interest, in line with themes of the contest with your inner artist. Be the part of interesting event and win the prizes."><img src="images/photo1.png" alt="speaker img"></a>
<div class="mu-single-speakers-info">
<h3>Photography Contest</h3>
</div>
</div>
<!-- End single speaker -->
<!-- Start single speaker -->
<div class="mu-single-speakers col-md-4">
<a class="hovertext" href="#" title="Are you finding it difficult in deciding what to gift to your friend, business associate which can remind him/her Ludhiana? Though Ludhiana appears on world map due to its Hosiery and Cycle Industry, yet there is not even a single Souvenir available in the market which a visitor can take back home. Though hosiery items of almost all Indian and International brands are manufactured in the city, yet it is hard to find a single article connecting Ludhiana. You can't find T-shirt saying I love Ludhiana in the market. Clock Tower (Ghanta Ghar) is always associated with Ludhiana, yet you can't see a model of Ghanta Ghar being sold in any Souvenir Shop. Let us design souvenir and brand our city at National and International level. Explain your "Souvenir" with text, with sketch, images showing different views. Give detailed description and link it with Ludhiana. Make a pdf file, which you upload."><img src="images/ldh1.png" alt="speaker img"></a>
<div class="mu-single-speakers-info">
<h3>Souvenir Contest</h3>
</div>
</div>
<!-- End single speaker -->
<!-- Start single speaker -->
<div class="mu-single-speakers col-md-4">
<a class="hovertext" href="#" title="How much you know about Ludhiana, about its history, culture, heritage, beauty and places of interest. Do you know about the martyrs, business tycoon of Ludhiana, artists of Ludhiana. How you can promote Ludhinana? Write about Ludhiana so that visitors / businessman loves to come here. Show your creative content writing skill by writing some thing interesting about Ludhiana. The content may also include images / illustrations. Make a pdf file, which you upload."><img src="images/content1.png" alt="speaker img"></a>
<div class="mu-single-speakers-info">
<h3>Content Writing Contest</h3>
</div>
<!-- End single speaker -->
</div>
<!-- End Speakers Content -->
</div>
</div>
</div>
</div>
</section>
<!-- End Speakers -->
<!-- Start Pricing -->
<section id="mu-pricing">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-pricing-area">
<div class="mu-title-area">
<h2 class="mu-title">Prizes</h2>
</div>
<div class="mu-pricing-conten">
<div class="row">
<!-- single price item -->
<div class="col-md-4">
<div class="mu-single-price">
<div class="mu-single-price-head">
<span class="mu-currency">₹</span>
<span class="mu-rate">11,000/-</span>
</div>
<h3 class="mu-price-title">First</h3>
</div>
</div>
<!-- / single price item -->
<!-- single price item -->
<div class="col-md-4">
<div class="mu-single-price">
<div class="mu-single-price-head">
<span class="mu-currency">₹</span>
<span class="mu-rate">5,100/-</span>
</div>
<h3 class="mu-price-title">Second</h3>
</div>
</div>
<!-- / single price item -->
<!-- single price item -->
<div class="col-md-4">
<div class="mu-single-price">
<div class="mu-single-price-head">
<span class="mu-currency"></span>
<span class="mu-rate">&</span>
</div>
<h3 class="mu-price-title">Consolation prizes</h3>
</div>
</div>
<!-- / single price item -->
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Pricing -->
<!-- Start FAQ -->
<section id="mu-rules">
<div class="container">
<div class="row">
<div class="col-md-12">
<!--<div class="mu-faq-area">-->
<div class="mu-title-area">
<h2>Rules of Contest</h2>
</div>
<div class="mu-faq-content">
<div class="panel-group" id="accordion">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseOne">
1. Competitions are open to Ludhiana residents only.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseTwo">
2. Entry to the competitions is restricted to one entry per person per category. That means a single participant can participate in all categories of the competition, but can submit only one entry in a category.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseTwo">
3. The entries should be the original work of the participants.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
4. The objective of the competition is to inculcate love for Ludhiana. Therefore all entries should depict the theme/s mentioned in the<a href="https://scontent.fixc2-1.fna.fbcdn.net/v/t31.0-8/23157387_1260899957389003_2922676079448303409_o.jpg?oh=c5dceb8343a6d62ee16b7541f2ab1ad1&oe=5AAD3358" target="_blank">poster.</a>
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseFour">
5. The copyright of the submitted entries shall be sole property of the organisers.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseFive">
6. There is no age bar for the participation.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
7. The competition will run up to Dec 25, 2017.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
8. Top 10 entries shall be shortlisted on the basis of public voting through Facebook page.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
9. The shortlisted entries shall be presented to jury of experts of respective fields for judging and finalising top 2 entries. The judges decision shall be final.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
10. Participants are requested to use social media like WhatsApp, Facebook, Twitter to evoke awareness about the campaign and also garner votes through Facebook.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
11. Winners shall be announced through social media and/or public event to be notified later on.
</a>
</h4>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a href="#collapseThree">
12. Organisers reserve all the rights.
</a>
</h4>
</div>
</div>
</div>
</div>
<!-- </div>-->
</div>
</div>
</div>
</section>
<!-- End FAQ -->
<!-- Start Contact -->
<section id="mu-contact">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="mu-contact-area">
<div class="mu-title-area">
<h2 class="mu-heading-title">Contact Us</h2>
<div class="mu-footer-area">
<div class="mu-footer-top">
<div class="mu-social-media">
<a href="https://fb.me/sscsLdh" target=blank><i class="fa fa-facebook"></i></a>
<a href="mailto:luvldh2017@gmail.com"><i class="fa fa-envelope"></i></a>
</div></div></div>
<center><p>Please follow page on <a style="color:green" href="https://www.facebook.com/sscsLdh" target="_blank">Facebook</a> to keep yourself up-to-date.</p></center>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- End Contact -->
</main>
<!-- End main content -->
<!-- Start footer -->
<footer id="mu-footer" role="contentinfo">
<div class="container">
<div class="mu-footer-area">
<div class="mu-footer-top">
<p class="mu-copy-right">© Copyright 2017. All right reserved by <a href="#" title="Swarn Surjit Charitable Society - Ludhiana is formed with the mission
to make live of all around us, better than yesterday. We conduct
events, awareness programs, extend help to needy people, donate things
to make education for kids more meaningful and enjoyable.
"> SSCS.</a></p>
</div>
</div>
</div>
</footer>
<!-- End footer -->
<!-- jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Bootstrap -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Slick slider -->
<script type="text/javascript" src="assets/js/slick.min.js"></script>
<!-- Event Counter -->
<script type="text/javascript" src="assets/js/jquery.countdown.min.js"></script>
<!-- Ajax contact form -->
<script type="text/javascript" src="assets/js/app.js"></script>
<!-- Custom js -->
<script type="text/javascript" src="assets/js/custom.js"></script>
<!-- <script src="ranker.js"></script>-->
<script>
//var $idown;
//$idown.attr('src', 'https://ldh.gdy.club/media/WinnersData.json');
//$.fileDownload('https://ldh.gdy.club/media/WinnersData.json');
text = jQuery.getJSON("WinnersData.json", function(data) {
// Likes
$("#content_first_likes").text(text.responseJSON.ContentWritingContest.first.likes);
$("#content_second_likes").text(text.responseJSON.ContentWritingContest.second.likes);
$("#photo_first_likes").text(text.responseJSON.PhotographyContest.first.likes);
$("#photo_second_likes").text(text.responseJSON.PhotographyContest.second.likes);
$("#souvenir_first_likes").text(text.responseJSON.SouvenirContest.first.likes);
$("#souvenir_second_likes").text(text.responseJSON.SouvenirContest.second.likes);
// Fetch Usernames from JSON file
var content_first= ((text.responseJSON.ContentWritingContest.first.username===null) ? " " : text.responseJSON.ContentWritingContest.first.username);
var content_second= ((text.responseJSON.ContentWritingContest.second.username===null) ? " " : text.responseJSON.ContentWritingContest.second.username);// text.responseJSON.ContentWritingContest.second.username;
var photo_first= ((text.responseJSON.PhotographyContest.first.username===null) ? " " : text.responseJSON.PhotographyContest.first.username);
var photo_second= ((text.responseJSON.PhotographyContest.second.username===null) ? " " : text.responseJSON.PhotographyContest.second.username);
var souvenir_first= ((text.responseJSON.SouvenirContest.first.username===null) ? " " : text.responseJSON.SouvenirContest.first.username);
var souvenir_second= ((text.responseJSON.SouvenirContest.second.username===null) ? " " : text.responseJSON.SouvenirContest.second.username);
// Split username andd output first word iff length greater than 13
var content_first_user = ((content_first.length>13) ? content_first.split(" ")[0] : content_first );
var content_second_user = ((content_second.length>13) ? content_second.split(" ")[0] : content_second );
var photo_first_user = ((photo_first.length>13) ? photo_first.split(" ")[0] : photo_first );
var photo_second_user = ((photo_second.length>13) ? photo_second.split(" ")[0] : photo_second );
var souvenir_first_user = ((souvenir_first.length>13) ? souvenir_first.split(" ")[0] : souvenir_first );
var souvenir_second_user = ((souvenir_second.length>13) ? souvenir_second.split(" ")[0] : souvenir_second );
// Print Usernames
$("#content_first_username").text(content_first_user);
// $("#content_second_username").text(content_second_user);
$("#photo_first_username").text(photo_first_user);
$("#photo_second_username").text(photo_second_user);
$("#souvenir_first_username").text(souvenir_first_user);
// $("#souvenir_second_username").text(souvenir_second_user);
// Images
$("#content_img_first").attr("src", text.responseJSON.ContentWritingContest.first.image);
$("#photo_img_first").attr("src", text.responseJSON.PhotographyContest.first.image);
$("#photo_img_second").attr("src", text.responseJSON.PhotographyContest.second.image);
$("#souvenir_img_first").attr("src", text.responseJSON.SouvenirContest.first.image);
if (text.responseJSON.ContentWritingContest.second.image!==null){
$("#content_second_username").text(content_second_user);
$("#content_img_second").attr("src", text.responseJSON.ContentWritingContest.second.image);}
if (text.responseJSON.SouvenirContest.second.image!==null){
$("#souvenir_second_username").text(souvenir_second_user);
$("#souvenir_img_second").attr("src", text.responseJSON.SouvenirContest.second.image);}
// Post links
$(".content_first_likes_link").attr("href", text.responseJSON.ContentWritingContest.first.post);
$(".content_second_likes_link").attr("href", text.responseJSON.ContentWritingContest.second.post);
$(".photo_first_likes_link").attr("href", text.responseJSON.PhotographyContest.first.post);
$(".photo_second_likes_link").attr("href", text.responseJSON.PhotographyContest.second.post);
$(".souvenir_first_likes_link").attr("href", text.responseJSON.SouvenirContest.first.post);
$(".souvenir_second_likes_link").attr("href", text.responseJSON.SouvenirContest.second.post);
// Username links
$("#content_first_username_link").attr("href", text.responseJSON.ContentWritingContest.first.user_profile);
$("#content_second_username_link").attr("href", text.responseJSON.ContentWritingContest.second.user_profile);
$("#photo_first_username_link").attr("href", text.responseJSON.PhotographyContest.first.user_profile);
$("#photo_second_username_link").attr("href", text.responseJSON.PhotographyContest.second.user_profile);
$("#souvenir_first_username_link").attr("href", text.responseJSON.SouvenirContest.first.user_profile);
$("#souvenir_second_username_link").attr("href", text.responseJSON.SouvenirContest.second.user_profile);
});
//console.log(text.responseJSON.PhotographyContest);
//document.getElementById("photo_first").innerHTML = text.responseJSON.PhotographyContest.first.image;
</script>
</body>
<!--<script src="ranker.js"></script>-->
</html>