Commit d78d681f by agan

添加内容

parent ab912f1a
...@@ -63,23 +63,38 @@ ...@@ -63,23 +63,38 @@
$(function () { $(function () {
var browserLang = navigator.language var browserLang = navigator.language
if (browserLang.indexOf("zh") == -1) { var ua = window.navigator.userAgent.toLowerCase();
$(".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')
}
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 6) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.png" alt="">' 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)) { else if (/android/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' 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 { } else {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' 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-webp-box").html(html)
$(".down-btn2").on("click", function () { $(".down-btn2").on("click", function () {
......
...@@ -63,23 +63,38 @@ ...@@ -63,23 +63,38 @@
$(function () { $(function () {
var browserLang = navigator.language var browserLang = navigator.language
if (browserLang.indexOf("zh") == -1) { var ua = window.navigator.userAgent.toLowerCase();
$(".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')
}
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 6) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.png" alt="">' 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)) { else if (/android/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' 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 { } else {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="../download/images/down' + videoNum + '.webp" alt="">' 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-webp-box").html(html)
$(".down-btn2").on("click", function () { $(".down-btn2").on("click", function () {
......
...@@ -64,23 +64,38 @@ ...@@ -64,23 +64,38 @@
$(function () { $(function () {
var browserLang = navigator.language var browserLang = navigator.language
if (browserLang.indexOf("zh") == -1) { var ua = window.navigator.userAgent.toLowerCase();
$(".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')
}
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 6) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.png" alt="">' 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)) { else if (/android/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' 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 { } else {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' 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-webp-box").html(html)
$(".down-btn2").on("click", function () { $(".down-btn2").on("click", function () {
......
...@@ -64,23 +64,38 @@ ...@@ -64,23 +64,38 @@
$(function () { $(function () {
var browserLang = navigator.language var browserLang = navigator.language
if (browserLang.indexOf("zh") == -1) { var ua = window.navigator.userAgent.toLowerCase();
$(".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')
}
if (/iphone|ipad|ipod/.test(ua)) { if (/iphone|ipad|ipod/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 6) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.png" alt="">' 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)) { else if (/android/.test(ua)) {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' 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 { } else {
var videoNum = Math.ceil(Math.random() * 7) if (browserLang.indexOf("zh") == -1) {
var html = []; var videoNum = Math.ceil(Math.random() * 10)
html += '<img class="down-webp" src="download/images/down' + videoNum + '.webp" alt="">' 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-webp-box").html(html)
$(".down-btn2").on("click", function () { $(".down-btn2").on("click", function () {
......
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