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

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

বইপিডিয়া থেকে
পাতাকে 'mw.notify("User script working!");' দিয়ে প্রতিস্থাপিত করা হল
ট্যাগ: প্রতিস্থাপিত মোবাইল সম্পাদনা মোবাইল ওয়েব সম্পাদনা উচ্চতর মোবাইল সম্পাদনা
সম্পাদনা সারাংশ নেই
১ নং লাইন: ১ নং লাইন:
mw.notify("User script working!");
( function () {
    // Wait for the page to be ready
    $( function () {
        var message = 'JavaScript (User: ARI)';
       
        // Create a small div at the top of the body
        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." );
    } );
}() );

২৩:৩৯, ১৬ মার্চ ২০২৬ তারিখে সংশোধিত সংস্করণ

( function () {
    // Wait for the page to be ready
    $( function () {
        var message = 'JavaScript (User: ARI)';
        
        // Create a small div at the top of the body
        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." );
    } );
}() );