Widget:MultiPartApplicationJS: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
(by SublimeText.Mediawiker)
 
(by SublimeText.Mediawiker)
Line 1: Line 1:
<script>
<script type="text/javascript">
var observer = new MutationObserver(function(mutations) {
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
mutations.forEach(function(mutationRecord) {

Revision as of 06:58, 1 April 2024

<script type="text/javascript"> var observer = new MutationObserver(function(mutations) { mutations.forEach(function(mutationRecord) { window.scrollTo({ top: 0, left: 0, behavior: 'instant' }); }); }); var config = { attributes: true, attributeFilter: ['style'] } observer.observe($('.pf-wizard-screen')[0], config); observer.observe($('.pf-wizard-screen')[1], config); observer.observe($('.pf-wizard-screen')[2], config); observer.observe($('.pf-wizard-screen')[3], config); observer.observe($('.pf-wizard-screen')[4], config); observer.observe($('.pf-wizard-screen')[5], config); observer.observe($('.pf-wizard-screen')[6], config); observer.observe($('.pf-wizard-screen')[7], config); </script>