Difference between revisions of "Widget:WikiDiagram"

From Audacity Wiki
Jump to: navigation, search
(no listener.)
(updated.)
Line 9: Line 9:
 
ITEM:<!--{$item}-->
 
ITEM:<!--{$item}-->
  
<div id="content_here" style="text-align:center;">
+
<div id="content_here0" style="text-align:center;">
 
</div>
 
</div>
<div id="atitle" style="text-align:center;">
 
    <em>No Hotspot Zones Loaded (Yet)</em>
 
</div>
 
<div id="tabular_contents"></div>
 
<div id="spec" style="margin-left:10px"></div>
 
  
  
Line 22: Line 17:
 
function loaded(){
 
function loaded(){
 
   //alert("page loaded");
 
   //alert("page loaded");
 +
  var A = Annotator[0];
 
   A.page="<!--{$page|escape:'url'}-->"
 
   A.page="<!--{$page|escape:'url'}-->"
   createDomElements();
+
   createDomElements(A);
  addImagesToDom();
 
 
 
  console.log(A.page);
 
  A.SpecName="Foo";
 
 
 
 
   loadDiagram( A.page, "remote" );
 
   loadDiagram( A.page, "remote" );
  setInterval(timerCallback, 30);
+
  setInterval(timerCallback, 30);
 
}
 
}
  

Revision as of 22:54, 12 December 2019

This runs a script on loading complete