1

wyh15 Minecraft 2024-06-08 13:46:11 2024-06-08 13:48:49 9
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:47:29
            </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); ">





1 - 帖子 - Liuser's OJ
  <link href="/google-fonts/fira-mono.css" rel="stylesheet">
  <link href="/google-fonts/lato.css" rel="stylesheet">
  <link href="/google-fonts/open-sans.css" rel="stylesheet">
  <link href="/google-fonts/exo-2.css" rel="stylesheet">

<script data-cfasync="false" src="/cdnjs/jquery/3.3.1/jquery.min.js"></script>

.talk {
  position: fixed;
  /* 设置fixed固定定位 */
  bottom: 20px;
  /* 距离浏览器窗口下边框20px */
  right: 20px;
  /* 距离浏览器窗口右边框20px */
  font-size: 2em;
}
#back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  /*display: none;*/
}
.copy-button{
	position: absolute;
	top: -1px;
	right: -7px;
	border-top-left-radius: 0px;
	border-bottom-right-radius: 0px
}
<div id="page-header" class="ui fixed borderless menu" style="position: fixed; height: 49px; 
">
    <div class="ui container">
    &lt;a class="header item" href="/"&gt;&lt;span style="font-family: 'Exo 2'; font-size: 1.5em; font-weight: 600; "&gt;Liuser&amp;#39;s OJ&lt;/span&gt;&lt;/a&gt;
    
    &lt;a class="item" href="/"&gt;&lt;i class="home icon"&gt;&lt;/i&gt;首页&lt;/a&gt;
    &lt;a class="item" href="/problems"&gt;&lt;i class="book icon"&gt;&lt;/i&gt;题库&lt;/a&gt;
    &lt;a class="item" href="/homeworks"&gt;&lt;i class="list alternate icon"&gt;&lt;/i&gt;作业&lt;/a&gt;  
    &lt;a class="item" href="/trainings"&gt;&lt;i class="pencil icon"&gt;&lt;/i&gt;训练 &lt;/a&gt;
    &lt;a class="item" href="/contests"&gt;&lt;i class="calendar icon"&gt;&lt;/i&gt;比赛&lt;/a&gt;
    &lt;a class="item" href="/submissions"&gt;&lt;i class="hourglass icon"&gt;&lt;/i&gt;评测&lt;/a&gt; 
    &lt;a class="item active" href="/discussion/global"&gt;&lt;i class="comments icon"&gt;&lt;/i&gt; 讨论&lt;/a&gt;
    &lt;div class="ui simple dropdown item" style="color: inherit; "&gt;
      &lt;i class="bar icon"&gt;&lt;/i&gt;更多
      &lt;i class="dropdown icon"&gt;&lt;/i&gt;
      &lt;div class="menu"&gt;
        &lt;a class="item" href="/ranklist"&gt;&lt;i class="users icon"&gt;&lt;/i&gt;排名&lt;/a&gt;
          
        
        &lt;!-- &lt;a class="item" href="/teams"&gt;&lt;i class="code icon"&gt;&lt;/i&gt;IDE&lt;/a&gt; --&gt;
        &lt;!-- &lt;a class="item" href="/chat"&gt;&lt;i class="comment icon"&gt;&lt;/i&gt;吐槽&lt;/a&gt;  --&gt;
        &lt;a class="item" id="theme-mode" onclick="setDark()"&gt;&lt;i class="moon icon"&gt;&lt;/i&gt;暗色&lt;/a&gt;
        &lt;script&gt;
          localStorage.getItem("dark-mode") &amp;&amp; setDark();

          function setLight() {
            $("#dark-mode").remove();
            $("#theme-mode")
              .html('&lt;i class="moon icon"&gt;&lt;/i&gt;暗色')
              .attr("onclick", "setDark()");
            localStorage.removeItem("dark-mode");
          }

          function setDark() {
            $("&lt;link&gt;").attr({
              rel: "stylesheet",
              type: "text/css",
              href: "/self/dark.css", 
              id: "dark-mode",
            }).appendTo("head");
            $("#theme-mode")
              .html('&lt;i class="sun icon"&gt;&lt;/i&gt;亮色')
              .attr("onclick", "setLight()");
            localStorage.setItem("dark-mode", "1");
          }
        &lt;/script&gt;
      &lt;/div&gt;
    &lt;/div&gt;
    
    
    
    
    &lt;div class="right menu"&gt;

      
      &lt;a class="item" id="usernotification" href= "/user/1759/notification/at"&gt;&lt;i class="large alarm outline icon"&gt;&lt;/i&gt;
          
      &lt;/a&gt;
      &lt;a href="/user/1759" style="color: inherit; "&gt;
      &lt;div class="ui simple dropdown item"&gt;
        &lt;p style="margin-bottom: -5px; "&gt;
        
          &lt;img style="border-radius: 50%; vertical-align: middle; margin-bottom: 2px; margin-right: 2px; " src="/usericon/1759.png" width="27" height="27"&gt;
        
        &lt;strong&gt; wyh15&lt;/strong&gt; &lt;span class="ui mini orange label"&gt;Minecraft&lt;/span&gt; 
       
        &lt;i class="dropdown icon"&gt;&lt;/i&gt;
        &lt;/p&gt;
        &lt;div class="menu"&gt;
          &lt;a class="item" href="/user/1759"&gt;&lt;i class="user icon"&gt;&lt;/i&gt;我的资料&lt;/a&gt;
          &lt;a class="item" href="/submissions?submitter=wyh15"&gt;&lt;i class="hourglass icon"&gt;&lt;/i&gt;我的提交&lt;/a&gt;
          &lt;a class="item" href="/problems/user/1759"&gt;&lt;i class="book icon"&gt;&lt;/i&gt;我的题目&lt;/a&gt; 
          &lt;a class="item" href="/lists"&gt;&lt;i class="clipboard icon"&gt;&lt;/i&gt;我的题单&lt;/a&gt;
          &lt;a class="item" href="/article/user/1759"&gt;&lt;i class="feed icon"&gt;&lt;/i&gt;我的讨论&lt;/a&gt;
          &lt;a class="item" href="/file/1759"&gt;&lt;i class="file icon"&gt;&lt;/i&gt;我的文件&lt;/a&gt;
          &lt;!-- &lt;a class="item"&gt;&lt;i class="gem icon"&gt;&lt;/i&gt;积分:0&lt;/a&gt;   --&gt;
          &lt;div class="ui divider"&gt;&lt;/div&gt;
          &lt;a class="item" href="/user/1759/edit"&gt;&lt;i class="edit icon"&gt;&lt;/i&gt;编辑资料&lt;/a&gt;
          
          &lt;a class="item" href-post="/logout?url=%2Farticle%2F5051"&gt;&lt;i class="power icon"&gt;&lt;/i&gt;退出登录&lt;/a&gt;
        &lt;/div&gt;

      &lt;/div&gt;
      &lt;/a&gt;
        
    &lt;/div&gt;
&lt;/div&gt;

</div> <div style="margin-top: 28px; "> <div class="ui main container" style="background-color: rgba(255,255,255,0.5); opacity: 90%;">

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>
    &lt;a href="/discussion/global" class="section"&gt;全局板块&lt;/a&gt;

</div> <h1> 1

</h1>

<div style="margin-bottom: -5px; ">

  &lt;img style="border-radius: 50%; vertical-align: middle; margin-bottom: 2px; margin-right: 2px; "
    src="/usericon/1759.png" width="24" height="24"&gt;



      &lt;b style="margin-right: 30px; "&gt;&lt;a class="black-link"
          href="/user/1759"&gt;
          &lt;span class="user-cyan"&gt;wyh15&lt;/span&gt;
        &lt;/a&gt;
        
          &lt;span class="ui mini orange label"&gt;Minecraft&lt;/span&gt;
        
      &lt;/b&gt;
      &lt;b style="margin-right: 30px; "&gt;&lt;i class="calendar icon"&gt;&lt;/i&gt;
        2024-06-08 13:46:11
      &lt;/b&gt;
      &lt;b style="margin-right: 30px; "&gt;&lt;i
            class="edit icon"&gt;&lt;/i&gt;
          2024-06-08 13:46:59
        &lt;/b&gt;
        
        &lt;b style="margin-right: 30px; "&gt;&lt;i class="eye icon"&gt;&lt;/i&gt; 1&lt;/b&gt;
          
            &lt;a style="margin-top: -4px; " class="ui mini right floated labeled icon button"
              href="/article/5051/edit"&gt;&lt;i
                class="ui edit icon"&gt;&lt;/i&gt;编辑&lt;/a&gt;
            &lt;a style="margin-top: -4px; margin-right: 3px; "
              class="ui mini red right floated labeled icon button"
              onclick="$('#modal-delete').modal('show')"&gt;&lt;i class="ui trash icon"&gt;&lt;/i&gt;删除&lt;/a&gt;
            &lt;div class="ui basic modal right floated" id="modal-delete"&gt;
              &lt;div class="ui icon header"&gt;
                &lt;i class="trash icon"&gt;&lt;/i&gt;
                &lt;p style="margin-top: 15px; "&gt;删除文章&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="content" style="text-align: center; "&gt;
                &lt;p&gt;确认删除这篇文章吗?&lt;/p&gt;
              &lt;/div&gt;
              &lt;div class="actions"&gt;
                &lt;div class="ui red basic cancel inverted button"&gt;
                  &lt;i class="remove icon"&gt;&lt;/i&gt;
                  否
                &lt;/div&gt;
                &lt;a class="ui green ok inverted button"
                  href-post="/article/5051/delete"&gt;
                  &lt;i class="checkmark icon"&gt;&lt;/i&gt;
                  是
                &lt;/a&gt;
              &lt;/div&gt;
            &lt;/div&gt;
            
              &lt;div class="ui top attached existing segment"&gt;

<div id="content" class="font-content"><div style="position: relative; overflow: hidden; transform: translate3d(0, 0, 0); "><p><i class="calendar icon"></i></p>

{{ vote && vote.total.up }}
  #voteContainer&gt;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 &amp;&amp; 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 =&gt; {
          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 =&gt; {
          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&#39;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 &gt; 9 ? month : "0" + month
  dates = dates &gt; 9 ? dates : "0" + dates
  hours = hours &gt; 9 ? hours : "0" + hours
  mit = mit &gt; 9 ? mit : "0" + mit
  seconds = seconds &gt; 9 ? seconds : "0" + seconds
  //将获取的时间信息以不同的形式展示
  var result = year + "-" + month + "-" + dates + " " + hours + ":" + mit + ":" + seconds;
  //在id为td的控件中进行显示

  document.getElementById("time").innerHTML = result

}, 1000);

Extra open brace or missing close brace(document).ready(function() { // 当页面滚动时显示或隐藏返回顶部按钮 (window).scroll(function() { if (Misplaced &(this).scrollTop() &gt; 100) { ('#back-to-top').fadeIn(); } else { $('#back-to-top').fadeOut(); } });

// 点击按钮返回顶部
$('#back-to-top').click(function() {
  $('body,html').animate({
    scrollTop: 0
  }, 800);
  return false;
});

});

0
#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; } }); } } })
                        <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>
{{ vote && vote.total.up }}