remove url_for, add main.js

This commit is contained in:
Mark Eaton 2024-04-26 14:46:55 -04:00
parent bf87794b03
commit 1117e70be2
2 changed files with 11 additions and 10 deletions

2
app.py
View File

@ -1,4 +1,4 @@
from flask import Flask, render_template, url_for from flask import Flask, render_template
app = Flask(__name__) app = Flask(__name__)

View File

@ -7,7 +7,8 @@
<script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script> <script src="https://aframe.io/releases/1.4.0/aframe.min.js"></script>
<script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script> <script src="https://raw.githack.com/AR-js-org/AR.js/master/aframe/build/aframe-ar.js"></script>
<link rel="stylesheet" type="text/css" href={{ url_for("static", filename="main.css") }} /> <link rel="stylesheet" type="text/css" href="/static/main.css") }} />
<script src="/static/main.js"></script>
</head> </head>
<body style="overflow: hidden; width: 100vw;"> <body style="overflow: hidden; width: 100vw;">
@ -47,28 +48,28 @@
</div> </div>
<a-entity camera> <a-entity camera>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-desk.patt") }} look-at="[camera]" id="anchorzero"> <a-marker type="pattern" url="/static/pattern-desk.patt") }} look-at="[camera]" id="anchorzero">
<a-box position="0 0.5 0" material="color: red;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-box> <a-box position="0 0.5 0" material="color: red;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-box>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-print.patt") }} look-at="[camera]" id="anchorone"> <a-marker type="pattern" url="/static/pattern-print.patt") }} look-at="[camera]" id="anchorone">
<a-icosahedron position="0 0.5 0" material="color: blue;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-icosahedron> <a-icosahedron position="0 0.5 0" material="color: blue;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-icosahedron>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-ref.patt") }} look-at="[camera]" id="anchortwo"> <a-marker type="pattern" url="/static/pattern-ref.patt") }} look-at="[camera]" id="anchortwo">
<a-cylinder position="0 0.5 0" material="color: green;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-cylinder> <a-cylinder position="0 0.5 0" material="color: green;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-cylinder>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-study.patt") }} look-at="[camera]" id="anchorthree"> <a-marker type="pattern" url="/static/pattern-study.patt") }} look-at="[camera]" id="anchorthree">
<a-sphere position="0 0.5 0" material="color: orange;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-sphere> <a-sphere position="0 0.5 0" material="color: orange;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-sphere>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-leis.patt") }} look-at="[camera]" id="anchorfour"> <a-marker type="pattern" url="/static/pattern-leis.patt") }} look-at="[camera]" id="anchorfour">
<a-box position="0 0.5 0" material="color: yellow;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-triangle> <a-box position="0 0.5 0" material="color: yellow;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-triangle>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-phot.patt") }} look-at="[camera]" id="anchorfive"> <a-marker type="pattern" url="/static/pattern-phot.patt") }} look-at="[camera]" id="anchorfive">
<a-icosahedron position="0 0.5 0" material="color: purple;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-ring> <a-icosahedron position="0 0.5 0" material="color: purple;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-ring>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-elev.patt") }} look-at="[camera]" id="anchorsix"> <a-marker type="pattern" url="/static/pattern-elev.patt") }} look-at="[camera]" id="anchorsix">
<a-tetrahedron position="0 0.5 0" material="color: red;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-tetrahedron> <a-tetrahedron position="0 0.5 0" material="color: red;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-tetrahedron>
</a-marker> </a-marker>
<a-marker type="pattern" url={{ url_for("static", filename="pattern-circ.patt") }} look-at="[camera]" id="anchorseven"> <a-marker type="pattern" url="/static/pattern-circ.patt") }} look-at="[camera]" id="anchorseven">
<a-cylinder position="0 0.5 0" material="color: blue;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-box> <a-cylinder position="0 0.5 0" material="color: blue;" animation="property: rotation; to: 360 360 0; loop: true; dur: 3000; easing: linear;"></a-box>
</a-marker> </a-marker>
</a-entity> </a-entity>