-
Notifications
You must be signed in to change notification settings - Fork 0
/
AdminProfile.html
149 lines (149 loc) · 9.65 KB
/
AdminProfile.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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
<!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 src="./Js/saveSvgAsPng.js"></script>
<script>
if(localStorage.getItem('2354168452525') == null) {
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="userAdmin" class="logo__nombre no-margin centrar-texto">Wilfred Pérez</h1>
</a>
<nav class="navegacion">
<a class="navegacion__enlace" onclick="scroller('header')">Cargas Masivas</a>
<a class="navegacion__enlace" onclick="scroller('graphs')">Descarga de Estructuras</a>
<a class="navegacion__enlace" onclick="scroller('blockchain')">Blockchain</a>
<a class="navegacion__enlace" onclick="logoutA()">Cerrar Sesión</a>
</nav>
</div>
</div>
</header>
<div class="bodyCharge">
<div id="charges" class="padding-top-1">
<div id="movies">
<h2 class="seccion">Carga Masiva de Películas</h2>
<div class="tres-columnas">
<input id="filemovies" type="file" class="input-file input-file-1" accept=".json">
<label for="filemovies">
<svg xmlns="http://www.w3.org/2000/svg" class="iborrainputfile" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>
<span class="iborrainputfile">Seleccionar archivo</span>
</label>
<button type="button" class="button1" onclick="chargeMovies()">Cargar Películas</button>
<button type="button" class="button3" onclick="deleteMovies()">Borrar Películas</button>
</div>
<h3 id="status-movies" class="msg"></h3>
</div>
<div id="clients">
<h2 class="seccion">Carga Masiva de Clientes</h2>
<div class="tres-columnas">
<input id="fileclients" type="file" class="input-file input-file-1" accept=".json">
<label for="fileclients">
<svg xmlns="http://www.w3.org/2000/svg" class="iborrainputfile" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>
<span class="iborrainputfile">Seleccionar archivo</span>
</label>
<button type="button" class="button1" onclick="chargeClients()">Cargar Clientes</button>
<button type="button" class="button3" onclick="deleteClients()">Borrar Clientes</button>
</div>
<h3 id="status-clients" class="msg"></h3>
</div>
<div id="actors">
<h2 class="seccion">Carga Masiva de Actores</h2>
<div class="tres-columnas">
<input id="fileactors" type="file" class="input-file input-file-1" accept=".json">
<label for="fileactors">
<svg xmlns="http://www.w3.org/2000/svg" class="iborrainputfile" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>
<span class="iborrainputfile">Seleccionar archivo</span>
</label>
<button type="button" class="button1" onclick="chargeActors()">Cargar Actores</button>
<button type="button" class="button3" onclick="deleteActors()">Borrar Actores</button>
</div>
<h3 id="status-actors" class="msg"></h3>
</div>
<div id="category">
<h2 class="seccion">Carga Masiva de Categorías</h2>
<div class="tres-columnas">
<input id="filecategory" type="file" class="input-file input-file-1" accept=".json">
<label for="filecategory">
<svg xmlns="http://www.w3.org/2000/svg" class="iborrainputfile" width="20" height="17" viewBox="0 0 20 17"><path d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"></path></svg>
<span class="iborrainputfile">Seleccionar archivo</span>
</label>
<button type="button" class="button1" onclick="chargeCategories()">Cargar Categorías</button>
<button type="button" class="button3" onclick="deleteCategories()">Borrar Categorías</button>
</div>
<h3 id="status-categories" class="msg"></h3>
</div>
</div>
<div id="graphs" class="padding-top-2">
<h2 class="seccion">Descarga De Estructuras</h2>
<div class="download-graph">
<div id="graph-1" class="graph-1"></div>
<div id="button-group" class="button-group button-group-gap-1">
<button type="button" class="button1-t-clicked">Grafo Películas</button>
<button type="button" class="button1-t" onclick="getGraphClients()">Grafo Clientes</button>
<button type="button" class="button1-t" onclick="getGraphActors()">Grafo Actores</button>
<button type="button" class="button1-t" onclick="getGraphCategories()">Grafo Categorías</button>
<button id="download" class="button2" onclick="downloadGraph()">Descargar Grafo</button>
</div>
</div>
</div>
<div id="blockchain" class="padding-top-2">
<div class="titulo-blockchain">
<h2 class="seccion">Blockchain</h2>
<h3 id="temporizador" class="msg tiempo"></h3>
</div>
<div class="flex-rows-blockchain">
<div id="time" class="flex-row-time">
<div class="change-time">
<div class="input-new-time">
<input id="valueNumberInit" type="number" min="0" class="input-star">
<h3 class="msg">Segundos</h3>
</div>
<div class="button-change">
<button type="button" class="button2" onclick="changeTime()">Modificar Tiempo</button>
</div>
</div>
<div class="block-generate">
<div class="button-block">
<button type="button" class="button1" onclick="createBlock()">Generar Bloque</button>
</div>
</div>
</div>
<div id="graph-blockchain" class="graph-2"></div>
<div id="graph-merkle-tree" class="graph-3"></div>
</div>
</div>
</div>
<footer>
<button type="button" class="button3" onclick="resetT()">Resetear Tiempo</button>
<button type="button" class="button3" onclick="resetB()">Resetear Blockchain</button>
</footer>
<script src="./Js/ScriptChooseFile.js"></script>
<script>statusMovies()</script>
<script>statusClients()</script>
<script>statusActors()</script>
<script>statusCategories()</script>
<script>graphMovies()</script>
<script>start()</script>
<script>getGraphMerkleTree()</script>
<script>getGraphBlockchain()</script>
<script>document.getElementById('valueNumberInit').value = localStorage.getItem('valueInit')</script>
</body>
</html>