-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d3cb282
commit fd87a69
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |