Countdown

by sinky

HTML

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-countdown/2.0.2/jquery.plugin.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-countdown/2.0.2/jquery.countdown.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-countdown/2.0.2/jquery.countdown-de.js"></script>
<div class="center">
<h1>Abflug nach New York</h1>
    <div id="c"></div>
    <div class="small">am 01.11.2018 um 10:35 Uhr</div>
</div>

CSS

body {
    font-family: sans-serif;
    font-size: 2em;
}
.center {
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
    text-align:center;
}
.small {
    font-size: 50%;
    color: #ccc;
}
/* jQuery Countdown styles 2.0.0. */
 .is-countdown {
    /*border: 1px solid #ccc;
    background-color: #eee;*/
    overflow: auto;
    display: inline-block;
}
.countdown-section {
    margin: .5em
}
}
.countdown-holding span {
    color: #888;
}
.countdown-row {
    clear: both;
    width: 100%;
    padding: 0px 2px;
    text-align: center;
}
.countdown-section {
    display: block;
    float: left;
    font-size: 75%;
    text-align: center;
}
.countdown-amount {
    font-size: 200%;
}
.countdown-period {
    display: block;
}
.countdown-descr {
    display: block;
    width: 100%;
}

JavaScript

fligth = new Date(2018, 11 - 1, 1, 10, 35);
$('#c').countdown({
    until: fligth
});