Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Q
qsl_web
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
邓丽
qsl_web
Commits
9f357292
Commit
9f357292
authored
Sep 23, 2016
by
邓丽
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
formSubmit
parent
ed2f65a2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
2 deletions
+20
-2
dist/html/gallery.html
+10
-1
src/pages/gallery.ejs
+10
-1
No files found.
dist/html/gallery.html
View file @
9f357292
...
@@ -67,9 +67,11 @@
...
@@ -67,9 +67,11 @@
</section>
</section>
<section>
<section>
<div
class=
"search"
>
<div
class=
"search"
>
<form
action=
""
>
<span>
<span>
<input
type=
"search"
placeholder=
"搜索"
/><a
><i></i></a>
<input
type=
"search"
placeholder=
"搜索"
id=
"searchContent"
/><a
id=
"searchBtn"
><i></i></a>
</span>
</span>
</form>
</div>
</div>
<div
class=
"searchContent"
>
<div
class=
"searchContent"
>
<!--引入遮罩图片列表-->
<!--引入遮罩图片列表-->
...
@@ -278,6 +280,13 @@
...
@@ -278,6 +280,13 @@
});
});
})
})
/*搜索按钮提交表单*/
function
searchWords
(
obj
){
$
(
obj
).
parents
(
"form"
).
submit
();
}
$
(
"#searchBtn"
).
click
(
function
(){
searchWords
(
this
);
})
</script>
</script>
</body>
</body>
...
...
src/pages/gallery.ejs
View file @
9f357292
...
@@ -43,9 +43,11 @@
...
@@ -43,9 +43,11 @@
</section>
</section>
<section>
<section>
<div
class=
"search"
>
<div
class=
"search"
>
<form
action=
""
>
<span>
<span>
<input
type=
"search"
placeholder=
"搜索"
/><a
><i></i></a>
<input
type=
"search"
placeholder=
"搜索"
id=
"searchContent"
/><a
id=
"searchBtn"
><i></i></a>
</span>
</span>
</form>
</div>
</div>
<div
class=
"searchContent"
>
<div
class=
"searchContent"
>
<!--引入遮罩图片列表-->
<!--引入遮罩图片列表-->
...
@@ -89,6 +91,13 @@
...
@@ -89,6 +91,13 @@
});
});
})
})
/*搜索按钮提交表单*/
function
searchWords
(
obj
){
$
(
obj
).
parents
(
"form"
).
submit
();
}
$
(
"#searchBtn"
).
click
(
function
(){
searchWords
(
this
);
})
</script>
</script>
</body>
</body>
...
...
Write
Preview
Markdown
is supported
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