Cambiado de laravel a flask
Todo es mas simple~
This commit is contained in:
27
template.html
Executable file
27
template.html
Executable file
@@ -0,0 +1,27 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>Daniel Cortés</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<meta name="viewport" content="width-device-width, initial-scale=1">
|
||||
<meta name="author" content="Daniel Cortés">
|
||||
<link rel="stylesheet" href="/assets/style.css" type="text/css">
|
||||
<link rel="icon" href="data:;base64,iVBORw0KGgo=">
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
{{ md }}
|
||||
</div>
|
||||
<script>
|
||||
function makeImagesClickeable() {
|
||||
document.querySelectorAll("img").forEach(img => {
|
||||
img.addEventListener("click", e => window.open(e.target.src))
|
||||
});
|
||||
}
|
||||
|
||||
window.addEventListener('DOMContentLoaded', (event) => {
|
||||
makeImagesClickeable();
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user