-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
27 lines (25 loc) · 814 Bytes
/
index.html
File metadata and controls
27 lines (25 loc) · 814 Bytes
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
<!DOCTYPE html>
<html>
<head>
<title>Mi página webbbb</title>
</head>
<body>
<h1>Hola, mundo!</h1>
<p>¡Bienvenido a mi página web!</p>
<!-- Agrega un input para mostrar los logs de la consola -->
<input type="text" id="consoleInput" style="width: 100%; height: 200px;" readonly>
<script>
// Captura los mensajes de la consola y los muestra en el input
(function() {
var oldConsoleLog = console.log;
console.log = function(message) {
oldConsoleLog.apply(console, arguments);
var consoleInput = document.getElementById('consoleInput');
if (consoleInput) {
consoleInput.value += message + '\n';
}
};
})();
</script>
</body>
</html>