Unverified Commit b7a3653e authored by TheTechRobo's avatar TheTechRobo
Browse files

Minor changes

parent e79b2cf6
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
from flask import Flask, render_template
from flask import Flask, render_template, request

import lostmediafinder

@@ -36,7 +36,8 @@ async def index():
    """
    Shows the landing page
    """
    return render_template("init.html")
    default = request.args.get("q") or ""
    return render_template("init.html", default=default)

def parse_changelog(changelog):
    """
+21 −5
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ input {
  border: 1px solid grey;
}
button {
  max-height: 150px;
  height: 100%;
  max-width: 150px;
  position: absolute;
  top: 0;
@@ -49,6 +49,11 @@ button {
  border: 1px solid black;
}

button[disabled] {
  background-color: rgba(200, 200, 200, 1);
  cursor: not-allowed;
}

:focus {
  border: 1px solid cyan;
}
@@ -158,9 +163,15 @@ button {
          .catch((e) => {
              document.getElementById("data").innerHTML = '<span class="red" style="background-color: #FFFFFF;">an error occured - check your internet connection</span>';
              throw (e);
          })
          .finally(() => {
            document.getElementById("but").disabled = false;
            document.getElementById("but").innerHTML = "Search for Captures";
          });
        }
      function finishWrpa(data) {
              document.getElementById("but").disabled = true;
              document.getElementById("but").innerHTML = "Searching...";
              try {
                return finish(data);
              }
@@ -184,7 +195,7 @@ button {
    </noscript>
    <div id="contenu">
      <form onsubmit="finishWrpa(document.getElementById('texting').value); return false;">
        <input type="text" id="texting" placeholder="Enter video ID here..."/>
        <input type="text" id="texting" placeholder="Enter video ID here..." value="{{default}}"/>
        <button action="submit" id="but" class="btn btn-primary">Search for Captures</button>
      </form>
      <span id="int"></span>
@@ -199,3 +210,8 @@ button {
    <a href="/api" style="float:right;">API documentation</a>
  </body>
</html>
{% if default %}
    <script>
      finishWrpa("{{default}}");
    </script>
{% endif %}