-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
92 lines (87 loc) · 3.41 KB
/
index.html
File metadata and controls
92 lines (87 loc) · 3.41 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
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
87
88
89
90
91
92
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Free Movies</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css">
<script data-ad-client="ca-pub-1153182477226715" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<style>
.loading
{
pointer-events: all;
z-index: 99999;
border: none;
margin: 0px;
padding: 0px;
width: 100%;
height: 100%;
top: 0px;
left: 0px;
cursor: wait;
position: fixed;
background-color: rgba(0, 0, 0, 0.6) !important;
}
</style>
<meta name="propeller" content="40feb8d290c19154dc2cbb18b4222f4c">
</head>
<body>
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="#">Free Movies</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent"
aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item active">
<a class="nav-link" href="/">Movies <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="/about">About Us</a>
</li>
</ul>
</div>
</nav>
<div class="container-fluid mt-5">
<h3 class="text-center">Free Movies To Watch</h3>
<div class="row" id="listMovies">
<div class="col-md-2 col-sm-2 mt-3" v-for="(movie, i) in movies" style="font-size: 0.2rem">
<div class="card">
<img v-bind:src="movie.details.image" style="height: 20rem;" class="card-img-top">
<div class="card-body text-center">
<h5 class="card-title">{{movie.details.title}}</h5>
<a v-on:click="playMovie(i);" class="btn btn-secondary">Play</a>
</div>
</div>
</div>
</div>
</div>
<div style="border-top: 1px solid black;" class="mt-3 pt-2 pb-2 text-center">
Made with ❤️ by Parshwa Shah
</div>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script>
var docs = [];
var main = new Vue({
el: '#listMovies',
data: {
movies: [],
message: 'DataBase'
}
});
$(document).ready(()=>{
$.get('/movies/list', (data)=>{
main.movies = data;
});
});
function playMovie(i){
var movie = main.movies[i];
$('body').addClass('loading');
window.location.href = '/player/'+movie._id;
}
</script>
</body>
</html>