Difference between revisions of "Web Page - Code"
From RoboWiki
(Created page with "Return back to project page: Avalanche Cannon - Jakub Vojtek Python code for the Web app library: <syntaxhighlight lang=ht...") |
|||
Line 1: | Line 1: | ||
Return back to project page: [[Spike Prime - Avalanche Cannon - Jakub Vojtek| Avalanche Cannon - Jakub Vojtek]] | Return back to project page: [[Spike Prime - Avalanche Cannon - Jakub Vojtek| Avalanche Cannon - Jakub Vojtek]] | ||
− | Python code for the Web | + | Python code for the Web Page: |
<syntaxhighlight lang=html> | <syntaxhighlight lang=html> |
Latest revision as of 22:49, 22 May 2024
Return back to project page: Avalanche Cannon - Jakub Vojtek
Python code for the Web Page:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Buttons Example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="container">
<div class="header">
<label id="angle">Angle: 0</label>
<label id="ammo">3</label>
</div>
<div class="content">
<div class="camera-controls">
<div class="controls-top">
<button id="lift">Lift</button>
</div>
<div class="camera-container">
<button id="cnn-left" class="side-button">Aim Left</button>
<img src="/video_feed" id="cam" />
<button id="cnn-right" class="side-button">Aim Right</button>
</div>
<div class="controls-bottom">
<button id="lower">Lower</button>
</div>
</div>
<div class="canvas-controls">
<div class="canvas-top">
<button id="load-canvas">Load Canvas</button>
</div>
<div class="canvas-container">
<canvas id="myCanvas" width="400" height="400"></canvas>
</div>
<div class="trigger-container">
<button id="cnn-trigger" class="trigger-button">Pull Trigger</button>
</div>
</div>
</div>
</div>
</body>
</html>