{"id":430,"date":"2023-04-05T08:16:32","date_gmt":"2023-04-05T08:16:32","guid":{"rendered":"https:\/\/shtheme.com\/demosd\/pontus\/?page_id=430"},"modified":"2023-04-07T04:35:55","modified_gmt":"2023-04-07T04:35:55","slug":"coming-soon","status":"publish","type":"page","link":"https:\/\/shtheme.com\/demosd\/pontus\/?page_id=430","title":{"rendered":"Coming Soon"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"430\" class=\"elementor elementor-430\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-a144939 elementor-section-full_width elementor-section-height-default elementor-section-height-default\" data-id=\"a144939\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-no\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-e644684\" data-id=\"e644684\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-d0a3e1c elementor-align-left elementor-widget elementor-widget-bdevs-coming-soon\" data-id=\"d0a3e1c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"bdevs-coming-soon.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t    <div class=\"content-section white-section padding-top-bottom\">    \r\n        <div class=\"container\"> \r\n                        <div class=\"sixteen columns\">\r\n                <div class=\"countdown-text\">\r\n                    <h5>we are almost ready<\/h5>\r\n                <\/div>\r\n            <\/div>  \r\n                        <div class=\"sixteen columns\">\r\n                <ul class=\"countdown\">\r\n                    <li> \r\n                        <span class=\"days\">00<\/span>\r\n                        <p class=\"days_ref\">days<\/p>\r\n                    <\/li>\r\n                    <li class=\"seperator\">.<\/li>\r\n                    <li>\r\n                        <span class=\"hours\">00<\/span>\r\n                        <p class=\"hours_ref\">hours<\/p>\r\n                    <\/li>\r\n                    <li class=\"seperator\">:<\/li>\r\n                    <li> \r\n                        <span class=\"minutes\">00<\/span>\r\n                        <p class=\"minutes_ref\">minutes<\/p>\r\n                    <\/li>\r\n                    <li class=\"seperator\">:<\/li>\r\n                    <li>\r\n                        <span class=\"seconds\">00<\/span>\r\n                        <p class=\"seconds_ref\">seconds<\/p>\r\n                    <\/li>\r\n                <\/ul>\r\n            <\/div>\r\n        <\/div>  \r\n    <\/div>\r\n    <script type=\"text\/javascript\">\r\n    jQuery( document ).ready(function() {\r\n    (function ($) {\r\n    $.fn.downCount = function (options, callback) {\r\n        var settings = $.extend({\r\n                date: null,\r\n                offset: null\r\n            }, options);\r\n\r\n        \/\/ Throw error if date is not set\r\n        if (!settings.date) {\r\n            $.error('Date is not defined.');\r\n        }\r\n\r\n        \/\/ Throw error if date is set incorectly\r\n        if (!Date.parse(settings.date)) {\r\n            $.error('Incorrect date format, it should look like this, 12\/24\/2012 12:00:00.');\r\n        }\r\n\r\n        \/\/ Save container\r\n        var container = this;\r\n\r\n        \/**\r\n         * Change client's local date to match offset timezone\r\n         * @return {Object} Fixed Date object.\r\n         *\/\r\n        var currentDate = function () {\r\n            \/\/ get client's current date\r\n            var date = new Date();\r\n\r\n            \/\/ turn date to utc\r\n            var utc = date.getTime() + (date.getTimezoneOffset() * 60000);\r\n\r\n            \/\/ set new Date object\r\n            var new_date = new Date(utc + (3600000*settings.offset))\r\n\r\n            return new_date;\r\n        };\r\n\r\n        \/**\r\n         * Main downCount function that calculates everything\r\n         *\/\r\n        function countdown () {\r\n            var target_date = new Date(settings.date), \/\/ set target date\r\n                current_date = currentDate(); \/\/ get fixed current date\r\n\r\n            \/\/ difference of dates\r\n            var difference = target_date - current_date;\r\n\r\n            \/\/ if difference is negative than it's pass the target date\r\n            if (difference < 0) {\r\n                \/\/ stop timer\r\n                clearInterval(interval);\r\n\r\n                if (callback && typeof callback === 'function') callback();\r\n\r\n                return;\r\n            }\r\n\r\n            \/\/ basic math variables\r\n            var _second = 1000,\r\n                _minute = _second * 60,\r\n                _hour = _minute * 60,\r\n                _day = _hour * 24;\r\n\r\n            \/\/ calculate dates\r\n            var days = Math.floor(difference \/ _day),\r\n                hours = Math.floor((difference % _day) \/ _hour),\r\n                minutes = Math.floor((difference % _hour) \/ _minute),\r\n                seconds = Math.floor((difference % _minute) \/ _second);\r\n\r\n                \/\/ fix dates so that it will show two digets\r\n                days = (String(days).length >= 2) ? days : '0' + days;\r\n                hours = (String(hours).length >= 2) ? hours : '0' + hours;\r\n                minutes = (String(minutes).length >= 2) ? minutes : '0' + minutes;\r\n                seconds = (String(seconds).length >= 2) ? seconds : '0' + seconds;\r\n\r\n            \/\/ based on the date change the refrence wording\r\n            var ref_days = (days === 1) ? 'day' : 'days',\r\n                ref_hours = (hours === 1) ? 'hour' : 'hours',\r\n                ref_minutes = (minutes === 1) ? 'minute' : 'minutes',\r\n                ref_seconds = (seconds === 1) ? 'second' : 'seconds';\r\n\r\n            \/\/ set to DOM\r\n            container.find('.days').text(days);\r\n            container.find('.hours').text(hours);\r\n            container.find('.minutes').text(minutes);\r\n            container.find('.seconds').text(seconds);\r\n\r\n            container.find('.days_ref').text(ref_days);\r\n            container.find('.hours_ref').text(ref_hours);\r\n            container.find('.minutes_ref').text(ref_minutes);\r\n            container.find('.seconds_ref').text(ref_seconds);\r\n        };\r\n        \r\n        \/\/ start\r\n        var interval = setInterval(countdown, 1000);\r\n    };\r\n    })(jQuery);\r\n    (function($) { \"use strict\"; \r\n        \/\/Timer\r\n        $('.countdown').downCount({\r\n            date: '04\/07\/2025 9:17:00',\r\n            offset: +10\r\n        }, function () {\r\n            alert('WOOT WOOT, done! ');\r\n        });      \r\n    })(jQuery);\r\n    });\r\n    <\/script>\r\n    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>we are almost ready 00 days . 00 hours : 00 minutes : 00 seconds<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"page-templates\/coming-soon.php","meta":{"footnotes":""},"class_list":["post-430","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/pages\/430","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=430"}],"version-history":[{"count":34,"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/pages\/430\/revisions"}],"predecessor-version":[{"id":621,"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=\/wp\/v2\/pages\/430\/revisions\/621"}],"wp:attachment":[{"href":"https:\/\/shtheme.com\/demosd\/pontus\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=430"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}