Skip to content

Commit

Permalink
图片展示及提示修改
Browse files Browse the repository at this point in the history
  • Loading branch information
tigerwingxys committed Oct 28, 2019
1 parent 6d16300 commit 10452f1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 14 deletions.
14 changes: 2 additions & 12 deletions templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<header>

<div id="logo"><a href="#" onclick="showContent('/blog/archive0-10')">{{ escape(handler.settings["blog_title"]) }}
</a> 大山里(inmountains.xyz)俱乐部</div>
</a> 大山里(inmountains.xyz)</div>
<nav>
{% if current_user %}
<a href="#" onclick="showContent('/blog/compose')">{{ "新文章" }}</a>
<a href="#" onclick="showContent('/blog/compose')">{{ "新日志" }}</a>
<a href="#" onclick="showContent('/blog/myblogs0-10');return false;" >我的日志</a>
<a href="/auth/logout?next={{ url_escape(request.uri) }}">-{{ "注销("+current_user.name+")" }}</a>
{% else %}
Expand Down Expand Up @@ -110,16 +110,6 @@
});
//-->
</SCRIPT>
<script type="text/javascript">
function saveMyBlogs() {
alert("asd");
var fileName = fileInput.val();
alert(fileName);
$.post("/blog/saveMyBlogs",{},function (data) {

});
}
</script>
{% end %}
<SCRIPT type="text/javascript">
function showContent(gotoURL){
Expand Down
3 changes: 2 additions & 1 deletion templates/compose.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
{% block body %}
<form action="{{ request.path }}" method="post" class="compose">
<div id="compose_title" style="padding-left: 2%;text-align: left;" ><h2>标题:<input name="title" style="width: 40%;" type="text" value="{{ entry.title if entry else "" }}"/></h2>
<input type="checkbox" name="ispublic" id="ispublic" {{ "checked" if entry and entry.is_public else ""}}> <label for="ispublic" style="width: 40%;">打勾后允许所有人查看</label>
<input type="checkbox" name="ispublic" id="ispublic" {{ "checked" if entry and entry.is_public else ""}}>
<label for="ispublic" title="打勾后允许所有人查看" style="width: 40%;">是否公开</label>
</div>
<div id="content-editormd" class="form-group">
<textarea style="display:none;" class="form-control" id="content-editormd-markdown-doc" name="content-editormd-markdown-doc">{{ entry.markdown if entry else "" }}</textarea>
Expand Down
4 changes: 3 additions & 1 deletion templates/entry.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@
var imgList = document.getElementsByTagName("img");
for( var i = 0; i < imgList.length; i ++){
var aObj = imgList[i];
aObj.width = 1000;
if( aObj.width > 1000){
aObj.width = 1000;
}
}
/*alert(document.getElementById("refresh_entry").value);
if ("refresh" === document.getElementById("refresh_entry").value) {
Expand Down

0 comments on commit 10452f1

Please sign in to comment.