Browse Source

added perspectiveB

master
nglk 4 years ago
parent
commit
1d65f57b16
  1. BIN
      __pycache__/hello.cpython-36.pyc
  2. 3
      hello.py
  3. 23
      templates/hello.html
  4. 9
      templates/perspectiveA.html

BIN
__pycache__/hello.cpython-36.pyc

Binary file not shown.

3
hello.py

@ -12,3 +12,6 @@ def hello_world():
@app.route('/perspectiveB/')
def perspectiveB():
return render_template('perspectiveB.html')
@app.route('/perspectiveA/')
def perspectiveA():
return render_template('perspectiveA.html')

23
templates/hello.html

@ -0,0 +1,23 @@
<!doctype html>
<html>
<style>
#draggable {
position: absolute;
}
</style>
<head>
<title>Hello from Flask</title>
{% if name %}
<h1>Hello {{ name }}!</h1>
{% else %}
<h1>VVVW</h1>
{% endif %}
</head>
<body>
<div id="draggable">
<img src="../static/images/test1.jpeg" width='500px' alt="test">
</div>
<script src="../static/js/draggable.js"></script>
</body>
</html>

9
templates/perspectiveA.html

@ -0,0 +1,9 @@
<!doctype html>
<html>
<head>
<title>Perspective A</title>
</head>
<body>
<h1>persssss</h1>
</body>
</html>
Loading…
Cancel
Save