Merge branch 'master' of github.com:hainatravel/information-system into master

master
candice 2 years ago
commit 71c8811ed7

@ -42,7 +42,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)};
@ -93,7 +93,7 @@
id="china_yangtze_cruise_2021">Yangtze River Cruise</a></li> id="china_yangtze_cruise_2021">Yangtze River Cruise</a></li>
<li class="start-nav-item"><a href="/tour/expats-tours.htm" <li class="start-nav-item"><a href="/tour/expats-tours.htm"
id="china_expats_tours_2021">China Expats Tours</a></li> id="china_expats_tours_2021">China Expats Tours</a></li>
</ul> </ul>
</div> </div>
</li> </li>
@ -602,20 +602,32 @@
</div> </div>
<script> <script>
(function (w, d, i) { (function (w, d, i) {
var navbar = d.getElementById(i); function debounce(func, wait) {
var prevScrollpos = w.pageYOffset; let timeout;
w.onscroll = function () { return function() {
var currentScrollPos = w.pageYOffset; const context = this;
if (prevScrollpos > currentScrollPos) { const args = arguments;
navbar.style.top = '0'; clearTimeout(timeout);
} else { timeout = setTimeout(() => func.apply(context, args), wait);
navbar.style.top = '-100px'; };
} }
prevScrollpos = currentScrollPos;
} var navbar = d.getElementById(i);
})(window, document, 'header'); var prevScrollpos = w.pageYOffset;
</script> w.onscroll = debounce(function () {
var currentScrollPos = w.pageYOffset;
if (Math.abs(currentScrollPos - prevScrollpos) > 5) { // 滚动阈值
if (prevScrollpos > currentScrollPos) {
navbar.style.top = '0';
} else {
navbar.style.top = '-100px';
}
prevScrollpos = currentScrollPos;
}
}, 25) // 防止快速滚动时频繁触发
})(window, document, 'header');
</script>
<!--@PRODUCT-JS@--> <!--@PRODUCT-JS@-->
<!--@ADDON-JS@--> <!--@ADDON-JS@-->

@ -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",

@ -215,11 +215,11 @@
</aside> </aside>
<div class="info_tm_button"><a href="/forms/tailormade?product_code=" id="create_my_trip_button_pc">Create <div class="info_tm_button"><a href="/forms/tailormade?product_code=" id="create_my_trip_button_pc">Create
my trip</a> my trip</a>
</div> </div>
</div> </div>
<!--PC正文 结束--><!--@ARTICLENEXT@--> <!--PC正文 结束--><!--@ARTICLENEXT@-->
</div> </div>
<!--PC底部--> <!--PC底部-->
<div class="infotailor"> <div class="infotailor">
@ -277,7 +277,7 @@
height="100"></div> height="100"></div>
<h3>Ensure Your Satisfactory</h3> <h3>Ensure Your Satisfactory</h3>
<ul class="infolist"> <ul class="infolist">
<li>The Top 20% nationwide guides at your service.</li> <li>The Top 20% nationwide guides at your service.</li>
<li>20% more space on your group's transportation.</li> <li>20% more space on your group's transportation.</li>
<li> 24/7 emergency support.</li> <li> 24/7 emergency support.</li>
</ul> </ul>
@ -420,20 +420,32 @@
</div> </div>
<script> <script>
(function (w, d, i) { (function (w, d, i) {
var navbar = d.getElementById(i); function debounce(func, wait) {
var prevScrollpos = w.pageYOffset; let timeout;
w.onscroll = function () { return function() {
var currentScrollPos = w.pageYOffset; const context = this;
if (prevScrollpos > currentScrollPos) { const args = arguments;
navbar.style.top = '0'; clearTimeout(timeout);
} else { timeout = setTimeout(() => func.apply(context, args), wait);
navbar.style.top = '-100px'; };
} }
prevScrollpos = currentScrollPos;
} var navbar = d.getElementById(i);
})(window, document, 'header'); var prevScrollpos = w.pageYOffset;
</script> w.onscroll = debounce(function () {
var currentScrollPos = w.pageYOffset;
if (Math.abs(currentScrollPos - prevScrollpos) > 5) { // 滚动阈值
if (prevScrollpos > currentScrollPos) {
navbar.style.top = '0';
} else {
navbar.style.top = '-100px';
}
prevScrollpos = currentScrollPos;
}
}, 25) // 防止快速滚动时频繁触发
})(window, document, 'header');
</script>
<!--PC底部 结束--> <!--PC底部 结束-->

@ -448,19 +448,31 @@
} }
</script> </script>
<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>
<!--移动底部 结束--> <!--移动底部 结束-->

Loading…
Cancel
Save