מדיה ויקי:Common.js: הבדלים בין גרסאות בדף
קפיצה לניווט
קפיצה לחיפוש
אין תקציר עריכה |
|||
| שורה 36: | שורה 36: | ||
window.open('http://www.yeshiva.org.il/problems/send.asp?refer='+document.URL.replace('&','\*').replace('\'','').replace('\"',''),'','scrollbars=1,resizable=1,width=345,height=410'); | window.open('http://www.yeshiva.org.il/problems/send.asp?refer='+document.URL.replace('&','\*').replace('\'','').replace('\"',''),'','scrollbars=1,resizable=1,width=345,height=410'); | ||
} | } | ||
גרסה מ־10:38, 18 במאי 2015
|
|
/* כל סקריפט JavaScript שנכתב כאן ירוץ עבור כל המשתמשים בכל טעינת עמוד */
function CustomButtons(cbPath,cbTip,cbTago,cbTagc,cbStext)
{
var button = {
"imageFile": cbPath,
"speedTip": cbTip,
"tagOpen": cbTago,
"tagClose": cbTagc,
"sampleText": cbStext
};
mwCustomEditButtons.push(button);
}
CustomButtons("images/c/c8/Button_redirect.png","דף הפניה","#הפניה [[","]]","הערך המופנה");
CustomButtons("images/d/db/Button_strikeout.png","מחיקת טקסט","<s>","</s>","טקסט מחוק");
CustomButtons("images/c/c4/Button_ref.png","הערת שוליים","<ref>","</ref>","הערת שוליים");
/*במקור מויקיפדיה*/
var s = document.createElement('script');
var url = wgScript + '?action=raw&ctype=text/javascript&title=' + "MediaWiki:Edittoolbar.js";
s.setAttribute('src',url);
s.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(s);
//importScript("MediaWiki:Edittoolbar.js");
var m = document.createElement('script');
var murl = wgScript + '?action=raw&ctype=text/javascript&title=' + "MediaWiki:Makor.js";
m.setAttribute('src',murl);
m.setAttribute('type','text/javascript');
document.getElementsByTagName('head')[0].appendChild(m);
function writeUs() {
window.open('http://www.yeshiva.org.il/problems/send.asp?refer='+document.URL.replace('&','\*').replace('\'','').replace('\"',''),'','scrollbars=1,resizable=1,width=345,height=410');
}