Select Text read_text.html
start_project.html
<!-- start_project.html-->
<!DOCTYPE html>
<html>
<head>
<title>start_project.html</title>
<link rel="stylesheet" href="{{ url_for('static', filename='dark.css') }}">
<style>
body {
background-color: #2C2C2C;
color: white;
font-family: Arial, sans-serif;
}
.refresh-button {
display: inline-block;
padding: 5px;
margin: 10px;
font-size: 1em;
background-color: orange;
color: rgb(0, 0, 0);
text-decoration: none;
border-radius: 5px;
margin: 1px;
}
.refresh-button:hover {
background-color: orange;
}
.sticky {
position: -webkit-sticky;
position: sticky;
top: 0;
background-color: orange;
padding: 10px 0;
z-index: 1000;
}
.video-gallery {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
}
figure {
width: 20%;
height: auto;
margin: 10px;
text-align: center;
}
figcaption {
margin-top: 8px;
font-size: 1rem;
color: #cccccc;
}
pre {
color: white;
font-size: 24px;
font-family: monospace;
white-space: pre-wrap;
word-wrap: break-word;
}
p {
color: white;
font-size: 24px;
font-family: monospace;
white-space: pre-wrap;
word-wrap: break-word;
}
img {
width: 200px;
height: auto;
display: block;
margin-bottom: 5px;
border-radius: 8px;
}
.sticky {
position: -webkit-sticky;
padding-top: 10px;
margin-left: auto;
margin-right: auto;
position: sticky;
height:auto;
top: 0;
text-align: center!important;
padding: 10px 0;
z-index: 1000;
width: 100%!important;
height:220px;
}
.refresh-button2 {
display: inline-block;
padding: 2px;
margin: 10px;
font-size: 1em;
background-color: rgb(255, 225, 0);
color: rgb(0, 0, 0);
text-decoration: none;
border-radius: 5px;
margin: 1px;
}
a{
color:navy;
}
span {
background-color: yellow;
color: black;
padding: 2px;
border-radius: 5px;
font-size: 1em;
}
.video-gallery {
display: flex;
flex-wrap: wrap;
justify-content: space-around;
gap: 10px; /* Adds space between items */
}
.item {
display: flex;
flex-direction: column;
align-items: center;
width: 20%; /* Adjust as needed for number of images per row */
max-width: 200px;
margin: 10px;
background-color: rgba(170, 160, 150, 0.5);
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
padding: 10px;
}
.item img {
width: 100%;
height: auto;
border-radius: 5px;
margin-bottom: 5px;
}
.item input {
width: 80%;
margin-top: 5px;
padding: 5px;
font-size: 1em;
}
</style>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://code.jquery.com/ui/1.13.0/jquery-ui.min.js"></script>
<link rel="stylesheet" href="https://code.jquery.com/ui/1.13.0/themes/base/jquery-ui.css">
<script>
$(document).ready(function() {
$('.video-gallery').sortable({
update: function(event, ui) {
// Update the sequence inputs after sorting
$('.image-container').each(function(index) {
$(this).find('input[name="sequence[]"]').val($(this).find('img').attr('src').split('/').pop());
});
}
});
});
</script>
<style>
.image-container {
cursor: move;
margin: 10px;
padding: 10px;
border: 1px solid #ccc;
}
video {
width: 350px;
height: auto;
}
</style>
</head>
<body style="background-color: rgb(156, 23, 23);">
<header class="sticky">
<center>
<span>FlaskArchitect's start_project.html</span> |
<a class="refresh-button2" href="{{ url_for('mk_novel') }}">mk_novel home</a> |
<a class="refresh-button" href="{{ url_for('search') }}">Search</a> |
<a href="{{ url_for('readlog') }}">View Log</a> |
</center>
</header>
<main>
<form method="POST" action="{{ url_for('mk_flipnovel') }}">
<div class="video-gallery">
{{ images }}
{% block content %}
{% for image in images %}
<div class="image-container">
<img src='static/novel_images/{{ image }}' alt="{{ image }}">
<input type="hidden" name="sequence[]" value="{{ image }}" />
</div>
{% endfor %}
{% endblock %}
</div>
<button type="submit" class="refresh-button">Create Video</button>
</form>
<video id="video" src="static/temp_exp/final_novel_result.mp4" controls></video> <video id="video" src="static/temp_exp/novel_flipbookX.mp4" controls></video>
</main>
<footer>
<p>© 2024 FlaskArchitect Blog</p>
</footer>
</body>
</html>
Back to file list