rebuilding site Tue Sep 7 04:46:46 PM CST 2021

This commit is contained in:
James Feng Cao 2021-09-07 16:46:47 +08:00
parent a28a1945d2
commit f60bebdcc2
3 changed files with 12 additions and 13 deletions

View file

@ -1,20 +1,18 @@
var editor;
onload=function(){
var e = document.getElementById("editor");
var d=document;
var ext = location.href.split('.').pop();
outer:{
switch(ext){
case "html":
{
var text = e.innerHTML;
editor = ace.edit(e);
editor.session.setValue(text);
}
break outer;
var ta=d.getElementById("textarea");
var text=ta.innerHTML;
var e = d.getElementById("editor");
switch(ext){
case "js":
ext = "javascript";
}
editor = ace.edit(e);
editor.session.setValue(text);
}
editor.session.setMode("ace/mode/"+ext);
editor.setTheme("ace/theme/clouds");

View file

@ -6,10 +6,11 @@
bottom: 0;
left: 0;
}
#textarea{display:none}
</style>
<script src='http://cdn.bootcss.com/ace/1.2.3/ace.js'></script>
<script src='http://cdn.bootcss.com/ace/1.2.3/ext-language_tools.js'></script>
<pre id='editor'></pre>
<script src='ace.js'></script>
<pre id='editor'>
<h1>title</h1>
<div>hi</div>
<textarea id='textarea'>
html.replace(/<font.+\/font>/,'');

View file

@ -1,6 +1,6 @@
打开剪贴板链接:clip/uweb:/system/bin/toybox grep -m1 -Eo '(http|https)://[^ "'\'']+'
行编辑器:text/html:cat %f|while read LINE; do echo "<a href=\"i:AA${LINE//\"/%22}\">$LINE</a><br>";done
代码编辑器:text/html:print "<style>#div{position:fixed;top:2px}#editor{position: absolute;top:30;right:0;bottom:0;left:0;}</style><script src='http://cdn.bootcss.com/ace/1.2.3/ace.js'></script><script src='http://cdn.bootcss.com/ace/1.2.3/ext-language_tools.js'></script><script src='https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/ace.js'></script><div id='div'><button onclick='onSave(\"%f\")'>Save</button> <a href=''>Run</a></div><pre id='editor'>";cat %f;
代码编辑器:text/html:print "<style>#div{position:fixed;top:2px}#editor{position: absolute;top:30;right:0;bottom:0;left:0;}#textarea{display:none}</style><script src='http://cdn.bootcss.com/ace/1.2.3/ace.js'></script><script src='http://cdn.bootcss.com/ace/1.2.3/ext-language_tools.js'></script><script src='https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/ace.js'></script><div id='div'><button onclick='onSave(\"%f\")'>Save</button> <a href=''>Run</a></div><pre id='editor'></pre><textarea id='textarea'>";cat %f;
淘宝比价:clip/uweb:grep -m1 -Eo '(http|https)://[^ "'\'']+'|curl -s "`cat`"|grep -m1 -Eo '(http|https)://[^ ?]+'|grep -Eo '[0-9]+'|echo "http://tool.manmanbuy.com/historyLowest.aspx?url=https://detail.tmall.com/item.htm?id=`cat`"
markdeep:text/html:cat %f;echo "<style class=fallback>body{visibility:hidden;white-space:pre;font-family:monospace}</style><script src=https://casual-effects.com/markdeep/latest/markdeep.min.js charset=utf-8></script><script>window.alreadyProcessedMarkdeep||(document.body.style.visibility=visible)</script>"
显示本地md:text/html:echo "<script src=https://cdn.jsdelivr.net/npm/mdme></script><textarea>";cat %f