Diferență între revizuiri ale paginii „MediaWiki:Common.js”
De la Drept Autor
Sam (discuție | contribuții) Etichetă: Revenit |
Sam (discuție | contribuții) Etichetă: Revenit |
||
Linia 2: | Linia 2: | ||
$(function () { | $(function () { | ||
var myElement = document.getElementById('form-subscribe-newsletter'); | var myElement = document.getElementById('form-subscribe-newsletter'); | ||
myElement.innerHTML = '< | 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> '; }());