mirror of https://github.com/1099438829/macUI.git
xiuzheng
This commit is contained in:
parent
94050176ce
commit
3080e1a878
20
js/mac.js
20
js/mac.js
|
|
@ -610,24 +610,24 @@ window.Win10 = {
|
||||||
renderDocks:function () {
|
renderDocks:function () {
|
||||||
var cell_width=74;
|
var cell_width=74;
|
||||||
var width=document.body.clientWidth ;
|
var width=document.body.clientWidth ;
|
||||||
|
var docks=$("#footer .dock li");
|
||||||
|
var max_num=parseInt(width/cell_width)-1;
|
||||||
|
for (var i = 0; i < docks.length; i++) {
|
||||||
|
if (i>max_num) {
|
||||||
|
docks.eq(i).css('display','none');
|
||||||
|
}else{
|
||||||
|
docks.eq(i).css('display','list-item');
|
||||||
|
}
|
||||||
|
}
|
||||||
if(width>768){
|
if(width>768){
|
||||||
$("#footer .dock li a img").hover(
|
$("#footer .dock li a img").hover(
|
||||||
function(){
|
function(){
|
||||||
$(this).parent('a').prev().css('display','flex');
|
$(this).parent('a').prev().css('display','flex');
|
||||||
},
|
},
|
||||||
function(){
|
function(){
|
||||||
$(this).parent('a').prev().css('display','none');
|
$(this).parent('a').prev().css('display','none');
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
var docks=$("#footer .dock li");
|
|
||||||
var max_num=parseInt(width/cell_width)-1;
|
|
||||||
for (var i = 0; i < docks.length; i++) {
|
|
||||||
if (i>max_num) {
|
|
||||||
docks.eq(i).css('display','none');
|
|
||||||
}else{
|
|
||||||
docks.eq(i).css('display','list-item');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}else{
|
}else{
|
||||||
$("#footer .dock li a img").hover(function(){
|
$("#footer .dock li a img").hover(function(){
|
||||||
$(this).parent('a').prev().css('display','none');
|
$(this).parent('a').prev().css('display','none');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue