ElEditors, Interface administrators, Administrators
70,866
edits
No edit summary |
No edit summary |
||
Line 334: | Line 334: | ||
$("#ca-ve-edit").hide(); | $("#ca-ve-edit").hide(); | ||
jQuery.loadScript = function (url, callback) { | // jQuery.loadScript = function (url, callback) { | ||
// jQuery.ajax({ | |||
// url: url, | |||
// dataType: 'script', | |||
// success: callback, | |||
// async: true | |||
// }); | |||
} | // } | ||
$.loadScript('https://unpkg.com/@popperjs/core@2.11.6/dist/umd/popper.min.js', function(){ | // $.loadScript('https://unpkg.com/@popperjs/core@2.11.6/dist/umd/popper.min.js', function(){ | ||
// $.loadScript('https://unpkg.com/tippy.js@6.3.7/dist/tippy-bundle.umd.min.js', function(){ | |||
// tippy('[data-tippy-content]', { | |||
// interactive: true | |||
// }); | |||
// }); | |||
}); | // }); | ||
}); | }); | ||
var loadJS = function(url, implementationCode, location){ | |||
var scriptTag = document.createElement('script'); | |||
scriptTag.src = url; | |||
scriptTag.onload = implementationCode; | |||
scriptTag.onreadystatechange = implementationCode; | |||
location.appendChild(scriptTag); | |||
}; | |||
var popperLoaded = function() { | |||
var tippyLoaded = function() { | |||
tippy('[data-tippy-content]', { | |||
interactive: true | |||
}); | |||
}; | |||
loadJS('https://unpkg.com/tippy.js@6.3.7/dist/tippy-bundle.umd.min.js', tippyLoaded, document.body); | |||
} | |||
loadJS('https://unpkg.com/@popperjs/core@2.11.6/dist/umd/popper.min.js', popperLoaded, document.body); | |||
docReady(function () { | docReady(function () { |