|
|
|
@ -17,7 +17,7 @@
|
|
|
|
|
<link rel="stylesheet" type="text/css" href="__CSS__/index2.css">
|
|
|
|
|
<title>{$game['relation_game_name']}</title>
|
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<body onclick="checkSafari()">
|
|
|
|
|
<style>
|
|
|
|
|
.layui-layer-btn0 {
|
|
|
|
|
font-size: 18px;
|
|
|
|
@ -292,19 +292,37 @@
|
|
|
|
|
<script src="__STATIC__/ios9/js/layer/layer.js?VerNo=20190923" type="text/javascript"></script>
|
|
|
|
|
<script>
|
|
|
|
|
$(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var isTipSafari = false;
|
|
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
|
|
if (ua.match(/MicroMessenger/i) == "micromessenger") {
|
|
|
|
|
alert(111);
|
|
|
|
|
isTipSafari = true;
|
|
|
|
|
} else if(ua.match(/QQ/i) == "qq") {
|
|
|
|
|
alert(222);
|
|
|
|
|
isTipSafari = true;
|
|
|
|
|
} else if(ua.match(/aliapp/i) == "aliapp") {
|
|
|
|
|
alert(333);
|
|
|
|
|
isTipSafari = true;
|
|
|
|
|
} else {
|
|
|
|
|
isTipSafari = false
|
|
|
|
|
}
|
|
|
|
|
$(document).on('click','html',function(){
|
|
|
|
|
isTipSafari = true;
|
|
|
|
|
alert(isTipSafari);
|
|
|
|
|
function checkSafari(){
|
|
|
|
|
alert(888);
|
|
|
|
|
if (isTipSafari) {
|
|
|
|
|
console.log(456);
|
|
|
|
|
$(".safari").css("position", "fixed");
|
|
|
|
|
$('.safari').show();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$('html').click(function(){
|
|
|
|
|
console.log(123);
|
|
|
|
|
if (isTipSafari) {
|
|
|
|
|
console.log(456);
|
|
|
|
|
$(".safari").css("position", "fixed");
|
|
|
|
|
$('.safari').show();
|
|
|
|
|
}
|
|
|
|
|