מדיה ויקי:Common.js: הבדלים בין גרסאות
מתוך ויקיתרופות
ערן רוזנטל (שיחה | תרומות) |
|||
שורה 47: | שורה 47: | ||
//other scripts | //other scripts | ||
importScript('MediaWiki:PdfPresentation.js'); //presentations [[Template:מצגת]] | importScript('MediaWiki:PdfPresentation.js'); //presentations [[Template:מצגת]] | ||
+ | |||
+ | // Adds fortivision | ||
+ | $(function () { | ||
+ | |||
+ | var myElement = document.getElementById('fortivision'); | ||
+ | myElement.innerHTML = '<script type="text/javascript" src="http://static.fortvision.com/staticfiles/fb-web/js/fortvision-fb-web.js" publisher_id="87"></script>'; | ||
+ | |||
+ | }()); |
גרסה אחרונה מתאריך 14:29, 7 בדצמבר 2016
/* כל סקריפט JavaScript שנכתב כאן ירוץ עבור כל המשתמשים בכל טעינת עמוד */ /* line break after reg owner */ $('.mw-normal-catlinks a[title^="קטגוריה:בעל רישום"]').parent().next().css('border-right','none').before('<br>'); //adds print link var printButton = $('"<li id="printTab"><span><a href="#" title="להדפסת הדף">הדפסה</a></span></li>').click(function(){ window.print(); }); $('#p-views ul').prepend ( printButton ) ; //banner // importScript("MediaWiki:BottomBanner.js"); if(wgAction == "edit" || wgAction == "submit") importScript("MediaWiki:Edit.js"); if(wgPageName=='מיוחד:חיפוש'){ $($('h2').get(1)).hide().next().hide(); } // drug pages importScript("MediaWiki:DrugTabs.js"); $(function(){ if($('.externalAlonLink a.external').length==0) return; mw.loader.using('jquery.ui.dialog', function(){ $('.externalAlonLink a.external').click(function(e){ var dest = $(this).attr('href'); $('<div style="text-align:center;" />').append($('<iframe style="width:800px;height:640px;" />').attr("src", dest)).dialog({ width: '860', height: '700', title: 'עלון לרופא' }); e.preventDefault(); }) }); }); $(function(){ //included in iframe if (window==window.top) return; $('#mw-navigation').hide(); $('#content').css('margin','0'); $('#mw-head-base').css('height','0'); }); //other scripts importScript('MediaWiki:PdfPresentation.js'); //presentations [[Template:מצגת]] // Adds fortivision $(function () { var myElement = document.getElementById('fortivision'); myElement.innerHTML = '<script type="text/javascript" src="http://static.fortvision.com/staticfiles/fb-web/js/fortvision-fb-web.js" publisher_id="87"></script>'; }());