MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary Tag: Reverted |
||
| Line 10: | Line 10: | ||
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s); | ||
})(); | })(); | ||
$(document).ready(function() { | |||
var imageUrl = 'https://mintarc.com/img/logo_with_name.png'; // URL of your image | |||
var imgElement = $('<img>').attr('src', imageUrl).css({ | |||
'display': 'block', // Ensure it's a block-level element | |||
'margin': '0 auto', // Center horizontally | |||
'max-width': '200px', // Adjust as needed | |||
'max-height': '50px' // Adjust as needed | |||
}); | |||
$('.skin-minerva .header-chrome').append(imgElement); | |||
}); | |||
Revision as of 06:41, 8 February 2025
var _paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://matomo.mintarc.com/matomo/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '3']); // Replace '3' with your actual site ID
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
$(document).ready(function() {
var imageUrl = 'https://mintarc.com/img/logo_with_name.png'; // URL of your image
var imgElement = $('<img>').attr('src', imageUrl).css({
'display': 'block', // Ensure it's a block-level element
'margin': '0 auto', // Center horizontally
'max-width': '200px', // Adjust as needed
'max-height': '50px' // Adjust as needed
});
$('.skin-minerva .header-chrome').append(imgElement);
});