Widget:MultiPartApplicationJS: Difference between revisions

From Tsadra Foundation Advanced Contemplative Scholarships
(by SublimeText.Mediawiker)
(by SublimeText.Mediawiker)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<script type="text/javascript">
<script type="text/javascript">
var observer = new MutationObserver(function(mutations) {
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutationRecord) {
mutations.forEach(function(mutationRecord) {
Line 9: Line 10:
});     
});     
});
});
var config = {  
var config = {  
attributes: true,  
attributes: true,  
attributeFilter: ['style']  
attributeFilter: ['style']  
}
}
observer.observe($('.pf-wizard-screen')[0], config);
 
observer.observe($('.pf-wizard-screen')[1], config);
elements = document.querySelectorAll('.pf-wizard-screen');
observer.observe($('.pf-wizard-screen')[2], config);
elements.forEach((element, key) => {
observer.observe($('.pf-wizard-screen')[3], config);
observer.observe(element, 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>
</script>

Latest revision as of 07:02, 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'] }

elements = document.querySelectorAll('.pf-wizard-screen'); elements.forEach((element, key) => { observer.observe(element, config); });

</script>