7 changed files with 45 additions and 17 deletions
@ -1,19 +1,26 @@ |
|||
<!DOCTYPE html> |
|||
<html lang=""> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<title><%= htmlWebpackPlugin.options.title %></title> |
|||
<script src="./static/qm/three.js"></script> |
|||
<script src="./static/qm/MainMap_QM.js"></script> |
|||
</head> |
|||
<body> |
|||
<noscript> |
|||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> |
|||
</noscript> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
|
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> |
|||
<meta name="viewport" content="width=device-width,initial-scale=1.0"> |
|||
<link rel="icon" href="<%= BASE_URL %>favicon.ico"> |
|||
<title> |
|||
<%= htmlWebpackPlugin.options.title %> |
|||
</title> |
|||
<script src="./static/qm/three.js"></script> |
|||
<script src="./static/qm/MainMap_QM.js"></script> |
|||
<script src="./static/android/android.js"></script> |
|||
</head> |
|||
|
|||
<body> |
|||
<noscript> |
|||
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. |
|||
Please enable it to continue.</strong> |
|||
</noscript> |
|||
<div id="app"></div> |
|||
<!-- built files will be auto injected --> |
|||
</body> |
|||
|
|||
</html> |
|||
|
|||
@ -0,0 +1,4 @@ |
|||
|
|||
window.leaveScreenSave= ()=>{ |
|||
// 离开屏保需要调用
|
|||
} |
|||
@ -0,0 +1,11 @@ |
|||
/** |
|||
* android.goScreenSave () 进入屏保 |
|||
leaveScreenSave() 离开屏保需要调用我这里的方法 |
|||
*/ |
|||
type Android = { |
|||
goScreenSave: () => void |
|||
} |
|||
declare interface Window { |
|||
android: Android |
|||
leaveScreenSave: () => void |
|||
} |
|||
Loading…
Reference in new issue