@21natzil/

stock-finish

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • script.js
  • style.css

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.6147303829956949","path":"index.html","file":{"path":"index.html","content":{"asEncoding":{"base64":"PCFET0NUWVBFIGh0bWw+CjxodG1sPgogIDxoZWFkPgogICAgPG1ldGEgY2hhcnNldD0idXRmLTgiPgogICAgPG1ldGEgbmFtZT0idmlld3BvcnQiIGNvbnRlbnQ9IndpZHRoPWRldmljZS13aWR0aCI+CiAgICA8dGl0bGU+SW5kdXN0cmlhbCBSZXZvbHV0aW9uIFN0b2NrcyE8L3RpdGxlPgogICAgPGxpbmsgcmVsPSJzdHlsZXNoZWV0IiBocmVmPSJodHRwczovL21heGNkbi5ib290c3RyYXBjZG4uY29tL2Jvb3RzdHJhcC8zLjQuMC9jc3MvYm9vdHN0cmFwLm1pbi5jc3MiPgo8c2NyaXB0IHNyYz0iaHR0cHM6Ly9hamF4Lmdvb2dsZWFwaXMuY29tL2FqYXgvbGlicy9qcXVlcnkvMy4zLjEvanF1ZXJ5Lm1pbi5qcyI+PC9zY3JpcHQ+CjxzY3JpcHQgc3JjPSJodHRwczovL21heGNkbi5ib290c3RyYXBjZG4uY29tL2Jvb3RzdHJhcC8zLjQuMC9qcy9ib290c3RyYXAubWluLmpzIj48L3NjcmlwdD4KICAgIDxsaW5rIGhyZWY9InN0YXRpYy9zdHlsZS5jc3MiIHJlbD0ic3R5bGVzaGVldCIgdHlwZT0idGV4dC9jc3MiIC8+CiAgPC9oZWFkPgogIDxib2R5PgogICAgPGRpdiBjbGFzcz0iY29udGFpbmVyIj4KICAgIDxkaXYgY2xhc3M9Imp1bWJvdHJvbiB0ZXh0LWNlbnRlciI+CiAgICBZb3UndmUgcmVhY2hlZCB0aGUgZW5kIG9mIHRoZSByZXZvbHV0aW9uLCBsZXQncyBzZWUgaG93IHdlbGwgeW91IGRpZCEKICAgIDwvZGl2PgogICAgPHRhYmxlIGNs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Mvc2NyaXB0LmpzIj48L3NjcmlwdD4KICA8L2JvZHk+CjwvaHRtbD4="},"asBuffer":null},"loaded":true}}
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">
    You've reached the end of the revolution, let's see how well you did!
    </div>
    <table class="table">
  <thead>
    <tr>
      <th scope="col">#</th>
      <th scope="col">Name</th>
      <th scope="col">Value</th>
      <th scope="col">Total</th>
    </tr>
  </thead>
  <tbody>
    {% for i, (stock, amount) in enumerate(game.owned_shares.items()) %}
    <tr>
      <th scope="row">{{ i + 1 }}</tr>
      <td>{{ stock.name }}</td>
      <td>{{ stock.get_price(game.game_index) }}£</td>
      <td>{{ stock.get_price(game.game_index) * amount }}£</td>
    </tr>
    {% endfor %}
  </tbody>
</table>
    <h3>(Your money) {{ game.player_money }}£ + (Stock Value) {{ game.get_total_value() }}£ = {{ game.player_money + game.get_total_value() }}</h2> 
    <p class="text-center">I hope you enjoyed the game, if you would like to play again, <a href="new_game">click here</a>.</p>
    </div>
    <script src="static/script.js"></script>
  </body>
</html>
result
console