From 0cbcebcfc77bbdffd8055b878060a459c2e286e5 Mon Sep 17 00:00:00 2001
From: vincent <1341870251@qq.com>
Date: 星期五, 29 五月 2020 17:26:46 +0800
Subject: [PATCH] #
---
src/main/webapp/views/console.html | 123 +++++++++++++++++------------------------
1 files changed, 51 insertions(+), 72 deletions(-)
diff --git a/src/main/webapp/views/console.html b/src/main/webapp/views/console.html
index 35ec595..d5d7f2b 100644
--- a/src/main/webapp/views/console.html
+++ b/src/main/webapp/views/console.html
@@ -9,72 +9,9 @@
<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>
+ <script type="text/javascript" src="../static/js/layer/layer.js"></script>
<style>
- /* 绔欑偣 */
- .site {
- height: 20px;
- border: 1px solid red;
- border-radius: 3px;
- cursor: pointer;
- width: 50px;
- text-align: center;
- background-color: #21ff3a;
- font-size: 13px;
- }
- /* 鏃犳晥绔欑偣锛堝繀椤诲湪site涓嬮潰锛� */
- .site-none {
- border: none;
- background-color: transparent;
- }
-
- .main-part {
- position: absolute;
- top: 200px;
- left: 400px;
- /*transform: translate(-50%, 0);*/
- }
-
- /* --------- 杈撻�佺嚎鎬绘垚 --------- */
- /* 杈撻�佺嚎绗竴鍒� */
- .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 {
- float: left;
- width: 100px;
- }
- /* 杈撻�佺嚎绗洓鍒� */
- .site-row-4 {
- position: absolute;
- left: 500px;
- top: 72px;
- width: 100px;
- }
- .site-row-4 .site {
- float: right;
- width: 100px;
- }
</style>
</head>
@@ -86,7 +23,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 +35,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 +51,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 +130,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 +253,7 @@
<!-- 鍫嗗灈鏈� -->
<div class="crn">
<hr class="pathway">
- <div class="machine"></div>
+ <div id="crn2" class="machine"></div>
</div>
<!-- 璐ф灦 -->
<div class="stock-group">
@@ -378,6 +315,48 @@
</div>
<!-- 鍙宠緭閫佺嚎 -->
+ <input id="val" type="text">
+ <button id="animate">animate</button>
</main>
+
+
+<!-- 寮瑰嚭灞� -->
+<form id="msg" style="display: none">
+ <input name="name" type="text">
+ <input name="password" type="password">
+ <button>纭畾</button>
+</form>
</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
+ }
+ }
+
+ $('.item').on('click', function () {
+ layer.open({
+ type: 1,
+ shadeClose: true, //鐐瑰嚮閬僵鍏抽棴灞�
+ content: $("#msg")
+ });
+ })
+
+</script>
</html>
\ No newline at end of file
--
Gitblit v1.9.1