nference/forks"> 0

后端

spechars.js 4.6KB

    /** * Created with JetBrains PhpStorm. * User: xuheng * Date: 12-9-26 * Time: 下午1:09 * To change this template use File | Settings | File Templates. */ var charsContent = [ { name:"tsfh", title:lang.tsfh, content:toArray("、,。,·,ˉ,ˇ,¨,〃,々,—,~,‖,…,‘,’,“,”,〔,〕,〈,〉,《,》,「,」,『,』,〖,〗,【,】,±,×,÷,∶,∧,∨,∑,∏,∪,∩,∈,∷,√,⊥,∥,∠,⌒,⊙,∫,∮,≡,≌,≈,∽,∝,≠,≮,≯,≤,≥,∞,∵,∴,♂,♀,°,′,″,℃,$,¤,¢,£,‰,§,№,☆,★,○,●,◎,◇,◆,□,■,△,▲,※,→,←,↑,↓,〓,〡,〢,〣,〤,〥,〦,〧,〨,〩,㊣,㎎,㎏,㎜,㎝,㎞,㎡,㏄,㏎,㏑,㏒,㏕,︰,¬,¦,℡,ˊ,ˋ,˙,–,―,‥,‵,℅,℉,↖,↗,↘,↙,∕,∟,∣,≒,≦,≧,⊿,═,║,╒,╓,╔,╕,╖,╗,╘,╙,╚,╛,╜,╝,╞,╟,╠,╡,╢,╣,╤,╥,╦,╧,╨,╩,╪,╫,╬,╭,╮,╯,╰,╱,╲,╳,▁,▂,▃,▄,▅,▆,▇,�,█,▉,▊,▋,▌,▍,▎,▏,▓,▔,▕,▼,▽,◢,◣,◤,◥,☉,⊕,〒,〝,〞")}, { name:"lmsz", title:lang.lmsz, content:toArray("ⅰ,ⅱ,ⅲ,ⅳ,ⅴ,ⅵ,ⅶ,ⅷ,ⅸ,ⅹ,Ⅰ,Ⅱ,Ⅲ,Ⅳ,Ⅴ,Ⅵ,Ⅶ,Ⅷ,Ⅸ,Ⅹ,Ⅺ,Ⅻ")}, { name:"szfh", title:lang.szfh, content:toArray("⒈,⒉,⒊,⒋,⒌,⒍,⒎,⒏,⒐,⒑,⒒,⒓,⒔,⒕,⒖,⒗,⒘,⒙,⒚,⒛,⑴,⑵,⑶,⑷,⑸,⑹,⑺,⑻,⑼,⑽,⑾,⑿,⒀,⒁,⒂,⒃,⒄,⒅,⒆,⒇,①,②,③,④,⑤,⑥,⑦,⑧,⑨,⑩,㈠,㈡,㈢,㈣,㈤,㈥,㈦,㈧,㈨,㈩")}, { name:"rwfh", title:lang.rwfh, content:toArray("ぁ,あ,ぃ,い,ぅ,う,ぇ,え,ぉ,お,か,が,き,ぎ,く,ぐ,け,げ,こ,ご,さ,ざ,し,じ,す,ず,せ,ぜ,そ,ぞ,た,だ,ち,ぢ,っ,つ,づ,て,で,と,ど,な,に,ぬ,ね,の,は,ば,ぱ,ひ,び,ぴ,ふ,ぶ,ぷ,へ,べ,ぺ,ほ,ぼ,ぽ,ま,み,む,め,も,ゃ,や,ゅ,ゆ,ょ,よ,ら,り,る,れ,ろ,ゎ,わ,ゐ,ゑ,を,ん,ァ,ア,ィ,イ,ゥ,ウ,ェ,エ,ォ,オ,カ,ガ,キ,ギ,ク,グ,ケ,ゲ,コ,ゴ,サ,ザ,シ,ジ,ス,ズ,セ,ゼ,ソ,ゾ,タ,ダ,チ,ヂ,ッ,ツ,ヅ,テ,デ,ト,ド,ナ,ニ,ヌ,ネ,ノ,ハ,バ,パ,ヒ,ビ,ピ,フ,ブ,プ,ヘ,ベ,ペ,ホ,ボ,ポ,マ,ミ,ム,メ,モ,ャ,ヤ,ュ,ユ,ョ,ヨ,ラ,リ,ル,レ,ロ,ヮ,ワ,ヰ,ヱ,ヲ,ン,ヴ,ヵ,ヶ")}, { name:"xlzm", title:lang.xlzm, content:toArray("Α,Β,Γ,Δ,Ε,Ζ,Η,Θ,Ι,Κ,Λ,Μ,Ν,Ξ,Ο,Π,Ρ,Σ,Τ,Υ,Φ,Χ,Ψ,Ω,α,β,γ,δ,ε,ζ,η,θ,ι,κ,λ,μ,ν,ξ,ο,π,ρ,σ,τ,υ,φ,χ,ψ,ω")}, { name:"ewzm", title:lang.ewzm, content:toArray("А,Б,В,Г,Д,Е,Ё,Ж,З,И,Й,К,Л,М,Н,О,П,Р,С,Т,У,Ф,Х,Ц,Ч,Ш,Щ,Ъ,Ы,Ь,Э,Ю,Я,а,б,в,г,д,е,ё,ж,з,и,й,к,л,м,н,о,п,р,с,т,у,ф,х,ц,ч,ш,щ,ъ,ы,ь,э,ю,я")}, { name:"pyzm", title:lang.pyzm, content:toArray("ā,á,ǎ,à,ē,é,ě,è,ī,í,ǐ,ì,ō,ó,ǒ,ò,ū,ú,ǔ,ù,ǖ,ǘ,ǚ,ǜ,ü")}, { name:"yyyb", title:lang.yyyb, content:toArray("i:,i,e,æ,ʌ,ə:,ə,u:,u,ɔ:,ɔ,a:,ei,ai,ɔi,əu,au,iə,εə,uə,p,t,k,b,d,g,f,s,ʃ,θ,h,v,z,ʒ,ð,tʃ,tr,ts,dʒ,dr,dz,m,n,ŋ,l,r,w,j,")}, { name:"zyzf", title:lang.zyzf, content:toArray("ㄅ,ㄆ,ㄇ,ㄈ,ㄉ,ㄊ,ㄋ,ㄌ,ㄍ,ㄎ,ㄏ,ㄐ,ㄑ,ㄒ,ㄓ,ㄔ,ㄕ,ㄖ,ㄗ,ㄘ,ㄙ,ㄚ,ㄛ,ㄜ,ㄝ,ㄞ,ㄟ,ㄠ,ㄡ,ㄢ,ㄣ,ㄤ,ㄥ,ㄦ,ㄧ,ㄨ")} ]; (function createTab(content) { for (var i = 0, ci; ci = content[i++];) { var span = document.createElement("span"); span.setAttribute("tabSrc", ci.name); span.innerHTML = ci.title; if (i == 1)span.className = "focus"; domUtils.on(span, "click", function () { var tmps = $G("tabHeads").children; for (var k = 0, sk; sk = tmps[k++];) { sk.className = ""; } tmps = $G("tabBodys").children; for (var k = 0, sk; sk = tmps[k++];) { sk.style.display = "none"; } this.className = "focus"; $G(this.getAttribute("tabSrc")).style.display = ""; }); $G("tabHeads").appendChild(span); domUtils.insertAfter(span, document.createTextNode("\n")); var div = document.createElement("div"); div.id = ci.name; div.style.display = (i == 1) ? "" : "none"; var cons = ci.content; for (var j = 0, con; con = cons[j++];) { var charSpan = document.createElement("span"); charSpan.innerHTML = con; domUtils.on(charSpan, "click", function () { editor.execCommand("insertHTML", this.innerHTML); dialog.close(); }); div.appendChild(charSpan); } $G("tabBodys").appendChild(div); } })(charsContent); function toArray(str) { return str.split(","); }
portal-front - Gogs: Go Git Service

portal html css js resource

searchreplace.html 4.2KB

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title></title> <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/> <script type="text/javascript" src="../internal.js"></script> <style type="text/css"> .warpper{ position:relative;width: 380px; height: 100%; margin: 10px auto;} .tabbody{height: 160px;} .tabbody table{width:100%;border-collapse: separate;border-spacing: 3px;} .tabbody .panel{width:373px;height:100%;padding-left: 5px;position: absolute;background-color: #fff;} .tabbody input.int{ width:190px;height:21px;border:1px solid #d7d7d7;line-height:21px;} .tabbody input.btn{padding: 0 5px; text-align:center;line-height:24px; text-decoration: none;height:24px;background:url("../../themes/default/images/dialog-title-bg.png") repeat-x;border:1px solid #ccc; } </style> </head> <body> <div class="warpper" id="searchtab"> <div id="head" class="tabhead"> <span tabsrc="find" class="focus"><var id="lang_tab_search"></var></span> <span tabsrc="replace" ><var id="lang_tab_replace"></var></span> </div> <div class="tabbody"> <div class="panel" id="find"> <table> <tr> <td width="80"><var id="lang_search1"></var>: </td> <td><input id="findtxt" type="text" class="int" /></td> </tr> <!--<tr>--> <!--<td colspan="2"><span style="color:red"><var id="lang_searchReg"></var></span></td>--> <!--</tr>--> <tr> <td><var id="lang_case_sensitive1"></var></td> <td> <input id="matchCase" type="checkbox" /> </td> </tr> <tr> <td colspan="2"> <input id="nextFindBtn" type="button" class="btn" /> <input id="preFindBtn" type="button" class="btn" /> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td colspan="2"> <span id="search-msg" style="color:red"></span> </td> </tr> </table> </div> <div class="panel" id="replace"> <table> <tr> <td width="80"><var id="lang_search2"></var>: </td> <td><input id="findtxt1" type="text" class="int" /></td> </tr> <!--<tr>--> <!--<td colspan="2"><span style="color:red"><var id="lang_searchReg1"></var></span></td>--> <!--</tr>--> <tr> <td><var id="lang_replace"></var>: </td> <td><input id="replacetxt" type="text" class="int" /></td> </tr> <tr> <td><var id="lang_case_sensitive2"></var></td> <td> <input id="matchCase1" type="checkbox" /> </td> </tr> <tr> <td colspan="2"> <input id="nextReplaceBtn" type="button" class="btn" /> <input id="preReplaceBtn" type="button" class="btn" /> <input id="repalceBtn" type="button" class="btn" /> <input id="repalceAllBtn" type="button" class="btn" /> </td> </tr> <tr> <td colspan="2"> &nbsp; </td> </tr> <tr> <td colspan="2"> <span id="replace-msg" style="color:red"></span> </td> </tr> </table> </div> </div> </div> <script type="text/javascript" src="searchreplace.js"></script> </body> </html>