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