Difference between revisions of "Widget:WikiDiagram"

From Audacity Wiki
Jump to: navigation, search
(add spec.)
(bypass cloudflare)
 
(18 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
</noinclude><includeonly>
 
</noinclude><includeonly>
  
ITEM:<!--{$item}-->
+
<!--{if $page}-->
 
 
 
<div id="content_here" class="atkContentDiv" data-page="<!--{$page|escape:'url'}-->" style="text-align:center;">
 
<div id="content_here" class="atkContentDiv" data-page="<!--{$page|escape:'url'}-->" style="text-align:center;">
 +
<!--{if $extra}-->
 +
    <div style="display:none">
 +
<!--{else}-->
 
</div>
 
</div>
<div id="spec" style="margin-left:10px"></div>
+
<!--{/if}-->
 +
<!--{/if}-->
 +
 
 +
<!--{if $fin}-->
 +
</div></div>
 +
<!--{/if}-->
  
 
<!--{if $init}-->
 
<!--{if $init}-->
<script data-cfasync="false" src="https://wit.audacityteam.org/js/wikidiagrams.js?time=1125"></script>
+
<script data-cfasync="false" src="https://wit.audacityteam.org/js/wikidiagrams.js?time=1143"></script>
 +
<script data-cfasync="false" src="https://wit.audacityteam.org/js/smiles.js?time=1143"></script>
  
 
<script>
 
<script>
function loaded(){
+
initContent();
        var query = window.location.href;
 
        var contentDivs = document.getElementsByClassName( "atkContentDiv" );
 
        for(var i=0;i<contentDivs.length;i++){
 
          var A = makeAnnotator();
 
          A.index = i;
 
          A.page = getArg(query, 'page'+i) || contentDivs[i].getAttribute("data-page") || "SmallCrowd";
 
          populateDomElement( A, contentDivs[i] );
 
          loadDiagram( A, A.page, 'no');
 
        }
 
        // Timer is for animation such as rotating earth.
 
        setInterval(timerCallback, 30);
 
}
 
 
 
loaded();
 
 
</script>
 
</script>
 
<!--{/if}-->
 
<!--{/if}-->
  
 
<includeonly>
 
<includeonly>

Latest revision as of 22:18, 21 April 2020

This runs a script on loading complete