assets/js
account
4 days ago
customize
4 days ago
display
4 days ago
editor
4 days ago
feed
4 days ago
filter
4 days ago
network
4 days ago
support
4 days ago
theme
4 days ago
upgrade
4 days ago
vendor
4 days ago
widget
4 days ago
confirm_dialog.js
4.5 KB
4 days ago
dialog.form.js
10.6 KB
4 days ago
lazyload.js
4.9 KB
4 days ago
loader.js
1.3 KB
4 days ago
tagembed.common.js
25.0 KB
4 days ago
tagembed.deactive.js
9.2 KB
4 days ago
toast.js
3.0 KB
4 days ago
loader.js in Tagembed: Social Media Feeds and Customer Reviews Widget 7.9, at assets/js/loader.js
| 1 | let __tagembedLoaderImageCustomPath = __tagembed__pluginLoaderImageUrlObj.__tagembed__pluginLoaderImageUrl + 'assets/images/loader.gif'; |
| 2 | if (typeof __tagembed__plugin_url_for_js != "undefined") { |
| 3 | __tagembedLoaderImageCustomPath = __tagembed__plugin_url_for_js + 'assets/images/loader.gif'; |
| 4 | } |
| 5 | function __tagembed__open_loader(text = '', loaderImage = '') { |
| 6 | text = (text) ? text : 'Please Wait...'; |
| 7 | loaderImage = (loaderImage) ? loaderImage : __tagembedLoaderImageCustomPath; |
| 8 | document.body.style.cursor = "wait"; |
| 9 | /* Built with DOM methods so no markup is produced from the arguments. */ |
| 10 | let overlay = document.createElement('div'); |
| 11 | overlay.setAttribute('id', '__tagembed__loader'); |
| 12 | overlay.className = '__tagembed__loader-overlay'; |
| 13 | let inner = document.createElement('div'); |
| 14 | inner.className = '__tagembed__loader'; |
| 15 | let image = document.createElement('img'); |
| 16 | image.setAttribute('src', loaderImage); |
| 17 | inner.appendChild(image); |
| 18 | inner.appendChild(document.createElement('br')); |
| 19 | inner.appendChild(document.createTextNode(text)); |
| 20 | overlay.appendChild(inner); |
| 21 | document.body.appendChild(overlay); |
| 22 | } |
| 23 | function __tagembed__close_loader() { |
| 24 | document.body.style.cursor = "auto"; |
| 25 | let elem = document.querySelector('#__tagembed__loader'); |
| 26 | elem.remove(); |
| 27 | } |