/
eve_2105_e.js
57 lines (50 loc) · 1.3 KB
/
eve_2105_e.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
$(function(){
var Pg=0;
var PgMax=$('.page').length-6;
$('.flex_box,.flex_box_w').hide();
$('.group0').show();
$('#p0').css('background','linear-gradient(#c0a000,#a09000)');
$('.page').on('click',function(){
$('.page').css('background','linear-gradient(#d0d0d0,#c0c0c0)');
$(this).css('background','linear-gradient(#c0a000,#a09000)');
Tmp =$(this).attr('id').replace("p", "");
$('.flex_box,.flex_box_w').hide();
$('.group'+Tmp).show();
});
$('#connect').on('click',function(){
console.log(Ope_Id);
$.post("post_eve_2105.php",
{
'user_id':User_Id,
'ope_id':Ope_Id
},
function(data){
if(data == 2){
$('.bottun_box').hide();
$('.call_box').fadeIn(500);
}else{
$('.call_ng').fadeIn(500);
}
});
});
$('#page_n').on('click',function(){
if(PgMax+Pg>0){
Pg--;
$('.pg_box_in').animate({'left':Pg*8 +"vw"},200,"swing");
$('.to_top_p,.to_top_p2').css('border-color','#b08000');
}
if(PgMax+Pg>0){
$('.to_top_n,.to_top_n2').css('border-color','#fafafa');
}
});
$('#page_p').on('click',function(){
if(Pg<0){
Pg++;
$('.pg_box_in').animate({'left':Pg*8 +"vw"},200,"swing");
$('.to_top_n,.to_top_n2').css('border-color','#b08000');
}
if(Pg<0){
$('.to_top_p,.to_top_p2').css('border-color','#fafafa');
}
});
});