|
|
@ -75,7 +75,7 @@
|
|
|
|
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
|
|
|
|
<script src="__JS__/jquery-1.11.1.min.js" type="text/javascript"></script>
|
|
|
|
<script src="__JS__/ssg/clipboard.min.js" type="text/javascript"></script>
|
|
|
|
<script src="__JS__/ssg/clipboard.min.js" type="text/javascript"></script>
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
var issafariBrowser = /Safari/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent);
|
|
|
|
var issafariBrowser = checkSafari();
|
|
|
|
$("#copyVal").val(window.location.href);
|
|
|
|
$("#copyVal").val(window.location.href);
|
|
|
|
function check(){
|
|
|
|
function check(){
|
|
|
|
if(!issafariBrowser){
|
|
|
|
if(!issafariBrowser){
|
|
|
@ -100,6 +100,19 @@
|
|
|
|
alert("复制成功,请在Safari中打开");
|
|
|
|
alert("复制成功,请在Safari中打开");
|
|
|
|
e.clearSelection();
|
|
|
|
e.clearSelection();
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
function checkSafari() {
|
|
|
|
|
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
|
|
|
|
|
//判断是不是在iPhone的Safair浏览器打开的本页面
|
|
|
|
|
|
|
|
if (ua.indexOf('applewebkit') > -1 && ua.indexOf('mobile') > -1 && ua.indexOf('safari') > -1 &&
|
|
|
|
|
|
|
|
ua.indexOf('linux') === -1 && ua.indexOf('android') === -1 && ua.indexOf('chrome') === -1 &&
|
|
|
|
|
|
|
|
ua.indexOf('ios') === -1 && ua.indexOf('browser') === -1) {
|
|
|
|
|
|
|
|
return true;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
//alert("请使用iPhone中的Safari浏览器打开本页面!");
|
|
|
|
|
|
|
|
return false;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
|
|
|
|