মিডিয়াউইকি:Common.js/IEFixes.js
টীকা: সংরক্ষণ করার পর, পরিবর্তনসমূহ তৎক্ষণাৎ নাও দেখাতে পারে। আপনার ব্রাউজারের ক্যাশ কিভাবে এড়াবেন তা জানতে এখানে ক্লিক করুন।
- ফায়ারফক্স / সাফারি: Shift ধরে রাখা অবস্থায়পুনঃলোড করুন-এ ক্লিক করুন, অথবা Ctrl-F5 বা Ctrl-R (ম্যাক-এ ⌘-R) চাপুন
- গুগল ক্রোম: Ctrl-Shift-R (ম্যাক-এ ⌘-Shift-R) চাপুন
- ইন্টারনেট এক্সপ্লোরার: Ctrl ধরে রাখা অবস্থায় Refresh-এ ক্লিক করুন, অথবা Ctrl-F5 চাপুন
- অপেরা: মেনু → ব্যবস্থাপনাসমূহ-এ যান (ম্যাকে অপেরা → পছন্দসমূহ) এবং এরপর গোপনীয়তা ও সুরক্ষা → ব্রাউজিং-এর তথ্য পরিষ্কার করুন → ক্যাশে করা ছবি ও ফাইলগুলি।
অন্যান্য ব্রাউজার সম্পর্কে বিশদ নির্দেশাবলীর জন্য, উইকিপিডিয়া:আপনার ক্যাশে বাইপাস করুন দেখুন।
/* Scripts specific to Internet Explorer */
/**
* Add IE specific CSS
*/
var ieCSS;
/* In print IE (7?) does not like line-height */
ieCSS += '@media print { sup, sub, p { line-height: normal; } } ';
/* IE overflow bug */
ieCSS += 'div.overflowbugx { overflow-x: scroll !important; overflow-y: hidden !important; } ' +
'div.overflowbugy { overflow-y: scroll !important; overflow-x: hidden !important; } ';
/* IE zoomfix. Use to fix right floating div/table inside tables. */
ieCSS += '.iezoomfix div, .iezoomfix table { zoom: 1; } ';
mw.util.addCSS( ieCSS );
/**
* Description: Fixes IE horizontal scrollbar bug
* Maintainers: [[User:Tom-]]?
*/
var oldWidth;
var docEl = document.documentElement;
var fixIEScroll = function () {
if ( !oldWidth || docEl.clientWidth > oldWidth ) {
doFixIEScroll();
} else {
setTimeout( doFixIEScroll, 1 );
}
oldWidth = docEl.clientWidth;
}
var doFixIEScroll = function () {
docEl.style.overflowX = ( docEl.scrollWidth - docEl.clientWidth < 4 ) ? 'hidden' : '';
}
document.attachEvent( 'onreadystatechange', fixIEScroll );
document.attachEvent( 'onresize', fixIEScroll );
/**
* Helper script for .hlist class in Common.css
* @source mediawiki.org/wiki/Snippets/Horizontal_lists
* @revision 5.0 (2013-12-22)
* @author w:User:Edokter
*/
( function ( mw, $ ) {
var profile = $.client.profile();
if ( profile.versionNumber === 8 ) {
/* IE 8: Add pseudo-selector class to last-child list items */
mw.hook( 'wikipage.content' ).add( function ( $content ) {
$content.find( '.hlist' ).find( 'dd:last-child, dt:last-child, li:last-child' )
.addClass( 'hlist-last-child' );
} );
}
else if ( profile.versionNumber <= 7 ) {
/* IE 7 and below: Generate interpuncts and parentheses */
mw.hook( 'wikipage.content' ).add( function ( $content ) {
var $hlists = $content.find( '.hlist' );
$hlists.find( 'dt:not(:last-child)' )
.append( ': ' );
$hlists.find( 'dd:not(:last-child)' )
.append( '<b>·</b> ' );
$hlists.find( 'li:not(:last-child)' )
.append( '<b>·</b> ' );
$hlists.find( 'dl dl, dl ol, dl ul, ol dl, ol ol, ol ul, ul dl, ul ol, ul ul' )
.prepend( '( ' ).append( ') ' );
} );
}
}( mediaWiki, jQuery ) );