What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-09-24 09:36:05
how to assign onEdit to specigfic tab
function onEdit(e) { var activeSheet = e.source.getActiveSheet(); var range = e.range; if (activeSheet.getName() !== "Inventory" || e.value !== "notify") return; range.setBackgroundColor('red'); var productname = ra... Add solution -
Javascript 2021-09-23 12:49:04
get user time using timezone javascript
function calcTime(city, offset) { // create Date object for current location var d = new Date(); // convert to msec // subtract local time zone offset // get UTC time in msec var utc = d.getTime() + (d.getTimezoneOffset() * 60000)... Add solution -
Javascript 2021-09-23 05:09:03
default value input date js
<!-- HTML --> <input type="date" id="theDate"> <script> // JQuery $(document).ready( function() { $('#theDate').val(new Date().toDateInputValue()); }); // Pure JS document.getElementById('theDate').v... Add solution -
-
Other 2021-09-22 23:36:02
how to hide dropdown on scrolling
window.onsrcoll = function(){ var position = 0; var scPos = (this.pageYOffset || document.documentElement.scrollTop) - (document.documentElement.clientTop || 0); position += scPos; if(position > scPos) { // code here to hide d... Add solution
Best helpers
Ranking is empty