„MediaWiki:Common.js” változatai közötti eltérés
Nincs szerkesztési összefoglaló |
Nincs szerkesztési összefoglaló |
||
| 120. sor: | 120. sor: | ||
// A tartalomrész felsőszintű elemei. | // A tartalomrész felsőszintű elemei. | ||
var uiContentElements = $('#mw-content-text > *'); | var uiContentElements = $('#mw-content-text > .mw-parser-output > *'); | ||
// Az első <H2>-ig mindent ignorálunk. | // Az első <H2>-ig mindent ignorálunk. | ||
| 137. sor: | 137. sor: | ||
questions[questionId].uiElements.push( $(uiContentElements[i]).detach()[0] ); | questions[questionId].uiElements.push( $(uiContentElements[i]).detach()[0] ); | ||
} | } | ||
} | } | ||
} | } | ||
| 168. sor: | 166. sor: | ||
} ); | } ); | ||
$('#vw-quiz-infobox .infobox').css('max-width', '100%'); | $('#vw-quiz-infobox .infobox').css('max-width', '100%'); | ||
$('#mw-content-text').css('margin-right', uiInfoboxElement.width().toString() + 'px'); | $('#mw-content-text > .mw-parser-output').css('margin-right', uiInfoboxElement.width().toString() + 'px'); | ||
$('#mw-content-text').css('min-height', uiInfoboxElement.height().toString() + 'px'); | $('#mw-content-text > .mw-parser-output').css('min-height', uiInfoboxElement.height().toString() + 'px'); | ||
// Infobox pozicionálása (hogy mindig látszódjon, ha görgetünk is) | // Infobox pozicionálása (hogy mindig látszódjon, ha görgetünk is) | ||