Diferență între revizuiri ale paginii „MediaWiki:Common.js”

De la Drept Autor
Etichetă: Revenit
Etichetă: Revenit
Linia 2: Linia 2:
$(function () {
$(function () {
var myElement = document.getElementById('form-subscribe-newsletter');
var myElement = document.getElementById('form-subscribe-newsletter');
myElement.innerHTML = '<iframe src="//connect.mediawrite.agency/form/19" width="300" height="300"><p>Your browser does not support iframes.</p></iframe>';
myElement.innerHTML = '<script type="text/javascript">
    /** This section is only needed once per page if manually copying **/
    if (typeof MauticSDKLoaded == 'undefined') {
        var MauticSDKLoaded = true;
        var head            = document.getElementsByTagName('head')[0];
        var script          = document.createElement('script');
        script.type        = 'text/javascript';
        script.src         = 'https://connect.mediawrite.agency/media/js/mautic-form.js';
        script.onload      = function() {
            MauticSDK.onLoad();
        };
        head.appendChild(script);
        var MauticDomain = 'https://connect.mediawrite.agency';
        var MauticLang  = {
            'submittingMessage': "Please wait..."
        }
    }else if (typeof MauticSDK != 'undefined') {
        MauticSDK.onLoad();
    }
</script>
';
}());
}());

Versiunea de la data 26 decembrie 2021 08:42

/* Any JavaScript here will be loaded for all users on every page load. */
$(function () {
	var myElement = document.getElementById('form-subscribe-newsletter');
	myElement.innerHTML = '<script type="text/javascript">
    /** This section is only needed once per page if manually copying **/
    if (typeof MauticSDKLoaded == 'undefined') {
        var MauticSDKLoaded = true;
        var head            = document.getElementsByTagName('head')[0];
        var script          = document.createElement('script');
        script.type         = 'text/javascript';
        script.src          = 'https://connect.mediawrite.agency/media/js/mautic-form.js';
        script.onload       = function() {
            MauticSDK.onLoad();
        };
        head.appendChild(script);
        var MauticDomain = 'https://connect.mediawrite.agency';
        var MauticLang   = {
            'submittingMessage': "Please wait..."
        }
    }else if (typeof MauticSDK != 'undefined') {
        MauticSDK.onLoad();
    }
</script>
';
}());