1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <title>Document</title>
- <style>
- html,
- body{
- width: 100%;
- height: 100%;
- margin: 0;
- overflow: hidden;
- }
- .scene{
- width: 100%;
- height: 100%;
- }
- #toolbar{
- position: absolute;
- left: 50%;
- top: 0;
- z-index: 10000;
- }
- </style>
- </head>
- <body>
- <div id="scene" class="scene"></div>
- <div id="toolbar">
- <button onclick="add()">添加热点</button>
- <button onclick="confirmPosition()">确认热点</button>
- <button onclick="exit()">退出</button>
- </div>
- <script src="../dist/sdk/kankan-sdk-deps.js"></script>
- <script src="../dist/sdk/kankan-sdk.js"></script>
- <script>
- window.dontForbitSetsize = true
- var kankan = new KanKan({
- dom:'#scene',
- num:'t-QiKQpuF' //'t-YhBCzQr'
- })
- kankan.use("Controls")
- kankan.use("Tag").then(tour=>{
-
- })
- kankan.render()
- function add(){
- kankan.TagManager.edit.enter()
- }
- function exit(){
- kankan.TagManager.edit.exit()
- }
- function confirmPosition(){
- kankan.TagManager.edit.confirm()
- }
-
- </script>
- </body>
- </html>
|