aboutsummaryrefslogtreecommitdiff
path: root/configs/archive/gpn17/gema-nach-hause.js
blob: 2c3856e8f70848dd41abb7fd068beb32f83d9a68 (plain)
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
function handleLoungeStreamWhichActuallyDoesNotExist()
{
	function gema1() {
		$('#gemaModal1')
			.modal()
			.find('.btn[data-gema=yes]').on('click', function() {
				$('#gemaModal1').modal('hide')
				gema3();
			})
			.end()
			.find('.btn[data-gema=no]').on('click', function() {
				$('#gemaModal1').modal('hide')
				gema2();
			})
	}

	function gema2() {
		$('#gemaModal2')
			.modal()
			.find('.btn').on('click', function() {
				$('#gemaModal2').modal('hide')
				gema3();
			})
	}

	function gema3() {
		$('#gemaModal3').modal()
	}

	$('.room-lounge a').on('click', function(e) {
		e.preventDefault();
		location.href = "https://broadcast.fem.tu-ilmenau.de/events/gpn17/";
	});
}

$(handleLoungeStreamWhichActuallyDoesNotExist);