javascript update

This commit is contained in:
devin 2012-04-20 09:45:40 +08:00
parent 1f077cf2b3
commit 2ebed9e44a
2 changed files with 7 additions and 3 deletions

View File

@ -363,10 +363,10 @@ var orbitDesktop = function(dom){
$("div#sections #group_wrapper .grp").sortable({ $("div#sections #group_wrapper .grp").sortable({
start:function(){ start:function(){
slabel = $(this).siblings('.section_label'); slabel = $(this).siblings('.section_label');
slabel.find('li:hidden').fadeIn(500); slabel.find('li:hidden').stop(1,1).fadeIn(500);
}, },
stop:function(){ stop:function(){
slabel.find('li:not(:nth-child(1))').fadeOut(500); slabel.find('li:not(:nth-child(1))').stop(1,1).fadeOut(500);
} }
}); });
$("div#sections .section_label li:not(:nth-child(1))").droppable({ $("div#sections .section_label li:not(:nth-child(1))").droppable({
@ -387,6 +387,7 @@ var orbitDesktop = function(dom){
o.desktopData["home"]=""; o.desktopData["home"]="";
} }
} }
$(this).find('span.tile').addClass('op06',400);
}, },
over:function(){ over:function(){
$(this).find('span.tile').removeClass('op06'); $(this).find('span.tile').removeClass('op06');
@ -417,7 +418,7 @@ var orbitDesktop = function(dom){
$group = $('<div class="group" id="'+o.sectionList[section]._id+'"><div class="section_label"><ul class="section_grp"></ul></div><ul class="grp" id="section'+(z+1)+'"></ul></div>'); $group = $('<div class="group" id="'+o.sectionList[section]._id+'"><div class="section_label"><ul class="section_grp"></ul></div><ul class="grp" id="section'+(z+1)+'"></ul></div>');
for(x=0;x<4;x++){ for(x=0;x<4;x++){
if(x==0){ if(x==0){
$li = $('<li class="element w1 h1 hp vp thmtxt" style="font-size:20px;" data-content="'+o.sectionList[z]._id+'"><span class="tile thmc1"></span><span class="thmtxt">'+o.sectionList[z].name+'</span></li>'); $li = $('<li class="element w1 h1 hp vp thmtxt" data-content="'+o.sectionList[z]._id+'"><span class="tile thmc1"></span><span class="thmtxt">'+o.sectionList[z].name+'</span></li>');
$group.find("ul.section_grp").append($li); $group.find("ul.section_grp").append($li);
} }
if(z!=x){ if(z!=x){

View File

@ -153,6 +153,9 @@ a:focus { outline: none; }
width: 132px; width: 132px;
height:516px; height:516px;
} }
.section_label li { font-size: 15px; }
.section_label li:first-child { font-size: 21px; }
.appname { .appname {
font-size: 15px; font-size: 15px;