Use same header on public and teams interface
This commit is contained in:
parent
4efc90a5f0
commit
b6792f3b72
8 changed files with 57 additions and 77 deletions
|
|
@ -6,26 +6,7 @@
|
|||
{/block}
|
||||
|
||||
{block name=content}
|
||||
<div class="clock">
|
||||
<div id="ficlogo">
|
||||
<a href="http://www.forum-fic.com/">
|
||||
<img src="img/challenge.jpg" alt="Forum International de la Cybersécurité">
|
||||
</a>
|
||||
</div>
|
||||
<div id="epitalogo">
|
||||
<a href="http://www.epita.fr/">
|
||||
<img src="img/epita.png" alt="Epita">
|
||||
</a>
|
||||
</div>
|
||||
<div id="Date"></div>
|
||||
<ul>
|
||||
<li id="hours"></li>
|
||||
<li id="point">:</li>
|
||||
<li id="min"></li>
|
||||
<li id="point">:</li>
|
||||
<li id="sec"></li>
|
||||
</ul>
|
||||
</div>
|
||||
{include file="clock.tpl"}
|
||||
|
||||
<div class="container" style="margin-top: 25px">
|
||||
{if $ERRmessage}
|
||||
|
|
@ -67,32 +48,19 @@
|
|||
{/block}
|
||||
|
||||
{block name=end}
|
||||
<script src="/js/countdown.js"></script>
|
||||
<script type="text/javascript">
|
||||
var end_challenge = new Date({$END * 1000});
|
||||
{literal}
|
||||
function update_end()
|
||||
{
|
||||
var left = (end_challenge - new Date())/1000;
|
||||
$(document).ready(function() {
|
||||
update_end();
|
||||
$('#carousel-team').carousel({
|
||||
interval: 2000 });
|
||||
|
||||
if (left < 0) left = 0;
|
||||
|
||||
var heure = Math.floor(left / 3600);
|
||||
var min = Math.floor((left / 60) % 60);
|
||||
var sec = Math.floor(left % 60);
|
||||
|
||||
$("#hours").html(( heure < 10 ? "0" : "" ) + heure);
|
||||
$("#min").html(( min < 10 ? "0" : "" ) + min);
|
||||
$("#sec").html(( sec < 10 ? "0" : "" ) + sec);
|
||||
}
|
||||
$(document).ready(function() {
|
||||
update_end();
|
||||
$('#carousel-team').carousel({
|
||||
interval: 2000 });
|
||||
|
||||
setInterval( function() {
|
||||
update_end();
|
||||
}, 1000);
|
||||
});
|
||||
setInterval( function() {
|
||||
update_end();
|
||||
}, 1000);
|
||||
});
|
||||
{/literal}
|
||||
</script>
|
||||
{/block}
|
||||
|
|
|
|||
Reference in a new issue