מדיה ויקי:Gadget-CustomSideBarLinks.js: הבדלים בין גרסאות בדף
1.19 |
לכבוד wmf5 - התפריטים שונו מ-h5 ל-h3 |
||
| שורה 11: | שורה 11: | ||
$('#mw-panel > div.portal:eq(0)').after( | $('#mw-panel > div.portal:eq(0)').after( | ||
div | div | ||
.append($('< | .append($('<h3>').text('הקישורים שלי')) | ||
.append($('<div>', {'class': 'body'}).css({display: state ? 'block' : 'hidden'}).html(linkstext)) | .append($('<div>', {'class': 'body'}).css({display: state ? 'block' : 'hidden'}).html(linkstext)) | ||
); | ); | ||
| שורה 21: | שורה 21: | ||
return false; | return false; | ||
}); | }); | ||
var | var h3CustonTitle = $('<h3>').append(aLink1); | ||
var divCustonBody = $('<div id="p-customBody1" style="display:none;"></div>'); | var divCustonBody = $('<div id="p-customBody1" style="display:none;"></div>'); | ||
divCustonBody.html(linkstext); | divCustonBody.html(linkstext); | ||
var navCustonMain = $('<div></div>').append( | var navCustonMain = $('<div></div>').append(h3CustonTitle).append(divCustonBody); | ||
var pCom = $('#p-community'); | var pCom = $('#p-community'); | ||
navCustonMain.addClass(pCom.attr('class')); | navCustonMain.addClass(pCom.attr('class')); | ||