Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
slm-fileview
Project
Project
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jenkins
slm-fileview
Commits
82c7b596
Commit
82c7b596
authored
Sep 13, 2021
by
Yiding He
Committed by
kl
Sep 13, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
在主页上添加输入URL地址来预览的表单
parent
db2ed3a5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
index.ftl
server/src/main/resources/web/index.ftl
+23
-0
No files found.
server/src/main/resources/web/index.ftl
View file @
82c7b596
...
...
@@ -48,6 +48,22 @@
</div>
</div>
</div>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h4
class=
"panel-title"
>
<a
data-toggle=
"collapse"
data-parent=
"#accordion"
>
输入下载地址预览文件
</a>
</h4>
</div>
<div
class=
"panel-body"
>
<label>
文件下载地址:
<input
type=
"text"
id=
"_url"
style=
"min-width:50em"
/></label>
<form
action=
"${baseUrl}onlinePreview"
target=
"_blank"
id=
"preview_by_url"
style=
"display: inline-block"
>
<input
type=
"hidden"
name=
"url"
/>
<input
type=
"submit"
value=
"预览"
>
</form>
</div>
</div>
<div
class=
"panel panel-default"
>
<div
class=
"panel-heading"
>
<h4
class=
"panel-title"
>
...
...
@@ -258,6 +274,13 @@
return
data
;
});
$
(
'#preview_by_url'
).
submit
(
function
()
{
var
_url
=
$
(
"#_url"
).
val
();
var
urlField
=
$
(
this
).
find
(
'[name=url]'
);
var
b64Encoded
=
Base64
.
encode
(
_url
);
urlField
.
val
(
b64Encoded
);
});
function
showLoadingDiv
()
{
var
height
=
window
.
document
.
documentElement
.
clientHeight
-
1
;
...
...
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