oj美化
__GG__Bond__ · · 休闲·娱乐
将里面的代码块拷到https://bbcoj.cn/note/edit即可(不包括折叠框) :::info[oj美化]
<button class="el-button btn el-button" type="button" onclick="var KICKASSVERSION='2.0';var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='//hi.kickassapp.com/kickass.js';void(0);">
飞机
<button class="el-button btn el-button" type="button" onclick="(function(){var elements=document.getElementsByTagName('*');for(var i=0;i<elements.length;i++){var r=Math.floor(Math.random()*256);var g=Math.floor(Math.random()*256);var b=Math.floor(Math.random()*256);elements[i].style.color='rgb('+r+','+g+','+b+')';}})();">颜色</button>
<button class="el-button btn el-button" type="button" onclick="(function() { let bookmarkClockContainer = document.createElement('div'); bookmarkClockContainer.style.position = 'fixed'; bookmarkClockContainer.style.bottom = '10px'; bookmarkClockContainer.style.right = '10px'; bookmarkClockContainer.style.backgroundColor = 'rgba(255, 255, 255, 0.8)'; bookmarkClockContainer.style.padding = '10px'; bookmarkClockContainer.style.borderRadius = '5px'; let clockIframe = document.createElement('iframe'); clockIframe.src = 'https://cn.widgetstore.net/view/index.html?q=807102f6623d939101d5b1cd3ee9e8d6.f531710465b39f7b00452d4a0eaecb50'; clockIframe.style.width = '150px'; clockIframe.style.height = '150px'; clockIframe.style.border = 'none'; bookmarkClockContainer.appendChild(clockIframe); document.body.appendChild(bookmarkClockContainer); })();">时钟</button>
<button class="el-button btn el-button" type="button" onclick="var div = document.createElement('div'); div.style.position = 'fixed'; div.style.right = '20px'; div.style.bottom = '20px'; div.style.zIndex = '9999'; document.body.appendChild(div); var input = document.createElement('input'); input.type = 'text'; input.placeholder = '请输入视频BV号'; input.style.marginRight = '10px'; div.appendChild(input); var button = document.createElement('button'); button.innerText = '播放'; button.onclick = function() { var bvid = input.value; var iframe = document.createElement('iframe'); iframe.src = '//player.bilibili.com/player.html?bvid=' + bvid + '&cid=1414313231&p=1'; iframe.scrolling = 'no'; iframe.border = '0'; iframe.frameborder = 'no'; iframe.framespacing = '0'; iframe.allowfullscreen = 'true'; div.innerHTML = ''; div.appendChild(iframe); }; div.appendChild(button);">bilibili</button>
<button class="el-button btn el-button" type="button" onclick="(function(){document.write('<HTML><HEAD></HEAD> <FRAMESET COLS=\'33%,34%,33%\'> <FRAME SRC='+('about:blank')+'> <FRAME SRC='+location.href+'> <FRAME SRC='+('about:blank')+'> </FRAMESET></HTML>');})()">竖屏</button>
<button class="el-button btn el-button" type="button" onclick="(function(){document.body.setAttribute('contenteditable', 'true');alert('已开启网页编辑,按 Esc 取消!');document.onkeydown = function (e) {e = e || window.event;if(e.keyCode==27){document.body.setAttribute('contenteditable', 'false');}}})();">修改网页</button>