提交 a92efb3b 编写于 作者: B bayanxing

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

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