web app section changer, getActiveSectionIndex does’t work

web app section changer, getActiveSectionIndex does’t work

BY 26 May 2017 Web Application Development

(function()
{
 var page = document.getElementById(“hasSectionchangerPage”),
 element = document.getElementById(“sectionchanger”),
 sectionChanger, idx=1;
    
 page.addEventListener(“pageshow”, function() {
  /* Create the SectionChanger object */
  sectionChanger = tau.widget.SectionChanger(element, {
   circular: true,
   orientation: “horizontal”,
   useBouncingEffect: true
  });
       
 });

 page.addEventListener(“pagehide”, function() {
  /* Release the object */
  sectionChanger.destroy();
 });
    
 var index = getActiveSectionIndex();
 console.log(“index : ” + index);

    
})();

 

app.js (116) :ReferenceError: Can’t find variable: getActiveSectionIndex

 

Written by