-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpruebapopup.html
32 lines (30 loc) · 1.04 KB
/
pruebapopup.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
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title></title>
</head>
<body>
<header class=""></header>
<main class="" style="background: red none repeat scroll 0% 0%; width: 90%; height: 300px; margin: 0px auto;">
<div id="popup1" style="background-color: rgb(204, 204, 204); padding: 10px; border-radius: 10px;">
<h1>hola Enfermera</h1>
<button id="ocultar">Ocultar</button>
</div>
<button id="mostrar">Mostrar</button>
</main>
<footer class=""></footer>
</body>
</html>
<script src="popup_dialogo.js"></script>
<script>
var popup = new PopupDialogo( "popup1" );
popup.MostrarDialogo();
popup.setConteLeft('30%');
popup.setBackgroundColor( '#000');
popup.setOpacity(60);
document.getElementById('ocultar').onclick = function(){ popup.OcultarDialogo(); }
document.getElementById('mostrar').onclick = function(){ popup.MostrarDialogo(); }
</script>