root 2 years ago
parent
commit
eb00e4a4b1
1 changed files with 35 additions and 5 deletions
  1. 35 5
      sso/index.html

+ 35 - 5
sso/index.html

@@ -128,7 +128,7 @@
             }).then(postLogin)
         }
         function matches(e) {
-            return e.match('[/n]\\?username=') || e.match('requestParams') || e.match('\"newmessage\"')
+            return e.match('(DOCTYPE|[/n]\\?username=|requestParams|\"newmessage\")')
         }
         async function next(e, call) {//异步递归嘿嘿嘿,再多 302 也不怕;再加上回调函数,真是妙
             if (e.length < 3000 && !matches(e)) {
@@ -185,21 +185,48 @@
         li:hover {
             background-color: #eee;
         }
+
+        .box::before {
+            content: '';
+            display: block;
+            width: 100%;
+            height: 3px;
+            box-sizing: border-box;
+            margin-top: 10px;
+            border-bottom: 1px solid #999;
+            border-image: linear-gradient(to right, transparent, #1984d1, #10c482, transparent) 1;
+        }
+
+        .box:hover::before {
+            border-bottom: 3px solid #999;
+        }
+
+        .page-header.nohr {
+            margin-bottom: 0;
+            border-bottom: none;
+        }
     </style>
 </head>
 
 <body>
-    <div class="page-header">
-        <h2>数字校园</h2>
+    <div class="page-header nohr">
+        <h2>数字校园
+            <button class="btn btn-default btn-xs">
+                <span class="glyphicon glyphicon-question-sign"></span>
+            </button>
+        </h2>
         <span id="loginSt" class="label label-default">未登录</span>
         <span id="user" class="label label-default">-</span>
+        <button class="btn btn-danger btn-xs e" onclick="postLogin()">
+            <span class="glyphicon glyphicon-refresh"></span>
+        </button>
         <button class="btn btn-danger btn-xs e" onclick="delCookies(1);setStatus(0)" onmouseenter="$('#double-off').css('scale','100%')" onmouseleave="$('#double-off').css('scale','0')">
             <span class="glyphicon glyphicon-log-out"></span>
         </button>
         <button id="double-off" class="btn btn-danger btn-xs e" onclick="delCookies(2);location.reload()" onmouseenter="$('#double-off').css('scale','100%')" onmouseleave="$('#double-off').css('scale','0')" style="scale:0;transition-duration: 1000ms;" data-toggle="tooltip" data-placement="right" title="全部重置">
             <span class="glyphicon glyphicon-off"></span>
         </button>
-        <button id="double-off" class="btn btn-danger btn-xs login" onclick="delCookies(2);location.reload()" data-toggle="tooltip" data-placement="right" title="全部重置">
+        <button class="btn btn-danger btn-xs login" onclick="delCookies(2);location.reload()" data-toggle="tooltip" data-placement="right" title="全部重置">
             <span class="glyphicon glyphicon-off"></span>
         </button>
         <img id="avatar" style="position:absolute;right:10px;top:10px;">
@@ -215,7 +242,7 @@
             </h3>
         </div>
         <button class="btn btn-default e" onclick="$('#change').toggle(200)">修改密码</button>
-        <button class="btn btn-default e" onclick="$('#cookie').toggle(200)">cookie</button>
+        <!-- <button class="btn btn-default e" onclick="$('#cookie').toggle(200)">cookie</button> -->
         <div class="login">
             <br>
             <div class="input-group">
@@ -253,4 +280,7 @@
         </div>
         <ul id="mailList" class="list-unstyled e"></ul>
     </div>
+    <div style="position:absolute;bottom:10px;left:10px;color:#ccc">
+        北师大实验中学
+    </div>
 </body>