|
|
|
@ -34,7 +34,7 @@
|
|
|
|
})(window, document, 'script', 'dataLayer', 'GTM-T75N4LL');</script>
|
|
|
|
})(window, document, 'script', 'dataLayer', 'GTM-T75N4LL');</script>
|
|
|
|
<!-- End Google Tag Manager -->
|
|
|
|
<!-- End Google Tag Manager -->
|
|
|
|
|
|
|
|
|
|
|
|
<!-- Hotjar Tracking Code for https://www.chinahighlights.com/
|
|
|
|
<!-- Hotjar Tracking Code for https://www.chinahighlights.com/
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
(function(h,o,t,j,a,r){
|
|
|
|
(function(h,o,t,j,a,r){
|
|
|
|
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
|
|
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
|
|
@ -593,17 +593,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
(function (w, d, i) {
|
|
|
|
(function (w, d, i) {
|
|
|
|
|
|
|
|
function debounce(func, wait) {
|
|
|
|
|
|
|
|
let timeout;
|
|
|
|
|
|
|
|
return function() {
|
|
|
|
|
|
|
|
const context = this;
|
|
|
|
|
|
|
|
const args = arguments;
|
|
|
|
|
|
|
|
clearTimeout(timeout);
|
|
|
|
|
|
|
|
timeout = setTimeout(() => func.apply(context, args), wait);
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var navbar = d.getElementById(i);
|
|
|
|
var navbar = d.getElementById(i);
|
|
|
|
var prevScrollpos = w.pageYOffset;
|
|
|
|
var prevScrollpos = w.pageYOffset;
|
|
|
|
w.onscroll = function () {
|
|
|
|
w.onscroll = debounce(function () {
|
|
|
|
var currentScrollPos = w.pageYOffset;
|
|
|
|
var currentScrollPos = w.pageYOffset;
|
|
|
|
if (prevScrollpos > currentScrollPos) {
|
|
|
|
if (Math.abs(currentScrollPos - prevScrollpos) > 5) { // 滚动阈值
|
|
|
|
navbar.style.top = '0';
|
|
|
|
if (prevScrollpos > currentScrollPos) {
|
|
|
|
} else {
|
|
|
|
navbar.style.top = '0';
|
|
|
|
navbar.style.top = '-100px';
|
|
|
|
} else {
|
|
|
|
|
|
|
|
navbar.style.top = '-100px';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
prevScrollpos = currentScrollPos;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
prevScrollpos = currentScrollPos;
|
|
|
|
}, 25) // 防止快速滚动时频繁触发
|
|
|
|
}
|
|
|
|
|
|
|
|
})(window, document, 'header');
|
|
|
|
})(window, document, 'header');
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
<script>/* memu js https://data.chinahighlights.com/js/mobile-menu.js */
|
|
|
|
<script>/* memu js https://data.chinahighlights.com/js/mobile-menu.js */
|
|
|
|
@ -673,8 +685,8 @@
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"geo": {
|
|
|
|
"geo": {
|
|
|
|
"@type": "GeoCoordinates",
|
|
|
|
"@type": "GeoCoordinates",
|
|
|
|
"latitude": 25.241375,
|
|
|
|
"latitude": 25.241375,
|
|
|
|
"longitude": 110.33852
|
|
|
|
"longitude": 110.33852
|
|
|
|
},
|
|
|
|
},
|
|
|
|
"url": "https://www.chinahighlights.com/",
|
|
|
|
"url": "https://www.chinahighlights.com/",
|
|
|
|
"telephone": "+86 773 2831999",
|
|
|
|
"telephone": "+86 773 2831999",
|
|
|
|
|