[JavaScript] Three parts of JavaScript code snippet

Source: Internet
Author: User

<script> (function () {/*if (Navigator.userAgent.toLowerCase (). IndexOf ("iphone") = = 1) {$ ("#id_download_btn img "). attr (" src "," http://cache.hinabian.com/mobile/images/downLoadLink.png "); return;} */var Oldurl = "Http://a.app.qq.com/o/simple.jsp?pkgname=com.hinabian.migrate"; var newurl = "http://m.hinabian.com/ Dlapp.html ";" if (Navigator.userAgent.toLowerCase (). IndexOf ("micromessenger") = = 1) {$ ("#id_download_btn"). Click ( function () {location.href = Newurl;});} else{$ ("#id_download_btn"). Click (function () {location.href = Newurl;}); *$ ("#id_share_info"). Click (function () {$ (this). Hide ();}); */}}) ();</script><script> (function () {if (Navigator.userAgent.indexOf ("micromessenger") = =-1) return; var json_config = json.parse (window. Signpackage); Wx.config ({debug:false, appId:json_config.appId, Timestamp:json_config.timestamp,noncestr:json_ Config.noncestr,signature:json_config.signature, jsapilist: [' onmenusharetimeline ', ' OnMenuShareAppMessage ']}); var title = ""; var desc = ""; var imgUrL = "http://cache.hinabian.com/images/share/logo.jpg"; var sharelink = Location.href;wx.ready (function () {// Share to the friend Circle Wx.onmenusharetimeline ({title: ' Sea side app, take you to understand overseas life, open your overseas life! ', link:sharelink,imgurl:imgurl});//share to a friend Wx.onmenushareappmessage ({title: ' Learn about living overseas, download app for the Sea ',//share title desc: ' Hundreds of thousands of of Chinese go abroad every year, how do they live abroad? The sea to take you to understand overseas life, open your overseas life! ',//Share description link:sharelink,//Share link imgurl:imgurl,//share icon type: ',//share type, music, video or link, do not fill default to Linkdataurl: '//If Typ E is music or video, to provide data link, default is empty});}) ();</script><!--statistic code--><script>var _HMT = _HMT | |  [];(function () {var HM = document.createelement ("script");  HM.SRC = "//hm.baidu.com/hm.js?41c4562713e00298de3d6b8c5a8192ae";   var s = document.getelementsbytagname ("script") [0]; S.parentnode.insertbefore (hm, s);}) (); </script><script type= "Text/javascript" >$ (Window). On ("Orientationchange", function () {$ ("body"). Removeclass (' redraw '); $ ("body"). AddClass (' Redraw ');}); </script>

[JavaScript] Three parts of JavaScript code snippet

Related Article

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.