Commit 382df0f7 by liuyingying

网站名用诗也是独一份

parent 8fbfa2d4
......@@ -31,7 +31,7 @@ class Publications(models.Model):
authors = models.CharField(max_length=1000)
messages = models.CharField(max_length=100, default='no information')
publishType = models.CharField(max_length=100,default=' ')
journalname=models.CharField(max_length=1000,default=' ')
journalname = models.CharField(max_length=1000,default=' ')
date = models.DateField(default=timezone.now)
indexType = models.CharField(max_length=100,default=' ')
uploadByUser = models.CharField(max_length=50,default='no records')
......
......@@ -81,7 +81,7 @@ button{
background: #d4d4d4;
color:white;
}
#login_btn{
#login_btn, #submit_btn{
background: #ffffff;
font-size: 16px;
}
......@@ -109,7 +109,6 @@ nav{
section{
width:100%;
padding:5px 30px;
min-height: 300px;
}
section > .box{
width:100%;
......@@ -418,4 +417,126 @@ footer .copyright a{
}
footer .copyright a:hover{
color: #6e829e;
}
/*user.html*/
#edit_div{
position:fixed;
width:100%;
height:100%;
top: 0;
right:-100%;
z-index: 999;
}
#edit_title{
width:100%;
height:50px;
line-height: 50px;
text-align: center;
font-size:20px;
font-weight: 200;
border-bottom: solid 1px #f3f3f3;
}
#edit_content>div{
width:100%;
height:50px;
}
#edit_content span{
width: 25%;
height: 45px;
float: left;
font-weight: 200;
line-height: 45px;
text-align: right;
}
#edit_content input{
width: 65%;
height: 45px;
font-size: 16px;
border: solid 1px #e4e4e4;
background: #fdfdfd;
border-radius: 7px;
margin: 15px auto;
display: block;
padding: 0 25px;
z-index: 9999;
}
#btn_edit{
width: 67%;
height: 50px;
margin: 0px auto;
}
#btn_edit>button{
width:40%;
height:40px;
display: block;
margin:10px 5%;
float: left;
outline: none;
}
.show_edit{
right:0 !important;
}
#edit_wrap{
width: 500px;
height: 94%;
border-radius: 10px;
padding:10px 20px;
margin: 2% 10px;
float: right;
background-color: white;
box-shadow: 0px 0px 2px #cec9c9 inset;
-moz-box-shadow: 0px 0px 2px #cec9c9 inset;
-webkit-box-shadow: 0px 0px 2px #cec9c9 inset;
}
.smaller_bottom_bar{
margin:25px auto;
}
.smaller_bottom_bar a{
font-size:14px;
color: #4545ff;
}
#bar>.smaller_bottom_bar{
display: block;
width:100%;
height:30px;
}
#bar>.smaller_bottom_bar>a{
width:auto;
float: right;
padding: 2px 5px;
margin-right:25px;
}
.smaller_bottom_bar>a:hover{
font-size:16px;
border-bottom:solid 2px #6e829e;
}
section > .smaller_box{
width:100%;
}
.smaller_bar{
height: 35px;
padding: 0 7px;
}
.smaller_bar span{
font-size: 18px;
line-height: 35px;
}
.smaller_wrap{
}
.smaller_wrap button{
border:none;
outline: none;
background-image: url("./images/logo.ico");
}
.smaller_wrap blockquote{
padding: 10px 0;
}
.smaller_wrap blockquote>p{
font-size:18px;
}
\ No newline at end of file
......@@ -9,97 +9,64 @@
<script src="{% static 'hunter/jquery-1.9.1.min.js' %}"></script>
</head>
<body>
<div id="edit_div" class="">
<div id="edit_wrap" >
<div id="edit_title">修改</div>
<div id="edit_content">
<div>
<span>名字:</span>
<input type="text">
</div>
<div>
<span>名字:</span>
<input type="text">
</div>
</div>
<div id="error_log"></div>
<div id="btn_edit">
{# <button id="cancel_btn" onclick="hide_edit()">#}
{# 取消#}
{# </button>#}
{# <button id="submit_btn" onclick="submit_edit()">#}
{# 提交#}
{# </button>#}
</div>
</div>
</div>
<nav>
<div>
<div id="hunter">
<span>HUNTER</span>
</div>
<div id="bar">
<div class="bottom">
<div id="bar" class="">
<div class="smaller_bottom_bar">
<a href="" class="main_bar">退出</a>
<a href="" class="main_bar">修改个人信息</a>
<a href="" class="main_bar">{{ user.name_hanzi }}</a>
<a href="" class="main_bar">{{ u.name_hanzi }}</a>
</div>
</div>
</div>
</nav>
<section id="project">
<div class="box"></div>
<div class="left-bar">
<span>
在研项目
</span>
</div>
<div class="proj_list">
<div>
<div>
<div class="proj_name">
<a href="https://github.com/hunter-ht-2018/ptfuzzer" target="_blank">PTFUZZER</a>
</div>
<div class="proj_description">
Fuzzing using the Intel PT support.
</div>
</div>
</div>
<div>
<div>
<div class="proj_name">
<a href="https://github.com/hunter-ht-2018/qse-ht" target="_blank">QSE-HT</a>
</div>
<div class="proj_description">
A symbolic execution engine using qemu
</div>
</div>
</div>
<div>
<div>
<div class="proj_name">
<a href="https://github.com/hunter-ht-2018/DFTinker" target="_blank">DFTINKER</a>
</div>
<div class="proj_description">
Automatically detect double-fetch bugs in OS kerenels
</div>
</div>
</div>
<div>
<div>
<div class="proj_name">
<a href="https://github.com/hunter-ht-2018/binary_analysis" target="_blank">BINARY-ANALYSIS</a>
</div>
<div class="proj_description">
A set of tools for binary analysis
</div>
</div>
</div>
</div>
</section>
<section id="publish">
<div class="box"></div>
<div class="left-bar">
<section id="publish" style="padding-top:100px;">
<div class="smaller_box"></div>
<div class="left-bar smaller_bar">
<span>
出版物
我的出版
</span>
</div>
<div class="wrap">
<div class="wrap smaller_wrap">
{% for year,publications in publication_year_list.items %}
<blockquote ><p>{{ year }}</p></blockquote>
{% if publications %}
{% for publication in publications %}
<ul>
<li class="big_text li_long"><a href="{% static 'hunter/publications/' %}{{ publication.link }}" target="_blank">{{ publication.title }}</a></li>
<li class="right"><a onclick="editPublication({{ publication.pubID }})">修改</a></li>
<li class="middle_text right">{{ publication.date }}</li>
<li class="right">{{ publication.journalname }}</li>
<li class="right">{{ publication.publishType }}</li>
<li class="small_text">{{ publication.authors }}</li>
</ul>
{% endfor %}
......@@ -109,21 +76,20 @@
</section>
<section id="cve">
<div class="box"></div>
<div class="left-bar">
<div class="smaller_box"></div>
<div class="left-bar smaller_bar">
<span>
漏洞挖掘成果
我的漏洞
</span>
</div>
<div class="wrap">
<div class="wrap smaller_wrap">
{% for year, cves in cve_year_list.items %}
<blockquote ><p>{{ year }}</p></blockquote>
{% if cves %}
{% for cve in cves %}
<ul>
<li class="cve_big_text"><a href="{{ cve.url }}" target="_blank">{{ cve.identifier }}</a></li>
<li class="li_right"><button onclick="editCVE('{{ cve.identifier }}')">修改</button></li>
<li class="li_right">{{ cve.datetime }}</li>
<li class="li_right">{{ cve.software }}</li>
<li class="li_right">{{ cve.bugType }}</li>
......@@ -138,13 +104,13 @@
</section>
<section id="article">
<div class="box"></div>
<div class="left-bar">
<div class="smaller_box"></div>
<div class="left-bar smaller_bar">
<span>
文章随笔
我的笔记
</span>
</div>
<div class="wrap">
<div class="wrap smaller_wrap">
{% for year, arts in article_year_list.items %}
<blockquote ><p>{{ year }}</p></blockquote>
{% if arts %}
......@@ -154,34 +120,73 @@
<a href="{% url 'hunter:article' art.articleID %}" target="_blank">{{ art.title }}</a>
</li>
<li>{{ art.author }}</li>
<li class="middle_text right">{{ art.editDateTime }}</li>
<li class="right"><a onclick="editArt({{ art.articleID }})">修改</a></li>
<li class="middle_text right">{{ art.editDateTime }}</li>
<li class="small_text right">{{ art.authorID }}</li>
</ul>
{% endfor %}
{% endif %}
{% endfor %}
</div>
</section>
<section>
{% if bug_list %}
<ul>
{% for bug in bug_list %}
<li><a href="{{ bug.url }}">{{ bug.identifier }}</a></li>
{% endfor %}
</ul>
{% endif %}
</section>
<footer>
<div class="w-1000 copyright">
Copyright © 2013-2020 <strong><a href="//www.runoob.com/" target="_blank">野旷天低树天清月近人</a></strong>&nbsp;
<strong><a href="//www.hunter-ht.cn/" target="_blank">hunter-ht.cn</a></strong> All Rights Reserved. 备案号:<a target="_blank" rel="nofollow" href="http://www.beian.miit.gov.cn">湘ICP备18008562号</a>
</div>
</footer>
<script>
function editPublication(pubid){
console.log(pubid);
create_html();
}
function editArt(artid){
console.log(artid);
create_html();
}
function editCVE(cveid){
console.log(cveid);
create_html();
}
function show_edit(){
$('#edit_div').addClass('show_edit')
}
function create_html(){
$('#edit_content').empty();
show_edit();
let html =
' <button id="cancel_btn" onclick="hide_edit()">\n' +
' 取消\n' +
' </button>\n' +
' <button id="submit_btn" onclick="submit_edit()">\n' +
' 提交\n' +
' </button>\n';
$('#btn_edit').empty();
$('#btn_edit').append(html);
/*for 循环中不需要清空*/
let input_html = '<div>\n' +
' <span>名字:</span>\n' +
' <input type="text">\n' +
' </div>';
$('#edit_content').append(input_html);
}
function submit_edit(){
if('success'){
hide_edit();
}else{
login_fail("fail")
}
}
function login_fail(message){
$('#error_log').empty();
$('#error_log').append(message);
}
function hide_edit(){
$('#edit_div').removeClass('show_edit')
}
</script>
</body>
</html>
\ 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