var _hmt = _hmt || []; (function() { var hm = document.createElement("script"); hm.src = "https://hm.baidu.com/hm.js?f247b417803c787866742129924988c6"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(hm, s);})();
//let user = {"id":1759,"username":"wyh15","email":"192@qq.com","password":"9cb3b0b4b0dcb20271d1bdfb807daa59","nickname":null,"realname":"王彦皓","nameplate":"Minecraft","information":"小恐龙升级版\r\n\r\n\r\n这是一个按钮,我也不知道有啥用\r\n\r\n\r\nminecraft\r\n\r\n\r\nC++干货\r\n\r\n\r\n\r\n编程一坤时\r\n\r\n\r\n\r\nc++在线编译器\r\n\r\n\r\n\r\npoki小游戏\r\n\r\n\r\n\r\n\r\n电子学会c++等级考试\r\n\r\n\r\n\r\n\r\n演草纸\r\n\r\n\r\n\r\n\r\n刷题王\r\n\r\n\r\n\r\n站长\r\n\r\n\r\n\r\n黄金三\r\n\r\n\r\n\r\n\r\n\r\n喵星人\r\n\r\n\r\n\r\n\r\n山顶洞人\r\n\r\n\r\n\r\n\r\n\r\n椰子!我爱椰子\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\nsadbee........sb\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n保留\r\n\r\n\r\n\r\n\r\n\r\n站长\r\n\r\n\r\n\r\n\r\n\r\n管理员\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n\r\n","ac_num":218,"notification_num":0,"at_num":0,"hf_num":0,"xt_num":0,"submit_num":742,"from_group":75,"is_admin":null,"is_teacher":false,"is_show":true,"public_email":false,"qq_image":3,"prefer_formatted_code":false,"sex":1,"rating":1500,"gold":0,"class_names":"76","register_time":1676628105}; // if (user) // { // daovoice('init', { // app_id: "51046a20", // user_id: user.id, // 必填: 该用户在您系统上的唯一ID // email: user.email, // 选填: 该用户在您系统上的主邮箱 // name: user.realname ? user.username + '(' + user.realname + ')' : user.username, // 选填: 用户名 // signed_up: user.register_time // 选填: 用户的注册时间,用Unix时间戳表示 // }); // daovoice('update'); // } // else // { // daovoice('init', { // app_id: "51046a20" // }); // daovoice('update'); // }
<style type="text/css" xmlns:style="http://www.w3.org/1999/xhtml"> .small { font-size: 0.7em; } </style> <script src="/cdnjs/vue/2.5.21/vue.min.js"></script> <div class="padding"> <div class="ui breadcrumb"> <div class="section">讨论</div> <i class="right angle icon divider"></i>
<a href="/discussion/global" class="section">全局板块</a>
</div> <h1> 1
</h1>
<div style="margin-bottom: -5px; ">
<img style="border-radius: 50%; vertical-align: middle; margin-bottom: 2px; margin-right: 2px; " src="/usericon/1759.png" width="24" height="24"> <b style="margin-right: 30px; "><a class="black-link" href="/user/1759"> <span class="user-cyan">wyh15</span> </a> <span class="ui mini orange label">Minecraft</span> </b> <b style="margin-right: 30px; "><i class="calendar icon"></i> 2024-06-08 13:46:11 </b> <b style="margin-right: 30px; "><i class="edit icon"></i> 2024-06-08 13:46:59 </b> <b style="margin-right: 30px; "><i class="eye icon"></i> 1</b> <a style="margin-top: -4px; " class="ui mini right floated labeled icon button" href="/article/5051/edit"><i class="ui edit icon"></i>编辑</a> <a style="margin-top: -4px; margin-right: 3px; " class="ui mini red right floated labeled icon button" onclick="$('#modal-delete').modal('show')"><i class="ui trash icon"></i>删除</a> <div class="ui basic modal right floated" id="modal-delete"> <div class="ui icon header"> <i class="trash icon"></i> <p style="margin-top: 15px; ">删除文章</p> </div> <div class="content" style="text-align: center; "> <p>确认删除这篇文章吗?</p> </div> <div class="actions"> <div class="ui red basic cancel inverted button"> <i class="remove icon"></i> 否 </div> <a class="ui green ok inverted button" href-post="/article/5051/delete"> <i class="checkmark icon"></i> 是 </a> </div> </div> <div class="ui top attached existing segment">
<div id="content" class="font-content"><div style="position: relative; overflow: hidden; transform: translate3d(0, 0, 0); "><p><i class="calendar icon"></i></p>
#voteContainer>span {
display: inline-block;
margin-right: .5em;
}
let articleVote = new Vue({
el: '#voteContainer',
data: {
article_id: 5051,
enabled: true,
vote: null
},
mounted() {
this.init();
},
methods: {
getVoteButtonClass(value) {
const list = [];
if (this.enabled && this.vote) {
const self = this.vote.self;
list.push('link');
list.push(self === value ? 'blue' : 'grey');
} else {
list.push('grey');
list.push('disabled');
}
return list;
},
init() {
$.get(`/api/article/${this.article_id}/vote`, resp => {
if (resp.error) {
console.error(resp.error);
} else {
this.vote = resp.result;
}
});
},
setVote(vote) {
if (!this.enabled) return;
if (this.vote.self === vote) vote = 0;
$.post(`/api/article/${this.article_id}/vote/${vote}`, resp => {
if (resp.error) {
console.error(resp.error);
} else {
this.vote = resp.result;
}
});
}
}
})
</div>
<form class="ui reply form" method="post" action="/article/5051/comment"> <div class="field"> <textarea name="comment" class="markdown-edit"></textarea> </div> <div style="text-align: center; "> <button id="submit_button" type="submit" class="ui labeled submit icon button"> <i class="icon edit"></i> 回复 </button> </div> </form>
</div> </div>
</div> <div class="ui vertical footer segment" style="margin-top: 15px; flex: 1;"> <div class="ui center aligned container" id="footer"> <p> <a href="/wiki#1" target="_blank"> 关于本站 </a> | <a href="/wiki#3" target="_blank"> 隐私政策 </a> | <a href="/wiki#4" target="_blank"> 服务条款 </a> | <a href="/wiki#2" target="_blank"> 联系我们 </a> | <a href="/help" target="_blank">帮助</a> | <a href="https://stats.uptimerobot.com/mmGJJi1WV9" target="_blank">服务器状态</a> | <a href="/draw" target="_blank">演草纸</a> </p> <p> <a href="https://www.noi.cn/" target="_blank"> NOI官网 </a>| <a href="https://www.lanqiaoqingshao.cn/" target="_blank"> 蓝桥杯青少年组官网 </a>| <a href="http://s.noc.net.cn/" target="_blank"> NOC官网 </a>| <a href="https://gesp.ccf.org.cn/" target="_blank"> CCF-GESP 考级官网 </a>| <a href="https://center.qceit.org.cn/bos/default.html" target="_blank"> 电子学会考级官网 </a> </p> <span><a href="https://www.iai.sh.cn/" target="_blank"> 上海计算机学会竞赛平台YACS</a></span> | <span><a href="https://atcoder.jp/" target="_blank"> AtCoder </a></span> | <span><a href="http://codeforces.com/" target="_blank"> Codeforces</a></span> <br/> <span style="color: #999;"> Liuser's OJ powered by <a href="https://github.com/syzoj/syzoj" target="_blank">SYZOJ</a> </span> <span style="color: #999;">DIY by <a href="https://github.com/woshiluo" target="_blank"><i aria-hidden="true" class="ui github icon"></i>woshiluo</a> <i aria-hidden="true" class="ui heart icon" style="color: #db2828!important"></i> <a href="https://github.com/AHSFNU/" target="_blank"><i aria-hidden="true" class="ui github icon"></i>AHSFNU</a></span> <br/> <span style="color: #999;"> 服务器时间: </span> <span id="time" style="color: #999;"> 2024-06-08 13:46:59 </span> </div> </div>
//动态时钟
var d = 1717825619;
setInterval(function () {
d += 1;
let date = new Date(d * 1000);
var year = date.getFullYear()
//获取月份
var month = date.getMonth() + 1
// 获取日
var dates = date.getDate()
//获取小时
var hours = date.getHours()
// 获取分钟
var mit = date.getMinutes()
// 获取秒
var seconds = date.getSeconds()
//小时数小于10时就在前面加0
month = month > 9 ? month : "0" + month
dates = dates > 9 ? dates : "0" + dates
hours = hours > 9 ? hours : "0" + hours
mit = mit > 9 ? mit : "0" + mit
seconds = seconds > 9 ? seconds : "0" + seconds
//将获取的时间信息以不同的形式展示
var result = year + "-" + month + "-" + dates + " " + hours + ":" + mit + ":" + seconds;
//在id为td的控件中进行显示
document.getElementById("time").innerHTML = result
}, 1000);
(window).scroll(function() { if (('#back-to-top').fadeIn(); } else { $('#back-to-top').fadeOut(); } });
// 点击按钮返回顶部
$('#back-to-top').click(function() {
$('body,html').animate({
scrollTop: 0
}, 800);
return false;
});
});
<form class="ui reply form" method="post" action="/article/5051/comment">
<div class="field">
<textarea name="comment" class="markdown-edit"></textarea>
</div>
<div style="text-align: center; ">
<button id="submit_button" type="submit" class="ui labeled submit icon button">
<i class="icon edit"></i> 回复
</button>
</div>
</form>
</div>
</div>
</div>