Opportunity html

From Redazione
Jump to navigation Jump to search
Line 1: Line 1:
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
 
<div id="wikiPreview" style="display: none; padding-bottom: 25px; margin-bottom: 25px; border-bottom: 1px solid #AAAAAA;"></div>
  
{{#ci_enable_OOUI:}}
 
  
 
<html>
 
<html>
Line 1,944: Line 1,943:
  
 
$( function () {
 
$( function () {
var demo, lastQuery = location.search;
 
  
OO.ui.isDemo = true;
+
  
function setup() {
+
setup_()
var prevPage = demo ? demo.mode.page : null,
 
scrollPos = $( window ).scrollTop();
 
if ( demo ) {
 
if ( lastQuery === location.search ) {
 
return false;
 
}
 
demo.destroy();
 
}
 
lastQuery = location.search;
 
demo = new Demo();
 
$( document.body ).append( demo.$element );
 
demo.initialize().done( function () {
 
if ( prevPage === demo.mode.page && scrollPos ) {
 
// Restore scroll position from before we destroyed the demo
 
$( window ).scrollTop( scrollPos );
 
}
 
} );
 
}
 
  
setup();
+
$( window ).on( 'popstate', setup_() );
 
 
OO.ui.demo = demo;
 
 
 
$( window ).on( 'popstate', setup );
 
 
} );
 
} );
  

Revision as of 01:32, 1 March 2020