Skip to content

Commit cdf2482

Browse files
committed
update timer
1 parent e3fe589 commit cdf2482

3 files changed

Lines changed: 62 additions & 10 deletions

File tree

‎KJPR17/index.html‎

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,20 @@
44
<meta charset="UTF-8">
55
<title>KJSCE PRACTICE ROUND 1</title>
66
<link rel="stylesheet" type="text/css" href="./main.css">
7-
7+
<!-- Latest compiled and minified CSS -->
8+
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
9+
10+
<!-- jQuery library -->
11+
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
12+
13+
<!-- Latest compiled JavaScript -->
14+
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
15+
816
</head>
917
<body>
10-
<h1>Countdown Clock</h1>
18+
<div class="center">
19+
<div class="block">
20+
<h1>Contest Starts in</h1>
1121
<div id="clockdiv">
1222
<div>
1323
<span class="days"></span>
@@ -25,8 +35,27 @@ <h1>Countdown Clock</h1>
2535
<span class="seconds"></span>
2636
<div class="smalltext">Seconds</div>
2737
</div>
28-
<br>
38+
<br><br>
39+
<div class="container-fluid" id="notblue">
40+
<div class="row">
41+
<div class="col-xs-12 col-md-3 col-lg-2"></div>
42+
<div class="col-xs-12 col-md-6 col-lg-12">
43+
<div class="row">
44+
<div class="col-xs-12 col-md-12 col-lg-6">
45+
<button class="btn btn-lg btn-primary btn-block" type="button" href="https://www.codechef.com/getting-started">Get Started</button>
46+
</div>
47+
<div class="col-xs-12 col-md-12 col-lg-6">
48+
<button class="btn btn-lg btn-primary btn-block" type="button" href="https://www.codechef.com/KCPR2016">Previous Contest</button>
49+
</div>
50+
</div>
51+
</div>
52+
<div class="col-xs-12 col-md-3 col-lg-2"></div>
53+
</div>
54+
55+
</div>
2956
</div>
57+
</div>
58+
</div>
3059
<script src="./main.js"></script>
3160
</body>
3261
</html>

‎KJPR17/main.css‎

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
body{
22
text-align: center;
3-
background: #ffcdd2;
3+
background: rgba(10, 144, 255, 0.4) !important;
44
font-family: sans-serif;
55
font-weight: 100;
66
}
77

8+
.center{
9+
display: flex;
10+
align-items: center;
11+
justify-content: center;
12+
height: 100vh;
13+
width: 100%;
14+
}
15+
.block{
16+
display: block;
17+
}
18+
819
h1{
9-
color: #d32f2f ;
20+
color: #4682B4 ;
1021
font-weight: 100;
1122
font-size: 40px;
12-
margin: 40px 0px 20px;
23+
margin-bottom: 10px;
24+
1325
}
1426

1527
#clockdiv{
28+
margin-top: 20px;
1629
font-family: sans-serif;
1730
color: #fff;
1831
display: inline-block;
@@ -24,18 +37,28 @@ h1{
2437
#clockdiv > div{
2538
padding: 10px;
2639
border-radius: 3px;
27-
background: #ff8a80;
40+
background: #00BFFF;
2841
display: inline-block;
2942
}
3043

3144
#clockdiv div > span{
3245
padding: 15px;
3346
border-radius: 3px;
34-
background: #f44336;
47+
background: #1E90FF;
3548
display: inline-block;
3649
}
3750

3851
.smalltext{
3952
padding-top: 5px;
4053
font-size: 16px;
54+
}
55+
#notblue{
56+
background: transparent !important;;
57+
}
58+
59+
button{
60+
margin: 2%;
61+
}
62+
#notblue > div{
63+
margin-top: 10px;
4164
}

‎KJPR17/main.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@ function initializeClock(id, endtime) {
3737
var timeinterval = setInterval(updateClock, 1000);
3838
}
3939
// count down timer:
40-
var deadline = new Date(Date.now() + 1 * 30 * 60 * 60 * 1000);
41-
initializeClock('clockdiv', deadline);
40+
var deadline = new Date(2017, 07, 27, 10, 00, 00, 00);
41+
initializeClock('clockdiv', deadline);

0 commit comments

Comments
 (0)