Skip to content

Commit

Permalink
Create index.html
Browse files Browse the repository at this point in the history
  • Loading branch information
Danucosukosuko authored Jul 16, 2023
1 parent d3cb282 commit fd87a69
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html>
<head>
<title>GitHub Pages Message</title>
</head>
<body>
<h1>Mensaje desde GitHub Pages</h1>
<p>¡Hola! Este es el mensaje que se mostrará cuando hagas un curl a tu página web.</p>

<script>
// Detecta si la página ha sido solicitada a través de un "curl"
if (window.location.protocol === 'http:') {
document.addEventListener("DOMContentLoaded", function () {
// Muestra un mensaje en la consola del navegador
console.log("¡Mensaje desde GitHub Pages!");
});
}
</script>
</body>
</html>

0 comments on commit fd87a69

Please sign in to comment.