-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.js
86 lines (73 loc) · 1.43 KB
/
script.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
var add_picture = 0;
$('#add_picture').on('click',
function()
{
if(add_picture == 0)
{
$('#form_ajout_photo').fadeIn();
$('#background_add_picture').fadeIn();
$('#form_ajout_album').hide();
add_picture = 1;
}
else
{
$('#form_ajout_photo').fadeOut();
$('#background_add_picture').fadeOut();
$('#form_ajout_album').hide();
add_picture = 0;
}
}
);
$('#mon_compte').on('click',
function()
{
if(add_picture == 0)
{
$('#form_ajout_album').fadeIn();
$('#background_add_picture').fadeIn();
$('#form_ajout_picture').hide();
add_picture = 1;
}
else
{
$('#form_ajout_album').fadeOut();
$('#background_add_picture').fadeOut();
$('#form_ajout_picture').hide();
add_picture = 0;
}
}
);
function testEchap(e)
{
var keynum;
if(window.event) // IE
{
keynum = e.keyCode;
}
else if(e.which) // Netscape/Firefox/Opera
{
keynum = e.which;
}
if(keynum == 27 && add_picture == 1)
{
$('#form_ajout_album').fadeOut();
$('#background_add_picture').fadeOut();
$('#form_ajout_photo').fadeOut();
add_picture = 0;
}
};
var actuel_exif = -1;
function afficher_exif(photo)
{
if(actuel_exif == photo)
{
$('#exif' + photo + '').fadeOut();
actuel_exif = -1;
}
else
{
$('#exif' + photo + '').fadeIn();
$('#exif' + actuel_exif + '').fadeOut();
actuel_exif = photo;
}
}