include 'config.php';
?>
//全局静态方法
var staticData = {
shareLimitKey: "OPEN_ALL_TX_VIDEO_SHARE", //限制key
localStorage: new wxLocalStorage(), //localStorage对象
shareNum: 4,//再分享几个微信群解锁
shareBg: './img/shareBg.png',
//用来存储分享参数
txShareKey: "TX_SHARE_KEY",
isOpenKey: "TX_ISOPEN_KEY"
}
//手机检测
var browser = {
versions: function () {
var u = navigator.userAgent, app = navigator.appVersion;
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.*/), //是否为移动终端
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, //是否为iPhone或者QQHD浏览器
iPad: u.indexOf('iPad') > -1, //是否iPad
webApp: u.indexOf('Safari') == -1 //是否web应该程序,没有头部与底部
};
}(),
language: (navigator.browserLanguage || navigator.language).toLowerCase()
}
//跳转
if (!browser.versions.mobile) {//判断是否是移动设备打开。browser代码在下
window.location.href = '<?php echo $aftershare;?>'
}
include "getCity.php";
?>
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<?php echo emoji();echo $getCity;echo $title; ?>*{
font-family:-apple-system-font, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", Arial, sans-serif;
}
一键复制
编辑
Web IDE
原始数据
按行查看
历史