-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmyQueryUI.js
More file actions
90 lines (78 loc) · 1.68 KB
/
myQueryUI.js
File metadata and controls
90 lines (78 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// JavaScript Document
// Targettrust
// Apenas editandop para verificar no github
var dadosDB = ["Arno","Daniel", "Samuel", "Vinicius", "Gianfranco", "Raphael"];
function criarlista($onde){
for(i=0; i<dadosDB.length;i++){
$($onde).append(" <li>" + dadosDB[i] + "</li>");
}
}
// iniciando o JQUERY...
$(function(){
$("procergs").attr("id","menu");
$("procergs").append("<div id='quadrado'></div>");
$("#quadrado").css("border","#999 3px solid").append("Criamos um quadrado");
//$("body").html("<div></div>");
$("#quadrado").draggable({
scrollSensitivity: 100,
scroll: true,
start: function(){
$(this).css("background","#c70000");
},
stop:function(){
$(this).css("background","#FFF");
},
axis:"y"
//containment: "parent"
}).resizable({
animate:true,
ghost: true
});
/*
$("#ULpai").selectable({
stop:function(){
var result;
$( ".ui-selected", this ).each(function() {
var index = $( "#ULpai li" ).index( this );
result += " #" + ( index + 1 ) ;
})
alert(result);
}
});
*/
criarlista("#ULpai");
$("#ULpai").sortable({
placeholder: "sombra"
});
$("#lista").accordion();
$("body").append("<input type=\"text\" id=\"campo\">");
$("#campo").autocomplete({
source:dadosDB
});
$("#error").dialog({
autoOpen:false,
show:{
effect:"blind",
duration: 1000
},
hide:{
effect:"fade",
duration: 1000
},
closeText: "hide" ,
title:false,
draggable: false,
modal:true,
buttons: {
Logar:function(){
$(this).dialog("close");
}
}
});
$("#quadrado").click(function(){
$("#error").dialog("open");
}).html("").progressbar({
value:37
});
$("#menuDo").menu();
});