......
This commit is contained in:
@@ -8,8 +8,9 @@
|
||||
}
|
||||
|
||||
html {
|
||||
background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='46.5' height='46.5' patternTransform='scale(1) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23000000ff'/><path d='M27.31-2.917a5 5 0 010 5.834m-8.12 0a5 5 0 010-5.834m-4.827 7.501a10 10 0 010-9.169m17.774.001a10 10 0 010 9.169M10.181 7.36a15 15 0 01-.001-14.722m26.14 0a15 15 0 010 14.724m-9.01 36.22a5 5 0 010 5.835m-8.12 0a5 5 0 010-5.834m-4.827 7.501a10 10 0 010-9.169m17.774.001a10 10 0 010 9.169M10.181 53.86a15 15 0 01-.001-14.723m26.14 0a15 15 0 010 14.724m6.12-27.693a5 5 0 010-5.834m-4.827 7.5a10 10 0 010-9.169M33.431 30.61a15 15 0 01-.001-14.722M4.06 20.332a5 5 0 010 5.835m4.827-7.501a10 10 0 010 9.169m4.183-11.947a15 15 0 010 14.724' stroke-linecap='square' stroke-width='1.5' stroke='%23c15d1ae3' fill='none'/><path d='M43.582 42.44a5 5 0 015.835 0m-7.501-4.827a10 10 0 019.169 0M39.138 33.43a15 15 0 0114.724 0m-56.781 9.01a5 5 0 015.836 0m-7.501-4.827a10 10 0 019.169 0M-7.362 33.43a15 15 0 0114.724 0M49.417 4.06a5 5 0 01-5.834 0m7.501 4.827a10 10 0 01-9.169 0m11.946 4.182a15 15 0 01-14.723.001M2.917 4.06a5 5 0 01-5.834 0m7.501 4.827a10 10 0 01-9.169 0M7.36 13.069a15 15 0 01-14.722.001m27.694 6.12a5 5 0 015.835 0m0 8.12a5 5 0 01-5.834 0m7.5 4.827a10 10 0 01-9.168 0m.001-17.774a10 10 0 019.169 0m2.776 21.956a15 15 0 01-14.723.001m0-26.14a15 15 0 0114.724 0' stroke-linecap='square' stroke-width='1.5' stroke='%23ffffff72' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(-93,-93)' fill='url(%23a)'/></svg>");
|
||||
margin: 1vh 1vw;
|
||||
/*background-image: url("data:image/svg+xml,<svg id='patternId' width='100%' height='100%' xmlns='http://www.w3.org/2000/svg'><defs><pattern id='a' patternUnits='userSpaceOnUse' width='46.5' height='46.5' patternTransform='scale(1) rotate(0)'><rect x='0' y='0' width='100%' height='100%' fill='%23000000ff'/><path d='M27.31-2.917a5 5 0 010 5.834m-8.12 0a5 5 0 010-5.834m-4.827 7.501a10 10 0 010-9.169m17.774.001a10 10 0 010 9.169M10.181 7.36a15 15 0 01-.001-14.722m26.14 0a15 15 0 010 14.724m-9.01 36.22a5 5 0 010 5.835m-8.12 0a5 5 0 010-5.834m-4.827 7.501a10 10 0 010-9.169m17.774.001a10 10 0 010 9.169M10.181 53.86a15 15 0 01-.001-14.723m26.14 0a15 15 0 010 14.724m6.12-27.693a5 5 0 010-5.834m-4.827 7.5a10 10 0 010-9.169M33.431 30.61a15 15 0 01-.001-14.722M4.06 20.332a5 5 0 010 5.835m4.827-7.501a10 10 0 010 9.169m4.183-11.947a15 15 0 010 14.724' stroke-linecap='square' stroke-width='1.5' stroke='%23c15d1ae3' fill='none'/><path d='M43.582 42.44a5 5 0 015.835 0m-7.501-4.827a10 10 0 019.169 0M39.138 33.43a15 15 0 0114.724 0m-56.781 9.01a5 5 0 015.836 0m-7.501-4.827a10 10 0 019.169 0M-7.362 33.43a15 15 0 0114.724 0M49.417 4.06a5 5 0 01-5.834 0m7.501 4.827a10 10 0 01-9.169 0m11.946 4.182a15 15 0 01-14.723.001M2.917 4.06a5 5 0 01-5.834 0m7.501 4.827a10 10 0 01-9.169 0M7.36 13.069a15 15 0 01-14.722.001m27.694 6.12a5 5 0 015.835 0m0 8.12a5 5 0 01-5.834 0m7.5 4.827a10 10 0 01-9.168 0m.001-17.774a10 10 0 019.169 0m2.776 21.956a15 15 0 01-14.723.001m0-26.14a15 15 0 0114.724 0' stroke-linecap='square' stroke-width='1.5' stroke='%23ffffff72' fill='none'/></pattern></defs><rect width='800%' height='800%' transform='translate(-93,-93)' fill='url(%23a)'/></svg>");*/
|
||||
/*margin: 1vh 1vw;*/
|
||||
background: black;
|
||||
}
|
||||
|
||||
#where{
|
||||
@@ -23,9 +24,9 @@ body {
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
align-content: center;
|
||||
background: var(--DEFAULT_LAYER_BACK);
|
||||
padding: 1vh 1vw;
|
||||
border-radius: 10px;
|
||||
/*background: var(--DEFAULT_LAYER_BACK);*/
|
||||
/*padding: 1vh 1vw;*/
|
||||
/*border-radius: 10px;*/
|
||||
}
|
||||
|
||||
body > *{
|
||||
@@ -52,8 +53,9 @@ body > *{
|
||||
header {
|
||||
top: 0;
|
||||
/*background: var(--DEFAULT_LAYER_BACK);*/
|
||||
background: var(--DEFAULT_LAYER_BACK);
|
||||
border-top: #ec914b8f;
|
||||
border-radius: 10px 30px;
|
||||
border-radius: 5px 30px;
|
||||
border-width: 1px;
|
||||
height: 5vh;
|
||||
min-height: 5vh;
|
||||
@@ -159,8 +161,8 @@ footer {
|
||||
display: flex;
|
||||
bottom: 0;
|
||||
border-top: #ec914b8f;
|
||||
/*background: var(--DEFAULT_LAYER_BACK);*/
|
||||
border-radius: 30px 10px;
|
||||
background: var(--DEFAULT_LAYER_BACK);
|
||||
border-radius: 5px 30px ;
|
||||
border-width: 1px;
|
||||
height: 5vh;
|
||||
min-height: 5vh;
|
||||
|
||||
@@ -1,6 +1,34 @@
|
||||
|
||||
onload = function() {
|
||||
history.replaceState({}, null, location.pathname);
|
||||
var accToken = get_cookie("access")
|
||||
var refreshToken = get_cookie("refresh")
|
||||
console.log("access === " + accToken + " || " + accToken.length);
|
||||
console.log("refresh === " + refreshToken + " || " + refreshToken.length);
|
||||
|
||||
if (accToken.length < 1) {
|
||||
document.cookie = "refresh="+ window.sessionStorage.getItem("REFRESH") + ";";
|
||||
}
|
||||
if (refreshToken.length < 1) {
|
||||
window.sessionStorage.setItem("REFRESH",get_cookie("refresh"))
|
||||
}
|
||||
}
|
||||
onbeforeunload = function () {
|
||||
var accToken = get_cookie("access")
|
||||
var refreshToken = get_cookie("refresh")
|
||||
console.log("access === " + accToken + " || " + accToken.length);
|
||||
console.log("refresh === " + refreshToken + " || " + refreshToken.length);
|
||||
|
||||
if (accToken.length < 1) {
|
||||
document.cookie = "refresh="+ window.sessionStorage.getItem("REFRESH") + ";";
|
||||
}
|
||||
if (refreshToken.length < 1) {
|
||||
window.sessionStorage.setItem("REFRESH",get_cookie("refresh"))
|
||||
}
|
||||
}
|
||||
function get_cookie(name) {
|
||||
var value = document.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)');
|
||||
return value? value[2] : null;
|
||||
}
|
||||
|
||||
function divider(key) {
|
||||
@@ -92,6 +120,7 @@ function postLogin(target,type, data, key,callBackResult) {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
httpRequest.open('POST', target, true);
|
||||
httpRequest.setRequestHeader("Content-Type", "text/plain");
|
||||
var odd = []
|
||||
@@ -160,8 +189,11 @@ function onclickLogin(type, keyword) {
|
||||
}
|
||||
postLogin(getMainPath()+"/user/login.ajax",type,JSON.stringify(data),keyword, function (data) {
|
||||
if (data.isOk) {
|
||||
|
||||
document.cookie = "access=" + data.token.split(";")[0]+";"
|
||||
document.cookie = "refresh=" + data.refresh.split(";")[0]+";"
|
||||
// document.cookie = "refresh=" + data.refresh.split(";")[0]+";"
|
||||
// window.sessionStorage.setItem("ACCESS",data.refresh.split(";")[0])
|
||||
window.sessionStorage.setItem("REFRESH",data.refresh.split(";")[0])
|
||||
document.location.replace(document.location)
|
||||
} else {
|
||||
if (data.resultCode === 7100) {
|
||||
|
||||
Reference in New Issue
Block a user