Web Page - Code

From RoboWiki
Revision as of 22:49, 22 May 2024 by Robot (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>