File size: 1,841 Bytes
0a3ce35
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="./assets/css/styles.css" type="text/css">
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
    <script type="text/javascript">
        window.onload = function() {
        $("#loading").hide();
        };
        function loading(){
            $("#content").hide();
            $("#loading").show();
        }
    </script>
    {% block head %}{% endblock %}
    <title>Candlestick Screener</title>
</head>
<body>
    <div id="loading">
        <!-- <img src="/assets/img/loading.gif"> -->
        <img src="https://cdn.dribbble.com/users/115601/screenshots/5356365/loading.gif">
    </div>
    <div id="content">
    <h1>Candlestick Screener</h1>
    <form>
        <label for="pattern">Find pattern:</label>
        <select name="pattern">
            {% if not selected %}
                <option value="" selected disabled hidden></option>
            {% endif %}
            {% for pattern in patterns %}
                {% if selected == pattern %}
                    <option value={{ pattern }} selected>{{ patterns[pattern] }}</option>
                {% else %}
                    <option value={{ pattern }}>{{ patterns[pattern] }}</option>
                {% endif %}
            {% endfor %}
        </select>
        <input type="submit" value="search" onclick="loading();"/>
    </form>
    <form method="POST">
        Database updated at: {{ last_update_time }}
        <button type="submit" value="Update Database" onclick="loading();">
            Update Database
        </button>
    </form>
    {% block contents %}{% endblock %}
    </div>
</body>
</html>