Commit d7f96494 authored by liujiangnan's avatar liujiangnan

修改网页名称,添加提示

parent 9c948ac0
......@@ -39,12 +39,12 @@ var server = http.createServer(function (request, response) {
response.write("This request URL " + pathname + " was not found on this server.");
response.end();
} else {
fs.readFile(realPath, "binary", function (err, file) {
fs.readFile(realPath, "binary", function (err, file) {
if (err) {
response.writeHead(500, {
'Content-Type': 'text/plain'
});
response.end(err);
response.end(JSON.stringify(err));
} else {
var contentType = mine[ext] || "text/plain";
response.writeHead(200, {
......@@ -58,4 +58,6 @@ var server = http.createServer(function (request, response) {
});
});
server.listen(PORT);
console.log("Server runing at port: " + PORT + ".");
\ No newline at end of file
console.log("Server runing at port: " + PORT + ".");
console.log("http://localhost:" + PORT + "/index/index.html");
console.log("http://localhost:" + PORT + "/form/index.html");
\ No newline at end of file
......@@ -36,6 +36,13 @@
font-size: 25px;
}
.info-view{
position: absolute;
bottom: 5px;
right: 5px;
display: none;
}
#playView{
display: none;
}
\ No newline at end of file
......@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<base href="">
<title>h5-template-generator</title>
<title>OhMyTeacher</title>
<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" >
......@@ -63,6 +63,7 @@
<!-- 展示区域 -->
<img id="playView" src="" />
<span class="glyphicon glyphicon-remove text-success close-view"></span>
<span class="info-view">* 长按图片保存到手机</span>
</body>
<script src="./index.js"></script>
......
......@@ -69,6 +69,7 @@ $(function(){
$(".close-view").bind('click',function(){
$(this).hide();
$("#playView").hide();
$(".info-view").hide();
$(".edit-form").show();
});
......@@ -97,6 +98,7 @@ $(function(){
};
});
$(".close-view").show();
$(".info-view").show();
});
});
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment