Commit 4d5a2406 by dabai

ios 下载测试

parent ad38cdad
Showing with 22 additions and 1 deletions
......@@ -90,10 +90,10 @@
});
$('.iosDown').on('click',function(){
copyText(data.icid)
download()
})
function download() {
ga('send', 'event', {
eventCategory: 'ios',
eventAction: 'click',
......@@ -119,5 +119,26 @@ function gtag_report_conversion() {
$('.topUp').on('click',function(){
window.location.href = 'https://www.footseen.com/footseen/phonepay/applepay.html?lang='+sessionStorage.lang+'&gofrom=web'+'&gofrom=web&cidStr=h5_footseengw';
})
function copyText(text) {
var textarea = document.createElement("textarea");
var currentFocus = document.activeElement;
document.body.appendChild(textarea);
textarea.value = text;
textarea.focus();
if (textarea.setSelectionRange)
textarea.setSelectionRange(0, textarea.value.length);
else
textarea.select();
try {
var flag = document.execCommand("copy");
} catch(eo){
var flag = false;
}
document.body.removeChild(textarea);
currentFocus.focus();
return flag;
}
</script>
</html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment