-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
184 lines (155 loc) · 8.53 KB
/
index.php
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<?php
$url = "http://deeveadees.loc/";
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>NetFlop - Un site qui fait pas de flop en vrai !</title>
<!-- Bootstrap core CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link href="<?= $url ?>css/style.css" rel="stylesheet">
</head>
<body>
<nav class="navbar navbar-expand-md navbar-dark fixed-top bg-dark">
<a class="navbar-brand" href="<?= $url ?>">
<img src="<?= $url ?>img/logo.png" width="auto" height="30" alt="">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarCollapse">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="<?= $url ?>">Home <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="#about">About</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#flemme">Contact</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Catégorie
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" href="#">Animation</a>
<a class="dropdown-item" href="#">Fantastique</a>
<a class="dropdown-item" href="#">Comédie dramatique</a>
<a class="dropdown-item" href="#">Romance</a>
<a class="dropdown-item" href="#">Policier</a>
<a class="dropdown-item" href="#">Animation</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" data-toggle="modal" data-target="#exampleModal">P0rn</a>
</div>
</li>
</ul>
<form class="form-inline mt-2 mt-md-0">
<input class="form-control mr-sm-2" type="text" placeholder="Recherche" aria-label="Recherche">
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Login</button>
</form>
</div>
</nav>
<!--<header>
<div id="carouselExampleIndicators" class="carousel slide" data-ride="carousel">
<ol class="carousel-indicators">
<li data-target="#carouselExampleIndicators" data-slide-to="0" class="active"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="1"></li>
<li data-target="#carouselExampleIndicators" data-slide-to="2"></li>
</ol>
<div class="carousel-inner">
<div class="carousel-item active">
<img class="d-block w-100" src="http://lorempicsum.com/futurama/1900/1080/2" alt="First slide">
<div class="carousel-caption d-none d-md-block">
<h3>Second Slide</h3>
<p>This is a description for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="http://lorempicsum.com/futurama/1900/1080/5" alt="Second slide">
<div class="carousel-caption d-none d-md-block">
<h3>Second Slide</h3>
<p>This is a description for the second slide.</p>
</div>
</div>
<div class="carousel-item">
<img class="d-block w-100" src="http://lorempicsum.com/futurama/1900/1080/3" alt="Third slide">
<div class="carousel-caption d-none d-md-block">
<h3>Second Slide</h3>
<p>This is a description for the second slide.</p>
</div>
</div>
</div>
<a class="carousel-control-prev" href="#carouselExampleIndicators" role="button" data-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a class="carousel-control-next" href="#carouselExampleIndicators" role="button" data-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</header>-->
<main role="main">
<div class="album py-5 bg-light">
<div class="container">
<div class="row" id="movieslist">
</div>
</div>
</div>
<div class="modal fade" id="exampleModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Le p0rn ?</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
C'est pas bien !
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger" data-dismiss="modal">-18 ?</button>
<a type="button" class="btn btn-success" href="http://youpomm.com/">+18 ?</a>
</div>
</div>
</div>
</div>
</main>
<footer class="text-muted">
<div class="container">
<p class="float-right">
<a href="#">Back to top</a>
</p>
<p>N'est pas un Copyright de Yannis ou de Loic ! Peut etre de be<span class="bwb-color">W</span>eb ! © beWeb 2018 </p>
</div>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="<?= $url ?>js/netflop.js"></script>
<script type="text/javascript">
window.onload = function() {
(function() {
var movieslist;
movieslist = document.getElementById('movieslist');
listeDeFilms.forEach(function(film) {
var mdescription, mdes, mimg, mlien, mtitle;
mimg = film.jaquette;
mtitle = film.titre;
mdes = film.description_compl;
mdescription = film.description_compl.substr(0, 90);
mlien = film.lien;
movieslist.innerHTML += '<div class="col-md-4"><div class="card mb-4 box-shadow"><img class="card-img-top" src="' + mimg + '" alt="Card image cap"><div class="card-body"><h4 class="card-title">' + mtitle + '</h4><p class="card-text">' + mdescription + ' ...</p><div class="d-flex justify-content-between align-items-center"><button class="btn btn-outline-info btn-block" data-toggle="modal" data-target="#' + mimg + '">Voir plus</button></div></div></div></div><div class="modal fade" id="' + mimg + '" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><h4 class="modal-title" id="myModalLabel">' + mtitle + '</h4></div><div class="modal-body">' + mdes + '</div><div class="modal-footer"><button type="button" class="btn btn-danger" data-dismiss="modal">Close</button><a href="' + mlien + '" class="btn btn-info">Voir le film</a></div></div></div></div>';
});
}).call(this);
}
</script>
</body>
</html>