- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
function moveIcon(ui,top) {
ob = ui["draggable"][0]["id"];
level = getIconsPlace(ob, top);
left = ((level-1) * step) + icon_down;
pos = getLeftPX(ob);
pos_level = 0;
// check icon position
if(pos < 58) {
pos_level = 0;
} else if(pos > 58 && pos < 83) {
pos_level = 1;
} else if(pos > 83 && pos < 108) {
pos_level = 2;
} else if(pos > 108 && pos < 133) {
pos_level = 3;
} else if(pos > 133 && pos < 158) {
pos_level = 4;
} else if(pos > 158) {
pos_level = 5;
}
pos_left = ((pos_level) * step) + icon_down;
left = ((level-1) * step) + icon_down;
if(left > pos_left) {
left = pos_left;
}
$("#" + ui["draggable"][0]["id"]).css("left", left + "px");
$("#" + ui["draggable"][0]["id"]).css("top", top + "px");
changePosition();
getResult();
}
Комментарии (0) RSS
Добавить комментарий