MediaWiki:Common.js: Difference between revisions
m Reverted edits by Jaime Prilusky (Talk); changed back to last version by Eran Hodis |
m Resaved by maintenance script Tag: content model change |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
function getElementsByClassName( fromElm, elmName, className){ | |||
return $(fromElm).find(elmName + '.' + className); | |||
} | |||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
Line 446: | Line 450: | ||
} | } | ||
} | } | ||
JSconfig.readCookies(); | JSconfig.readCookies(); | ||
addOnloadHook(JSconfig.setUpForm); | addOnloadHook(JSconfig.setUpForm); | ||
if ("undefined"!= typeof mwCustomEditButtons) { | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "/wiki/extensions/Proteopedia/img/button_appletJmol.png", | |||
"speedTip": "3D structure", | |||
"tagOpen": "<Structure load='", | |||
"tagClose": "' size='350' frame='true' align='right' caption='Insert caption here' scene='Insert optional scene name here' />", | |||
"sampleText": "Insert PDB code or filename here" | |||
}; | |||
mwCustomEditButtons[mwCustomEditButtons.length] = { | |||
"imageFile": "/wiki/extensions/Proteopedia/img/button_scrolling.png", | |||
"speedTip": "Scrolling text next to 3D structure", | |||
"tagOpen": "==Your Heading Here (maybe something like 'Structure')==\n<StructureSection load='3rec' size='350' side='right' caption='Escherichia coli reca protein-bound DNA (PDB entry [[3rec]])' scene=''>", | |||
"tagClose": "</StructureSection>", | |||
"sampleText": "\n\nAnything in this section will appear adjacent to the 3D structure and will be scrollable.\n\n" | |||
}; | |||
} | |||
/*</source>*/ | /*</source>*/ |