提交 a92efb3b 编写于 作者: B bayanxing

codecheck修改 3个方法不超过50行需要豁免 js方法代码

Signed-off-by: Nbayanxing <bayanxing@kaihongdigi.com>
上级 b1f9ef13
...@@ -68,7 +68,6 @@ $(document).ready(function(){ ...@@ -68,7 +68,6 @@ $(document).ready(function(){
$('.control').hover(function(){ $('.control').hover(function(){
clearInterval(clc); clearInterval(clc);
$('.control').show(); $('.control').show();
// return false;允许传播
}); });
//向右边前进 //向右边前进
$('.to-right').click(function(){ $('.to-right').click(function(){
...@@ -113,7 +112,6 @@ $(document).ready(function(){ ...@@ -113,7 +112,6 @@ $(document).ready(function(){
} }
}); });
clc = setInterval(moveImg, setTime); clc = setInterval(moveImg, setTime);
}); });
...@@ -175,7 +173,6 @@ $(document).ready(function(){ ...@@ -175,7 +173,6 @@ $(document).ready(function(){
$('.control1').hover(function(){ $('.control1').hover(function(){
clearInterval(clc); clearInterval(clc);
$('.control1').show(); $('.control1').show();
// return false;允许传播
}); });
//向右边前进 //向右边前进
...@@ -283,7 +280,6 @@ $(document).ready(function(){ ...@@ -283,7 +280,6 @@ $(document).ready(function(){
$('.control2').hover(function(){ $('.control2').hover(function(){
clearInterval(clc); clearInterval(clc);
$('.control2').show(); $('.control2').show();
// return false;允许传播
}); });
//向右边前进 //向右边前进
$('.to-right2').click(function(){ $('.to-right2').click(function(){
......
...@@ -251,12 +251,14 @@ $(document).ready(function(){ ...@@ -251,12 +251,14 @@ $(document).ready(function(){
}); });
} }
}); });
/*点击回到顶部*/ /*点击回到顶部*/
$('#backToTop-up').click(function(){ $('#backToTop-up').click(function(){
$('html, body').animate({ $('html, body').animate({
scrollTop: 0 scrollTop: 0
}, 500); }, 500);
}); });
/*点击到底部*/ /*点击到底部*/
$('#backToTop-down').click(function(){ $('#backToTop-down').click(function(){
$('html, body').animate({ $('html, body').animate({
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
function setTab(m,n){ function setTab(m,n){
var tli=document.getElementById("menu"+m).getElementsByTagName("li"); var tli=document.getElementById("menu"+m).getElementsByTagName("li");
var mli=document.getElementById("main"+m).getElementsByTagName("ul"); var mli=document.getElementById("main"+m).getElementsByTagName("ul");
for(i=0;i<tli.length;i++){ for(var i=0;i<tli.length;i++){
tli[i].className=i==n?"hover":"outer"; tli[i].className=i==n?"hover":"outer";
mli[i].style.display=i==n?"block":"none"; mli[i].style.display=i==n?"block":"none";
} }
......
...@@ -1713,7 +1713,7 @@ ...@@ -1713,7 +1713,7 @@
/*根据所选的省份来显示城市列表*/ /*根据所选的省份来显示城市列表*/
function showCity(obj) { function showCity(obj) {
var val = obj.options[obj.selectedIndex].value; var val = obj.options[obj.selectedIndex].value;
current_prov = val; var current_prov = val;
if (val >= 0) { if (val >= 0) {
city.style.display = 'inline-block'; city.style.display = 'inline-block';
country.style.display = 'none'; country.style.display = 'none';
...@@ -1742,7 +1742,7 @@ ...@@ -1742,7 +1742,7 @@
} else { } else {
country.style.display = 'none'; country.style.display = 'none';
} }
current_city = val; var current_city = val;
if (val != null) { if (val != null) {
country.length = 1; country.length = 1;
if (province[current_prov]["city"][val]) { if (province[current_prov]["city"][val]) {
...@@ -1762,7 +1762,7 @@ ...@@ -1762,7 +1762,7 @@
}; };
function selectCountry(obj) { function selectCountry(obj) {
current_country = obj.options[obj.selectedIndex].value; var current_country = obj.options[obj.selectedIndex].value;
showAddr() showAddr()
}; };
function showAddr() { function showAddr() {
......
...@@ -198,7 +198,7 @@ ...@@ -198,7 +198,7 @@
function init() { function init() {
var stars = document.getElementById("stars"); var stars = document.getElementById("stars");
windowWidth = window.innerWidth; var windowWidth = window.innerWidth;
stars.width = windowWidth / 2; stars.width = windowWidth / 2;
stars.height = window.innerHeight / 4; stars.height = window.innerHeight / 4;
context = stars.getContext("2d"); context = stars.getContext("2d");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册