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 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Responsive Layout</title>
|
| 7 |
+
<style>
|
| 8 |
+
body {
|
| 9 |
+
font-family: Arial, sans-serif;
|
| 10 |
+
margin: 0;
|
| 11 |
+
padding: 0;
|
| 12 |
+
background-color: #f0f0f0;
|
| 13 |
+
}
|
| 14 |
+
|
| 15 |
+
.dropdown-container {
|
| 16 |
+
display: flex;
|
| 17 |
+
flex-wrap: wrap;
|
| 18 |
+
justify-content: center;
|
| 19 |
+
align-items: center;
|
| 20 |
+
background-color: #ccc;
|
| 21 |
+
padding: 10px;
|
| 22 |
+
}
|
| 23 |
+
|
| 24 |
+
.dropdown {
|
| 25 |
+
flex: 1;
|
| 26 |
+
margin: 5px;
|
| 27 |
+
}
|
| 28 |
+
|
| 29 |
+
.image-container {
|
| 30 |
+
display: flex;
|
| 31 |
+
flex-wrap: wrap;
|
| 32 |
+
justify-content: center;
|
| 33 |
+
align-items: center;
|
| 34 |
+
padding: 20px;
|
| 35 |
+
min-height: calc(100vh - 60px); /* 60px is the height of the dropdown container */
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
.image-box {
|
| 39 |
+
flex: 0 0 calc(50% - 20px);
|
| 40 |
+
max-width: calc(50% - 20px);
|
| 41 |
+
margin: 10px;
|
| 42 |
+
overflow: auto;
|
| 43 |
+
max-height: calc(100vh - 100px); /* Adjust as needed */
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
.image-box img,
|
| 47 |
+
.image-box .data-frame {
|
| 48 |
+
max-width: 100%;
|
| 49 |
+
height: auto;
|
| 50 |
+
display: block;
|
| 51 |
+
}
|
| 52 |
+
|
| 53 |
+
.column-container {
|
| 54 |
+
display: flex;
|
| 55 |
+
background-color: #333;
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
.column {
|
| 59 |
+
flex: 1;
|
| 60 |
+
padding: 20px;
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
.column a {
|
| 64 |
+
display: block;
|
| 65 |
+
text-align: center;
|
| 66 |
+
padding: 10px;
|
| 67 |
+
text-decoration: none;
|
| 68 |
+
color: #fff;
|
| 69 |
+
font-weight: bold;
|
| 70 |
+
}
|
| 71 |
+
|
| 72 |
+
/* Add styles for the data frame */
|
| 73 |
+
.data-frame {
|
| 74 |
+
/* Add your styles for the data frame here */
|
| 75 |
+
/* For example: */
|
| 76 |
+
width: 100%;
|
| 77 |
+
height: 100%;
|
| 78 |
+
overflow: auto;
|
| 79 |
+
white-space: nowrap; /* Prevent line breaks */
|
| 80 |
+
}
|
| 81 |
+
|
| 82 |
+
@media only screen and (max-width: 600px) {
|
| 83 |
+
/* Adjust styles for smaller screens */
|
| 84 |
+
.dropdown {
|
| 85 |
+
flex: 100%;
|
| 86 |
+
}
|
| 87 |
+
|
| 88 |
+
.image-box {
|
| 89 |
+
flex: 0 0 100%;
|
| 90 |
+
max-width: 100%;
|
| 91 |
+
}
|
| 92 |
+
}
|
| 93 |
+
</style>
|
| 94 |
+
</head>
|
| 95 |
+
<body>
|
| 96 |
+
<div class="dropdown-container">
|
| 97 |
+
<div class="dropdown">
|
| 98 |
+
<label for="docId">DocID:</label>
|
| 99 |
+
<select id="docId">
|
| 100 |
+
<option value="" disabled selected>Select DocID</option>
|
| 101 |
+
<!-- Add your DocID options dynamically using JavaScript -->
|
| 102 |
+
</select>
|
| 103 |
+
</div>
|
| 104 |
+
<div class="dropdown">
|
| 105 |
+
<label for="pageNumber">Page Number:</label>
|
| 106 |
+
<select id="pageNumber">
|
| 107 |
+
<option value="" disabled selected>Select Page Number</option>
|
| 108 |
+
<!-- Add your Page Number options dynamically using JavaScript -->
|
| 109 |
+
</select>
|
| 110 |
+
</div>
|
| 111 |
+
</div>
|
| 112 |
+
<div class="image-container">
|
| 113 |
+
<div class="image-box">
|
| 114 |
+
<img src="{{ url_for('static', filename='upload_input/tmp.png') }}" alt="Document">
|
| 115 |
+
</div>
|
| 116 |
+
<div class="image-box">
|
| 117 |
+
{{ data.to_html(classes='data-frame', render_links=True, escape=False) | safe }}
|
| 118 |
+
</div>
|
| 119 |
+
</div>
|
| 120 |
+
|
| 121 |
+
<!-- Include your JavaScript for fetching dropdown options and updating them here -->
|
| 122 |
+
<script>
|
| 123 |
+
// Example JavaScript for fetching dropdown options from API
|
| 124 |
+
// Replace this with your actual API logic
|
| 125 |
+
|
| 126 |
+
// Fetch DocID options
|
| 127 |
+
fetch('your_doc_id_api_url')
|
| 128 |
+
.then(response => response.json())
|
| 129 |
+
.then(data => {
|
| 130 |
+
const docIdSelect = document.getElementById('docId');
|
| 131 |
+
data.forEach(option => {
|
| 132 |
+
const optionElement = document.createElement('option');
|
| 133 |
+
optionElement.value = option.value;
|
| 134 |
+
optionElement.textContent = option.label;
|
| 135 |
+
docIdSelect.appendChild(optionElement);
|
| 136 |
+
});
|
| 137 |
+
});
|
| 138 |
+
|
| 139 |
+
// Fetch Page Number options
|
| 140 |
+
fetch('your_page_number_api_url')
|
| 141 |
+
.then(response => response.json())
|
| 142 |
+
.then(data => {
|
| 143 |
+
const pageNumberSelect = document.getElementById('pageNumber');
|
| 144 |
+
data.forEach(option => {
|
| 145 |
+
const optionElement = document.createElement('option');
|
| 146 |
+
optionElement.value = option.value;
|
| 147 |
+
optionElement.textContent = option.label;
|
| 148 |
+
pageNumberSelect.appendChild(optionElement);
|
| 149 |
+
});
|
| 150 |
+
});
|
| 151 |
+
</script>
|
| 152 |
+
</body>
|
| 153 |
+
</html>
|