বিষয়বস্তুতে চলুন
🎉 বইপিডিয়ার ১ বছর পূর্তি! · আমাদের ফেসবুক পেজ অনুসরণ করুন.

ব্যবহারকারী:ARI/common.js: সংশোধিত সংস্করণের মধ্যে পার্থক্য

বইপিডিয়া থেকে
সম্পাদনা সারাংশ নেই
সম্পাদনা সারাংশ নেই
১ নং লাইন: ১ নং লাইন:
mw.loader.using( 'mediawiki.util' ).done( function () {
mw.loader.using(['mediawiki.util', 'jquery']).done(function () {
( function () {
     console.log("ResourceLoader: MediaWiki modules loaded.");
     // 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 () {
    alert("Working! JS লোড হয়েছে।");
            $testDiv.fadeOut( 'slow' );
 
         }, 5000 );
    var message = 'JavaScript কাজ করছে (ব্যবহারকারী: ARI)';
       
    var $testDiv = $('<div>')
        console.log( "JS Test: Success." );
        .text(message)
     } );
        .css({
}() );
            'background-color': '#d4edda',
     alert( "working!" );
            'color': '#155724',
     console.log( "JS Loaded" );
            '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.");
});