The panvista.js api allows developers to interact with the Panvista platform that hooks into native calls on the device.
<script src="https://raw.githubusercontent.com/panvista/panvista.js/master/panvista.js"></script>
You can view our API documentation here.
Panvista.Sections.list(function(sections) {
Panvista.Util.each(sections, function(section) {
document.write('<p><a href="' + section.url + '">' + section.label + '</a></p>');
});
});
var html = '';
parseSection = function(section) {
html += '<li><a href="' + section.url + '">' + section.label;
if (section.children.length > 0) {
html += '<ul>';
Panvista.Util.each(section.children, parseSection);
html += '</ul>';
}
html += '</li>';
}
Panvista.Sections.list(function(sections) {
Panvista.Util.each(sections, parseSection);
document.write('<ul>' + html + '</ul>');
});