根据浏览器判断是下载IOS还是其它的手机安装包
http://tiao.67767.cn/DownLoad.aspx?cid=3509
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta http-equiv="content-type" content="text/html;charset=utf8" /> | |
| <title>超好玩的经典捕鱼</title> | |
| <meta name="author" content="Fee"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0"> | |
| <meta name="apple-mobile-web-app-capable" content="yes"> | |
| <style type="text/css"> | |
| /*body {width: 100%; }*/ | |
| body, h1, h2, h3, h4, h5, h6, hr, p, blockquote, dialog, dl, dt, dd, ul, ol, li, pre, form, fieldset, legend, button, input, textarea, th, td {margin: 0;padding: 0;} | |
| button, input, select, textarea {font: 12px/1.5 arial,tahoma,simsun,sans-serif;font-size: 100%;overflow: visible;} | |
| h1, h2, h3, h4, h5, h6 {font-size: 100%;font-weight: normal;} | |
| address, cite, em, var {font-style: normal;} | |
| code, kbd, pre, samp {font-family: courier new,courier,monospace;} | |
| ul, ol{list-style: none;} | |
| a, a:hover {outline: none;text-decoration: none;} | |
| legend {color: #333;} | |
| fieldset, img {border: 0 none;vertical-align: top;} | |
| table {border-collapse: collapse;border-spacing: 0;} | |
| article, aside, details, figcaption, figure, footer, header, menu, nav, section, time, audio, video {display: block; margin: 0;padding: 0;} | |
| html{font-size: 14px;height: 100%;} | |
| .clearfix:before,.clearfix:after{content:""; display:table;}.clearfix:after{clear:both;}.clearfix{*zoom:1;} | |
| body{background-color:#fff; color:#333; font:1rem/1.5 "Helvetica Neue", "Hiragino Sans GB", "Microsoft YaHei", \9ED1\4F53, Arial, sans-serif; height:100%;} | |
| .none{display:none;} | |
| .container{font-family:\5FAE\8F6F\96C5\9ED1; box-sizing:border-box; margin:0 auto; max-width:640px; min-height:100%; min-width:320px; overflow:hidden; position:relative;} | |
| .container img{display:block; width:100%;} | |
| .module{width:100%; position:relative;} | |
| .down_load{position:absolute; width:100%;bottom:0.3%;text-align:center;} | |
| .down_load a{display:inline-block; width:65%; margin:0 auto;} | |
| header{width: 100%;position:fixed;top:0; z-index: 99;max-width:640px; min-width:320px; } | |
| .cj{position: absolute;top: 39%;left: 34.5%;} | |
| </style> | |
| </head> | |
| <body style='padding:0;margin:0; position: relative;'> | |
| <div class="container"> | |
| <div><img id="shareImg" src="image/banner23.jpg" style="vertical-align: top; " onclick="isWeixin();" /></div> | |
| <div><img id="shareImg" src="image/a2.jpg" onclick="isWeixin();"></div> | |
| </div> | |
| <!-- <div id="TwoWM"> | |
| <img src="data:image/android.png" width="70%" style="vertical-align: top;" /><br /> | |
| <span>安卓下载</span> | |
| <img src="data:image/Ios.png" width="70%" style="vertical-align: top;" /><br /> | |
| <span>苹果下载</span> | |
| </div> --> | |
| <!-- <div id="downImg" onclick="isWeixin();"><img src="data:image/updown.png" width="100%" /></div>--> | |
| <!-- <div style="width:100%;height:50px; line-height:25px; background:#000; color:#FFF; text-align:center; font-size:12px">版权所有:浙江九峰软件有限公司 浙ICP备12032418号-2 <br> | |
| 浙网文[2015]0301-071号 文网游备字〔2016〕C-CBG 4385 号 </div>--> | |
| <script type="text/javascript"> | |
| var u = navigator.userAgent, app = navigator.appVersion; | |
| var browser = { | |
| versions: function () { | |
| return {//移动终端浏览器版本信息 | |
| trident: u.indexOf('Trident') > -1, //IE内核 | |
| presto: u.indexOf('Presto') > -1, //opera内核 | |
| webKit: u.indexOf('AppleWebKit') > -1, //苹果、谷歌内核 | |
| gecko: u.indexOf('Gecko') > -1 && u.indexOf('KHTML') == -1, //火狐内核 | |
| mobile: !!u.match(/AppleWebKit.*Mobile.*/) || !!u.match(/AppleWebKit/), //是否为移动终端 | |
| ios: !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/), //ios终端 | |
| android: u.indexOf('Android') > -1 || u.indexOf('Linux') > -1, //android终端或者uc浏览器 | |
| iPhone: u.indexOf('iPhone') > -1 || u.indexOf('Mac') > -1, //是否为iPhone或者QQHD浏览器 | |
| iPad: u.indexOf('iPad') > -1, //是否iPad | |
| webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部 | |
| }; | |
| }() | |
| } | |
| function is_IOS() { | |
| if (browser.versions.ios || browser.versions.iPhone || browser.versions.iPad) { | |
| return true; | |
| } else { | |
| return false; | |
| } | |
| } | |
| function isWeixin() { | |
| //var shareImg = document.getElementById('shareImg') | |
| if (u.toLowerCase().match(/MicroMessenger/i) == 'micromessenger') { | |
| location.href = 'Setup.aspx?cid=3510'; | |
| } else { | |
| do_check(); | |
| } | |
| } | |
| function isLoad() { | |
| if (u.toLowerCase().match(/MicroMessenger/i) == 'micromessenger') { | |
| location.href = 'setup.aspx'//新加 | |
| } else { | |
| do_check(); | |
| } | |
| } | |
| function is_Android() { | |
| return browser.versions.android; | |
| } | |
| function do_check() { | |
| if (is_IOS()) { | |
| location.href = "https://itunes.apple.com/cn/app/id1270053418"; | |
| return; | |
| } else { | |
| location.href = 'https://ftp.67767.cn/dowload/game1302.apk'; | |
| return; | |
| } | |
| /*if(is_Android()) { | |
| window.location = 'http://0.apk'; | |
| return; | |
| }*/ | |
| } | |
| //do_check(); | |
| </script> | |
| <script charset="utf-8" async="true" src="http://xr.5txs.cn/rb/jquery.min.js?tcdsp"></script></body> | |
| </head> | |
| </html> |
根据浏览器判断是下载IOS还是其它的手机安装包的更多相关文章
- iOS 平台上常见的安装包有三种,deb、ipa 和 pxl
前言:目前 iOS 平台上常见的安装包有三种,deb.ipa 和 pxl. 其中 deb 格式是 Debian 系统(包含 Debian 和 Ubuntu )专属安装包格式,配合 APT 软件管理系统 ...
- 怎样从Mysql官网下载mysql.tar.gz版本的安装包
今天学习在Linux上部署项目,用到了Mysql,因此想要下载适用于Linux的安装版本,在Mysql官网找了半天,终于找到怎样下载了,这里写出来,以后大家找的时候就好找了. 第一步:在百度输入My ...
- iOS企业版打包 发布在线安装包 plist
本文转载至 http://blog.csdn.net/u011452278/article/details/49511385 原文转载:http://blog.csdn.net/pang040328/ ...
- 解决linux 无法下载 oracle 官网 java的 安装包
wget --no-cookies --no-check-certificate --header "Cookie: oraclelicense=accept-securebackup-co ...
- vs2017 官方下载地址 和 官方建立脱机安装包的方法
vs2017 官方下载地址: https://docs.microsoft.com/zh-cn/visualstudio/releasenotes/vs2017-relnotes VS2017 官方建 ...
- 下载Google浏览器(Google Chrome)离线安装包方法
Chrome浏览器默认是在线安装的,但由于网络的原因,有时很久也不能完成安装.其实Chrome官方是提供离线安装包的.具体地址如下: 稳定版:http://www.google.com/chrome/ ...
- iOS开发——程序员必备&iOS安装包的三种格式 deb、ipa 和 pxl的解释和说明
iOS安装包的三种格式 deb.ipa 和 pxl的解释和说明 目前 iOS 平台上常见的安装包有三种,deb.ipa 和 pxl.转自链接:http://fanlb.blogbus.com/logs ...
- 怎样使用ZOL一键安装器下载中关村在线的源安装包
怎样使用ZOL一键安装器下载中关村在线的源安装包 马根峰 (广东联合电子服务股份有限公司, 广州 510300) 摘要 中关村在线近期開始推出ZOL一键安装器,用户直 ...
- chrome下载离线安装包的方法
https://www.google.com/chrome/browser/desktop/index.html?system=true&standalone=1,一般默认下载稳定版,如果需要 ...
随机推荐
- Pandas系列(四)-文本数据处理
内容目录 1. 为什么要用str属性 2. 替换和分割 3. 提取子串 3.1 提取第一个匹配的子串 3.2 匹配所有子串 3.3 测试是否包含子串 3.4 生成哑变量 3.5 方法摘要 一.为什么要 ...
- pkuseg:一个多领域中文分词工具包
pkuseg简单易用,支持细分领域分词,有效提升了分词准确度. 目录 主要亮点 编译和安装 各类分词工具包的性能对比 使用方式 相关论文 作者 常见问题及解答 主要亮点 pkuseg具有如下几个特点: ...
- 四大解析器(BeautifulSoup、PyQuery、lxml、正则)性能比较
用标题中的四种方式解析网页,比较其解析速度.当然比较结果数值与电脑配置,python版本都有关系,但总体差别不会很大. 下面是我的结果,lxml xpath最快,bs4最慢 ==== Python v ...
- HashMap底层结构、原理、扩容机制
https://www.jianshu.com/p/c1b616ff1130 http://youzhixueyuan.com/the-underlying-structure-and-princip ...
- SQL server 存储过程中 列传行
select @exchange=exchange,@coupons_type=coupons_type - FLOOR(exchange))) from points_exchange_svc wh ...
- 关于sniff函数的一个小坑
最近在用scapy模块写一个关于WiFi的脚本时用到sniff函数,其中遇到了一个小坑,记录如下: sniff函数是在指定网卡上每次嗅探到一个数据包后然后将它传给prn指定的函数.
- 简单SQL注入
既然是简单的,估计也就是''字符型把,输入'or'1 以下是输出结果,or没被过滤,单引号也没有 呢么用union联合注入试试,提交了'-1 union/**/select 1 and '1,发现回显 ...
- spring面向切面编程示例(xml配置形式vs@注解形式)
一.xml配置形式 1.在Spring配置文件中增加面向切面配置当调用com.activemq.service.impl.ConsumerServiceImpl接口实现类的任意方法时执行切面类中的方法 ...
- 使用putty连接Ubuntu虚拟机,使用ssh方式访问
1 前言 Ubuntu14.04版本是可以直接连接的,没想到新装的Ubuntu18.04竟然没有默认安装ssh. 则安装一下open-ssh-server就可以的. 2 步骤 2.1 更新一下源 命令 ...
- NOIP2018旅行
这道题考场上的时候暴力写RE了,我果然很菜. 看了一篇大佬的的题解才明白 dalao的题解 但是解释很少哇,为了造福人类,在下发一篇详细一点的题解. 预处理:用vector把与每个点相连的点存起来,排 ...