我现在热烈祝贺MCOI圆角终于搞好了!!

8 条评论

  • @ 2023-1-17 12:02:56

    圆角YYDS

    • @ 2023-1-16 9:39:42

      现在圆角又㕛双叒叕更新了,主要更新了部分其他按钮的圆角

      感谢@老大哥的源代码。

      Made By @ && @

      Made In 璃月

      • @ 2023-1-17 15:19:33

        我又小小的点缀了一下,主要是:copy 按钮、登录弹窗

      • @ 2023-1-17 19:37:32

        @ 目前几乎整个页面都有圆角了,如果有没有圆角的页面可以@我,我会努力修好的。

      • @ 2023-1-18 10:15:19

        @ 现在主要还有一个就是 勾选框(chackbox)这个控件一直没办法圆角,我折腾了很久都不行

      • @ 2023-1-18 11:17:50

        @ 还有这个:

      • @ 2023-1-18 16:31:51

        @

        这种就是表格的:

        WTX 已经颓废 别打扰
        我原神经验书不够用了 我今天抽卡出了瑶瑶和艾尔海森 别打扰我刷经验书
        W T F
      • @ 2023-1-18 17:19:21
        • [x] 复选框?
        • [ ] 测试一下
      • @ 2023-1-18 17:19:59

        @

        复选框是markdown的,我们搞不了

      • @ 2023-1-18 17:21:28

        @

        tr {

        border-radius: 10px;

        }

        tr{
            border-radius: 10px;
        }
        
      • @ 2023-1-18 17:23:16

        @

        tamade不行,算了还是玩原神去吧。

        我的艾尔海森天赋突破还要打散兵周本呢

    • @ 2023-1-15 20:27:23

      对了请问各位是否愿意把出题域(垃圾场)里面的部分普及-到提高+的题目筛选出来,可以@我(@[](/user/2))或者直接评论(我每天都会看),直接说题号就可以了(要有测试数据)。

      同时我自己也会有空看一下。(但是还是主要更新MCOI的圆角和其他功能,最近codingcow不在线,我更新一下)

      • @ 2023-1-17 15:11:33

        额,我只是周末的时候逃离一下世界,出去玩一会儿,工作日我基本都在

      • @ 2023-1-17 19:20:36

        @

        me too,我周末可能在线,但是大部分时间去学习去了。。。

        但是我工作日github基本在线。(别问,问就是去看grasscutter了)

    • @ 2023-1-15 20:16:29

      目前footral_html全部开源:

      <!--背景线条-->
      <script>(()=>{function e(e,n,t){return e.getAttribute(n)||t}function n(){l=i.width=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=i.height=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}function c(){var t,o,i,a,m;r.clearRect(0,0,l,u),s.forEach(function(e,n){for(e.x+=e.xa,e.y+=e.ya,e.xa*=e.x>l||e.x<0?-1:1,e.ya*=e.y>u||e.y<0?-1:1,r.fillRect(e.x-.5,e.y-.5,1,1),o=n+1;o<d.length;o++)null!==(t=d[o]).x&&null!==t.y&&(i=e.x-t.x,a=e.y-t.y,(m=i*i+a*a)<t.max&&(t===y&&m>=t.max/2&&(e.x-=.03*i,e.y-=.03*a),m=(t.max-m)/t.max,r.beginPath(),r.lineWidth=m/2,r.strokeStyle="rgba("+x.c+","+(.2+m)+")",r.moveTo(e.x,e.y),r.lineTo(t.x,t.y),r.stroke()))}),w(c)}var l,u,d,t,o,i=document.createElement("canvas"),x=(t=(o=document.getElementsByTagName("script")).length,o=o[t-1],{l:t,z:e(o,"zIndex",-1),o:e(o,"opacity",.5),c:e(o,"color","0,0,0"),n:e(o,"count",99)}),a="c_n"+x.l,r=i.getContext("2d"),w=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/45)},m=Math.random,y={x:null,y:null,max:2e4};i.id=a,i.style.cssText="position:fixed;top:0;left:0;z-index:"+x.z+";opacity:"+x.o,document.getElementsByClassName("main")[0].appendChild(i),n(),window.onresize=n,window.onmousemove=function(e){e=e||window.event,y.x=e.clientX,y.y=e.clientY},window.onmouseout=function(){y.x=null,y.y=null};for(var s=[],h=0;x.n>h;h++){var f=m()*l,g=m()*u,p=2*m()-1,v=2*m()-1;s.push({x:f,y:g,xa:p,ya:v,max:6e3})}d=s.concat([y]),setTimeout(function(){c()},100)})();</script>
      
      
      <!--阴影-->
      <style>.section { transition: box-shadow 0.2s, transform .5s,opacity .5s; transition-timing-function: cubic-bezier(.215,.61,.355,1); } .section:hover { box-shadow: 0 0.375rem 1.375rem #97b1bb99; }</style>
      
      <!-- 圆角优化后(10px) -->
      <style>.section{ border-radius: 10px; } .button, .dropdown .menu{ border-radius: 10px; } body{ font-family: -apple-system, BlinkMacSystemFont, "San Francisco Display", "San Francisco", "Helvetica Neue", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif; } .user-profile-badge{ border-radius: 7px; box-shadow: 0px 1px 3px #656565; } data-tooltip, .data-tooltip, span.time.relative.tooltip{ border-radius: 10px; } input.textbox, textarea.textbox, time relative tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center{ border-radius: 10px; } .search>input{ border-radius: 10px 0px 0px 0px; } .search>button{ border-radius: 0px  10px 0px 0px; } .bp4-tag.bp4-minimal:not([class*=bp4-intent-]){ border-radius: 10px; } .problem__tag-link, .select-container.compact .select, .select.compact{ border-radius: 10px; } pre[class*=language-], .autocomplete-wrapper{ border-radius: 10px; } .section__table-header{ border-radius: 10px 10px 0 0; } div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span{ border-radius: 0 0 0 10px; }</style>
      
      <!--隐藏一言-->
      <script>let x=document.getElementsByName("hitokoto");if(x && x.length>0) x[0].parentElement.hidden=true;</script>
      
      <!--名字颜色(普通情况)-->
      <script type="text/javascript">let su = document.getElementsByClassName("user-profile-name"); for (i = 0; i < su.length; i++) { if (su[i].href == "http://43.139.175.183/user/2" || su[i].href == "http://43.139.175.183/user/6") { su[i].style = "color:#e18a3b;font-weight:bold;"; } else if (su[i].href == "http://43.139.175.183/user/3" || su[i].href == "http://43.139.175.183/user/23" || su[i].href == "http://43.139.175.183/user/114534" || su[i].href=="http://43.139.175.183/user/114550") { su[i].style = "color:#6ca8af;font-weight:bold;"; } }</script>
      
      <!--个人主页名字颜色-->
      <script>let name_href = document.getElementsByTagName("h1"); for (i = 0; i < name_href.length; i++) { console.log(name_href[i]); let now_inner = name_href[i].innerHTML; console.log(now_inner); if (now_inner.includes("WTX") || now_inner.includes("liangbob")) { name_href[i].style = "color:#e18a3b;font-weight:bold;"; } else if (now_inner.includes("De_Bruyne") || now_inner.includes("smy") || now_inner.includes("kkk_fans") || now_inner.includes("Demon")) { name_href[i].style = "color:#6ca8af;font-weight:bold;"; } }</script>
      
      <!--国家反诈骗中心-->
      <script>let link = document.getElementsByTagName("a"); for (i = 0; i < link.length; i++) { if (link[i].href == "https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4" || link[i].href.includes("1GJ411x7h7")) { link[i].innerHTML = "这是一个诈骗链接,请不要点击,或者关闭麦克风后点击!"; link[i].style = "color:#e5a84b;background-color:#284852;"; } else if (link[i].href.includes("bilibili") || link[i].href.includes("b23")) { link[i].innerHTML = "这是一个来自B站的视屏,请在可信情况下点击!"; link[i].style = "color:#ffea00;background-color:#284852;"; } else if (link[i].href.includes("haokan.baidu.com/")) { link[i].innerHTML = "这是一个来自好看视屏的视屏,请在可信情况下点击!(大部分为诈骗)"; link[i].style = "color:#ffea00;background-color:#284852;"; } }</script>
      
      <!--防腐朽-->
      <script>let urls = document.getElementsByTagName("a"); let games = [ "4399.com", "7k7k.com", "box3", "codemao" ] for (i = 0; i <= link.length; i++){ for (j = 0; j <= games.length; j++){ if (urls[i].href.includes(games[j])){ urls[i].innerHTML = "该链接涉嫌颓废,仅在没有老师的情况下可以使用" urls[i].style = "color:#FF0000; background-color:#FFFF99;" } } }</script>
      
      <!--关闭功能-->
      <script>let tr = document.getElementsByClassName("nav__item"); for (let i = 0; i<=tr.length ; i++){ console.log(tr[i]); console.log(tr[i].href); if (tr[i].href=="http://43.139.175.183/training"){ tr[i].parentElement.hidden=true; } else if (tr[i].href=="http://43.139.175.183/homework"){ tr[i].parentElement.hidden=true; } }</script>
      
      
      <!--音乐-->
      <audio loop id="BGM-Player" controls="controls" preload="auto">
      <script>let myAudio = document.getElementById("BGM-Player");if (localStorage.getItem("play_time") != null){myAudio.currentTime=localStorage.getItem("play_time")};if(myAudio. canPlayType("audio/mpeg")!=""){myAudio.src="https://gh2.yanqishui.work/https://github.com/Lixuannan/mcoi-audio/releases/download/deploy/mcoi-audio-all.mp3"}else if(myAudio.canPlayType("audio/ogg") != ""){myAudio.src="https://gh2.yanqishui.work/https://github.com/Lixuannan/mcoi-audio/releases/download/deploy/mcoi-audio-all.ogg"};let timer=setInterval(function(){localStorage.setItem("play_time", myAudio.currentTime);}, 100);</script>
      
      • @ 2023-1-15 20:18:00

        格式化一下:

        <!--背景线条-->
        <script>
            (() = > {
                function e(e, n, t) {
                    return e.getAttribute(n) || t
                }
        
                function n() {
                    l = i.width = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth, u = i.height = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
                }
        
                function c() {
                    var t, o, i, a, m;
                    r.clearRect(0, 0, l, u), s.forEach(function(e, n) {
                        for (e.x += e.xa, e.y += e.ya, e.xa *= e.x > l || e.x < 0 ? -1 : 1, e.ya *= e.y > u || e.y < 0 ? -1 : 1, r.fillRect(e.x - .5, e.y - .5, 1, 1), o = n + 1; o < d.length; o++) null !== (t = d[o]).x && null !== t.y && (i = e.x - t.x, a = e.y - t.y, (m = i * i + a * a) < t.max && (t === y && m >= t.max / 2 && (e.x -= .03 * i, e.y -= .03 * a), m = (t.max - m) / t.max, r.beginPath(), r.lineWidth = m / 2, r.strokeStyle = "rgba(" + x.c + "," + (.2 + m) + ")", r.moveTo(e.x, e.y), r.lineTo(t.x, t.y), r.stroke()))
                    }), w(c)
                }
                var l, u, d, t, o, i = document.createElement("canvas"),
                    x = (t = (o = document.getElementsByTagName("script")).length, o = o[t - 1], {
                        l: t,
                        z: e(o, "zIndex", -1),
                        o: e(o, "opacity", .5),
                        c: e(o, "color", "0,0,0"),
                        n: e(o, "count", 99)
                    }),
                    a = "c_n" + x.l,
                    r = i.getContext("2d"),
                    w = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || function(e) {
                        window.setTimeout(e, 1e3 / 45)
                    }, m = Math.random,
                    y = {
                        x: null,
                        y: null,
                        max: 2e4
                    };
                i.id = a, i.style.cssText = "position:fixed;top:0;left:0;z-index:" + x.z + ";opacity:" + x.o, document.getElementsByClassName("main")[0].appendChild(i), n(), window.onresize = n, window.onmousemove = function(e) {
                    e = e || window.event, y.x = e.clientX, y.y = e.clientY
                }, window.onmouseout = function() {
                    y.x = null, y.y = null
                };
                for (var s = [], h = 0; x.n > h; h++) {
                    var f = m() * l,
                        g = m() * u,
                        p = 2 * m() - 1,
                        v = 2 * m() - 1;
                    s.push({
                        x: f,
                        y: g,
                        xa: p,
                        ya: v,
                        max: 6e3
                    })
                }
                d = s.concat([y]), setTimeout(function() {
                    c()
                }, 100)
            })();
        </script>
        
        
        <!--阴影-->
        <style>
            .section {
            transition: box-shadow 0.2s, transform .5s,opacity .5s;
            transition-timing-function: cubic-bezier(.215,.61,.355,1);
        }
        
        .section:hover {
            box-shadow: 0 0.375rem 1.375rem #97b1bb99;
        }
        </style>
        
        <!-- 圆角优化后(10px) -->
        <style>
            .section {
            border-radius: 10px;
        }
        
        .button, .dropdown .menu {
            border-radius: 10px;
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "San Francisco Display", "San Francisco", "Helvetica Neue", "Noto Sans", "Noto Sans CJK SC", "Noto Sans CJK", "Source Han Sans", "PingFang SC", "Segoe UI", "Microsoft YaHei", sans-serif;
        }
        
        .user-profile-badge {
            border-radius: 7px;
            box-shadow: 0px 1px 3px #656565;
        }
        
        data-tooltip, .data-tooltip, span.time.relative.tooltip {
            border-radius: 10px;
        }
        
        input.textbox, textarea.textbox, time relative tooltip drop-target drop-element-attached-bottom drop-element-attached-center drop-target-attached-top drop-target-attached-center {
            border-radius: 10px;
        }
        
        .search>input {
            border-radius: 10px 0px 0px 0px;
        }
        
        .search>button {
            border-radius: 0px  10px 0px 0px;
        }
        
        .bp4-tag.bp4-minimal:not([class*=bp4-intent-]) {
            border-radius: 10px;
        }
        
        .problem__tag-link, .select-container.compact .select, .select.compact {
            border-radius: 10px;
        }
        
        pre[class*=language-], .autocomplete-wrapper {
            border-radius: 10px;
        }
        
        .section__table-header {
            border-radius: 10px 10px 0 0;
        }
        
        div.code-toolbar>.toolbar>.toolbar-item>a, div.code-toolbar>.toolbar>.toolbar-item>button, div.code-toolbar>.toolbar>.toolbar-item>span {
            border-radius: 0 0 0 10px;
        }
        </style>
        
        <!--隐藏一言-->
        <script>
            let x = document.getElementsByName("hitokoto");
            if (x && x.length > 0) x[0].parentElement.hidden = true;
        </script>
        
        <!--名字颜色(普通情况)-->
        <script type="text/javascript">
            let su = document.getElementsByClassName("user-profile-name");
            for (i = 0; i < su.length; i++) {
                if (su[i].href == "http://43.139.175.183/user/2" || su[i].href == "http://43.139.175.183/user/6") {
                    su[i].style = "color:#e18a3b;font-weight:bold;";
                } else if (su[i].href == "http://43.139.175.183/user/3" || su[i].href == "http://43.139.175.183/user/23" || su[i].href == "http://43.139.175.183/user/114534" || su[i].href == "http://43.139.175.183/user/114550") {
                    su[i].style = "color:#6ca8af;font-weight:bold;";
                }
            }
        </script>
        
        <!--个人主页名字颜色-->
        <script>
            let name_href = document.getElementsByTagName("h1");
            for (i = 0; i < name_href.length; i++) {
                console.log(name_href[i]);
                let now_inner = name_href[i].innerHTML;
                console.log(now_inner);
                if (now_inner.includes("WTX") || now_inner.includes("liangbob")) {
                    name_href[i].style = "color:#e18a3b;font-weight:bold;";
                } else if (now_inner.includes("De_Bruyne") || now_inner.includes("smy") || now_inner.includes("kkk_fans") || now_inner.includes("Demon")) {
                    name_href[i].style = "color:#6ca8af;font-weight:bold;";
                }
            }
        </script>
        
        <!--国家反诈骗中心-->
        <script>
            let link = document.getElementsByTagName("a");
            for (i = 0; i < link.length; i++) {
                if (link[i].href == "https://vdse.bdstatic.com//192d9a98d782d9c74c96f09db9378d93.mp4" || link[i].href.includes("1GJ411x7h7")) {
                    link[i].innerHTML = "这是一个诈骗链接,请不要点击,或者关闭麦克风后点击!";
                    link[i].style = "color:#e5a84b;background-color:#284852;";
                } else if (link[i].href.includes("bilibili") || link[i].href.includes("b23")) {
                    link[i].innerHTML = "这是一个来自B站的视屏,请在可信情况下点击!";
                    link[i].style = "color:#ffea00;background-color:#284852;";
                } else if (link[i].href.includes("haokan.baidu.com/")) {
                    link[i].innerHTML = "这是一个来自好看视屏的视屏,请在可信情况下点击!(大部分为诈骗)";
                    link[i].style = "color:#ffea00;background-color:#284852;";
                }
            }
        </script>
        
        <!--防腐朽-->
        <script>
            let urls = document.getElementsByTagName("a");
            let games = ["4399.com", "7k7k.com", "box3", "codemao"]
            for (i = 0; i <= link.length; i++) {
                for (j = 0; j <= games.length; j++) {
                    if (urls[i].href.includes(games[j])) {
                        urls[i].innerHTML = "该链接涉嫌颓废,仅在没有老师的情况下可以使用"
                        urls[i].style = "color:#FF0000; background-color:#FFFF99;"
                    }
                }
            }
        </script>
        
        <!--关闭功能-->
        <script>
            let tr = document.getElementsByClassName("nav__item");
            for (let i = 0; i <= tr.length; i++) {
                console.log(tr[i]);
                console.log(tr[i].href);
                if (tr[i].href == "http://43.139.175.183/training") {
                    tr[i].parentElement.hidden = true;
                } else if (tr[i].href == "http://43.139.175.183/homework") {
                    tr[i].parentElement.hidden = true;
                }
            }
        </script>
        
        
        <!--音乐-->
        <audio loop id="BGM-Player" controls="controls" preload="auto">
            <script>
                let myAudio = document.getElementById("BGM-Player");
                if (localStorage.getItem("play_time") != null) {
                    myAudio.currentTime = localStorage.getItem("play_time")
                };
                if (myAudio.canPlayType("audio/mpeg") != "") {
                    myAudio.src = "https://gh2.yanqishui.work/https://github.com/Lixuannan/mcoi-audio/releases/download/deploy/mcoi-audio-all.mp3"
                } else if (myAudio.canPlayType("audio/ogg") != "") {
                    myAudio.src = "https://gh2.yanqishui.work/https://github.com/Lixuannan/mcoi-audio/releases/download/deploy/mcoi-audio-all.ogg"
                };
                let timer = setInterval(function() {
                    localStorage.setItem("play_time", myAudio.currentTime);
                }, 100);
            </script>
        
    • @ 2023-1-15 20:12:56

      我修的,累死人

      • @ 2023-1-15 19:23:31

        祝贺

        • @ 2023-1-15 19:15:50

          祝贺!!!

          • @ 2023-1-15 19:05:34

            纯属娱乐

            • 1