|
|
@ -51,7 +51,19 @@
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
$(function() {
|
|
|
|
$(function() {
|
|
|
|
$(".copybtn").click(function() {
|
|
|
|
$(".copybtn").click(function() {
|
|
|
|
|
|
|
|
var u = navigator.userAgent, app = navigator.appVersion;
|
|
|
|
|
|
|
|
var isAndroid = u.indexOf('Android') > -1 || u.indexOf('Linux') > -1; //g
|
|
|
|
|
|
|
|
var isIOS = !!u.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/); //ios终端
|
|
|
|
|
|
|
|
if (isAndroid) {
|
|
|
|
window.txyxsdk.getCopy("{$novice}");
|
|
|
|
window.txyxsdk.getCopy("{$novice}");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if (isIOS) {
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
|
|
|
location.href = '?action=copy©content={$novice}'
|
|
|
|
|
|
|
|
}catch(err){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|