Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
omt-card
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
template admin
omt-card
Commits
d7f96494
Commit
d7f96494
authored
Jan 15, 2020
by
liujiangnan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改网页名称,添加提示
parent
9c948ac0
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
4 deletions
+16
-4
app.js
app.js
+5
-3
index.css
index/index.css
+7
-0
index.html
index/index.html
+2
-1
index.js
index/index.js
+2
-0
No files found.
app.js
View file @
d7f96494
...
@@ -39,12 +39,12 @@ var server = http.createServer(function (request, response) {
...
@@ -39,12 +39,12 @@ var server = http.createServer(function (request, response) {
response
.
write
(
"
This request URL
"
+
pathname
+
"
was not found on this server.
"
);
response
.
write
(
"
This request URL
"
+
pathname
+
"
was not found on this server.
"
);
response
.
end
();
response
.
end
();
}
else
{
}
else
{
fs
.
readFile
(
realPath
,
"
binary
"
,
function
(
err
,
file
)
{
fs
.
readFile
(
realPath
,
"
binary
"
,
function
(
err
,
file
)
{
if
(
err
)
{
if
(
err
)
{
response
.
writeHead
(
500
,
{
response
.
writeHead
(
500
,
{
'
Content-Type
'
:
'
text/plain
'
'
Content-Type
'
:
'
text/plain
'
});
});
response
.
end
(
err
);
response
.
end
(
JSON
.
stringify
(
err
)
);
}
else
{
}
else
{
var
contentType
=
mine
[
ext
]
||
"
text/plain
"
;
var
contentType
=
mine
[
ext
]
||
"
text/plain
"
;
response
.
writeHead
(
200
,
{
response
.
writeHead
(
200
,
{
...
@@ -58,4 +58,6 @@ var server = http.createServer(function (request, response) {
...
@@ -58,4 +58,6 @@ var server = http.createServer(function (request, response) {
});
});
});
});
server
.
listen
(
PORT
);
server
.
listen
(
PORT
);
console
.
log
(
"
Server runing at port:
"
+
PORT
+
"
.
"
);
console
.
log
(
"
Server runing at port:
"
+
PORT
+
"
.
"
);
\ No newline at end of file
console
.
log
(
"
http://localhost:
"
+
PORT
+
"
/index/index.html
"
);
console
.
log
(
"
http://localhost:
"
+
PORT
+
"
/form/index.html
"
);
\ No newline at end of file
index/index.css
View file @
d7f96494
...
@@ -36,6 +36,13 @@
...
@@ -36,6 +36,13 @@
font-size
:
25px
;
font-size
:
25px
;
}
}
.info-view
{
position
:
absolute
;
bottom
:
5px
;
right
:
5px
;
display
:
none
;
}
#playView
{
#playView
{
display
:
none
;
display
:
none
;
}
}
\ No newline at end of file
index/index.html
View file @
d7f96494
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<meta
http-equiv=
"X-UA-Compatible"
content=
"ie=edge"
>
<base
href=
""
>
<base
href=
""
>
<title>
h5-template-generato
r
</title>
<title>
OhMyTeache
r
</title>
<script
src=
"http://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"
></script>
<script
src=
"http://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"
></script>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
<link
href=
"https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css"
rel=
"stylesheet"
>
...
@@ -63,6 +63,7 @@
...
@@ -63,6 +63,7 @@
<!-- 展示区域 -->
<!-- 展示区域 -->
<img
id=
"playView"
src=
""
/>
<img
id=
"playView"
src=
""
/>
<span
class=
"glyphicon glyphicon-remove text-success close-view"
></span>
<span
class=
"glyphicon glyphicon-remove text-success close-view"
></span>
<span
class=
"info-view"
>
* 长按图片保存到手机
</span>
</body>
</body>
<script
src=
"./index.js"
></script>
<script
src=
"./index.js"
></script>
...
...
index/index.js
View file @
d7f96494
...
@@ -69,6 +69,7 @@ $(function(){
...
@@ -69,6 +69,7 @@ $(function(){
$
(
"
.close-view
"
).
bind
(
'
click
'
,
function
(){
$
(
"
.close-view
"
).
bind
(
'
click
'
,
function
(){
$
(
this
).
hide
();
$
(
this
).
hide
();
$
(
"
#playView
"
).
hide
();
$
(
"
#playView
"
).
hide
();
$
(
"
.info-view
"
).
hide
();
$
(
"
.edit-form
"
).
show
();
$
(
"
.edit-form
"
).
show
();
});
});
...
@@ -97,6 +98,7 @@ $(function(){
...
@@ -97,6 +98,7 @@ $(function(){
};
};
});
});
$
(
"
.close-view
"
).
show
();
$
(
"
.close-view
"
).
show
();
$
(
"
.info-view
"
).
show
();
});
});
});
});
\ No newline at end of file
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