|
|
@@ -6530,6 +6530,31 @@ window.Modernizr = function(n, e, t) {
|
|
|
gui_action: "play_highlights"
|
|
|
})
|
|
|
console.log('开始了')
|
|
|
+
|
|
|
+ // 开始导航,关闭导航栏,鼠标移动时,开启导航栏
|
|
|
+ // const pinBottomDom = document.querySelector('.duringTour')
|
|
|
+ // console.log(pinBottomDom)
|
|
|
+ $('.pinBottom-container').hide()
|
|
|
+ // PC端
|
|
|
+ document.body.addEventListener('mousemove', () => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ document.body.removeEventListener('mousemove',() => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ // 移动端
|
|
|
+ document.body.addEventListener('touchmove', () => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ document.body.removeEventListener('touchmove',() => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ })
|
|
|
+ })
|
|
|
+ document.body.addEventListener('touchstart', () => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ document.body.removeEventListener('touchstart',() => {
|
|
|
+ $('.pinBottom-container').show()
|
|
|
+ })
|
|
|
+ })
|
|
|
$('#leftInfo').hide()
|
|
|
}),
|
|
|
window.startAndPlay = function(e) {
|
|
|
@@ -6547,7 +6572,7 @@ window.Modernizr = function(n, e, t) {
|
|
|
gui_action: "pause_highlights"
|
|
|
})
|
|
|
console.log('暂停了')
|
|
|
- $('#leftInfo').show()
|
|
|
+ window.innerWidth > 768 ? $('#leftInfo').show() :''
|
|
|
|
|
|
}),
|
|
|
$("#gui-zoomin").find("a").on("click", function(e) {
|