MediaWiki:Common.js: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary Tag: Reverted |
||
| Line 11: | Line 11: | ||
// Append the div to the body | // Append the div to the body | ||
document.body.appendChild(imageDiv); | document.body.appendChild(imageDiv); | ||
}); | |||
$(document).ready(function() { | |||
var pageTitle = "Welcome to the Skullgirls Wiki Folks"; | |||
if (document.title === pageTitle) { | |||
var imageDiv = document.createElement('div'); | |||
imageDiv.className = 'upper-left-image'; | |||
imageDiv.innerHTML = '<a href="Kyle" title="Image"><img src="https://skullgirlz.wiki/images/1/1f/Kyle_Bloodworth-Thomason2.png" style="width: 115px; height: auto;" /></a>'; | |||
document.body.appendChild(imageDiv); | |||
} | |||
}); | }); | ||
Revision as of 13:57, 21 May 2024
/* Any JavaScript here will be loaded for all users on every page load. */
/*Kyle image down there*/
$(document).ready(function() {
// Create a div element for the image
var imageDiv = document.createElement('div');
imageDiv.className = 'bottom-left-image';
// Add the image markup to the div with CSS for size adjustment
imageDiv.innerHTML = '<a href="Kyle" title="Image"><img src="https://skullgirlz.wiki/images/1/1f/Kyle_Bloodworth-Thomason2.png" style="width: 115px; height: auto;" /></a>';
// Append the div to the body
document.body.appendChild(imageDiv);
});
$(document).ready(function() {
var pageTitle = "Welcome to the Skullgirls Wiki Folks";
if (document.title === pageTitle) {
var imageDiv = document.createElement('div');
imageDiv.className = 'upper-left-image';
imageDiv.innerHTML = '<a href="Kyle" title="Image"><img src="https://skullgirlz.wiki/images/1/1f/Kyle_Bloodworth-Thomason2.png" style="width: 115px; height: auto;" /></a>';
document.body.appendChild(imageDiv);
}
});