forked from bfl-itp/react
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIs_He_Gay.js
More file actions
49 lines (32 loc) · 1.25 KB
/
Is_He_Gay.js
File metadata and controls
49 lines (32 loc) · 1.25 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
var soundButton, hiddenSound;
function init()
{
// show and hide the popup
$('#sound').click(function() { $('#popUpSound').show(); });
$('#popUpSound').click(function() { $('#popUpSound').hide(); });
$('#look').click(function() { $('#popUpLook').show(); });
$('#popUpLook').click(function() { $('#popUpLook').hide(); });
$('#interests').click(function() { $('#popUpInterests').show(); });
$('#popUpInterests').click(function() { $('#popUpInterests').hide(); });
$('#girl').click(function() { $('#popUpGirl').show(); });
$('#popUpGirl').click(function() { $('#popUpGirl').hide(); });
$('#nice').click(function() { $('#popUpNice').show(); });
$('#popUpNice').click(function() { $('#popUpNice').hide(); });
$('#men').click(function() { $('#popUpMen').show(); });
$('#popUpMen').click(function() { $('#popUpMen').hide(); });
}
//main method, sort of...
//why does moving this from top to bottom help?
$(document).on('ready',init);
/*
function showPopUp() {
var popup = document.getElementById('popUpSound');
popup.style.display = 'block';
popup.addEventListener('click', hidePopUp);
};
function hidePopUp(){
var popup = document.getElementById('popUpSound');
popup.style.display = 'none';
}
window.addEventListener('load', init);
*/