-
Notifications
You must be signed in to change notification settings - Fork 3
/
bidding.html
1136 lines (1030 loc) · 29.7 KB
/
bidding.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
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
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Live Bidding | IEEE SIESGST & EDC SIESGST</title>
<!-- Meta tag Keywords -->
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta charset="UTF-8" />
<meta name="description" content="Live Bidding for events!" />
<meta
name="keywords"
content="IEEE, ieee, sies, gst, siesgst, official, student, website, about, more, information"
/>
<meta name="author" content="IEEE SIES GST Student Chapter" />
<!--whatsapp and fb-->
<meta
property="og:title"
content="Live Bidding | IEEE SIESGST & EDC SIESGST"
/>
<meta property="og:description" content="Live Bidding for Events" />
<meta property="og:url" content="https://ieeesiesgst.in/bidding2" />
<meta property="og:type" content="website" />
<meta
property="og:image"
content="https://ieeesiesgst.in/images/ieeeicon.png"
/>
<meta property="og:image:type" content="image/png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<meta property="og:image:alt" content="IEEE SIES GST" />
<!--twitter-->
<meta property="twitter:card" content="summary_large_image" />
<meta
property="twitter:title"
content="Live Bidding | IEEE SIESGST & EDC SIESGST"
/>
<meta
property="twitter:description"
content="Live Bidding for Events"
/>
<meta
property="twitter:image"
content="https://ieeesiesgst.in/images/ieeeicon.png"
/>
<!-- Chrome, Firefox OS and Opera -->
<meta name="theme-color" content="#000" />
<!-- Windows Phone -->
<meta name="msapplication-navbutton-color" content="#000" />
<!-- iOS Safari -->
<meta name="apple-mobile-web-app-status-bar-style" content="#000" />
<!-- //Meta tag Keywords -->
<!-- Custom-Files -->
<!-- CSS only -->
<link
rel="stylesheet"
href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z"
crossorigin="anonymous"
/>
<!-- JS, Popper.js, and jQuery -->
<script
src="https://code.jquery.com/jquery-3.5.1.min.js"
crossorigin="anonymous"
></script>
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"
></script>
<script
src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV"
crossorigin="anonymous"
></script>
<!-- Bootstrap-Core-CSS -->
<link
rel="stylesheet"
href="css/style.css"
type="text/css"
media="all"
/>
<!-- Style-CSS -->
<!-- font-awesome-icons -->
<link href="css/font-awesome.css" rel="stylesheet" />
<!-- //font-awesome-icons -->
<!-- /Fonts -->
<link
href="//fonts.googleapis.com/css?family=Poppins:100,100i,200,200i,300,300i,400,400i,500,500i,600,600i,700,700i,800,800i,900"
rel="stylesheet"
/>
<link
href="//fonts.googleapis.com/css?family=Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900"
rel="stylesheet"
/>
<!-- //Fonts -->
<link rel="shortcut icon" href="images/favicon.png" />
<link rel="icon" href="images/favicon.png" />
<link rel="apple-touch-icon" href="images/apple-touch-icon.png" />
<script type="text/javascript">
var inter;
var currentOffset = new Date().getTimezoneOffset();
var ISTOffset = 330;
const startDate = new Date(
new Date('Jan 24, 2021 12:00:00').getTime() -
(ISTOffset + currentOffset) * 60000
).getTime();
const countDownDate = new Date(
new Date('Jan 25, 2021 12:00:00').getTime() -
(ISTOffset + currentOffset) * 60000
).getTime();
function boom(res) {
var entity = res.entity;
var name = res.name;
var username = res.username;
var bid = res.bid;
var started = res.started;
var stat = [];
var no_stat = [],
no_bid = [],
no_name = [],
no_username = [];
var rem = [];
var final_name = [];
var final_username = [];
var final_bid = [];
var swap;
var stat_flag = 0;
var j, k, l;
var allow,
allow_add,
temp_set,
temp_bid,
temp_name,
temp_username,
temp_ent;
var allow_flag = false;
for (var z = 0; z < name.length; z++) {
if (started[z] == '0' || started[z] == 0) {
rem.push(z);
stat.push(-3);
continue;
}
temp_set = new Set(bid[z]);
if (temp_set.size != bid[z].length) {
stat.push(-1);
continue;
}
for (var x = 0; x < entity.length; x++) {
bid[z][x] = parseInt(bid[z][x], 10);
if (bid[z][x] < 40 || bid[z][x] > 100) {
stat.push(-2);
stat_flag = 1;
break;
}
}
if (stat_flag == 0) {
stat.push(0);
} else {
stat_flag = 0;
}
}
for (z = 0; z < rem.length; z++) {
no_stat.push(stat.splice(rem[z] - z, 1)[0]);
no_username.push(username.splice(rem[z] - z, 1)[0]);
no_name.push(name.splice(rem[z] - z, 1)[0]);
no_bid.push(bid.splice(rem[z] - z, 1)[0]);
}
allow = parseInt(name.length / entity.length, 10);
allow_add = (name.length % entity.length) - 1;
for (var i = 0; i < entity.length; i++) {
if (i % entity.length <= allow_add) {
allow++;
allow_flag = true;
}
temp_ent = [];
for (j = 0; j < name.length; j++) {
if (stat[j] != 0) {
continue;
}
if (Math.max(...bid[j]) == bid[j][i]) {
temp_ent.push(j);
}
}
temp_name = [];
temp_username = [];
temp_bid = [];
for (k = 0; k < temp_ent.length - 1; k++) {
for (l = k + 1; l < temp_ent.length; l++) {
if (bid[temp_ent[k]][i] < bid[temp_ent[l]][i]) {
swap = temp_ent[k];
temp_ent[k] = temp_ent[l];
temp_ent[l] = swap;
}
}
}
if (temp_ent.length <= allow) {
for (k = 0; k < temp_ent.length; k++) {
temp_name.push(name[temp_ent[k]]);
temp_username.push(username[temp_ent[k]]);
temp_bid.push(bid[temp_ent[k]][i]);
stat[temp_ent[k]] = 1;
bid[temp_ent[k]][i] = 0;
}
final_name.push(temp_name);
final_username.push(temp_username);
final_bid.push(temp_bid);
} else {
for (k = 0; k < temp_ent.length; k++) {
if (k < allow) {
temp_name.push(name[temp_ent[k]]);
temp_username.push(username[temp_ent[k]]);
temp_bid.push(bid[temp_ent[k]][i]);
stat[temp_ent[k]] = 1;
}
bid[temp_ent[k]][i] = 0;
}
final_name.push(temp_name);
final_username.push(temp_username);
final_bid.push(temp_bid);
}
if (allow_flag) {
allow_flag = false;
allow--;
}
}
var repeat, max, ind;
for (x = 0; x < name.length; x++) {
while (stat[x] == 0) {
for (var i = 0; i < entity.length; i++) {
if (i % entity.length <= allow_add) {
allow++;
allow_flag = true;
}
temp_ent = [];
for (j = 0; j < name.length; j++) {
if (stat[j] != 0) {
continue;
}
if (Math.max(...bid[j]) == bid[j][i]) {
temp_ent.push(j);
}
}
temp_name = [];
temp_username = [];
temp_bid = [];
for (k = 0; k < temp_ent.length - 1; k++) {
for (l = k + 1; l < temp_ent.length; l++) {
if (
bid[temp_ent[k]][i] <
bid[temp_ent[l]][i]
) {
swap = temp_ent[k];
temp_ent[k] = temp_ent[l];
temp_ent[l] = swap;
}
}
}
if (
temp_ent.length + final_bid[i].length <=
allow
) {
for (k = 0; k < temp_ent.length; k++) {
temp_name.push(name[temp_ent[k]]);
temp_username.push(username[temp_ent[k]]);
temp_bid.push(bid[temp_ent[k]][i]);
stat[temp_ent[k]] = 1;
bid[temp_ent[k]][i] = 0;
}
final_name[i].push(...temp_name);
final_username[i].push(...temp_username);
final_bid[i].push(...temp_bid);
} else {
for (k = 0; k < temp_ent.length; k++) {
if (k < allow - final_bid[i].length) {
temp_name.push(name[temp_ent[k]]);
temp_username.push(
username[temp_ent[k]]
);
temp_bid.push(bid[temp_ent[k]][i]);
stat[temp_ent[k]] = 1;
}
bid[temp_ent[k]][i] = 0;
}
final_name[i].push(...temp_name);
final_username[i].push(...temp_username);
final_bid[i].push(...temp_bid);
}
if (allow_flag) {
allow_flag = false;
allow--;
}
}
}
}
for (i = 0; i < final_bid.length; i++) {
for (j = 0; j < final_bid[i].length - 1; j++) {
for (k = j + 1; k < final_bid[i].length; k++) {
if (final_bid[i][j] < final_bid[i][k]) {
var swap = final_bid[i][j];
final_bid[i][j] = final_bid[i][k];
final_bid[i][k] = swap;
swap = final_name[i][j];
final_name[i][j] = final_name[i][k];
final_name[i][k] = swap;
swap = final_username[i][j];
final_username[i][j] = final_username[i][k];
final_username[i][k] = swap;
}
}
}
}
for (i = 0; i < name.length; i++) {
if (stat[i] != 1) {
for (j = 0; j < entity.length; j++) {
if (j % entity.length <= allow_add) {
allow++;
allow_flag = true;
}
if (final_name[j].length < allow) {
final_name[j].push(name[i]);
final_username[j].push(username[i]);
final_bid[j].push(100);
if (allow_flag) {
allow_flag = false;
allow--;
}
break;
}
if (allow_flag) {
allow_flag = false;
allow--;
}
}
}
}
if (document.getElementById('final').innerHTML == 'Final ') {
var st_index = name.length;
name = name.concat(no_name);
bid = bid.concat(no_bid);
stat = stat.concat(no_stat);
username = username.concat(no_username);
allow = parseInt(name.length / entity.length, 10);
allow_add = (name.length % entity.length) - 1;
for (i = st_index; i < name.length; i++) {
for (j = 0; j < entity.length; j++) {
if (j % entity.length <= allow_add) {
allow++;
allow_flag = true;
}
if (final_name[j].length < allow) {
final_name[j].push(name[i]);
final_username[j].push(username[i]);
final_bid[j].push(120);
if (allow_flag) {
allow_flag = false;
allow--;
}
break;
}
if (allow_flag) {
allow_flag = false;
allow--;
}
}
}
}
var text = '';
var markstart = '';
var markend = '';
for (i = 0; i < entity.length; i++) {
text +=
'<div class="col-md-6 col-12 pt-2"><p class="mb-1"><b>' +
entity[i] +
'</b>';
for (j = 0; j < final_name[i].length; j++) {
if (res.user == final_username[i][j]) {
markstart =
'<mark id="' +
res.user +
'" style="background-color: yellow; color: black;">';
markend = '</mark>';
} else {
markstart = '';
markend = '';
}
text +=
'<p class="mb-2 pt-1" style="line-height: 1.4em;">' +
markstart +
final_name[i][j] +
'<sub> (' +
final_username[i][j] +
')</sub> (' +
final_bid[i][j] +
')';
if (
stat[username.indexOf(final_username[i][j])] == -1
) {
text +=
'<br><small class="align-top text-danger mt-4"><b>(Equal Bids penalty)</b></small>';
} else if (
stat[username.indexOf(final_username[i][j])] == -2
) {
text +=
'<br><small class="align-top text-danger mt-4"><b>(Out of Parameters penalty)</b></small>';
} else if (
stat[username.indexOf(final_username[i][j])] == -3
) {
text +=
'<br><small class="align-top text-danger mt-4"><b>(Did not participate - 120 points penalty)</b></small>';
}
text += markend + '</p>';
}
text += '</p></div>';
}
document.getElementById('data').innerHTML = text;
}
function calc(res, mode) {
if (res.status == 0) {
alert(
'There was some server error!\nPlease try again or contact our team.\nPlease disable any Antivirus Protection Extension/Plugin that may block requests.\nSorry for inconvenience :('
);
location.reload();
return;
}
boom(res);
if (mode == 0) {
var inp = '';
for (var q = 0; q < res.entity.length; q++) {
inp +=
'<div class="col-lg-3 col-md-4 col-6"><label class="mt-lg-0 mt-2" for="inp' +
q +
'">' +
res.entity[q] +
'</label><span class="form-required"> *</span><input type="number" step="1" id="inp' +
q +
'" class="form-control bid-input" required></div>';
}
document.getElementById('form-inp').innerHTML = inp;
document.getElementById('loading-screen').style.display =
'none';
} else if (mode == 1) {
document.getElementById('loading-bid').style.display =
'none';
document
.getElementById('refresh')
.removeAttribute('disabled');
document
.getElementById('refresh')
.setAttribute('value', 'Refresh');
clearInterval(inter);
inter = setInterval(function () {
send_req(3);
}, 30000);
} else if (mode == 2) {
if (res.login == 0) {
alert('Bid Updated!');
} else if (res.login == 1) {
alert(
'User ID not found!\nPlease enter correct User ID.'
);
} else {
alert(
'Incorrect Password!\nPlease enter password provided by organizers.'
);
}
document
.getElementById('bid-sub')
.removeAttribute('disabled');
document
.getElementById('bid-sub')
.setAttribute('value', 'Submit Bid');
clearInterval(inter);
inter = setInterval(function () {
send_req(3);
}, 30000);
}
}
function send_req(mode) {
var serialJSON = {};
serialJSON['mode'] = mode + '';
serialJSON['loc'] = window.top.location.href;
var markexist = document.getElementsByTagName('mark');
if (markexist.length == 1) {
serialJSON['user'] = markexist[0].getAttribute('id');
} else {
serialJSON['user'] = '0';
}
if (mode == 0) {
document.getElementById('loading-screen').style.display =
'block';
} else if (mode == 1) {
document.getElementById('loading-bid').style.display =
'block';
document
.getElementById('refresh')
.setAttribute('disabled', '');
document
.getElementById('refresh')
.setAttribute('value', 'Refreshing');
} else if (mode == 2) {
var now = new Date().getTime();
var distance = countDownDate - now;
if (distance + 31000 < 0) {
alert('Bidding Time is over!');
return;
}
document
.getElementById('bid-sub')
.setAttribute('disabled', '');
document
.getElementById('bid-sub')
.setAttribute('value', 'Submitting');
serialJSON['username'] = document.getElementById(
'username'
).value;
serialJSON['password'] = document.getElementById(
'password'
).value;
var bids = document.getElementsByClassName('bid-input');
serialJSON['bid-len'] = bids.length + '';
for (var i = 0; i < bids.length; i++) {
serialJSON['inp' + i] = bids[i].value;
}
}
$.ajax({
url:
'https://script.google.com/macros/s/AKfycbw5r9McRTLQXuh61sL1Gh_cEVMlThiLA2x2jbeUTzfqicXr1R7KZUEI/exec',
data: serialJSON,
type: 'POST',
success: function (res) {
calc(res, mode);
},
error: function (res) {
alert(
'There was some server error!\nPlease try again or contact our team.\nPlease disable any Antivirus Protection Extension/Plugin that may block requests.\nSorry for inconvenience :('
);
location.reload();
}
});
}
</script>
</head>
<body>
<!-- mian-content -->
<div class="main-banner inner" id="home">
<!-- header -->
<header class="header">
<div class="container-fluid px-lg-5">
<!-- nav -->
<nav class="py-4">
<div id="logo">
<h1>
<a href="https://ieeesiesgst.in"
><img
id="ielogo"
src="images/ieeesiesblack.png"
/></a>
</h1>
</div>
<label for="drop" class="toggle">Menu</label>
<input type="checkbox" id="drop" />
<ul class="menu mt-2">
<li>
<a href="https://ieeesiesgst.in">Home</a>
</li>
<li>
<a
href="about.html"
style="
text-shadow: 0px 0px 4px #000 !important;
"
>About</a
>
</li>
<li><a href="events.html">Events</a></li>
<li>
<!-- First Tier Drop Down -->
<label for="drop-2" class="toggle"
>Explore
<span
class="fa fa-angle-down"
aria-hidden="true"
></span>
</label>
<a href="#"
>Explore
<span
class="fa fa-angle-down"
aria-hidden="true"
></span
></a>
<input type="checkbox" id="drop-2" />
<ul>
<li><a href="gallery.html">Gallery</a></li>
<li>
<a href="achievements.html"
>Achievements</a
>
</li>
<li><a href="wie.html">WIE</a></li>
<li><a href="mtts.html">MTT-S</a></li>
<li><a href="cs.html">CS</a></li>
<li>
<a href="techopedia/index.html"
>Techopedia 9.0</a
>
</li>
</ul>
</li>
<li><a href="team.html">Our Team</a></li>
<li><a href="contact.html">Contact</a></li>
</ul>
</nav>
<!-- //nav -->
</div>
</header>
<!-- //header -->
</div>
<div
id="loading-screen"
class="position-fixed w-100"
style="display: none"
>
<h3 id="loading-text" class="position-fixed">Loading...</h3>
</div>
<div class="container">
<div class="pt-sm-4 pt-3 pb-3 pb-sm-4">
<h1 class="text-center d-none d-sm-block">Live Bidding</h1>
<h3 class="text-center d-block d-sm-none">Live Bidding</h3>
</div>
</div>
<div class="container">
<form
class="pb-2"
id="bid-form"
style="display: none"
autocomplete="off"
action="javascript: void(0)"
>
<p class="text-center"><b>Instructions:</b></p>
<p class="text-center">
The purpose of bidding is to divide the entities among each
team based on their priority order and
<b>at the cost of your POINTS</b>. The value you enter for
the entity that gets alloted to you will be deducted from
your final competition score!
<br />
<b>Step 1:</b>
<br />
Create your priority order among the entities.
<br />
<b>Step 2:</b>
<br />
Enter your username and password and fill up values for each
entity as per your priority order. (Values must be between
40 and 100 inclusive)
<br />
<b class="text-danger"
>The value that you enter for entity that you will be
assigned at the end of bidding will be deducted from
your total score at the end of event!</b
>
<br />
<b>Step 3:</b>
<br />
See if your team-name is seen under your desired entity.
<br />
(It will be highlighted)
<br />
If you did not get your top priority, look for your
team-name under your 2<sup>nd</sup> priority entity and so
on.
<br />
<b class="text-danger"
>You can change your entered bid any time to get your
desired entity <u>before bidding stops</u>.</b
>
</p>
<p class="text-center"><b>Constraints of Bidding</b></p>
<p class="text-center">
No 2 bids can be equal since the values will determine
priority order.
<br />
Bidding for each entity is compulsory and each bid has to be
between 40 and 100 (inclusive).
<br />
You need to submit at least 1 valid bid to avoid any kind of
penalty!
<br />
<b class="text-danger"
>Failing to follow these constraints will result into
full 100 points penalty.</b
>
</p>
<p class="text-center">
<b>Note:</b>
<br />
<span class="text-danger">
The status of allotment can change anytime according to
the data entered by other participants. So make sure you
keep a watch till bidding ends.
</span>
<br />
<span class="text-danger">
The bidding results refresh every 30 seconds.<br />You
might want to press the refresh button and view current
status before you submit your bid!
</span>
</p>
<div class="form-row">
<div class="col-sm-6 col-12">
<label for="username">User ID</label
><span class="form-required"> *</span>
<input
type="text"
id="username"
class="form-control"
placeholder="Enter User ID"
required
/>
<small class="form-text text-muted"
>Enter User ID provided by event organizers</small
>
</div>
<div class="col-sm-6 col-12">
<label for="password" class="pt-2 pt-sm-0"
>Password</label
><span class="form-required"> *</span>
<input
type="password"
id="password"
class="form-control"
placeholder="Password"
required
/>
<small class="form-text text-muted"
>Enter password provided by event organizers</small
>
</div>
<div class="col-12 pt-3 pb-1 pb-lg-3">
<h5>Enter Your Bids below:</h5>
</div>
</div>
<div class="form-row" id="form-inp"></div>
<div class="mt-3 text-center">
<div>
<p class="text-danger mb-0" id="bid-close-in">
Bidding Closes in: <span id="timer"></span>
</p>
</div>
<input
type="submit"
id="bid-sub"
class="btn btn-danger"
value="Submit Bid"
/>
</div>
</form>
<div id="bid-end" class="text-center" style="display: none">
<h5 class="text-danger">Bidding has Ended</h5>
</div>
<div id="bid-start" class="text-center" style="display: none">
<h5>
Bidding starts in:<br /><span
id="start-timer"
class="text-danger"
></span>
</h5>
</div>
</div>
<hr />
<div class="container pb-4 pt-2" id="bid-status">
<h5 class="pb-2"><span id="final"></span>Bidding Status:</h5>
<button
type="button"
class="btn-sm btn btn-success"
id="refresh"
onclick="send_req(1);"
>
Refresh
</button>
<br />
<small class="text-danger" id="r-text"
>Refreshes every 30 seconds.</small
>
<p>
<small
><b class="d-inline-block">Display Format:</b>
<span class="d-inline-block"
>Team_name<sub>(Team_user_id)</sub>
(Bidding_value)</span
></small
>
</p>
<div class="position-relative">
<div
id="loading-bid"
class="position-absolute w-100"
style="display: none"
>
<h3 class="text-center pt-5">Loading...</h3>
</div>
<div class="row" id="data"></div>
</div>
</div>
<!--footer -->
<footer>
<section class="footer footer_1its py-5">
<div class="container py-md-4">
<div class="row footer-top mb-md-5 mb-4">
<div class="col-lg-4 col-md-6 footer-grid_section_1its">
<div class="footer-title-w3ls">
<h3>Reach Out to Us</h3>
</div>
<div class="footer-text">
<p>
<b>Address</b> : SIES Graduate School of
Technology, Plot 1-C D & E, Sector-V, Navi
Mumbai, Maharashtra 400706
</p>
<p><b>Phone</b> : +91 9167923446</p>
<p>
<b>Email</b> :
<a href="mailto:[email protected]"
>
</p>
</div>
</div>
<div
class="col-lg-4 col-md-6 mt-md-0 mt-4 footer-grid_section_1its"
>
<div class="footer-title-w3ls">
<h3>Catch On</h3>
</div>
<p>
Always Open on following Social sites, feel free
to check out.
</p>
<ul class="social_section_1info">
<li class="mb-2 instagram">
<a
href="https://www.instagram.com/ieeesiesgst/"
><span
class="fa fa-instagram mr-1"
></span
>Instagram</a
>
</li>
<li class="mb-2 youtube">
<a
href="https://www.youtube.com/channel/UCXAeBcDQQBiuVtzn4ke-Xsw"
><span
class="fa fa-youtube-play mr-1"
></span
>YouTube</a
>
</li>
<li class="mb-2 facebook">
<a
href="https://m.facebook.com/ieeesiesgstofficial/"
><span
class="fa fa-facebook mr-1"
></span
>Facebook</a
>
</li>
<li class="mb-2 linkedin">
<a
href="https://www.linkedin.com/mwlite/company/ieee-gst"
><span
class="fa fa-linkedin mr-1"
></span
>LinkedIn</a
>
</li>
<li class="mb-2 github">
<a href="https://github.com/ieeesiesgst"
><span class="fa fa-github mr-1"></span
>GitHub</a
>
</li>
</ul>
</div>
<div
class="col-lg-4 col-md-12 mt-lg-0 mt-4 col-sm-12 footer-grid_section_1its"
>
<div class="footer-title-w3ls">
<h3>Newsletter</h3>
</div>
<div class="footer-text">
<p>
By subscribing to our mailing list you will
always get latest news and updates from us.
</p>
<form
action="https://docs.google.com/forms/u/1/d/e/1FAIpQLSfRha9CA1euCfDGVMFK6Z7V0MzWCQV5p6KAOFcHi7L4lj_LMA/formResponse"
target="_self"
method="POST"
>
<input
type="email"
name="entry.1307177627"