What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-12 16:07:04
get time from excel javascript
var exdate = 33970; // represents Jan 1, 1993 var e0date = new Date(0); // epoch "zero" date var offset = e0date.getTimezoneOffset(); // tz offset in min // calculate Excel xxx days later, with local tz offset var jsdate = new Date(0, 0, exdate... Add solution -
Other 2021-09-10 02:46:02
how to check if it is the current time day.js
document.getElementById('tmp_button-48523').addEventListener('click', function() { let d = new Date(); let localTime = d.getTime(); let localOffset = d.getTimezoneOffset() * 60000; let utc = localTime + localOffset; let target_offset = -7;//PST from UTC 7... Add solution -
Other 2021-09-04 05:06:01
simple button scrolling with this
// Select all »a« elements with a parent tag »nav« and add a function that is executed on click $('#id a').on('click', function (e) { // Define variable of the clicked »a« element (»this«) and get its hr... Add solution -
Other 2021-08-27 10:11:02
infinite scroll within a div
<script> $(function(){ $(window).scroll(function () { var $div = $(".scrollme"); var divPlacement = parseInt($div.offset().top + ... Add solution
Best helpers
Ranking is empty