Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
任超
/
js.portalStaticPage
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
eae93dd4
authored
2021-01-22 08:33:50 +0800
by
任超
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:头部
1 parent
c30a50ba
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
8 deletions
staticJs/head.js
staticJs/header.js
staticJs/login.js
staticJs/head.js
View file @
eae93dd
...
...
@@ -18,7 +18,6 @@ document.writeln(" <link rel=\'stylesheet\' type=\'text/css\' href=\'" + loca
document
.
writeln
(
" <link type=\'text/css\' rel=\'stylesheet\' href=\'"
+
localhostPaht
+
"/staticCss/header.css\' />"
);
document
.
writeln
(
" <link type=\'text/css\' rel=\'stylesheet\' href=\'"
+
localhostPaht
+
"/staticCss/common.css\' />"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticLib/jquery/jquery.min.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/login.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/common.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/header.js\'></script>"
);
document
.
writeln
(
"</head>"
);
...
...
@@ -33,7 +32,7 @@ document.writeln(" <input type=\'text\' name=\'title\' required l
document
.
writeln
(
" class=\'layui-input\'>"
);
document
.
writeln
(
" <img class=\'search_img\' src=\'"
+
localhostPaht
+
"/staticImages/search.png\'>"
);
document
.
writeln
(
" </div>"
);
document
.
writeln
(
" <ul class='login l
ogin-con isLogi
n'>"
);
document
.
writeln
(
" <ul class='login l
ayui-nav login-co
n'>"
);
document
.
writeln
(
" <span class='loginButton' id='login'>登录</span>"
);
document
.
writeln
(
" <p class='loginButton register' id='register'><a href=\'"
+
localhostPaht
+
"/staticViews/register.html\'>注册</a></p>"
);
document
.
writeln
(
" </ul>"
);
...
...
@@ -69,4 +68,5 @@ document.writeln(" </div> ");
document
.
writeln
(
" </div> "
);
document
.
writeln
(
"</html>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticLib/layui/layui.js\'></script>"
);
document
.
writeln
(
"<script type='text/javascript' src=\'"
+
localhostPaht
+
"/staticJs/login.js\'></script>"
);
document
.
writeln
(
"<script src=\'https://at.alicdn.com/t/font_2174584_1j8kvwarwge.js\'></script>"
);
...
...
staticJs/header.js
View file @
eae93dd
...
...
@@ -2,11 +2,11 @@ $(function () {
newsCenterData
();
})
function
newsCenterData
()
{
$
(
'.sysNewsList .newsDetail'
).
mouseover
(
function
(
)
{
$
(
document
).
on
(
"mouseover"
,
".sysNewsList .newsDetail"
,
function
(
e
)
{
$
(
'.sysNewsList .newsDetail'
).
addClass
(
'ellipsis'
);
$
(
this
).
removeClass
(
'ellipsis'
);
})
$
(
'.sysNewsList .newsDetail'
).
mouseout
(
function
(
)
{
$
(
document
).
on
(
"mouseout"
,
".sysNewsList .newsDetail"
,
function
(
e
)
{
$
(
'.sysNewsList .newsDetail'
).
addClass
(
'ellipsis'
);
}
)
}
}
\ No newline at end of file
...
...
staticJs/login.js
View file @
eae93dd
...
...
@@ -94,7 +94,7 @@ function handleLogin(data) {
// 登录成功之前数据操作
function
beforeLogin
()
{
$
(
'.login-con'
).
empty
();
$
(
'.login-con'
).
append
(
'<span class="loginButton" id="login">登录</span>'
+
$
(
'.login-con'
).
append
(
'<span class="loginButton" id="login">登录</span>'
+
'<p class="loginButton register" id="register"><a href="/staticViews/register.html">注册</a></p>'
)
}
// 登录成功之后数据操作
...
...
@@ -136,9 +136,9 @@ function appendData() {
'</dl>'
+
'</li>'
)
layui
.
use
([
'element'
],
function
()
{
layui
.
use
([
'element'
],
function
()
{
layui
.
element
.
init
();
//手动调用初始化方法
})
})
}
// 点击注册的时候
...
...
Please
register
or
sign in
to post a comment