ব্যবহারকারী:ARI/common.js: সংশোধিত সংস্করণের মধ্যে পার্থক্য
অবয়ব
সম্পাদনা সারাংশ নেই |
সম্পাদনা সারাংশ নেই |
||
| ১ নং লাইন: | ১ নং লাইন: | ||
mw.loader.using( 'mediawiki.util' ).done( function () { | |||
( function () { | ( function () { | ||
// Wait for the page to be ready | // Wait for the page to be ready | ||
$( function () { | $( function () { | ||
var message = 'JavaScript (User: ARI)'; | var message = 'JavaScript (User: ARI)'; | ||
var $testDiv = $( '<div>' ) | var $testDiv = $( '<div>' ) | ||
.text( message ) | .text( message ) | ||
| ৩০ নং লাইন: | ২৯ নং লাইন: | ||
} ); | } ); | ||
}() ); | }() ); | ||
alert( "working!" ); | |||
console.log( "JS Loaded" ); | |||
} ); | |||
২৩:৫২, ১৬ মার্চ ২০২৬ তারিখে সংশোধিত সংস্করণ
mw.loader.using( 'mediawiki.util' ).done( function () {
( function () {
// Wait for the page to be ready
$( function () {
var message = 'JavaScript (User: 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': '9999'
} );
$( 'body' ).prepend( $testDiv );
setTimeout( function () {
$testDiv.fadeOut( 'slow' );
}, 5000 );
console.log( "JS Test: Success." );
} );
}() );
alert( "working!" );
console.log( "JS Loaded" );
} );