Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
6e7c95e7
"src/vscode:/vscode.git/clone" did not exist on "d17ad852a58e290bc99f025432c3cd87d5e614c5"
Commit
6e7c95e7
authored
Oct 22, 2018
by
HuangBingGui
Browse files
no commit message
parent
d39d7376
Changes
22
Hide whitespace changes
Inline
Side-by-side
JeeSpringCloud/src/main/webapp/staticViews/index/login.css
0 → 100644
View file @
6e7c95e7
/* Validation */
label
.error
{
color
:
#cc5965
;
display
:
inline-block
;
margin-left
:
5px
;
}
.login-page
{
overflow
:
hidden
;
padding
:
0px
;
background-position
:
center
;
}
#logo
{
width
:
150px
;
height
:
150px
;
}
#vid
{
display
:
none
;
background-color
:
white
;
opacity
:
1
;
visibility
:
visible
;
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
left
:
0px
;
right
:
0px
;
height
:
100%
;
width
:
100%
;
object-fit
:
cover
;
object-position
:
center
center
;
}
#menu
{
z-index
:
10000
;
position
:
absolute
;
top
:
0px
;
left
:
0px
;
border-radius
:
3px
;
padding
:
10px
;
width
:
100%
;
margin
:
auto
50px
;
}
#loginForm
{
background
:
rgba
(
255
,
255
,
255
,
.2
);
border
:
1px
solid
rgba
(
255
,
255
,
255
,
.3
);
border-radius
:
3px
;
padding
:
30px
;
}
#hplaT
{
position
:
absolute
;
bottom
:
0px
;
right
:
0px
;
/* background: rgba(255,255,255,.2); */
border
:
1px
solid
rgba
(
255
,
255
,
255
,
.3
);
border-radius
:
3px
;
padding
:
10px
;
width
:
30%
;
}
JeeSpringCloud/src/main/webapp/staticViews/index/login.js
0 → 100644
View file @
6e7c95e7
if
(
window
.
top
!==
window
.
self
)
{
window
.
top
.
location
=
window
.
location
;
}
$
(
document
).
ready
(
function
()
{
readyInfo
();
$
(
"
#loginForm
"
).
validate
({
rules
:
{
validateCode
:
{
remote
:
"
/servlet/validateCodeServlet
"
}
},
messages
:
{
username
:
{
required
:
"
请填写用户名!
"
},
password
:
{
required
:
"
请填写密码!
"
},
validateCode
:
{
remote
:
"
验证码不正确!
"
,
required
:
"
请填写验证码!
"
}
},
//errorLabelContainer: "#messageBox",
errorPlacement
:
function
(
error
,
element
)
{
error
.
insertAfter
(
element
);
}
});
});
// 如果在框架或在对话框中,则弹出提示并跳转到首页
if
(
self
.
frameElement
&&
self
.
frameElement
.
tagName
==
"
IFRAME
"
||
$
(
'
#left
'
).
length
>
0
||
$
(
'
.jbox
'
).
length
>
0
)
{
alert
(
'
未登录或登录超时。请重新登录,谢谢!
'
);
top
.
location
=
"
/admin
"
;
}
function
readyInfo
()
{
$
(
'
#vid
'
).
hide
();
//$('#loginPage').hide();
var
hplaTtl
=
[
"
侏罗纪海岸<br>英国南部英吉利海峡
"
,
"
短耳朵的大兔子<br>肯尼亚,马拉北部保护区
"
,
"
超质感流线型身躯<br>美国,克里斯特尔里弗
"
,
"
跃动的蒙德里安<br>美国,纽约
"
,
"
纯净之地<br>美国,苏必利尔湖
"
,
"
历史积淀雄厚的城市<br>挪威,特隆赫姆
"
,
"
牦牛<br>西藏
"
,
"
金毛<br>昆虫
"
,
"
岩洞<br>美国岩洞
"
,
"
彩蛋农场<br>法国农场
"
,
"
温顺可人的大家伙 <br>美国,林恩运河
"
,
"
我愿迷失在这阑珊灯火中<br>葡萄牙,辛特拉市
"
,
"
舒缓湖景<br>中国
"
,
"
足球界的最高表彰<br>挪威,亨宁斯韦尔
"
,
"
圣洁之地<br>德国,赖兴瑙岛
"
,
"
终极旅行目的地<br>南极洲,佩诺拉海峡
"
];
var
random
=
Math
.
floor
(
Math
.
random
()
*
(
16
-
1
+
1
)
+
1
);
var
loginImgUrl
=
"
../staticViews/index/images/loginImg
"
+
random
+
"
.jpg
"
;
$
(
"
.login-page
"
).
css
(
"
background-image
"
,
"
url(
"
+
loginImgUrl
+
"
)
"
);
$
(
"
.login-page
"
).
css
(
"
background-size
"
,
"
cover
"
);
if
(
hplaTtl
.
length
>=
random
)
{
$
(
"
#hplaTtl
"
).
html
(
hplaTtl
[
random
-
1
]);
$
(
"
.search
"
).
attr
(
"
href
"
,
"
https://cn.bing.com/search?q=
"
+
hplaTtl
[
random
-
1
].
replace
(
"
<br>
"
,
"
"
));
}
//$("#logo").attr("src", "../static/common/login/images/flat-avatar" + Math.floor(Math.random() * (1 - 1 + 1) + 1) + ".png");
random
=
Math
.
floor
(
Math
.
random
()
*
(
1
-
1
+
1
)
+
1
);
$
(
"
#vid
"
).
attr
(
"
src
"
,
"
../staticViews/index/images/flat-avatar
"
+
random
+
"
.mp4
"
);
//$('#loginPage').show(1000);
}
setTimeout
(
function
()
{
$
(
'
#vid
'
).
show
(
888
);
},
3000
);
\ No newline at end of file
Prev
1
2
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment