PATH:
home
/
lab2454c
/
foreclass.com
/
wp-content
/
plugins
/
ocean-elementor-widgets
/
assets
/
js
( function( $ ) { var WidgetoewCountdownHandler = function( $scope, $ ) { var $countdown = $scope.find( '.oew-countdown-wrap' ), $date = new Date( $countdown.data( 'date' ) * 1000 ), $timeInterval, $elements = { $daysSpan : $scope.find( '.oew-countdown-days' ), $hoursSpan : $scope.find( '.oew-countdown-hours' ), $minutesSpan : $scope.find( '.oew-countdown-minutes' ), $secondsSpan : $scope.find( '.oew-countdown-seconds' ) }; var getTime = function() { var $timeRemaining = $date - new Date(), $seconds = Math.floor( ( $timeRemaining / 1000 ) % 60 ), $minutes = Math.floor( ( $timeRemaining / 1000 / 60 ) % 60 ), $hours = Math.floor( ( $timeRemaining / ( 1000 * 60 * 60 ) ) % 24 ), $days = Math.floor( $timeRemaining / ( 1000 * 60 * 60 * 24 ) ); if ( $days < 0 || $hours < 0 || $minutes < 0 ) { seconds = $minutes = $hours = $days = 0; } return { total: $timeRemaining, parts: { days: $days, hours: $hours, minutes: $minutes, seconds: $seconds } }; }; var updateClock = function() { $.each( getTime().parts, function( timePart ) { var $element = $elements[ '$' + timePart + 'Span' ], $partValue = this.toString(); if ( 1 === $partValue.length ) { $partValue = 0 + $partValue; } if ( $element.length ) { $element.text( $partValue ); } } ); if ( getTime().total <= 0 ) { clearInterval( $timeInterval ); } }; var initializeClock = function() { updateClock(); $timeInterval = setInterval( updateClock, 1000 ); }; initializeClock(); }; // Make sure we run this code under Elementor $( window ).on( 'elementor/frontend/init', function() { elementorFrontend.hooks.addAction( 'frontend/element_ready/oew-countdown.default', WidgetoewCountdownHandler ); } ); } )( jQuery );
[-] scroll-up.js
[edit]
[-] appear.js
[edit]
[-] off-canvas.js
[edit]
[-] member.min.js
[edit]
[-] alert.min.js
[edit]
[-] typed.min.js
[edit]
[-] navbar.js
[edit]
[-] hotspots.js
[edit]
[-] asPieProgress.min.js
[edit]
[-] blog-grid.js
[edit]
[-] hotspots.min.js
[edit]
[+]
..
[-] modal.js
[edit]
[-] blog-grid.min.js
[edit]
[-] instagram.js
[edit]
[-] twentytwenty.js
[edit]
[-] countdown.min.js
[edit]
[-] woo-slider.min.js
[edit]
[-] modal.min.js
[edit]
[-] google-map.min.js
[edit]
[-] image-comparison.js
[edit]
[-] blog-carousel.js
[edit]
[-] search.min.js
[edit]
[-] image-comparison.min.js
[edit]
[-] skillbar.js
[edit]
[-] event.move.js
[edit]
[-] instagram.min.js
[edit]
[-] skillbar.min.js
[edit]
[-] toggle.js
[edit]
[-] tabs.js
[edit]
[-] circle-progress.min.js
[edit]
[-] accordion.js
[edit]
[-] accordion.min.js
[edit]
[-] morphext.min.js
[edit]
[-] alert.js
[edit]
[-] navbar.min.js
[edit]
[-] morphext.js
[edit]
[-] search.js
[edit]
[-] countdown.js
[edit]
[-] image-gallery.js
[edit]
[-] off-canvas.min.js
[edit]
[-] appear.min.js
[edit]
[-] isotope.min.js
[edit]
[-] tooltip.min.js
[edit]
[-] newsletter.min.js
[edit]
[-] query-post.js
[edit]
[-] event.move.min.js
[edit]
[-] query-post.min.js
[edit]
[-] member.js
[edit]
[-] search-icon.js
[edit]
[-] slick.js
[edit]
[-] woo-slider.js
[edit]
[-] isotope.js
[edit]
[-] blog-carousel.min.js
[edit]
[-] tabs.min.js
[edit]
[-] asPieProgress.js
[edit]
[-] circle-progress.js
[edit]
[-] image-gallery.min.js
[edit]
[-] twentytwenty.min.js
[edit]
[-] search-icon.min.js
[edit]
[-] toggle.min.js
[edit]
[-] google-map.js
[edit]
[-] scroll-up.min.js
[edit]
[-] typed.js
[edit]
[-] newsletter.js
[edit]
[-] tooltip.js
[edit]