diff --git a/src/main/resources/static/css/01.css b/src/main/resources/static/css/01.css new file mode 100644 index 0000000..9275e36 --- /dev/null +++ b/src/main/resources/static/css/01.css @@ -0,0 +1,222 @@ + body, + html { + font-family: Arial, Helvetica, sans-serif; + width: 100%; + height: 100%; + margin: 0; + padding: 0; + display: inline-block; + + } + + .page { + display: flex; + flex-flow: row; + flex-wrap: nowrap; + align-items: center; + justify-content: center; + width: 100%; + height: 100%; + /* background: url(img/login.jpg); */ + background:url(../img/login.jpg) ; + background-size: cover; + } + + .login { + display: inline-block; + position: relative; + } + + .login_visible { + position: relative; + overflow: hidden; + box-shadow: 0px 0px 15px white; + } + + .login_title { + margin-top: .5em; + margin-bottom: 1.2em; + color: #0044BB; + text-align: center; + } + + .login_content { + padding: 20px; + background-color: white; + z-index: 0; + position: relative; + } + + .login_content-overlay { + position: absolute; + top: 0; + left: 100%; + height: 100%; + z-index: 10; + } + + .login_content.animate { + animation: movePanel 1s forwards; + } + + @keyframes movePanel { + 0%, + 30% { + transform: translateX(0%); + } + 35%, + 100% { + transform: translateX(-100%); + } + } + + .login_content.animateOut { + animation: movePanelOut 3s forwards; + } + + @keyframes movePanelOut { + 0%, + 30% { + transform: translateX(-100%); + } + 35%, + 100% { + transform: translateX(0%); + } + } + + .panel_back { + position: absolute; + z-index: 20; + top: 50%; + left: 0; + width: 105%; + transform: translate(90%, -50%); + } + + .panel_back.animate { + animation: move 2s forwards; + } + + @keyframes move { + 0% { + transform: translate(70%, -50%); + z-index: 20; + } + 15% { + transform: translate(140%, -50%); + z-index: 10; + } + 75% { + transform: translate(-120%, -50%); + z-index: 10; + } + 100% { + transform: translate(-50%, -50%); + z-index: 0; + } + } + + .panel_back.animateOut { + transform: translate(-50%, -50%); + animation: moveOut 1s forwards; + } + + @keyframes moveOut { + 0% { + transform: translate(-50%, -50%); + z-index: 0; + } + 15% { + transform: translate(-120%, -50%); + z-index: 10; + } + 100% { + transform: translate(90%, -50%); + z-index: 10; + } + } + + .login_img { + width: 100%; + display: block; + background-color: white; + box-shadow: 0px 0px 15px white; + } + /* Form */ + + .form { + box-sizing: border-box; + } + + .form_label { + display: block; + color: #3D3D3D; + font-weight: 700; + margin-bottom: 5px; + } + + .form_input { + border-radius: 4px; + background-color: #f2f2f2; + box-shadow: 0px 2px 2px #d6d6d6; + border: none; + padding: 2%; + margin-bottom: 15px; + width: 380px; + box-sizing: border-box; + position: relative; + } + + .form_input:focus { + box-shadow: none; + outline-color: #99BBFF; + background-color: antiquewhite; + } + + .form_input::after { + content: "👁️"; + position: absolute; + top: 0; + left: 0; + height: 50px; + width: 50px; + background-color: red; + } + + .form_btn { + margin-top: 1.2em; + margin-bottom: 2em; + display: block; + width: 100%; + background-color: #99BBFF; + color: white; + border: none; + padding: .6em; + text-transform: uppercase; + font-weight: 500; + font-size: 1.5em; + border-radius: 3px; + cursor: pointer; + } + + .form_toggle { + background-color: transparent; + border: none; + padding: 0; + margin: 0; + font-size: 1.2em; + box-sizing: border-box; + border-bottom: 1px solid transparent; + cursor: pointer; + color: rgb(179, 165, 241); + } + + .form_toggle:hover { + border-bottom: 1px solid #e6de71; + } + + .form_toggle:focus { + outline: none; + border-bottom: 1px solid #167cc0; + } \ No newline at end of file diff --git a/src/main/resources/static/css/main.css b/src/main/resources/static/css/main.css new file mode 100644 index 0000000..6b33b37 --- /dev/null +++ b/src/main/resources/static/css/main.css @@ -0,0 +1,384 @@ +@import url('https://fonts.googleapis.com/css?family=Poppins:200,300,400,500,600,700,800,900&display=swap'); +* { + margin: 0; + padding: 0; + box-sizing: border-box; + font-family: 'Poppins', sans-serif; +} + +body { + margin: 0; + padding: 0; + font-family: "montserrat", sans-serif; + background: url(backimg.jpg) no-repeat; + background-size: cover; + min-height: 100%; +} + +.middle { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + background-size: cover; +} + +.middle h1 { + font-size: 70px; + text-transform: uppercase; + font-weight: 1000; + /* 字母宽度 */ + color: rgb(230, 215, 215); + background-image: url(img/1.1.1water.png); + opacity: 0.6; + background-clip: text; + -webkit-background-clip: text; + animation: water 5s infinite alternate; + -webkit-animation: water 5s infinite alternate; + -webkit-text-fill-color: transparent; + /* transparent全透明 */ + /* -webkit-webkit: text stroke 2px pink; */ +} + +@keyframes water { + from { + background-position: left 0px top 0; + } + to { + background-position: left 1000px top 0; + } +} + +.lsy { + text-shadow: 0px 12px 13px 0 rgb(0, 0, 0, 0.3); + text-decoration: none; + text-decoration-style: initial; + color: #4169E1; + font-size: 40px; +} + + +/* +body { + background: #000; + min-height: 200vh; +} */ + +header { + position: fixed; + top: 0; + left: 0; + width: 100%; + display: flex; + justify-content: space-between; + align-items: center; + transition: 0.6s; + padding: 33px 100px; + z-index: 100000; +} + +header.sticky { + padding: 15px 100px; + background: #fff; +} + + +/* header.logo { + position: relative; + font-weight: 700; + color: #fff; + text-decoration: none; + font-size: 2em; + text-transform: uppercase; + letter-spacing: 2px; + transition: 0.6s; +} */ + +header ul { + position: relative; + display: flex; + justify-content: center; + align-items: center; +} + +header li { + position: relative; + list-style: none; +} + +header li a { + margin: 0 60px; + text-decoration: none; + font-size: 23px; + color: #fff; + letter-spacing: 4px; + /* 每个字母或文字间隔 */ + font-weight: 500px; + transition: 0.6s; +} + +.header li a:hover { + background-color: #111; +} + +.header ul li ul { + width: auto; + background: grey; + position: absolute; + display: none; +} + +.header ul li ul li { + margin-right: 0; + float: none; + text-align: center; +} + +.haeder ul li:hover ul { + display: block; +} + +.banner { + position: relative; + width: 100%; +} + +header.sticky.lsy, +header.sticky ul li a { + color: #000; +} + +.top { + width: 100%; + height: 50px; +} + +.top_content { + width: 75%; + height: 50px; + margin: 0px auto; +} + +.body { + margin: 20px auto; + width: 75%; + height: 1700px; + background-color: rgb(209, 223, 224,0.2); +} + +.body_img { + width: 100%; + height: 825px; + /* background-color: rgb(143, 193, 235); */ +} + + +/* 因为body_img在body里面,所以img100%是整体的75% */ + +.body_content { + width: 100%; + height: 800px; + background-color: #00BFFF; +} + +.body_no { + width: 100%; + height: 25px; + background-color: black; +} + +.footing { + width: 75%; + height: 850px; + margin: 0px auto; + /* background-color: rgb(143, 193, 235); */ +} + +.footing_content { + width: 100%; + height: 800px; + background-color: rgba(208, 161, 223, 0.9); +} + +.footing_subnav { + width: 100%; + height: 50px; + background-color: rgb(196, 168, 199, 0.9); +} + + +/* //video */ + +.abc { + width: auto; + height: auto; + min-width: 100%; + min-height: 100%; + position: relative; + width: 100%; +} + + +/*轮播图css*/ + +* { + margin: 0; + padding: 0; + text-align: none; +} + + +/*设置显示图片的大小,溢出隐藏*/ + +.slidershow { + width: 1000px; + height: 600px; + overflow: hidden; + box-shadow: 10px 15px 20px 0 rgb(0, 0, 0, 0.3); + z-index: 50; +} + + +/*居中*/ + +.middle { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + /*实现块元素百分比下居中*/ +} + + +/*导航 设置绝对位置,弹性布局,按钮位置*/ + +.navigaion { + position: absolute; + bottom: 5px; + /*底部距离*/ + left: 50%; + transform: translateX(-50%); + display: flex; +} + + +/*设置按钮属性*/ + +.bar { + width: 50px; + height: 10px; + border: 2px solid #FFF8DC; + margin: 0.375rem; + cursor: pointer; + transition: 0.4s; +} + +.bar:hover { + background-color: #FFF8DC; +} + + +/*隐藏了按钮*/ + +input { + position: absolute; + visibility: hidden; +} + +.slides { + width: 1000%; + height: 100%; + display: flex; +} + +.slide { + width: 10%; + transition: 1s; + /*delay(延迟)*/ +} + +.slide img { + width: 100%; + height: 100%; +} + + +/*绑定按钮*/ + +#r1:checked~.s1 { + margin-left: 0; +} + +#r2:checked~.s1 { + margin-left: -10%; +} + +#r3:checked~.s1 { + margin-left: -20%; +} + + +/* 弹窗 */ + +/* #header-right { + position: absolute; + width: 25px; + height: 25px; + border-radius: 5px; + background: red; + color: #fff; + right: 5px; + top: 5px; + text-align: center; + z-index: 1000; +} */ +.container{ + position: relative; + width: 100%; + min-height: 100vh; + display: flex; + justify-content: center; + align-items: center; + transition: 0.5 s; + padding: 20px; +} +.container .content{ + position: relative; + /* max-width: 800px; */ +} +.container#blur.active{ + filter: blur(3px);/*磨砂程度*/ + /* pointer-events: none; + user-select: none; */ +} + +.kuang { + position: relative; + background: #fff; + width: 50%; + height: 80%; + border-radius: 5px; + margin: 5% auto; + z-index: 1000; +} + +.tanchuang { + position: fixed; + left: 0px; + top: 0px; + background: #000; + width: 100%; + height: 100%; + opacity: 0.5; + z-index: 1000; +} +/*.tanchuang.active{ + top: 50%; + visibility: visible; + opacity: 0.9;弹出框的背景透明度 + transition: 0.5 s; +}*/ +#he { + height: 40px; + z-index: 1000; +} \ No newline at end of file diff --git a/src/main/resources/static/css/myCssBackup.css b/src/main/resources/static/css/myCssBackup.css deleted file mode 100644 index d84127f..0000000 --- a/src/main/resources/static/css/myCssBackup.css +++ /dev/null @@ -1,155 +0,0 @@ - -*{ - font-family: '微软雅黑', sans-serif; - box-sizing: border-box; -} - -body{ - margin:0 auto; - background: #000000; -} -tr{ - /* background-color: #ced7f7; */ - background-color: rgba(206,215,247,0.6); - text-align: center; - /* box-shadow:5px 2px 6px #d4f6ff; */ -} - -td{ - font-weight: 550; - width: 50px; - overflow:hidden; - /* box-shadow:10px 10px 10px #ddfaff; */ -} - -//课程信息弹窗 - .container{ - position: center; - width: 100%; - min-height: 100vh; - display: flex; - justify-content: center; - align-items: center; - transition: 0.5 s; - padding: 20px; - } -.container .content{ - position: center; - /* max-width: 800px; */ -} -h2{ - text-align: center; -} -tr a,th a,td a{ - position: relative; - text-decoration: none; - color: #000000; -} -a{ - text-decoration: none; - /* color: #000000; */ -} -/*返回字体颜色*/ -.fanhui{ - color:#cce7f8; -} - -.container#blur.active{ - filter: blur(3px);/*磨砂程度*/ - /* pointer-events: none; - user-select: none; */ -} -.popup { - position: absolute; - top: 40%; - left: 50%; - transform: translate(-50%, -50%); - width: 300px; - padding: 50px; - box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3); - background: #ffc2b3; - visibility: hidden; - opacity: 0; -} - -.popup.active { - top: 50%; - visibility: visible; - opacity: 0.9; /*弹出框的背景透明度*/ - transition: 0.5s; -} -/*各模块位置处理*/ -#d{ - position: absolute; - text-align: center; - top: 20%; - left: 50%; - transform: translateX(-50%); - width: 500px; - -} -#c{ - position: absolute; - text-align: center; - top: -120%; - left: 50%; - transform: translateX(-50%); - width: 500px; -} -#e{ - position: absolute; - text-align: center; - top: 1730%; - left: 50%; - transform: translateX(-770%);/*控制元素位置*/ - width: 100px; -} -#f{ - position: absolute; - text-align: right; - top: -50%; - left: 95%; - transform: translateX(-50%); - width: 500px; -} -//Course Schedule字体 -@import url(https://fonts.googleapis.com/css?family=Pacifico); - -body { - display: flex; - height: 100vh; - justify-content: center; - align-items: center; - text-align: center; - background: black; - -} - -.neon { - color: #cce7f8; - font-size: 2.5rem; - font-family: 'Pacifico', cursive; - text-transform: uppercase; - animation: shining 0.1s alternate infinite; -} - -.neon2 { - color: #cce7f8; - font-size: 1.7rem; - font-family: 'Pacifico', cursive; - animation: shining 0.1s alternate infinite; -} -@keyframes shining { - from { - text-shadow: 0 0 6px rgba(182, 211, 207, 0.9), - 0 0 30px rgba(182, 211, 207, 0.3), 0 0 12px rgba(15, 115, 223, 0.5), - 0 0 21px rgba(15, 115, 223, 0.9), 0 0 34px rgba(15, 115, 223, 0.8), - 0 0 54px rgba(15, 115, 223, 0.9); - } - to { - text-shadow: 0 0 6px rgba(182, 211, 207, 1), - 0 0 30px rgba(182, 211, 207, 0.4), 0 0 12px rgba(15, 115, 223, 0.6), - 0 0 22px rgba(15, 115, 223, 0.8), 0 0 38px rgba(15, 115, 223, 0.9), - 0 0 60px rgba(15, 115, 223, 1); - } -} \ No newline at end of file diff --git a/src/main/resources/static/img/011.png b/src/main/resources/static/img/011.png new file mode 100644 index 0000000..eb97b11 Binary files /dev/null and b/src/main/resources/static/img/011.png differ diff --git a/src/main/resources/static/img/1.1.1water.png b/src/main/resources/static/img/1.1.1water.png new file mode 100644 index 0000000..1f66b23 Binary files /dev/null and b/src/main/resources/static/img/1.1.1water.png differ diff --git a/src/main/resources/static/img/1.jpg b/src/main/resources/static/img/1.jpg new file mode 100644 index 0000000..d38101f Binary files /dev/null and b/src/main/resources/static/img/1.jpg differ diff --git a/src/main/resources/static/img/14.jpg b/src/main/resources/static/img/14.jpg new file mode 100644 index 0000000..1db16d4 Binary files /dev/null and b/src/main/resources/static/img/14.jpg differ diff --git a/src/main/resources/static/img/2.jpg b/src/main/resources/static/img/2.jpg new file mode 100644 index 0000000..0121b19 Binary files /dev/null and b/src/main/resources/static/img/2.jpg differ diff --git a/src/main/resources/static/img/3.jpg b/src/main/resources/static/img/3.jpg new file mode 100644 index 0000000..a4da202 Binary files /dev/null and b/src/main/resources/static/img/3.jpg differ diff --git a/src/main/resources/static/img/background.png b/src/main/resources/static/img/background.png new file mode 100644 index 0000000..5abf173 Binary files /dev/null and b/src/main/resources/static/img/background.png differ diff --git a/src/main/resources/static/img/login.jpg b/src/main/resources/static/img/login.jpg new file mode 100644 index 0000000..dec909f Binary files /dev/null and b/src/main/resources/static/img/login.jpg differ diff --git a/src/main/resources/static/index.html b/src/main/resources/static/index.html index 20f6532..2bd2303 100644 --- a/src/main/resources/static/index.html +++ b/src/main/resources/static/index.html @@ -20,6 +20,7 @@
Course Schedule
Course Schedule
返回
+
返回


@@ -169,46 +170,46 @@ - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - 您的浏览器不支持canvas标签,请您更换浏览器 - -

-

-
-
- - -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SundayMondayTuesdayWednesdayThursdayFridaySaturday
1
2
3
4
5
6
7
8
9
0
A
B
C
-
- 回顶部 - - - - - - - - diff --git a/src/main/resources/static/js/course.js b/src/main/resources/static/js/course.js index b2c3e68..4dbe043 100644 --- a/src/main/resources/static/js/course.js +++ b/src/main/resources/static/js/course.js @@ -3,10 +3,10 @@ let data = { } let beautifulColor = ["#FFF68F", "#FFF0F5","#DDA0DD", "#FFC0CB","#C1FFC1","#F0FFFF","#FFE4C4","#FFF5EE"]; $.ajax({ - url: "/course/getCourseByUid",// 若要改成获取自己的课可把url改为/course/getMyCourse,此时需要登录才能获得课程 + url: "/course/getMyCourse",// 若要改成获取自己的课可把url改为/course/getMyCourse,此时需要登录才能获得课程 contentType: "application/json", dataType: "json", - data: JSON.stringify(data), + // data: JSON.stringify(data), type: "post", success: function (data) { let courses = data["data"]; diff --git a/src/main/resources/static/js/doLogin.js b/src/main/resources/static/js/doLogin.js new file mode 100644 index 0000000..7511da6 --- /dev/null +++ b/src/main/resources/static/js/doLogin.js @@ -0,0 +1,50 @@ +$.fn.serializeObject = function () { + var o = {}; + var a = this.serializeArray(); + $.each(a, function () { + if (o[this.name]) { + if (!o[this.name].push) { + o[this.name] = [o[this.name]]; + } + o[this.name].push(this.value || ''); + } else { + o[this.name] = this.value || ''; + } + }); + return o; +}; + +function doLogin(flag) { + + + if (flag) { + var para = $('#login-form').serializeObject(); + para.username = para.usernameIn; + para.password = para.passwordIn; + para = JSON.stringify(para); + $.ajax({ + url: "/user/login", + type: "POST", + dataType: "json", + contentType: "application/json", + data: para, + success: function (data) { + if (data.code == 0) window.location.href = "/"; + } + }) + } else { + var para = $('#sign-form').serializeObject(); + para = JSON.stringify(para); + console.log(para); + $.ajax({ + url: "/user/signUp", + type: "POST", + dataType: "json", + contentType: "application/json", + data: para, + success: function (data) { + if(data.code==0)alert("注册成功"); + } + }) + } +} diff --git a/src/main/resources/static/js/login.js b/src/main/resources/static/js/login.js new file mode 100644 index 0000000..3e8c8ee --- /dev/null +++ b/src/main/resources/static/js/login.js @@ -0,0 +1,25 @@ +var toggleBtns = document.querySelectorAll('.js-formToggle'); +for (var i = 0; i < toggleBtns.length; i++) { + toggleBtns[i].addEventListener("click", toggleForm); +} + + +var firstClick = true; + +function toggleForm() { + + if (!firstClick) { + document.querySelector('.js-imageAnimate').classList.toggle("animate"); + document.querySelector('.js-imageAnimate').classList.toggle("animateOut"); + + + document.querySelector('.js-panel_content').classList.toggle("animate"); + document.querySelector('.js-panel_content').classList.toggle("animateOut"); + } else { + firstClick = false; + document.querySelector('.js-imageAnimate').classList.add("animate"); + document.querySelector('.js-panel_content').classList.add("animate"); + + } + +} \ No newline at end of file diff --git a/src/main/resources/static/login.html b/src/main/resources/static/login.html new file mode 100644 index 0000000..da60e26 --- /dev/null +++ b/src/main/resources/static/login.html @@ -0,0 +1,63 @@ + + + + + + + + Login + + + + + + + +
+ +
+ + + + +
+ +
+
+ +
+ + + + + \ No newline at end of file diff --git a/src/main/resources/static/main.html b/src/main/resources/static/main.html new file mode 100644 index 0000000..bb386d5 --- /dev/null +++ b/src/main/resources/static/main.html @@ -0,0 +1,101 @@ + + + + + + + + index + + + + + + + + + + + + +
+ + +
+ +
+ +
+ + + + + +
+ + photo +
+ +
+ photo +
+ +
+ photo +
+ +
+ + + +
+ + + + + + \ No newline at end of file diff --git a/src/main/resources/static/v.mp4 b/src/main/resources/static/v.mp4 new file mode 100644 index 0000000..ab0da34 Binary files /dev/null and b/src/main/resources/static/v.mp4 differ diff --git a/src/main/resources/staticBackup/css/myCss.css b/src/main/resources/staticBackup/css/myCss.css deleted file mode 100644 index ea9f80a..0000000 --- a/src/main/resources/staticBackup/css/myCss.css +++ /dev/null @@ -1,135 +0,0 @@ -*{ - font-family: '微软雅黑', sans-serif; - box-sizing: border-box; -} -body{ - background-color: antiquewhite; -} -tr{ - background-color: #ffffff; - /* background-color: rgba(1,0.8,0.8,0.1); */ - text-align: center; -} -td{ - opacity: 0.7; - font-weight: 500; - width: 50px; - overflow:hidden; -} -/*//课程信息弹窗*/ -.container{ - position: relative; - width: 100%; - min-height: 100vh; - display: flex; - justify-content: center; - align-items: center; - transition: 0.5s; - padding: 20px; -} -.container .content{ - position: relative; - /* max-width: 800px; */ -} -/* .container .content img{ - max-width: 100%; - display: block; -} */ -h2{ - text-align: center; -} -a{ - position: relative; - /* padding: 5px 20px; */ - /* display: inline-block; */ - /* margin-top: 20px; */ - text-decoration: none; - color: #000000; - } -.container#blur.active{ - filter: blur(5px); - /* pointer-events: none; - user-select: none; */ -} -/*#popup_1,#popup_2,#popup_3,#popup_4,#popup_5,#popup_6,#popup_7,#popup_8{*/ -/* position: absolute;*/ -/* top: 40%;*/ -/* left: 50%;*/ -/* transform: translate(-50%,-50%);*/ -/* width: 300px;*/ -/* padding: 50px;*/ -/* box-shadow: 0 5px 30px rgba(0,0,0,0.3);*/ -/* background: #ffc2b3;*/ -/* visibility: hidden;*/ -/* opacity: 0;*/ -/*}*/ -/*#popup_1.active,#popup_2.active,#popup_3.active,#popup_4.active,#popup_5.active,#popup_6.active,#popup_7.active,#popup_8.active{*/ -/* top: 50%;*/ -/* visibility: visible;*/ -/* opacity: 0.9;*/ -/* transition: 0.5s;*/ -/*}*/ -.popup{ - position: absolute; - top: 40%; - left: 50%; - transform: translate(-50%,-50%); - width: 300px; - padding: 50px; - box-shadow: 0 5px 30px rgba(0,0,0,0.3); - background: #ffc2b3; - visibility: hidden; - opacity: 0; -} -.active{ - top: 50%; - visibility: visible; - opacity: 0.9; - transition: 0.5s; -} -/*//搜索栏*/ -.search-box{ - position: absolute; - top: 10%; - left: 50%; - transform: translate(-50%,-50%); - background: #887b81; - height: 40px; - border-radius: 40px; - padding: 10px; - -} -.search-box:hover>.search-txt{ - width: 200px; - padding: 0 6px; -} -.search-box:hover>.search-btn{ - background: #F0F8FF; -} -.search-btn{ - color: #ff5776; - float: right; - width: 40px; - height: 40px; - border-radius: 50%; - background: #00FFFF; - display: flex; - justify-content: center; - align-items: center; - transition: 0.4s; -} -.search-txt{ - border: none; - background: none; - outline: none; - float: left; - padding: 0; - color: #F0F8FF; - font-size: 16px; - transition: 0.4s; - line-height: 40px; - width: 0px; -} - - - diff --git a/src/main/resources/staticBackup/index.html b/src/main/resources/staticBackup/index.html deleted file mode 100644 index b2ac32f..0000000 --- a/src/main/resources/staticBackup/index.html +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - - - - - -
-
- - 这是头像 - - -


-

课程表

- - -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SundayMondayTuesdayWednesdayThursdayFridaySaturday
1
2
3
4
5
6
7
8
9
0
A
B
C
-
- 回顶部 -
-
- - - diff --git a/src/main/resources/staticBackup/js/index.js b/src/main/resources/staticBackup/js/index.js deleted file mode 100644 index 6e3741e..0000000 --- a/src/main/resources/staticBackup/js/index.js +++ /dev/null @@ -1,44 +0,0 @@ -let data = { - "uid": "1" -} -let beautifulColor = ["#FFF68F", "#DDA0DD", "#FFC0CB"]; -$.ajax({ - url: "/course/getCourseByUid",// 若要改成获取自己的课可把url改为/course/getMyCourse,此时需要登录才能获得课程 - contentType: "application/json", - dataType: "json", - data: JSON.stringify(data), - type: "post", - success: function (data) { - let courses = data["data"]; - for (let course of courses) { - let srcNum = -1; - let numTmp = -1; - let dayTmp = -1; - let times = course["time"]; - times = times.sort((a, b) => 100 * (a["weekday"] - a["weekday"]) + (a["course_num"] - b["course_num"])); - let popHtml = "
\n" + - "\t\t

"+course["address"]+"

\n" + - "\t\t

"+course["teacher"]+"

\n" + - "\t\tClose\n" + - "\t
" - $("html").append(popHtml); - let baseHtml = "" + course["courseName"] + ""; - for (let time of times) { - console.log(time) - if (dayTmp == time["weekday"] && numTmp == time["course_num"] - 1) { - let width = $("#courseTable tr[r=" + srcNum + "] td[c=" + dayTmp + "]").attr("rowspan"); - width++; - $("#courseTable tr[r=" + srcNum + "] td[c=" + dayTmp + "]").attr("rowspan", width); - $("#courseTable tr[r=" + time["course_num"] + "] td[c=" + time["weekday"] + "]").remove(); - console.log(width) - } else { - $("#courseTable tr[r=" + time["course_num"] + "] td[c=" + time["weekday"] + "]").html(baseHtml); - $("#courseTable tr[r=" + time["course_num"] + "] td[c=" + time["weekday"] + "]").attr("bgColor", beautifulColor[course["cid"] % beautifulColor.length]); - srcNum = time["course_num"]; - } - numTmp = time["course_num"]; - dayTmp = time["weekday"]; - } - } - } -});