-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgetProjects4std.js
124 lines (88 loc) · 3.47 KB
/
getProjects4std.js
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
$(document).ready(function(){
//still part of document.ready function
var where = "";
$.post('getProjects4std.php', { where: where },function(data)
{//beginin of post function
$('.feedback').html('<img src="images/loader.gif">');
$('.feedback').html(data);
$('.details').click(function(){
var id = $(this).attr("data-page");
$.post('popout.php', { id: id },function(data) {
$('#pop').html('<img src="images/loader.gif">');
$('#pop').html(data);
$('#popout').slideDown(180, 'linear', function() {
$('#popout').css('display', 'block');
});
});
});
$('#close').click(function(){
$('#popout').css('display', 'none');
});
$('#popout > :not(#popoutContents)').click(function(){
$('#popout').css('display', 'none');
});
$(document).keyup(function(e){
if(e.keyCode==27){
$('#popout').css('display', 'none');
}
});
});//end of post function
});//end of document.ready
$('#title').keyup(function(){
var title = $('#title').val();
$.post('getProjects4std.php', { title: title },function(data) {
$('.feedback').html('<img src="images/loader.gif">');
$('.feedback').html(data);
//beginin of popout
$('.details').click(function(){
var id = $(this).attr("data-page");
$.post('popout.php', { id: id },function(data) {
$('#pop').html('<img src="images/loader.gif">');
$('#pop').html(data);
$('#popout').slideDown(180, 'linear', function() {
$('#popout').css('display', 'block');
});
});
});
$('#close').click(function(){
$('#popout').css('display', 'none');
});
$('#popout > :not(#popoutContents)').click(function(){
$('#popout').css('display', 'none');
});
$(document).keyup(function(e){
if(e.keyCode==27){
$('#popout').css('display', 'none');
}
});
});//end of post
});
$('#obj').change(function(){
var obj = $('#obj').val();
$.post('getProjects4std.php', { obj: obj },function(data) {
$('.feedback').html('<img src="images/loader.gif">');
$('.feedback').html(data);
//begigini of popout
$('.details').click(function(){
var id = $(this).attr("data-page");
$.post('popout.php', { id: id },function(data) {
$('#pop').html('<img src="images/loader.gif">');
$('#pop').html(data);
$('#popout').slideDown(180, 'linear', function() {
$('#popout').css('display', 'block');
});
});
});
$('#close').click(function(){
$('#popout').css('display', 'none');
});
$('#popout > :not(#popoutContents)').click(function(){
$('#popout').css('display', 'none');
});
$(document).keyup(function(e){
if(e.keyCode==27){
$('#popout').css('display', 'none');
}
});
});//end of post
});