You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
116 lines
6.8 KiB
JavaScript
116 lines
6.8 KiB
JavaScript
6 years ago
|
// JavaScript Document
|
||
|
$(function() {
|
||
|
var reval = "";
|
||
|
reval += " <div class=\"hidden-xs container\"> ";
|
||
|
reval += " <div class=\"footerContent cht-relative col-md-19 col-sm-19\">";
|
||
|
reval += " <div class=\"row\">";
|
||
|
reval += " <div class=\"col-md-15 col-sm-15\">";
|
||
|
reval += " <ul class=\"withBorder\">";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/aboutus/\" rel=\"nofollow\">About us</a></li>";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/contactus/\" rel=\"nofollow\"><b>Contact us</b></a></li>";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/feedback/\" rel=\"nofollow\">Reviews</a></li>";
|
||
|
reval += " <li class=\"hidden-sm\"><a href=\"//www.chinahighlights.com/partner/\" rel=\"nofollow\">Partner</a></li>";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/privacy.htm\" rel=\"nofollow\">Privacy</a></li>";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/aboutus/terms.htm\" target=\"_blank\" rel=\"nofollow\">Terms</a></li>";
|
||
|
reval += " <li><a href=\"//www.chinahighlights.com/aboutus/jobs-volunteer.htm\" target=\"_blank\" rel=\"nofollow\"><b>Work for us</b></a></li>";
|
||
|
reval += " </ul>";
|
||
|
reval += " </div>";
|
||
|
reval += " <div class=\"col-md-9 col-sm-9\">";
|
||
|
reval += " <span class=\"socialM\">Follow us on <span class=\"socialLink\"><a href=\"//www.facebook.com/Chinahighlights\" rel=\"nofollow\" title=\"Follow us on Facebook\" class=\"fb fa fa-facebook\"></a><a href=\"https://twitter.com/Chinahighlights\" rel=\"nofollow\" title=\"Share us on Twitter\" class=\"tw fa fa-twitter\"></a><a href=\"https://plus.google.com/115440226907925048044\" rel=\"nofollow\" title=\"Follow us on Google Plus\" class=\"fa fa-google-plus g\"></a><a href=\"//www.linkedin.com/company/china-highlights/\" rel=\"nofollow\" title=\"Follow us on Linkedin\" class=\"linkin fa fa-linkedin\"></a></span></span>";
|
||
|
reval += " </div>";
|
||
|
reval += " </div>";
|
||
|
reval += " <div class=\"memberIcons\">";
|
||
|
reval += " <img src=\"/css/images/global/member-icons.png\" usemap=\"#Map\" style=\" display:inline-block;\">";
|
||
|
reval += " <div style=\" display:inline-block; margin:2px 15px 0;\"> <a href=\"//privacy.truste.com/privacy-seal/validation?rid=a96b748d-8950-4e3a-b93f-4ce3e2eb90f9\" title=\"TRUSTe Privacy Certification\" target=\"_blank\"><img style=\"border: none\" src=\"/pic/truste-seal.png\" alt=\"TRUSTe Privacy Certification\"/></a> </div>";
|
||
|
reval += "<div style=\"display:inline-block;\"> <a href=\"http://www.pandaadventures.com/\" target=\"_blank\"><img src=\"/pic/logo-panda-adventures.png\" alt=\"Luxury China Tours\"></a></div> ";
|
||
|
reval += " </div>";
|
||
|
|
||
|
reval += " <div class=\"row\">";
|
||
|
reval += " <div class=\"col-md-14 col-sm-14 copyright\"> © 1998-2017 China Highlights — Discovery Your Way!</div>";
|
||
|
reval += " <div class=\"col-md-10 col-sm-10\">";
|
||
|
reval += " <div class=\"languageSwitch\"> ";
|
||
|
reval += " <a href=\"/api/h.php?hl=de\" target=\"_blank\" class=\"germany\" title=\"Deutsch\"></a> <a href=\"/api/h.php?hl=fr\" target=\"_blank\" class=\"french\" title=\"Français\"></a> <a href=\"/api/h.php?hl=es\" target=\"_blank\" class=\"spanish\" title=\"Español\"></a> <a href=\"/api/h.php?hl=it\" target=\"_blank\" class=\"italy\" title=\"Italiano\"></a> <a href=\"/api/h.php?hl=ru\" target=\"_blank\" class=\"russia\" title=\"Русский\"></a> <a href=\"/api/h.php?hl=ja\" target=\"_blank\" class=\"japanese\" title=\"日本語\"></a> "
|
||
|
reval += " </div>";
|
||
|
reval += " </div>";
|
||
|
reval += " </div>";
|
||
|
reval += " </div>";
|
||
|
reval += " <div class=\"col-md-5 col-sm-5 taCOE\">";
|
||
|
reval += " <a href=\"http://www.tripadvisor.com/Attraction_Review-g294212-d6433772-Reviews-China_Highlights_Beijing_Tours_Day_Tour-Beijing.html\" rel=\"nofollow\" target=\"_blank\"><img src=\"/pic/ta-coe.png\"></a>";
|
||
|
reval += " </div>";
|
||
|
reval += " </div>";
|
||
|
reval += " <div class=\"visible-xs\" id=\"xsfooter\">";
|
||
|
reval += " <div class=\"container topspace15 footPhone\">";
|
||
|
reval += " <p><a href=\"/contactus/\">Contact us</a> <a href=\"/aboutus/\">About us</a></p>";
|
||
|
reval += " <p>© 1998-2017 China Highlights.</p></div>";
|
||
|
reval += " </div>";
|
||
|
$("#footer").html(reval);
|
||
|
$('iframe[name="google_conversion_frame"]').hide();
|
||
|
//var tagstr = '<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-MX79Q8" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>';
|
||
|
//$('body').append(tagstr)
|
||
|
});
|
||
|
|
||
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||
|
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||
|
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||
|
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||
|
ga('create', 'UA-31694-1', {'siteSpeedSampleRate': 100});
|
||
|
ga('require', 'displayfeatures');
|
||
|
ga('send', 'pageview');
|
||
|
|
||
|
(function() {
|
||
|
var _ref = document.referrer;
|
||
|
var q = getParameterByName("q", _ref);
|
||
|
if ( q.length > 0 ) {
|
||
|
var _keyworkds = getParameterByName("q", _ref);
|
||
|
var _date = new Date();
|
||
|
_date.setDate(_date.getDate()+30);
|
||
|
var exp = _date.toGMTString();
|
||
|
document.cookie='inquireTrackAG='+_keyworkds.replace(/(\s+)/g, '_')+';path=/;expires='+exp;
|
||
|
}
|
||
|
})();
|
||
|
|
||
|
function getParameterByName(name, url) {
|
||
|
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
|
||
|
var regex = new RegExp("[\\?&]" + name + "=([^&#]*)"),
|
||
|
results = regex.exec(url);
|
||
|
return results == null ? "" : decodeURIComponent(results[1].replace(/\+/g, " "));
|
||
|
}
|
||
|
// 移动端首页增加展开收缩效果
|
||
|
$(function() {
|
||
|
$(".withMenu").each(function(index, element) {
|
||
|
$withMenu = $(element);
|
||
|
$withMenu.click(function () {
|
||
|
$self = $(this);
|
||
|
var targetId = $self.data("target");
|
||
|
var collapse = $self.data("collapse");
|
||
|
|
||
|
if (collapse == undefined || collapse == 0) {
|
||
|
$self.children("a").text("x");
|
||
|
$self.data("collapse", "1");
|
||
|
$(targetId).show('fast');
|
||
|
} else {
|
||
|
$(targetId).hide();
|
||
|
$self.children("a").text("+");
|
||
|
$self.data("collapse", "0");
|
||
|
}
|
||
|
});
|
||
|
});
|
||
|
|
||
|
var $window = $(window);
|
||
|
var $xsfooter = $("#xsfooter");
|
||
|
var scroller = function() {
|
||
|
var scrollTop = $window.scrollTop();
|
||
|
if (scrollTop > 1000) {
|
||
|
$xsfooter.show("slow");
|
||
|
} else {
|
||
|
$xsfooter.fadeOut();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
if (window.addEventListener) {
|
||
|
window.addEventListener('scroll', scroller, false);
|
||
|
} else if (window.attachEvent) {
|
||
|
window.attachEvent('onscroll', scroller);
|
||
|
}
|
||
|
});
|