File size: 2,600 Bytes
83e35a7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
<!DOCTYPE html>
<html lang="en" class="h-100" data-bs-theme="auto">
<head>
  <script src="../assets/js/color-modes.js"></script>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1" />
  <meta name="description" content="" />
  <meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors" />
  <meta name="generator" content="Hugo 0.122.0" />
  <title>Comic</title>
  <link rel="preconnect" href="https://fonts.googleapis.com">
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
  <link href="https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap" rel="stylesheet">

  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@docsearch/css@3" />
  <link href="{{url_for('static', filename='bootstrap.min.css')}}" rel="stylesheet" />
  <link rel="stylesheet" href="{{url_for('static', filename='styles.css')}}" />
</head>
<body class="d-flex h-100 text-center text-bg-dark">
  <div class="carousel">
    <div id="preview-container">
      <div id="video-container">
        <video id="video-preview" controls autoplay></video>
      </div>
      <div id="iframe-container">
        <iframe id="iframe-preview" width="560" height="415" src="#" title="YouTube video player" frameborder="0"
          allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
          referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
      </div>
    </div>
    <div class="box" id="box">
      <h1 id="title">Comic</h1>
      <p id="description">An automated movie-to-comic generator</p>
      <div class="button-container">
        <input type="file" id="fileInput" accept=".mp4" style="display: none" />
        <button onclick="openFilePicker()" class="icon-button">
          <img src="{{url_for('static', filename='images/upload.png')}}" alt="Upload Video" />
        </button>
        <button onclick="toggleLinkInput()" class="icon-button">
          <img src="{{url_for('static', filename='images/link.png')}}" alt="Enter Link" />
        </button>
      </div>
      <div id="linkInputContainer" style="display: none">
        <input type="text" id="link-input" placeholder="Enter Link" />
      </div>
      <p id="fileName"></p>
      <button onclick="submitForm()" class="submit-button">Submit</button>
      <p id="submissionResult"></p>
    </div>
  </div>
  <script src="{{url_for('static', filename='script.js')}}"></script>
  <script src="{{url_for('static', filename='bootstrap.bundle.min.js')}}"></script>
</body>
</html>