How to get the current scroll top position?
How to get the current scroll top position? Copy and past the following codes below to your JS file.
var current_scroll = window.scrollY; console.log( current_scroll );
See http://multidatespickr.sourceforge.net/ for the references. Copy and paste the code below. var today = new Date(); var availableDates = ["9-9-2011","14-9-2016","15-9-2016"]; $('#simple-select-min-max').multiDatesPicker({ beforeShowDay: available }); function available(date) { dmy = date.getDate() + "-" + (date.getMonth()+1) + "-" + date.getFullYear(); if ($.inArray(dmy, availableDates) != -1) { return [true, "","Available"]; } else { return [false,"","unAvailable"]; } }
Using the <video> tag, you can display the first image of a video but its not clickable and you can’t play the video. <video src="www.sample.com" width="300" height="150" type="video/mp4"></video> Example : Screenshot image Original videoVideo
How to get current product category slug? global $wp_query; echo $wp_query->query_vars['product_cat'];
Uncaught (in promise) TypeError: Illegal invocation error using jQuery ajax code. I don’t understand how this ajax JS parameters works but digging a deep research about the error shows me some correct solution. Here’s the code of mine that has `Uncaught (in promise) TypeError: Illegal invocation` error. JS code that has `Uncaught (in promise) TypeError:…
3 Columns HTML <div class="one-third first">Column 1</div> <div class="one-third">Column 2</div> <div class="one-third">Column 3</div> CSS .one-third { width: 32%; float: left; margin-left: 2%; } .first { margin-left: 0; } Use the HTML/CSS Column Generator for easy job.
Page Settings In every popup created, each of them has a dedicated page settings that applies only that specific popup. You can setup an awesome popup using this features. [wdes-popup-title id=”1603″ class=”button”] Shortcode attributes Popup Title Shortcode attributes id – (required) This is your popup ID, without this, the popup will not work. class –…