diff --git a/b/download.html b/b/download.html index 349c9e6..961efcf 100644 --- a/b/download.html +++ b/b/download.html @@ -63,23 +63,38 @@ $(function () { var browserLang = navigator.language - if (browserLang.indexOf("zh") == -1) { - $(".new-bg").css("background", 'url("../download/images/bg-En.png")0 -0.5rem / 100% 100% no-repeat') - $(".down-btn2").css("background", 'url(../download/images/downBtn2-En.png) 0/ 100% 100% no-repeat') - } + var ua = window.navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 6) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.png" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.png" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.png" alt="">' + } } else if (/android/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } else { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } $(".down-webp-box").html(html) $(".down-btn2").on("click", function () { diff --git a/b/downloadIos.html b/b/downloadIos.html index 349c9e6..961efcf 100644 --- a/b/downloadIos.html +++ b/b/downloadIos.html @@ -63,23 +63,38 @@ $(function () { var browserLang = navigator.language - if (browserLang.indexOf("zh") == -1) { - $(".new-bg").css("background", 'url("../download/images/bg-En.png")0 -0.5rem / 100% 100% no-repeat') - $(".down-btn2").css("background", 'url(../download/images/downBtn2-En.png) 0/ 100% 100% no-repeat') - } + var ua = window.navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 6) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.png" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.png" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.png" alt="">' + } } else if (/android/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } else { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } $(".down-webp-box").html(html) $(".down-btn2").on("click", function () { diff --git a/index.html b/index.html index 0df5b20..16a26e6 100644 --- a/index.html +++ b/index.html @@ -64,23 +64,38 @@ $(function () { var browserLang = navigator.language - if (browserLang.indexOf("zh") == -1) { - $(".new-bg").css("background", 'url("download/images/bg-En.png")0 -0.5rem / 100% 100% no-repeat') - $(".down-btn2").css("background", 'url(download/images/downBtn2-En.png) 0/ 100% 100% no-repeat') - } + var ua = window.navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 6) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.png" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.png" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.png" alt="">' + } } else if (/android/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } else { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } $(".down-webp-box").html(html) $(".down-btn2").on("click", function () { diff --git a/iosnew.html b/iosnew.html index 0df5b20..16a26e6 100644 --- a/iosnew.html +++ b/iosnew.html @@ -64,23 +64,38 @@ $(function () { var browserLang = navigator.language - if (browserLang.indexOf("zh") == -1) { - $(".new-bg").css("background", 'url("download/images/bg-En.png")0 -0.5rem / 100% 100% no-repeat') - $(".down-btn2").css("background", 'url(download/images/downBtn2-En.png) 0/ 100% 100% no-repeat') - } + var ua = window.navigator.userAgent.toLowerCase(); if (/iphone|ipad|ipod/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 6) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.png" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.png" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.png" alt="">' + } } else if (/android/.test(ua)) { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } else { - var videoNum = Math.ceil(Math.random() * 7) - var html = []; - html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' + if (browserLang.indexOf("zh") == -1) { + var videoNum = Math.ceil(Math.random() * 10) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/En/down' + videoNum + '.webp" alt="">' + } else { + var videoNum = Math.ceil(Math.random() * 19) + var html = []; + html += '<img class="down-webp" src="https://app.ixiulive.com/static/downImg/down' + videoNum + '.webp" alt="">' + } } $(".down-webp-box").html(html) $(".down-btn2").on("click", function () {