Commit d7f96494 authored by liujiangnan's avatar liujiangnan

修改网页名称,添加提示

parent 9c948ac0
...@@ -44,7 +44,7 @@ var server = http.createServer(function (request, response) { ...@@ -44,7 +44,7 @@ var server = http.createServer(function (request, response) {
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, {
...@@ -59,3 +59,5 @@ var server = http.createServer(function (request, response) { ...@@ -59,3 +59,5 @@ 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 + ".");
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 @@ ...@@ -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
...@@ -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-generator</title> <title>OhMyTeacher</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>
......
...@@ -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
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