first commit
This commit is contained in:
commit
71af632d64
20 changed files with 1964 additions and 0 deletions
87
index.html
Normal file
87
index.html
Normal file
|
@ -0,0 +1,87 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="zh-CN">
|
||||
<head>
|
||||
<!-- Required meta tags -->
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||
|
||||
<!-- Bootstrap CSS -->
|
||||
<link
|
||||
href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/css/bootstrap.min.css"
|
||||
rel="stylesheet"
|
||||
integrity="sha384-giJF6kkoqNQ00vy+HMDP7azOuL0xtbfIcaT9wjKHr8RbDVddVHyTfAAsrekwKmP1"
|
||||
crossorigin="anonymous"
|
||||
/>
|
||||
|
||||
<!-- FontAwesone Icons -->
|
||||
<link
|
||||
href="node_modules/@fortawesome/fontawesome-free/css/all.min.css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
|
||||
<style>
|
||||
@import url("https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap");
|
||||
.mytitle {
|
||||
font-family: "Ma Shan Zheng", cursive;
|
||||
font-size: 48px;
|
||||
text-align: center;
|
||||
padding-top: 20px;
|
||||
}
|
||||
.root {
|
||||
padding-top: 40px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<title>遥控器</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="d-grid gap-4 col-10 col-sm-8 col-lg-6 mx-auto">
|
||||
<h1 class="mytitle">转盘遥控器</h1>
|
||||
<button class="btn btn-primary btn-lg" type="button" id="clockwise">
|
||||
<i class="fas fa-redo"></i> 顺时针转动
|
||||
</button>
|
||||
<button
|
||||
class="btn btn-primary btn-lg"
|
||||
type="button"
|
||||
id="counter-clockwise"
|
||||
>
|
||||
<i class="fas fa-undo"></i> 逆时针转动
|
||||
</button>
|
||||
<button class="btn btn-danger btn-lg" type="button" id="stop">
|
||||
<i class="fas fa-stop-circle"></i> 停止转动
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- jQuery -->
|
||||
<script src="node_modules/jquery/dist/jquery.min.js"></script>
|
||||
|
||||
<!-- Optional JavaScript; choose one of the two! -->
|
||||
|
||||
<!-- Option 1: Bootstrap Bundle with Popper -->
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.bundle.min.js"
|
||||
integrity="sha384-ygbV9kiqUc6oa4msXn9868pTtWMgiQaeYH7/t7LECLbyPA2x65Kgf80OJFdroafW"
|
||||
crossorigin="anonymous"
|
||||
></script>
|
||||
|
||||
<!-- Option 2: Separate Popper and Bootstrap JS -->
|
||||
<!--
|
||||
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.5.4/dist/umd/popper.min.js" integrity="sha384-q2kxQ16AaE6UbzuKqyBE9/u/KzioAlnx2maXQHiDX9d4/zp8Ok3f+M7DPm+Ib6IU" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.0.0-beta1/dist/js/bootstrap.min.js" integrity="sha384-pQQkAEnwaBkjpqZ8RU1fF1AKtTcHJwFl3pblpTlHXybJjHpMYo79HY3hIi4NKxyj" crossorigin="anonymous"></script>
|
||||
-->
|
||||
|
||||
<script type="text/javascript">
|
||||
$(function () {
|
||||
$("#clockwise").click(() => {
|
||||
$.get("/api/carousel/clockwise");
|
||||
});
|
||||
$("#counter-clockwise").click(() => {
|
||||
$.get("/api/carousel/counter-clockwise");
|
||||
});
|
||||
$("#stop").click(() => {
|
||||
$.get("/api/carousel/stop");
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue