PluginProbe
Vision – Interactive Image Map with Hotspots Builder / trunk
Vision – Interactive Image Map with Hotspots Builder vtrunk
1.12.2 1.12.1 1.12.0 1.11.0 1.6.0 1.6.1 1.6.2 1.7.1 1.7.2 1.7.3 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.9.0 1.9.1 1.9.2 1.9.3 1.9.4 1.9.5 1.9.6 1.9.7 1.9.8 All 33 releases
vision / assets / js / loader.js

loader.js in Vision – Interactive Image Map with Hotspots Builder trunk, at assets/js/loader.js

1 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 !function(e,t,r){"use strict";e(r).ready(function(n){if(!t.VISION||!t.VISION.WordPressLoaderInit){t.VISION?t.VISION.WordPressLoaderInit=!0:t.VISION={WordPressLoaderInit:!0};const o=r.getElementsByTagName("head").item(0),l="vision-effects-css",e=n("<link>"),s=n("<script>");e.attr({rel:"stylesheet",type:"text/css",href:vision_globals.plugin_base_url+"vision.css?ver="+vision_globals.plugin_version}).appendTo(o),s.appendTo(o),s.attr({type:"text/javascript",src:vision_globals.plugin_base_url+"jquery.vision.js?ver="+vision_globals.plugin_version}),n(".vision-map").each(function(e,s){const t=n(s).data("json-src");s=t&&-1!==t.indexOf("/preview/");const i={url:t,type:"GET",dataType:"json"};s&&(i.headers={"X-WP-Nonce":vision_globals.api.nonce}),n.ajax(i).done(function(e){if(e.flags.effects&&null==r.getElementById(l)){const s=n("<link>");s.attr({id:l,rel:"stylesheet",type:"text/css",href:vision_globals.effects_url+"?ver="+vision_globals.plugin_version}).appendTo(o)}if(e.theme&&null==r.getElementById("vision-theme-"+e.theme+"-css")){const t=n("<link>"),i=vision_globals.theme_base_url+e.theme+".css?ver="+vision_globals.version;t.attr({id:"vision-theme-"+e.theme+"-css",rel:"stylesheet",type:"text/css",href:i}).appendTo(o)}})})}})}(jQuery,window,document);