Files
  • index.html
  • script.js
  • style.css
index.html
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
<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>Industrial Revolution Stocks!</title>
    <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.4.0/js/bootstrap.min.js"></script>
    <link href="static/style.css" rel="stylesheet" type="text/css" />
  </head>
  <body>
    <div class="container">
    <div class="jumbotron text-center">
        <h1>{{ invention.name }} Details</h1>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <h2><b>Product Name:</b> {{ invention.name }}</h2>
        </div>
        <div class="col-sm-6">
            <h2><b>Invention Name:</b> {{ invention.invention }}</h2>
        </div>
    </div>
    <div class="row">
        <div class="col-sm-6">
            <h2><b>Invention Value:</b> {{ invention.get_price(index, True) }}</h2>
        </div>
        <div class="col-sm-6">
            <h2><b>Date Invented:</b> {{ invention._date }}</h2>
        </div>
    </div>
    <div class="row text-center">
        <b>{{ invention.description }}</b>
    </div>
    <div class="row">
        <b>Price History: {{ " > ".join( invention.make_history(index) ) }}</b>
    </div>
    </div>
    <script src="script.js"></script>
  </body>
</html>
result
console