From 421dd7e39e867d4b49b5e180e4879109934c769a Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期五, 29 五月 2020 16:35:21 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 61 +++++++++++++++++++++---------
1 files changed, 42 insertions(+), 19 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 35ec595..0555f12 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -9,12 +9,13 @@
<link rel="stylesheet" type="text/css" href="../static/css/normalize.css">
<link rel="stylesheet" type="text/css" href="../static/css/common.css">
<link rel="stylesheet" type="text/css" href="../static/css/console.css">
+ <script type="text/javascript" src="../static/js/jquery/jquery-3.3.1.min.js"></script>
<style>
/* 绔欑偣 */
.site {
+ color: #333;
height: 20px;
- border: 1px solid red;
- border-radius: 3px;
+ border: 1px solid #fff;
cursor: pointer;
width: 50px;
text-align: center;
@@ -27,37 +28,35 @@
background-color: transparent;
}
+ /* --------- 璐ф灦鎬绘垚 --------- */
.main-part {
position: absolute;
- top: 200px;
+ top: 250px;
left: 400px;
- /*transform: translate(-50%, 0);*/
}
/* --------- 杈撻�佺嚎鎬绘垚 --------- */
+ .site-row {
+ position: absolute;
+ top: 122px;
+ }
/* 杈撻�佺嚎绗竴鍒� */
.site-row-1 {
- position: absolute;
left: 200px;
- top: 72px;
}
.site-row-1 .site {
width: 100px;
}
/* 杈撻�佺嚎绗簩鍒� */
.site-row-2 {
- position: absolute;
left: 300px;
- top: 72px;
}
.site-row-2 .site {
width: 100px;
}
/* 杈撻�佺嚎绗笁鍒� */
.site-row-3 {
- position: absolute;
left: 400px;
- top: 72px;
width: 100px;
}
.site-row-3 .site {
@@ -66,9 +65,7 @@
}
/* 杈撻�佺嚎绗洓鍒� */
.site-row-4 {
- position: absolute;
left: 500px;
- top: 72px;
width: 100px;
}
.site-row-4 .site {
@@ -86,7 +83,7 @@
<!-- 宸﹁緭閫佺嚎 -->
<!-- 绗竴鍒楋紙瀹藉害 100px锛�-->
- <div class="site-row-1">
+ <div class="site-row site-row-1">
<div id="site-1" class="site" style="width: 80px; height: 50px;line-height: 50px">1[9999]</div>
<div id="site-2" class="site" >2</div>
<div id="site-3" class="site" style="width: 80px; height: 30px;line-height: 30px">3</div>
@@ -98,7 +95,7 @@
<div id="site-9" class="site" >9</div>
</div>
<!-- 绗簩鍒楋紙瀹藉害 100px锛� -->
- <div class="site-row-2">
+ <div class="site-row site-row-2">
<div id="site-32" class="site" style="width: 80px; height: 50px;line-height: 50px">32</div>
<div id="site-31" class="site" >31</div>
<div id="site-30" class="site" style="width: 80px; height: 30px;line-height: 30px">30</div>
@@ -114,15 +111,15 @@
<div id="site-10" class="site" >10</div>
</div>
<!-- 绗笁鍒楋紙瀹藉害 100px锛�-->
- <div class="site-row-3">
+ <div class="site-row site-row-3">
<div class="site-none" style="width: 80px; height: 50px;line-height: 50px"></div>
<div id="site-29" class="site" style="width: 50px;">29</div>
<div id="site-28" class="site" style="width: 50px;">28</div>
<div class="site-none" style="width: 80px; height: 50px;line-height: 30px"></div>
<div id="site-24" class="site" >24</div>
</div>
- <!-- 绗笁鍒楋紙瀹藉害 100px锛�-->
- <div class="site-row-4">
+ <!-- 绗洓鍒楋紙瀹藉害 100px锛�-->
+ <div class="site-row site-row-4">
<div class="site-none" style="width: 80px; height: 50px;line-height: 50px"></div>
<div id="site-27" class="site" >27</div>
<div id="site-26" class="site" style="width: 80px; height: 30px;line-height: 30px">26</div>
@@ -193,7 +190,7 @@
<!-- 鍫嗗灈鏈� -->
<div class="crn">
<hr class="pathway">
- <div class="machine" style="margin-left: 30px"></div>
+ <div id="crn1" class="machine"></div>
</div>
<!-- 璐ф灦 -->
<div class="stock-group">
@@ -316,7 +313,7 @@
<!-- 鍫嗗灈鏈� -->
<div class="crn">
<hr class="pathway">
- <div class="machine"></div>
+ <div id="crn2" class="machine"></div>
</div>
<!-- 璐ф灦 -->
<div class="stock-group">
@@ -378,6 +375,32 @@
</div>
<!-- 鍙宠緭閫佺嚎 -->
+ <input id="val" type="text">
+ <button id="animate">animate</button>
</main>
</body>
+<script>
+ var crn1Position = 0;
+ var crn2Position = 0;
+ $('#animate').click(function () {
+ crnAnimate(1, $('#val').val());
+ });
+
+ // 鍫嗗灈鏈哄亸绉诲姩鐢�
+ function crnAnimate(id, leftVal) {
+ switch (id) {
+ case 1:
+ $("#crn1").animate({left: leftVal+'px'}, 1000);
+ crn1Position = leftVal;
+ break;
+ case 2:
+ $("#crn2").animate({left: leftVal+'px'}, 1000);
+ crn2Position = leftVal;
+ break;
+ default:
+ break
+ }
+ }
+
+</script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1