Widget:EM3DNavigator: verschil tussen versies

(Versie 24653 van Jethro (overleg) ongedaan gemaakt)
Regel 1: Regel 1:
 
<noinclude>
 
<noinclude>
Dit is het commentaar waarin beschreven wordt waar deze widget over gaat.
+
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
 
</noinclude>
 
</noinclude>
 
 
 
<includeonly>
 
<includeonly>
 
+
<script src="../extensions/EM3DNavigator/js/d3.v3.js" charset="utf-8"></script>
<!-- libraries/css - other (load first for jquery onload)-->       
 
<script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
 
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-cookie/1.4.1/jquery.cookie.js"></script>       
 
 
 
<h1>em3dnavigatorwidget</h1>
 
 
<script type="text/javascript">
 
<script type="text/javascript">
  +
$(document).ready(function() {
  +
mw.loader.using( ['ext.EM3DNavigator']).done( function () {
  +
//makeCollapsible gives error. Side-effect: error concerning makeCollapsible disappears
  +
}
  +
);//mw.loader
   
mw.loader.using( 'ext.EM3DNavigator' ).done( function () {
+
});//document.ready
  $(document).ready(function() {
 
    setTimeout(function(){startVisualisation( "<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->" );},1000);
 
  });
 
});
 
 
</script>
 
</script>
 
</includeonly>
 
</includeonly>

Versie van 14 dec 2015 om 10:40

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