mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 04:10:06 -05:00
fixed external recipe viewer
This commit is contained in:
31
cookbook/templates/pdf_viewer.html
Normal file
31
cookbook/templates/pdf_viewer.html
Normal file
@@ -0,0 +1,31 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html lang="en" height="100%">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>PDF</title>
|
||||
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>PDF</title>
|
||||
<style>
|
||||
html, body {
|
||||
height: 100%;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
overflow: hidden; /* Prevent scrollbars on the body itself */
|
||||
}
|
||||
|
||||
iframe {
|
||||
display: block; /* Prevents potential extra space below the iframe */
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border: none; /* Remove default iframe border */
|
||||
}
|
||||
</style>
|
||||
|
||||
</head>
|
||||
<body >
|
||||
|
||||
<iframe src="{% static 'pdfjs/web/viewer.html' %}?file={% url 'api_get_recipe_file' recipe_id %}" ></iframe>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user