Skip to main content

Posts

Showing posts with the label JavaScript Happy New Year Count down

Best SQL Query for Happy New Year [SQL Query]

In this article, I will explain some general SQL Server “Queries”. I think most of each developer wants to write a query to PRINT “ Happy New Year ” and sent to developers and team for their BEST WISHES. Due to this, I am tried to write a “ SQL Query ” and sharing with you! If you have any other smart query related to this (You can share to me and I will re-publish this post with your query!) The Query Example As, -- Simple Query SELECT CAST ( 0 X4861707079204E65772079656172 AS VARCHAR ( 100 )) AS 'Result' -- OR -- Some Stylish Query SELECT SPACE (TOTAL - LEN(REPLICATE( CHAR (CHARACTERS), NO ))) + REPLICATE( CHAR (CHARACTERS), NO * 2 - 1 ) as 'HappyNewYear' FROM ( SELECT TOP 5 ROW_NUMBER() OVER ( ORDER BY name) AS NO , 15 AS total, 214 AS CHARACTERS FROM sysobjects ) AS T UNION ALL SELECT SPACE ( 10 ) + CAST ( 0 X4861707079204E65772079656172 AS VARCHAR ( 100 )) Results :- Happy New year ...

“Happy New Year” Count Down [JavaScript Code]

In this post, I am going to share the “ JavaScript ” code sample download link to get “ Happy New Year! ” Count down watch. Actually, I am using a JavaScript functions to calculate and execute automatically your upcoming “ NEW YEAR ” Remaining times [ DAYS – HOURS – MINUTES - SECONDS ]. You can see the result after click in the below mention demo link. Stay Informed – Demo Link… Try the “ Live examples ” of the code shown in this page. Examples as, <script> $( function () { var initializeWatchClock = function (id, endtime) { var clock = document .getElementById(id); var daysSpan = clock.querySelector( '.days' ); var hoursSpan = clock.querySelector( '.hours' ); var minutesSpan = clock.querySelector( '.minutes' ); var secondsSpan = clock.querySelector( '.seconds' ); var updateWatchClock = function () { var t = getTimeRemaining(endtime); ...