PluginProbe
Importify – AI Dropshipping for WooCommerce / 1.0.8
Importify – AI Dropshipping for WooCommerce v1.0.8
1.0.19 trunk 1.0.0 1.0.1 1.0.10 1.0.11 1.0.12 1.0.13 1.0.14 1.0.16 1.0.17 1.0.18 1.0.2 1.0.3 1.0.4 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9
importify / assets / js / script.js

script.js in Importify – AI Dropshipping for WooCommerce 1.0.8, at assets/js/script.js

25 lines 782 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 jQuery(document).ready(function()
2 {
3 if (window.location.href.indexOf("&autologin=true") > 0)
4 {
5 $("#importifyLoginBtn").trigger('click');
6 }
7 });
8
9 function importifyGetUrlVars(url)
10 {
11 var vars = {};
12 var parts = url.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
13 vars[key] = value;
14 });
15 return vars;
16 }
17
18 function importifyPopifyVideo(event, element)
19 {
20 event.preventDefault();
21
22 var url = $(element).attr('data-video');
23 var parts = popifyGetUrlVars(url);
24 $('#importifyLeftVideos').html('<iframe src="https://www.youtube.com/embed/'+parts.v+'" style="padding-left:22px; margin-top:34px; max-width: 100%;" width="460" height="249" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>');
25 }