Widget:EM3DNavigator: verschil tussen versies

Regel 6: Regel 6:
 
<script src="../extensions/EM3DNavigator/js/d3.v3.js" charset="utf-8"></script>
 
<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 () {
+
mw.loader.using( 'ext.EM3DNavigator' ).done( function () {
//  $(document).ready(function() {
+
  $(document).ready(function() {
//      var visualisationInstance= new Visualisation();
+
      var visualisationInstance= new Visualisation();
//      visualisationInstance.drawHTMLElements("bodyContent" );
+
      visualisationInstance.drawHTMLElements("bodyContent" );
 
       //visualisationInstance.drawModel("<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->" );
 
       //visualisationInstance.drawModel("<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->" );
//      visualisationInstance.test();
+
      visualisationInstance.test();
//  });
+
  });
//});
+
});
$(document).ready(function() {
+
//$(document).ready(function() {
mw.loader.using( ['ext.EM3DNavigator']).done( function () {
+
//mw.loader.using( ['ext.EM3DNavigator']).done( function () {
}
+
//}
);//mw.loader
+
//);//mw.loader
   
});//document.ready
+
//});//document.ready
 
</script>
 
</script>
 
</includeonly>
 
</includeonly>

Versie van 17 dec 2015 om 19:22

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