Widget:EM3DNavigator: verschil tussen versies

Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
 
Dit is de EM3DNavigator Widget.
 
Dit is de EM3DNavigator Widget.
You have to include the script d3.v3.js with the script-tag because it is used in document.ready
+
You have to include the script d3.v3.js with the script-tag because it
  +
is used in document.ready
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<script src="../extensions/EM3DNavigator/js/d3.v3.js" charset="utf-8"></script>
+
 
  +
 
  +
<div class="toccolours mw-collapsible mw-collapsed">
  +
3D View
  +
<div id="3DNavAnchor" class="mw-collapsible-content"></div>
  +
</div>
  +
 
  +
<script src="../extensions/EM3DNavigator/js/d3.v3.js"
  +
charset="utf-8"></script>
 
<script type="text/javascript">
 
<script type="text/javascript">
mw.loader.using( 'ext.EM3DNavigator' ).done( function () {
+
function checkIfReadyAndExecute()
  $(document).ready(function() {
+
{
      var visualisationInstance= new Visualisation();
+
    if (typeof mw === 'undefined' || !mw)
      visualisationInstance.drawHTMLElements("<!--{$baseDiv|default:'bodyContent'}-->","<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->");
+
        window.setTimeout(checkIfReadyAndExecute, 500);
      //visualisationInstance.drawModel( );
+
    else
      //visualisationInstance.test();
+
    {
  });
+
        mw.loader.using( 'ext.EM3DNavigator' ).done( function () {
});
+
            new ContextNavigator.Navigator();
//$(document).ready(function() {
+
        });
//mw.loader.using( ['ext.EM3DNavigator']).done( function () {
+
    }
//}
+
}
//);//mw.loader
+
checkIfReadyAndExecute();
 
 
//});//document.ready
 
 
</script>
 
</script>
 
</includeonly>
 
</includeonly>

Versie van 16 jan 2017 om 16:50

Dit is de EM3DNavigator Widget. You have to include the script d3.v3.js with the script-tag because it is used in document.ready