הבדלים בין גרסאות בדף "מדיה ויקי:Common.js"
מתוך ויקירפואה
ערן רוזנטל (שיחה | תרומות) (כפתור הדפסה יותר פונקציונלי) |
ערן רוזנטל (שיחה | תרומות) |
||
| שורה 7: | שורה 7: | ||
}); | }); | ||
$('#p-views ul').prepend ( printButton ) ; | $('#p-views ul').prepend ( printButton ) ; | ||
| + | |||
| + | /* Google search */ | ||
| + | $('#mw-searchButton').after($('<input type="button" class="searchButton" title="חיפוש טקסט זה בגוגל" value="חיפוש גוגל">').click(function(){ | ||
| + | window.location.href = 'https://www.google.com/search?q='+encodeURI($('#searchInput').val())+'&domains=http://wikirefua.org.il&sitesearch=http://wikirefua.org.il&ie=utf-8&oe=utf-8'; | ||
| + | |||
| + | })); | ||
גרסה מ־17:39, 20 באוגוסט 2013
/* כל סקריפט JavaScript שנכתב כאן ירוץ עבור כל המשתמשים בכל טעינת עמוד */
importScript("MediaWiki:Navigationbar.js");
//adds print link
var printButton = $('"<li id="printTab"><span><a href="#" title="להדפסת הדף">הדפסה</a></span></li>').click(function(){
window.print();
});
$('#p-views ul').prepend ( printButton ) ;
/* Google search */
$('#mw-searchButton').after($('<input type="button" class="searchButton" title="חיפוש טקסט זה בגוגל" value="חיפוש גוגל">').click(function(){
window.location.href = 'https://www.google.com/search?q='+encodeURI($('#searchInput').val())+'&domains=http://wikirefua.org.il&sitesearch=http://wikirefua.org.il&ie=utf-8&oe=utf-8';
}));

כניסה
עקבו אחרינו בפייסבוק