34 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			34 lines
		
	
	
	
		
			1 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
| <!DOCTYPE html>
 | |
| <html>
 | |
|   <head>
 | |
|     <title>Example</title>
 | |
|     <meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1,maximum-scale=1, user-scalable=no">
 | |
|     <link rel="stylesheet" href="style.css" />
 | |
|   </head>
 | |
|   <body>
 | |
|     <div id="ar">
 | |
|       <div id="render">
 | |
|         <div class="ui">
 | |
|           <a href="#" data-action="fullscreen">⛶</a>
 | |
|           <a href="#" data-action="prev">🠈</a>
 | |
|           <select data-id="pages"></select>
 | |
|           <a href="#" data-action="next">🠊</a>
 | |
|         </div>
 | |
|       </div>
 | |
|     </div>
 | |
|     <script src="presentationmaker.js" type="text/javascript"></script>
 | |
|     <script type="text/javascript">
 | |
|       document.addEventListener("DOMContentLoaded", async () => {
 | |
|         const config = {
 | |
|           targetSelector: '#render',
 | |
|           sourceURI: 'example.xml',
 | |
|           transitionType: 'transform',
 | |
|         };
 | |
|         const pm = new PresentationMaker(config);
 | |
|         await pm.generate();
 | |
|         pm.present();
 | |
|         // custom script logic
 | |
|       });
 | |
|     </script>
 | |
|   </body>
 | |
| </html>
 | 
