מדיה ויקי:Mobile.js: הבדלים בין גרסאות
מתוך ויקיתרופות
ערן רוזנטל (שיחה | תרומות) (הסתרת מידע מורחב מלא רשומים) |
ערן רוזנטל (שיחה | תרומות) |
||
(12 גרסאות ביניים של משתמש אחד אינן מוצגות) | |||
שורה 3: | שורה 3: | ||
$('.section').filter(function(){ return $(this).parents('#content_0').length==0}) | $('.section').filter(function(){ return $(this).parents('#content_0').length==0}) | ||
} else { | } else { | ||
+ | $('.extendedInfoForDoc').show(); | ||
$('.nonRegisteredShow').remove(); | $('.nonRegisteredShow').remove(); | ||
+ | } | ||
+ | $.getScript(mw.config.get('wgScript')+'?title=MediaWiki:DrugTabs.js&action=raw&ctype=text/javascript'); | ||
+ | if(wgTitle=='עמוד ראשי'){ | ||
+ | var statusDiv= $('<div style="float:left;margin-left:10px">V</div>'); | ||
+ | $('#advsearch-home-title').append(statusDiv).click(function(){ | ||
+ | $('#mf-advsearch-home .runQueryEmbedded').toggle(); | ||
+ | if ( $('#mf-advsearch-home .runQueryEmbedded').css('display')=='none' ) { | ||
+ | statusDiv.text('V'); | ||
+ | } else { | ||
+ | statusDiv.text('^'); | ||
+ | } | ||
+ | }); | ||
+ | $('#mf-advsearch-home .runQueryEmbedded').toggle(); | ||
} | } |
גרסה אחרונה מתאריך 09:34, 18 ביולי 2014
/* Any JavaScript here will be loaded for users using the mobile site */ if($.inArray('user', wgUserGroups)==-1){ $('.section').filter(function(){ return $(this).parents('#content_0').length==0}) } else { $('.extendedInfoForDoc').show(); $('.nonRegisteredShow').remove(); } $.getScript(mw.config.get('wgScript')+'?title=MediaWiki:DrugTabs.js&action=raw&ctype=text/javascript'); if(wgTitle=='עמוד ראשי'){ var statusDiv= $('<div style="float:left;margin-left:10px">V</div>'); $('#advsearch-home-title').append(statusDiv).click(function(){ $('#mf-advsearch-home .runQueryEmbedded').toggle(); if ( $('#mf-advsearch-home .runQueryEmbedded').css('display')=='none' ) { statusDiv.text('V'); } else { statusDiv.text('^'); } }); $('#mf-advsearch-home .runQueryEmbedded').toggle(); }