|
|
(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 class="row">
|
+ |
<div id="emm-navtree" class="demo" style="margin-top:1em;"></div> |
− |
<div class="col-md-4 col-sm-8 col-xs-8">
|
+ |
<link rel="stylesheet" type="text/css" href="../extensions/emm-navigation-tree/js/lib/style.css"> |
− |
<button type="button" class="btn btn-success btn-sm" onclick="demo_create();"><i class="glyphicon glyphicon-asterisk"></i> Create</button>
|
+ |
<script type="text/javascript"> |
− |
<button type="button" class="btn btn-warning btn-sm" onclick="demo_rename();"><i class="glyphicon glyphicon-pencil"></i> Rename</button>
|
+ |
function checkIfReadyAndExecute() |
− |
<button type="button" class="btn btn-danger btn-sm" onclick="demo_delete();"><i class="glyphicon glyphicon-remove"></i> Delete</button>
|
+ |
{ |
− |
</div>
|
+ |
var c='<!--{$rootPages}-->'; |
− |
</div>-->
|
+ |
var emmNavigationTree=new EMMNavigationTree(mw,
|
− |
<div id="results" class="demo" style="margin-top:1em;"></div> |
+ |
"<!--{$currentPageName|default:'Pagename niet doorgekregen'}-->",c); |
− |
<script type="text/javascript" src="../extensions/emm-navigation-tree/js/lib/jquery-1.9.1.js"></script>
|
+ |
} |
− |
<script src="../extensions/emm-navigation-tree/js/lib/jstree.js" charset="utf-8"></script>
|
+ |
RLQ.push(function () { |
− |
<!-- <script src="../extensions/emm-navigation-tree/js/lib/jquery.sticky.js"></script>
|
+ |
mw.loader.using(['ext.EMMNavigationTree',"mediawiki.api"], function() {console.log("module loaded");checkIfReadyAndExecute();}); |
− |
</script>
|
+ |
}); |
− |
<style>
|
+ |
</script> |
− |
|
|
− |
#results {
|
|
− |
background: #bada55;
|
|
− |
color: white;<!--{$rootPages}-->
|
|
− |
width: 300px;
|
|
− |
border-radius: 50px;
|
|
− |
}
|
|
− |
</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); |
|
− |
|
|
− |
} |
|
− |
/*RLQ.push(function () { |
|
− |
console.log("jquery now loaded");
|
|
− |
//
|
|
− |
$.getScript("../extensions/emm-navigation-tree/js/lib/jstree.js", function(){ |
|
− |
$.getScript("../extensions/emm-navigation-tree/js/Emm-Jstree.js", function(){
|
|
− |
|
|
− |
checkIfReadyAndExecute(); |
|
− |
|
|
− |
});
|
|
− |
}); |
|
− |
});*/
|
|
− |
checkIfReadyAndExecute(); |
|
− |
</script> |
|
|
</includeonly> |
|
</includeonly> |
Dit is de Widget:EMMNavigatorTree Widget.