-
Notifications
You must be signed in to change notification settings - Fork 0
/
movie-menu.js
22 lines (20 loc) · 864 Bytes
/
movie-menu.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$(document).ready(function () {
$(".b1").on("click", {src: "https://iili.io/jlg1kP.md.png"}, loadMovie);
$(".b2").on("click", {src: "https://iili.io/jlUW0l.md.png"}, loadMovie);
$(".b3").on("click", {src: "https://iili.io/jlUIWJ.md.png"}, loadMovie);
$(".b4").on("click", {src: "https://iili.io/jlgO2p.md.png"}, loadMovie);
$(".b5").on("click", {src: "https://iili.io/jlgSTX.md.png"}, loadMovie);
$(".b6").on("click", {src: "https://iili.io/jlgUjn.md.png"}, loadMovie);
});
function loadMovie(event) {
$(".main-menu").html(
'<button class="exit-button" onclick="open_menu()">X</button>\
<div class="row">\
<div class="col-sm-12"></div>\
</div>'
);
$(".col-sm-12").html('<img class="movie" src="' + event.data.src + '">');
}
function open_menu() {
window.location = "movie-menu.html";
}