Get URL to pass in the parameters, statutory holidays or weekends (excluding holiday) show, hide phone numbers

Source: Internet
Author: User

Http://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-weizhang.shtml

Http://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-ershouche.shtml

Http://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-xinche.shtml

Http://www.4008000000.com/m/cpchexian/campaign/waimei/IBhuokechanggui-fuwu.shtml





<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">

<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 "/>

<title> Safe car insurance, call quote send mobile Power! </title>

<meta name= "keywords" content= "motor vehicle insurance vehicles Insurance"/>

<meta name= "description" content= "Safe car insurance, call quote send mobile Power!" "/>

<meta http-equiv= "Content-language" content= "ZH-CN"/>

<meta http-equiv= "x-ua-compatible" content= "Ie=emulateie7"/>

<meta name= "Copyright" content= "This page belongs to China Ping ' an. All rights Reserved "/>

<meta name= "Author" content= "China Peace"/>

<meta content= "yes" name= "apple-mobile-web-app-capable"/>

<meta content= "Width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name= "viewport"/>

<meta content= "black-translucent" name= "Apple-mobile-web-app-status-bar-style"/>

<meta content= "Telephone=no" name= "Format-detection"/>

<link rel= "stylesheet" href= "http://pcss1.4008000000.com/app_css/4008000000/youhui/m/cpchexian/campaign/ Waimei/ib.css "type=" Text/css "/>


<body>

<div class= "Header_m" >

<span class= "sign" > Insurance/Banking/Investment </span>

</div>


<section class= "banner" >

</section>


<section class= "Pro_msg" >

<!--Jiangxi, Hunan, Hubei, Heilongjiang, Shandong including Qingdao, Guangxi, Chongqing, Shaanxi do not participate in activities--

</section>


<section class= "Btn_part" >

<a href= "tel:400-920-6801" class= "contact_btn" id= "T-contact" data-size= "." Title= "Dial 400-920-6801" otitle= " Dial 400-920-6801 "otype=" button >

<!--<span class= "Cj_ico cj_ico_phone" ></span>

<span class= "line" ></span>-

<span id= "T-contact-mobile" class= "Tel" > Click to Dial 400-920-6801</span>

</a>

<!--<a href= "" class= "baojia_btn" id= "T-zaixianbaojia" title= "online quote" otitle= "online Quote" otype= "button" > online quote </a >

</section>


<section class= "Form_list" >

<div class= "Mobwrapper" ></div>

</section>


<footer class= "Footer" >

<p class= "P1" >

<span class= "S1" > Buy auto insurance, the officer net is enough >></span>

<span class= "S2" ><a href= "http://www.4008000000.com" target= "_blank" id= "T-4008" title= "4008 official website" otitle= " 4008 official website "otype=" button >www.4008000000.com</a></span>

</p>

<p class= "P2" >

<a href= "#" id= "T-shoujiban" title= "mobile Version" otitle= "mobile Version" otype= "button" > Mobile version </a> | <a href= "http://www.4008000000.com/zaixiangoumai/chexian/chexian.shtml?inner_media= Baojiakuang-liaojiechexian "id=" T-zhuomianban "title=" desktop "otitle=" desktop Version "otype=" button "> Desktop Edition </a>

</p>

<p class= "P3" >[email protected] Ping An pass insurance-about Ping an </p>

</footer>


<!--START: Public Bottom--

<script type= "Text/javascript" src= "Http://pscript1.4008000000.com/app_js/paui/1.0.1/build/pa.ui.min.js" > </script>

<script type= "Text/javascript" >

var _hmt = _HMT | | [];

(function () {

function Getparams (name) {

var reg = new RegExp (' (^|&) ' + name + ' = ([^&]*) (&|$) ', ' I ');

var r = window.top.location.search.substr (1). Match (REG);

if (r) {

return decodeURI (r[2]);

}

return null;

}

var mobile_num = getparams (' mobile ') | | "400-920-6801",

mobile= "Click to dial" + Mobile_num,

$T _contact = $ (' #T-contact '),

$T _contact_mobile = $ (' #T-contact-mobile ');

$T _contact.attr ({' href ': ' Tel: ' + mobile_num, ' title ': ' Dial ' + mobile, ' otitle ': ' Dial ' + mobile} ');

$T _contact_mobile.text (MOBILE);


$T _contact.bind ("click", Function () {

_hmt.push ([' _trackevent ', "IB", "tel", Mobile]);

});


Explicit phone number

var date=new date ();

Statutory holidays

var legalday=["2016/1/1", "2016/2/8", "2016/2/9", "2016/2/10", "2016/2/11", "2016/2/12", "2016/4/4", "2016/5/2", "2016/ 6/9 "," 2016/6/10 "," 2016/9/15 "," 2016/9/16 "," 2016/10/3 "," 2016/10/4 "," 2016/10/5 "," 2016/10/6 "," 2016/10/7 "];

var legaldayflag=legalday.some (function (Elem,index,arr) {

return legalday==date.tolocaledatestring ();

});

Compensatory time off

var fillholidays=["2016/2/6", "2016/2/14", "2016/6/12", "2016/9/18", "2016/10/8", "2016/10/9"];

var fillholidaysflag=fillholidays.some (function (Elem,index,arr) {

return fillholidays==date.tolocaledatestring ();

});

Statutory holidays or weekends (excluding compensatory times)

if (Legaldayflag | | (!fillholidaysflag && date.getday () ==0 | | date.getday () ==6)) {

if ((Date.gethours () ==8 && date.getminutes () >=30) | | (Date.gethours () >8 && date.gethours () <=18)) {

Show phone number

$T _contact.show ();

}else{

Hide Phone number

$T _contact.hide ();

}

}else{

8 o'clock in the morning to 20 o'clock (incl. compensatory)

if (date.gethours () >=8 && date.gethours () <=19) {

Show phone number

$T _contact.show ();

}else{

Hide Phone number

$T _contact.hide ();

}

}

})();


$ (". Mobwrapper"). Load ("/ebusiness/car/mobile/quoter/insurebaseinfocore.html");


function Fontani () {

var fon = $ ('. Contact_btn '). Data (' size ');

if (fon = =. 33) {

$ ('. Contact_btn '). CSS (' font-size ', '. 38rem '). Data (' Size ', '. 38 ');

}else{

$ ('. Contact_btn '). CSS (' font-size ', '. 33rem '). Data (' Size ', '. 33 ');

}

}

SetInterval (fontani,300);


SetTimeout (' Exesdcjs () ', 0);

function Exesdcjs () {

var jdomain= "www.4008000000.com";

var js_path= "/app_js/sdc/src/400.js";

var domain= "http" + (window.location.protocol.indexOf (' https: ') ==0? ' S ': ') + "://" +jdomain;

var sdc_js=document.createelement ("script");

Sdc_js.src=domain+js_path;

var headelem=document.getelementsbytagname ("head") [0];

Headelem.appendchild (SDC_JS);

}

(function () {

var HM = document.createelement ("script");

HM.SRC = "//hm.baidu.com/hm.js?2f53c35010dbe120000b9a32bd028225";

var s = document.getelementsbytagname ("script") [0];

S.parentnode.insertbefore (hm, s);

})();

</script>

<!--END: Public Bottom--

<link rel= "stylesheet" href= "http://pcss1.4008000000.com/app_css/4008000000/youhui/m/cpchexian/campaign/ Waimei/ib.css "type=" Text/css "/>

</body>


Get URL to pass in the parameters, statutory holidays or weekends (excluding holiday) show, hide phone numbers

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.