-
Notifications
You must be signed in to change notification settings - Fork 0
/
ClientProfile.html
127 lines (127 loc) · 5.43 KB
/
ClientProfile.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>MovieCats</title>
<link rel="stylesheet" type="text/css" href="./Style/normalize.css">
<link href="https://fonts.googleapis.com/css2?family=Open+Sans&family=PT+Sans:wght@400;700&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="./Style/Style.css">
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://unpkg.com/@hpcc-js/wasm@0.3.11/dist/index.min.js"></script>
<script src="https://unpkg.com/d3-graphviz@3.0.5/build/d3-graphviz.js"></script>
<script src="./Js/SHA-256.js"></script>
<script src="./Js/Script.js"></script>
<script>
try {
let url = window.location.href
var dpi = url.match(/dpi=\d+$/)[0].split('=')[1]
var alpha = true
if(localStorage.getItem(dpi.toString()) == null) {
window.location.href = 'index.html'
}
} catch (error) {
window.location.href = 'index.html'
}
</script>
</head>
<body>
<header id="header" class="header">
<div class="contenedor">
<div class="barra">
<a class="logo" onclick="scroller('header')">
<h1 id="userClient" class="logo__nombre no-margin centrar-texto"></h1>
</a>
<nav class="navegacion">
<a class="navegacion__enlace" onclick="scroller('header')">Películas</a>
<a class="navegacion__enlace" onclick="scroller('actors')">Actores</a>
<a class="navegacion__enlace" onclick="scroller('categories')">Categorías</a>
<a class="navegacion__enlace" onclick="logout()">Cerrar Sesión</a>
</nav>
<script>getNameClient()</script>
</div>
</div>
</header>
<div class="bodyCharge">
<div id="movies" class="padding-top-1">
<div class="title-button">
<h2 class="seccion">Películas</h2>
<div class="button-group-h">
<div id="asc-movies"></div>
<div id="desc-movies"></div>
</div>
</div>
<div id="catalogo-Peliculas">
<h3 id="status-movies" class="msg"></h3>
</div>
</div>
<div id="actors" class="padding-top-2">
<div class="title-button">
<h2 class="seccion">Actores</h2>
<div class="button-group-h">
<div id="in"></div>
<div id="pre"></div>
<div id="post"></div>
</div>
</div>
<div id="lista-actores">
<h3 id="status-actors" class="msg"></h3>
</div>
</div>
<div id="categories" class="padding-top-2">
<h2 class="seccion">Categorías</h2>
<div id="lista-categorias">
<h3 id="status-categories" class="msg"></h3>
</div>
</div>
</div>
<div class="fondo_transparente">
<div class="modal">
<div class="modal_cerrar">
<span>x</span>
</div>
<div id="titulomodal" class="modal_titulo"></div>
<div id="descripcion" class="modal-descripcion"></div>
<div id="acciones" class="acciones">
<div id="puntuacion" class="fila"></div>
<div id="alquiler" class="fila"></div>
</div>
<div class="vista-comentarios">
<h3 class="titulo">Comentarios</h3>
<div id="comentarios-1" class="comentarios barra_scroll1"></div>
<div class="comentar">
<div>
<input id="comment-text" type="text" class="input-comment">
</div>
<div id="button-comment"></div>
</div>
</div>
<div id="botones" class="modal_botones"></div>
</div>
</div>
<footer></footer>
<script>movies()</script>
<script>actorS(true,false,false)</script>
<script>categories()</script>
<script>
document.getElementsByClassName('modal_cerrar')[0].addEventListener(
'click',
function() {
document.getElementsByClassName('fondo_transparente')[0].style.display = 'none'
document.getElementById('comment-text').value = ''
}
)
window.addEventListener(
'keydown',
function(event) {
if(event.keyCode == 27) {
document.getElementsByClassName('fondo_transparente')[0].style.display = 'none'
document.getElementById('comment-text').value = ''
}
},
false
)
</script>
</body>
</html>