Posts

Showing posts from September, 2018

Simple JavaScript Countdown Timer

Image
This tutorial will go over a simple dynamic countdown timer using JavaScript. Example of a countdown timer using the code below HTML + JavaScript <p id="showDate"></p>     <script>         var countDownDate = new Date("Jun 18, 2019 17:37:00").getTime();         var x = setInterval(function () {         var now = new Date().getTime();         var distance = countDownDate - now;         var days = Math.floor(distance / (1000 * 60 * 60 * 24));         var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));         var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60));         var seconds = Math.floor((distance % (1000 * 60)) / 1000);         document.getElementById("showDate").innerHTML = days + "d " + hours + "h "   ...

Creating a Blockquote

Image
Creating a blockquote can make a more impactful article by drawing visual attention to important information in a stylistic and professional way. Example of a blockquote CSS blockquote{     display:block;     background: #fff;     padding: 15px 20px 15px 45px;     margin: 0 0 20px;     position: relative;     font-size: 14px;     line-height: 1.2;     color: #666;     border-left-style: solid;     border-left-width: 15px;     border-right-style: solid;     border-right-width: 2px; } blockquote::before{     content: "\201C";     font-family: Georgia, serif;     font-size: 60px;     font-weight: bold;     color: #FF9540;     position: absolute;     left: 10px;     top:5px; } blockquote::after{     content: "\201D";     font-family: Geo...