forked from iaw-dcic/proyecto-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
160 lines (147 loc) · 8.7 KB
/
index.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
150
151
152
153
154
155
156
157
158
159
160
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="css/bootstrap/bootstrap.min.css">
<link rel="stylesheet" href="css/dark-mode.css">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="http://www.w3schools.com/lib/w3.css">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.13.0/css/all.css">
<link rel="icon" href="favico.ico">
<title>Encoding Calculator</title>
</head>
<body onLoad="verificarMostrarJumbotron();" class="container d-flex flex-column">
<header class="navbar-header container d-flex flex-column no-sides mt-2">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<a class="navbar-brand responsive-title" href="#"><i class="fas fa-code"></i> Encoding Calculator</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 active ml-auto">
<li class="dropdown dropdown-large">
<a class="nav-link dropdown-toggle mr-auto active navbar-text" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
More
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item dropdown-item-text" href="#" onclick="mostrarJumbotron();"><i class="fas fa-info-circle"></i> Jumbotron</a>
<a class="dropdown-item dropdown-item-text" href="#" onclick="emptyDropdown();"><i class="fas fa-trash-alt"></i> Borrar Historial</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item dropdown-item-text" href="https://github.com/maxi512/proyecto-1">
<i class="fab fa-github"></i> GitHub
</a>
</div>
</li>
<li class="nav-link active mr-auto navbar-text">
<div class="custom-control custom-switch form-inline my-2 my-lg-0">
<input type="checkbox" class="custom-control-input" id="darkSwitch">
<label class="custom-control-label" for="darkSwitch">Dark Mode</label>
</div>
</li>
</ul>
</div>
</nav>
</header>
<div class="row" style="min-height:50px;">
<div class="col" id="alertCol">
<div class='alert alert-success' id='alert' role='alert' style='display: none;'>Acabas de guardar la cadena
<strong id='cadenaGuardada'></strong></div>
<div class="alert alert-dark" id="alert2" role="alert" style="display:none;">Has seleccionado el caracter
<strong id="showInfo"></strong></div>
<div class="alert alert-warning" id="alertEmpty" role="alert" style="display:none;">Has borrado las cadenas almacenadas</div>
</div>
</div>
<div class="d-flex justify-content-center">
<div class="col-1 col-sm-1 col-md-2 col-lg-2"></div>
<div class="col-10 col-sm-10 col-md-8 col-lg-8 ">
<div class="jumbotron-fluid p-3 sr-only mb-3" id="jumbotron">
<h1 class="display-10 responsive-title">Hola usuario!</h1>
<h2 class="responsive-text">En esta pagina usted podra convertir caracteres en sus distintas codificaciones!
</h2>
<div class="container p-0">
<div class="row d-none d-md-block">
<div class="col">
<h3 class="lead responsive-text">Ingrese los caracteres en el cuadro de texto y podra visualizar tanto su valor unicode como su codigo ascii
</h3>
</div>
</div>
<hr class="my-4 my-hr">
<div class="row mb-3">
<div class="col-lg-3">
<p class="lead">
<a class="btn buttonE btn-primary btn-block" role="button" onclick="ocultarJumbotron();">Got
it!</a>
</p>
</div>
<div class="col-lg-4 text-center">
<input type="checkbox" class="form-check-input align-bottom" id="checkbox" onclick="actualizar()">
<label class="form-check-label responsive-small checkbox-inline" for="checkbox">Don't
show me this again</label>
</div>
</div>
</div>
</div>
</div>
<div class="col-1 col-sm-1 col-md-2 col-lg-2"></div>
</div>
<div class="row" id="separador"></div>
<div class="row justify-content-center">
<div class="col-sm-6 col-9 medio mt-2">
<div class="input-group pr-3">
<input type="text" id="texto" onpaste="onModified();" onkeydown="onModified();" oncut="onModified()" class="form-control" placeholder="Ingrese sus caracteres aqui">
<div class="input-group-append">
<button type="button" id="add" class="btn btn-outline-secondary" data-toggle="tooltip" data-placement="top" onclick="addUserInput();"><i
class="fa fa-plus" aria-hidden="true"></i></button>
<button type="button" id="storage" class="btn btn-outline-secondary dropdown-toggle dropdown-toggle-split" data-toggle="dropdown" data-placement="right" aria-haspopup="true" aria-expanded="false">
<span class="sr-only">Toggle Dropdown</span>
</button>
<div class="dropdown-menu" id="dropdownStorage"></div>
</div>
</div>
</div>
<div class="col-sm-6 col-3 mt-2 pr-0">
<div class="btn-group btn-group-toggle float-right mr-3" data-toggle="buttons" id="button-group">
<label class="btn btn-primary active">
<input type="radio" name="options" id="ascii-button" autocomplete="off" checked=""
onclick="setStateAscii();" data-toggle="tooltip" data-placement="top" >Ascii
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="unicode-button" autocomplete="off"
onclick="setStateUnicode();">Unicode
</label>
</div>
</div>
</div>
<div class="row"></div>
<div class="row" style="overflow-y: auto; height: 59vh;">
<div class="col medio">
<span id="ascii" onmouseup="mostrarSeleccion();"></span>
</div>
</div>
<footer class="footer container row bottom-fixed-row p-5" style="min-height: 25px;" id="footer">
<div class="col-4"></div>
<div class="col-md-4 align-self-center text-center">
<span class="align-top responsive-small">powered by </span>
<i class="fab fa-html5 big w3-large" title="HTML5"></i>
<i class="fab fa-css3-alt w3-large" title="CSS3"></i>
<i class="fab fa-js-square w3-large" title="Javascript"></i>
<i class="fab fa-bootstrap w3-large" title="Bootstrap"></i>
</div>
<div class="col-4"></div>
</footer>
<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://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="js/dropdownManagment.js"></script>
<script src="js/alerts.js"></script>
<script src="js/jumbotronManagment.js"></script>
<script src="js/states.js"></script>
<script src="js/storage.js"></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="js/bootstrap/bootstrap.min.js"></script>
<script src="js/script.js"></script>
<script src="js/dark-mode-switch.min.js"></script>
</body>
</html>