Fast Business Pass trigger JS code

Source: Internet
Author: User
Tags cas

/** * The function of this JS function is that if the code of the Fast business pass is completed, then call the fast business through the Open Chat window function * Otherwise directly open the link address, and the site to get to the source of the dialog URL parameters passed to the Chat window * Note: The link will be opened directly to the address of the case, When the customer clicks on the page's enquiry link before generating a quick-connect icon, it triggers a usage example: * 1. Normal Entry dialog (PC Mobile is valid): <a href= "javascript:void (0)" onclick= "Onkst (); return false;" > Online Consulting </a>; * 2. Add Identity Entry dialog (PC Mobile is valid): <a href= "javascript:void (0)" onclick= "Onkst (' conversation id '); return false;" > Online Consulting </a>; * 3. Enter the phone-side conversation (Force settings to the phone's conversation window): <a href= "javascript:void (0)" onclick= "Onkst (' Conversation id ', true); return false;" > Online Consulting </a>; * @param kschatlink Specify to open the link address, do not specify the default link address in the function * @param Text dialog ID, do not specify * @param ismobile whether it is a mobile phone, do not specify * @author DRC * @since 2 016-04-27 * @version 2.2 * @modifyTime 2017-3-1 * @modified by ZJQ*/varonkst=function(text,ismobile) {//Please replace the "computer generated code-link address" in the link address, do not go to other places to copyKschatlink = ' https://kefu6.kuaishang.cn/bs/im.htm?cas=46323___846528&fi=49675 '; /** * If you force open a new window, then release the settings, do not set the phone does not open a new window, the PC opens a new window, this setting is only valid for the current custom event * If you want to take effect globally, including the default Open Chat window event for fast trader, this variable is ksuserdefinedopennewchat Win definition can be KS.J before*/    //var ksuserdefinedopennewchatwin=true;Eval (function(P,A,C,K,E,R) {e=function(c) {return(C<a? ": E (parseint (C/A))) + ((c=c%a) >35? String.fromCharCode (c+29): c.tostring (+))};if (! ". Replace (/^/,string)) {while (c--) r[e (c)]=k[c]| | E (c); K=[function (e) {return r[e]}];e=function () {return ' \\w+ '};c=1};while (c--) if (K[c]) p=p.replace (New RegExp (' \\b ') +e (c) + ' \\b ', ' G '), K[c]), return P} (' H Q (A, B) {3 (!a) 9 j;9 z D ("(^|&)" +b+ "= ([^&]*) (&|$)", "I"). (a)}h g (A, B) { 4 C=A.J (\ '? \ '); 3 (c==-1) 9\ ' \ '; a=a.14 (C+1,A.Y); 4 d=z D ("(^|&)" +b+ "= ([^&]*] (&|$)", "I"); 4 r=a.k (d); 3 (r!=l) 9 O (r[2]); 9\ ' \ '}3 (12&AMP;&AMP;5.J (\ ' l=1\ ') ==-1) {3 (5.J (\ ') ') ==-1) {5+=\ '? l=1\ '}6{5+=\ ' &l=1\ '}}4 7,a=5;4 v=5.11 ("?"); V.17 (""); 3 (q p!=\ ' r\ ' &&p==w) {7=w}6 3 (q (v[1],\ ' l\ ')) {7=j}6{7=w}h T () {4 a=\ ' \ '; u{4 b=g (5,\ ' x\ '); 3 (b) {4 c=\ ' \ '; 4 D=K.V.K (z D (\ ' (^|) \ ' +b+\ ' u\ ' +b+\ ' = ([^;] *) (; |$) \ ')); 3 (d!=l) {c=o (d[2])}3 (c) {a+=\ ' &z=\ ' +c}}}o (e) {}4 f= ""; u{3 (n.k.n.y>0) {F=n.k.n}}o (e) {f=k.n}3 (!f| | f.y==0) {f=k.n}a+=\ ' &s=\ ' +c (m.b.x); 3 (f) a+=\ ' &t=\ ' +c (f); 3 (s) a+=\ ' &h=\ ' +c (s); 3 (5.J (\ '? \ ') ==-1) {a=\ '? \ ' +A.W (1)}5+=a;3 (!7) {m. B.x=5}6{4 g=m.y (5,\ ' m\ '); 3 (g) {u{g.10 ()}o (e) {}}6{m.b.x=5}}}3 (q 8!=\ ' r\ ') {4 p={};3 (s) p[\ ' h\ ']=s;3 (7) p[\ ' 13\ ']=\ ' m\ ' ; u{3 (q 8.f==\ ' h\ ') {3 (7&AMP;&AMP;A.J (\ ' 15\ ') ==-1&&!8.e) {8.E=A}8.F (P)}6 3 (q 8.i==\ ' h\ ') {8.I (P)}6{t ()}}o (E) { T ()}}6{t ()} ', 62, 70, ' | | | if|var|kschatlink|else|opennewchatwin| ks|return| | | | | | | | function| | indexof|document|ism|window|referrer|catch| | typeof| | Text|ksopenlink|try|localarr|true|href|length|new|_kschatlink|location|encodeuricomponent| regexp|customurl|openchatwin|getquerystring|stext|openchatlink|false|match|null|_blank|opener|unescape| Ksuserdefinedopennewchatwin|checkquerystring|undefined|dp|ref|_ks_|cookie|substring|cas|open|vi|focus|split| Ismobile|otarget|substr|kuaishang|test|push '. Split (' | '), 0,{})};

Fast Business Pass trigger JS code

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.