css: clock is now a css class
This commit is contained in:
parent
46aaa7cb4a
commit
f9237d2dcf
7 changed files with 15 additions and 15 deletions
|
|
@ -47,7 +47,7 @@
|
|||
<h3 style="margin:0"><strong ng-bind="s.params.title"></strong></h3>
|
||||
</div>
|
||||
<div ng-controller="TimerController" ng-init="s.params.end?init(s.params.end):initStart()">
|
||||
<div class="card-body text-center" style="font-size: 450%;" ng-if="duration > 0">{{ duration / 60 | time }} <span class="point">:</span> {{ duration % 60 | time }}</div>
|
||||
<div class="card-body text-center clock" style="font-size: 450%;" ng-if="duration > 0">{{ duration / 60 | time }} <span class="point">:</span> {{ duration % 60 | time }}</div>
|
||||
<div class="card-body text-center" style="font-size: 450%;" ng-if="!duration || duration <= 0">{{ s.params.lead }}</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -280,8 +280,8 @@
|
|||
</div>
|
||||
|
||||
<div style="box-shadow: 0px -5px 5px 5px #e9ecef; position: fixed; bottom: calc(14vh - 1px); right: 0; width: 33vw;" class="navbar bg-light" ng-controller="CountdownController">
|
||||
<div class="text-center" ng-if="time.hours === 0 || time.hours" style="margin-top: -5px;">
|
||||
<div id="clock" ng-class="{expired: time.expired, end: time.end}" style="font-size: 50px" ng-cloak>
|
||||
<div class="text-center" ng-if="time.hours === 0 || time.hours" style="margin-top: -5px; width: inherit">
|
||||
<div class="clock" ng-class="{expired: time.expired, end: time.end}" style="font-size: 50px" ng-cloak>
|
||||
<span id="hours">{{ time.hours | time }}</span>
|
||||
<span class="point">:</span>
|
||||
<span id="min">{{ time.minutes | time }}</span>
|
||||
|
|
@ -289,12 +289,12 @@
|
|||
<span id="sec">{{ time.seconds | time }}</span>
|
||||
</div>
|
||||
<div style="font-size: 18px; margin-top: -15px; text-shadow: 0 0 6px #446688;">
|
||||
<span ng-if="!time.end && time.duration != time.remaining">Temps restant du challenge forensic</span>
|
||||
<span ng-if="!time.end && time.duration == time.remaining">Le challenge forensic va bientôt commencer !</span>
|
||||
<span ng-if="!time.end && !startIn">Temps restant du challenge forensic</span>
|
||||
<span ng-if="!time.end && startIn">Le challenge forensic va bientôt commencer !</span>
|
||||
<span ng-if="time.end">Le challenge forensic est terminé !</span>
|
||||
</div>
|
||||
</div>
|
||||
<div id="clock" class="col-sm-6" ng-if="!(time.hours === 0 || time.hours)">
|
||||
<div class="clock" class="col-sm-6" ng-if="!(time.hours === 0 || time.hours)">
|
||||
{{ time.start | date:"shortDate" }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
Reference in a new issue