ব্যবহারকারী:ARI/common.js: সংশোধিত সংস্করণের মধ্যে পার্থক্য
অবয়ব
সম্পাদনা সারাংশ নেই |
সম্পাদনা সারাংশ নেই |
||
| ১ নং লাইন: | ১ নং লাইন: | ||
mw.loader.using( 'mediawiki.util' ).done | mw.loader.using(['mediawiki.util', 'jquery']).done(function () { | ||
( function () { | console.log("ResourceLoader: MediaWiki modules loaded."); | ||
alert("Working! JS লোড হয়েছে।"); | |||
} | var message = 'JavaScript কাজ করছে (ব্যবহারকারী: ARI)'; | ||
var $testDiv = $('<div>') | |||
.text(message) | |||
.css({ | |||
} | 'background-color': '#d4edda', | ||
'color': '#155724', | |||
console.log( "JS | 'text-align': 'center', | ||
} ); | 'padding': '10px', | ||
'border-bottom': '2px solid #c3e6cb', | |||
'font-weight': 'bold', | |||
'position': 'fixed', | |||
'top': '0', | |||
'left': '0', | |||
'width': '100%', | |||
'z-index': '10000' // Increased z-index | |||
}); | |||
$('body').prepend($testDiv); | |||
// Fade out after 5 seconds | |||
setTimeout(function () { | |||
$testDiv.fadeOut('slow', function() { | |||
$(this).remove(); | |||
}); | |||
}, 5000); | |||
console.log("JS Test: UI elements injected successfully."); | |||
}); | |||
২৩:৫৩, ১৬ মার্চ ২০২৬ তারিখে সংশোধিত সংস্করণ
mw.loader.using(['mediawiki.util', 'jquery']).done(function () {
console.log("ResourceLoader: MediaWiki modules loaded.");
alert("Working! JS লোড হয়েছে।");
var message = 'JavaScript কাজ করছে (ব্যবহারকারী: ARI)';
var $testDiv = $('<div>')
.text(message)
.css({
'background-color': '#d4edda',
'color': '#155724',
'text-align': 'center',
'padding': '10px',
'border-bottom': '2px solid #c3e6cb',
'font-weight': 'bold',
'position': 'fixed',
'top': '0',
'left': '0',
'width': '100%',
'z-index': '10000' // Increased z-index
});
$('body').prepend($testDiv);
// Fade out after 5 seconds
setTimeout(function () {
$testDiv.fadeOut('slow', function() {
$(this).remove();
});
}, 5000);
console.log("JS Test: UI elements injected successfully.");
});