Select Text read_text.html
copy.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Select Directory</title>
<!-- increase size for mobile -->
<style>
body {
background-color: #2C2C2C;
color: white;
font-family: Arial, sans-serif;
}
h1 {
text-align: center;
font-size: 4vw;
}
select {
font-size: 1.5em;
margin: 10px;
padding: 5px;
}
button {
font-size: 1.5em;
padding: 5px;
margin: 10px;
background-color: orange;
color: black;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: darkorange;
}
.refresh-button {
display: inline-block;
padding: 5px;
margin: 10px;
font-size: 4vw;
background-color: orange;
color: rgb(0, 0, 0);
text-decoration: none;
border-radius: 5px;
margin: 1px;
}
h1{
text-align: center;
font-size: 2vw;
}
.larger{
font-size: 2vw;
}
.largest{
font-size: 2.5vw;
}
body {
font-family: Arial, sans-serif;
background-color: #2c3e50;
color: #ecf0f1;
text-align: center;
}
.gallery {
display: flex;
flex-wrap: wrap;
justify-content: center;
}
.gallery-item {
margin: 20px;
}
.gallery-item img {
max-width: 300px;
max-height: 200px;
display: block;
margin: 10px auto;
}
.sp {
display: block;
text-align: center;
font-size: 18px;
font-weight: bold;
margin-top: 10px;
max-width: 300px;
white-space: pre-wrap;
word-wrap: break-word;
}
a {
color: #3498db;
font-size: 3em;
text-decoration: none;
}
/*** top of list ***/
.top {
color: green;
height: 3;}
.bottom{
color: red;
height: 3;}
.notice {
color: red;
font-size: 1.5em;}
</style>
<script>
function findString(str) {
if (parseInt(navigator.appVersion) < 4) return;
if (window.find) {
var strFound = window.find(str);
if (!strFound) {
window.find(str, 0, 1);
}
if (strFound) {
var range = window.getSelection().getRangeAt(0);
var span = document.createElement("span");
span.style.backgroundColor = "yellow";
range.surroundContents(span);
}
} else if (navigator.appName.indexOf("Microsoft") != -1) {
// Not implemented for brevity
} else if (navigator.appName == "Opera") {
alert("Opera browsers not supported, sorry...");
return;
}
if (!strFound) alert("String '" + str + "' not found!");
}
function moveToNextOccurrence() {
var search_str = document.getElementById("search_input").value;
findString(search_str);
}
</script>
</head>
<body>
<input type="text" id="search_input" placeholder="Search text...">
<button type="button" onclick="moveToNextOccurrence()">Find</button>
<br><br>
<button type="submit">Save Changes</button>
<h1>Select a Directory / copy.html</h1>
<a href="{{ url_for('index') }}" class="refresh-button">Home</a>
<form class="largest" action="{{ url_for('view_images') }}" method="POST">
<select name="directory">
{% for directory in directories %}
<option value="{{ directory }}">{{ directory }}</option>
{% endfor %}
</select>
<button class="larger" type="submit">View Images</button>
</form>
<!--Show the images in the resource_images list-->
<h1>A Sample from Resource Directories</h1>
<div class="gallery">
{% for item in data %}
<div class="gallery-item">
<hr class="top">
<h3 class='sp' ><span class="notice">Directory:</span> {{ item.directory }}</h3>
{% for image in item.images %}
<img src="{{ image }}" alt="Image">
<p class='sp'>{{ image }}</p>
{% endfor %}
<hr class="bottom">
</div>
{% endfor %}
</div>
</body>
</html>
Back to file list