Skip to content

Commit 076f3e8

Browse files
author
Kátia Nakamura
committed
template: fix timer.js to use counter down model
1 parent a07de70 commit 076f3e8

File tree

3 files changed

+22
-28
lines changed

3 files changed

+22
-28
lines changed

pyconbalkan/core/static/css/style.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,4 +243,20 @@ ul.countdown li div {
243243

244244
#attend {
245245
width: auto;
246+
}
247+
248+
.blue {
249+
font-weight: 900;
250+
color: #53A8DC;
251+
}
252+
253+
.yellow {
254+
font-weight: 900;
255+
color: #F9D768;
256+
}
257+
258+
.white {
259+
color: #FFFFFF;
260+
font-size: 32px;
261+
font-weight: bold;
246262
}

pyconbalkan/core/static/js/timer.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
// Set the date we're counting down to
2-
var countDownDate = new Date("May 15, 2018 00:00:01").getTime();
3-
41
// Update the count down every 1 second
52
var x = setInterval(function() {
63

pyconbalkan/core/templates/home.html

Lines changed: 6 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<!--[if IE 9]> <html lang="en" class="ie9"> <![endif]-->
55
<!--[if !IE]><!--> <html lang="en"> <!--<![endif]-->
66
<head>
7-
<title>PyCon Balkan 2018</title>
7+
<title>{{ conference.event }} {{ conference.name }} {{ conference.year }}</title>
88
<!-- Meta -->
99
<meta charset="utf-8">
1010
<meta http-equiv="X-UA-Compatible" content="IE=edge">
@@ -20,8 +20,9 @@
2020
<link rel="stylesheet" href="{% static 'css/style.css' %}">
2121

2222
<!-- Timer JS -->
23+
<!-- Set the date we're counting down to -->
24+
<script type="text/javascript"> var countDownDate = parseInt("{{ count_down.count_down|date:"U" }}".concat("000"));</script>
2325
<script src="{% static 'js/timer.js' %}" type="text/javascript"></script>
24-
<script src="{% static 'js/index.js' %}" type="text/javascript"></script>
2526

2627
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
2728
<!--[if lt IE 9]>
@@ -30,28 +31,6 @@
3031
<![endif]-->
3132
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,700,900"
3233
rel="stylesheet">
33-
<style>
34-
body {
35-
font-family: Montserrat, sans-serif;
36-
}
37-
.blue {
38-
font-weight: 900;
39-
color: #53A8DC;
40-
}
41-
.yellow {
42-
font-weight: 900;
43-
color: #F9D768;
44-
}
45-
.black {
46-
font-size: 48px;
47-
font-weight: bold;
48-
}
49-
.white {
50-
color: #FFFFFF;
51-
font-size: 36px;
52-
font-weight: bold;
53-
}
54-
</style>
5534
</head>
5635

5736
<body>
@@ -62,9 +41,10 @@
6241
<div class="col-md-11 offset-0">
6342
<nav class="navbar navbar-light navbar-expand-md bg-faded justify-content-center">
6443
<div class="navbar navbar-header mr-auto">
65-
<a class="navbar-brand" href="#"><img src="{% static 'img/logo.jpg' %}"></a>
44+
<a class="navbar-brand" href="/#"><img src="{% static 'img/logo.jpg' %}"></a>
6645
</div>
6746
<ul class="nav navbar-nav ml-auto w-100 justify-content-end mb-5 pb-3">
47+
<li><a class="btn btn-light btn-sm round" href="/#" role="button">Home</a></li>
6848
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">News</a></li>#}
6949
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">CFP</a></li>#}
7050
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Sponsoring</a></li>#}
@@ -75,6 +55,7 @@
7555
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">FAQ</a></li>#}
7656
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">About</a></li>#}
7757
{# <li><a class="btn btn-light btn-sm round" href="#" role="button">Contact</a></li>#}
58+
<li><a class="btn btn-light btn-sm round" href="/organizers" role="button">Organizers</a></li>
7859
<li><a class="btn btn-light btn-sm round" href="/coc" role="button">CoC</a></li>
7960
</ul>
8061
</nav>

0 commit comments

Comments
 (0)