Geen bewerkingssamenvatting
Geen bewerkingssamenvatting
 
(9 tussenliggende versies door 3 gebruikers niet weergegeven)
Regel 1: Regel 1:
<noinclude>
<noinclude>Dit is de Widget:EMMNavigatorTree Widget.</noinclude>
    Dit is de Widget:EMMNavigatorTree Widget.
</noinclude>
<includeonly>
<includeonly>
 
     <div id="emm-navtree" class="demo" style="margin-top:1em;"></div>
     <div id="results" class="demo" style="margin-top:1em;"></div>
     <link rel="stylesheet" type="text/css" href="../extensions/emm-navigation-tree/js/lib/style.css">
     <!--<link rel="stylesheet" type="text/css" href="../extensions/emm-navigation-tree/js/lib/style.css">-->
<script type="text/javascript">
    <script type="text/javascript" src="../extensions/emm-navigation-tree/js/lib/jquery-1.9.1.js"></script>
function checkIfReadyAndExecute()
    <script src="../extensions/emm-navigation-tree/js/lib/jstree.js" charset="utf-8"></script>
{
<!--    <script src="../extensions/emm-navigation-tree/js/lib/jquery.sticky.js"></script>
var c='<!--{$rootPages}-->';
      </script>
var emmNavigationTree=new EMMNavigationTree(mw,
  <style>
"<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->",c);
 
}
    #results {
RLQ.push(function () {
      background: #bada55;
    function waitForMwLoaderUsing(callback) {
      color: white;<!--{$rootPages}-->
        if (typeof mw !== 'undefined' && mw.loader && typeof mw.loader.using === 'function') {
      width: 300px;
            callback();
      border-radius: 50px;
        } else {
            console.warn('mw.loader.using is not available yet. Retrying...');
            setTimeout(function() {
                waitForMwLoaderUsing(callback);
            }, 100); // Retry every 100 milliseconds
        }
     }
     }
  </style>-->
    <script src="../extensions/emm-navigation-tree/js/Emm-Jstree.js" charset="utf-8"></script>
    <script type="text/javascript">
        function checkIfReadyAndExecute()
        {
            //$("#results").sticky({topSpacing:0});
            var c='<!--{$rootPages}-->';
            console.log("rootPages:",c);
            var emmNavigationTree=new EMMNavigationTree(
                "<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->",c);


         }
    waitForMwLoaderUsing(function () {
        /*RLQ.push(function () {
         mw.loader.using(['ext.EMMNavigationTree', 'mediawiki.api'])
        console.log("jquery now loaded");
            .then(function () {
        //
                console.log('Modules loaded');
        $.getScript("../extensions/emm-navigation-tree/js/lib/jstree.js", function(){
                checkIfReadyAndExecute();
        $.getScript("../extensions/emm-navigation-tree/js/Emm-Jstree.js", function(){
            })
            .catch(function (err) {
                console.error('Error loading modules:', err);
            });
    });
});


        checkIfReadyAndExecute();


        });
</script>
        });
        });*/
        checkIfReadyAndExecute();
    </script>
</includeonly>
</includeonly>

Huidige versie van 24 jun 2024 om 14:30

Dit is de Widget:EMMNavigatorTree Widget.