MediaWiki:Common.js: Διαφορά μεταξύ των αναθεωρήσεων
Jump to navigation
Χωρίς σύνοψη επεξεργασίας |
Χωρίς σύνοψη επεξεργασίας |
||
Γραμμή 22: | Γραμμή 22: | ||
return false; | return false; | ||
}); | }); | ||
if ($('#navbar').length !== 0) { | |||
$('#navbar a').removeAttr("title"); | |||
} | |||
// Embed youtube videos | // Embed youtube videos | ||
if ($('.youtube_video').length !== 0) { | if ($('.youtube_video').length !== 0) { | ||
$('.youtube_video').each(function() { | $('.youtube_video').each(function() { | ||
$(this).html('<iframe width="100%" height="100%" src="https://www.youtube.com/embed/' + $(this).attr('data-id') + '?cc_load_policy=1&cc_lang_pref=' + $(this).attr('data-subtitles') + '" frameborder="0" allowfullscreen></iframe>'); | $(this).html('<iframe width="100%" height="100%" src="https://www.youtube.com/embed/' + $(this).attr('data-id') + '?cc_load_policy=1&cc_lang_pref=' + $(this).attr('data-subtitles') + '" frameborder="0" allowfullscreen></iframe>'); | ||
}); | }); | ||
} | } |
Αναθεώρηση της 18:22, 17 Ιουνίου 2018
/* Any JavaScript here will be loaded for all users on every page load. */ $('.tbbox-logo').wrap('<a href="/wiki/Main_Page"></a>'); if ($('.item_container').length!==0) { $('.item_container').each(function() { $(this).append('<img src="https://westzz.innogamescdn.com/images/items/' + $(this).attr('data-url') + '">'); }); $.getScript("https://wiki.the-west.gr/wiki/Popup.js?action=raw"); } $(window).scroll(function() { if ($(this).scrollTop() > 100) { $('#back-top').fadeIn(); } else { $('#back-top').fadeOut(); } }); // Scroll body to top on click $('#back-top a').click(function() { $('body,html').animate({ scrollTop: 0 }, 800); return false; }); if ($('#navbar').length !== 0) { $('#navbar a').removeAttr("title"); } // Embed youtube videos if ($('.youtube_video').length !== 0) { $('.youtube_video').each(function() { $(this).html('<iframe width="100%" height="100%" src="https://www.youtube.com/embed/' + $(this).attr('data-id') + '?cc_load_policy=1&cc_lang_pref=' + $(this).attr('data-subtitles') + '" frameborder="0" allowfullscreen></iframe>'); }); }