<div data-role="page" class="page-tour">
<script src="tour.js" type="text/javascript"></script>
<link rel="stylesheet" href="style.css" />
<div data-role="content">
<div id="panodiv">
<!-- tour loads here -->
</div>
</div>
<script>
var viewer = createPanoViewer();
if ( viewer.isHTML5possible() ) {
viewer.useHTML5("always");
viewer.addVariable("id", "krpanoSWFObject");
viewer.addVariable("xml", "tablet.xml");
viewer.embed("panodiv");
}
else {
alert('Error: Browser is not capable of showing this tour');
}
</script>
<script>function krpano() { return document.getElementById("krpanoSWFObject"); }</script>
</div>
And then the stylesheet contains the following:
|
Source code
|
1
|
.page-tour, .ui-content, #panodiv { width: 100%; height: 100%; padding: 0; }
|
I have added a class of page-tour to the data-role page for referencing.
Hope that helps.
Sorry that I am not using your code but I had this already on my pc but I am sure you can implement it.