Program written by JS

xiaoxiao2021-03-06  114

Remove a piece of text from the database, put on the page on the page, and leave a blank line below each line to record the number of errors in the process of entering the input. There is no need to judge factors such as time speed. Checkered code aa </ title> <meta http-equiv = content-type content = text / html; charset = GB2312></p> <p><Input ID = INPU_ONOFF TYPE = Button Value = 'start' οnclick = 'f_start ()'></p> <p><br> <input name = "input" id = INPU_TEXT style = 'font-size: 24px' size = 49 maxlength = 50> <input = INPU_TYPE READOSE = 49 MaxLength = 50 style = 'font-size: 24px' > <Input ID = INPU_WRONERONLY SIZE = 49 MAXLENGTH = 50 Style = 'font-size: 24px'></p> <p><P> <input name = radi_resource type = radio οnclick = f_set_res ()> Article <input name = radi_resource type = radio οnclick = f_set_res ()> Full <input name = radi_resource type = radio οnclick = f_set_res () checked> DVORAK < input name = radi_resource type = radio οnclick = f_set_res ()> Alpha <input name = radi_resource type = radio οnclick = f_set_res ()> Number <input name = radi_resource type = radio οnclick = f_set_res ()> Empty</p> <p><Input ID = CHEC_IFRANDOM TYPE = CheckBox Checked> Random</p> <p><br> <textarea ID = text_sample rows = 5 COLS = 80> </ textarea></p> <p><p></p> <p><Table Width = 100%> <TR> <TD Width = 40%> <input = INPU_SPEED READONLY> CHAR / minute <br> <input id = INPU_RIGHT READONLY> Right Rate <br> <input id = INPU_DISPTIME READONLY> COST Time <br> <input id = inpu_righttype readonly> Input Right <br> <input id = inpu_ttltype readonly> Input Total </ td> <td> <p> <textarea id = text_result rows = 8 cols = 30> </ textarea > Result History </ TD> </ TR> </ Table> <script> / end box // </ script></p> <p><script> / start hidden // </ script> <input name = "infut2" id = input ") = 'display: none'> <textarea ID = text_article style = 'display: none'></p> <p>The Dvorak Keyboard</p> <p>Almost Everyone Knows That The qwerys keyboard Was Designed by Christopher Sholes to prevent the arms in not</p> <p>Typewriters from Jamming. Fewer People Know That A University of Washington Professor and EffiCiency Fanatic, August Dvorak</p> <p>(a couk of the composer), in 1936, Designed a keyboard to maximize effect (by Placing Common Letters on The Home Row),</p> <p>And make the stronger fingers of the hand. I Was surprised by The Factoid (GATHERED from Grolier's Encyclopedia) That Part of The qwerty Layout Was Driven By The</p> <p>Decision to Place All of the Letters in The Word "Typewriter" on the top row so what salesmen would''t Have to hunt and peck.</p> <p>I'VE Always Been Bothereled by Poor Design or Engineering, So Ever Since Hearing About The Dvorak Keyboard I Wanted to Switch.</p> <p>I finally TOOK The PLUNGE IN 1989 And Haven't Regretted It. Since Then, Because of Repetitive Stress Injuries (RSI) and</p> <p>Carpal Tunnel Syndrome, Many People Have Asked Me About The Dvorak Keyboard, And Bit by Bit I've Become Something Of AN</p> <p>Evangelist.</p> <p>Pictured Below Is The Dvorak Keymapping. I Learned It by Printing Out A Diagram Like this One, and Placing It next to my</p> <p>Terminal. I regained Comfort After a couple weeks, and eventually passed my old speted. it is definitely more comfortable Than</p> <p>QWERTY. AN Unintended Side Effect Is That IT IS A Pretty Effective Security Device (Just Ask Any of My Coworkers).</p> <p></ textarea></p> <p><script> / end hidden // </ script></p> <p><script> / start js // </ script> <script></p> <p>/ Start user js function //</p> <p>f_start () /// Auto Start, When Online Run THE MAIN</p> <p>Function f_start () // reset all, set text, get ready to go = 'INPU_TYPE.VALUE =' 'INPU_WRON.VALUE =' '</p> <p>INPU_CURTime.Value = 0</p> <p>INPU_SPEED.VALUE = '0.00' INPU_RIGHT.VALUE = '0.00%' Inpu_disptime.value = '0: 0: 0.0' Inpu_rightType.Value = 0 Inpu_ttltype.Value = 0</p> <p>INPU_ONOFF.OUTERHTML = "<input id = INPU_ONOFF TYPU = Button Value = '... ::::::: 3 :::::: ...' 'οnclick =' f_stop () 'DISABLED > "F_set_res () f_readygo ()}</p> <p>function f_stop () // when end typing stop time {clearTimeout (tt_timeout) inpu_type.readOnly = true inpu_onoff.outerHTML = "<input id = inpu_onoff type = button value = 'Start' οnclick = 'f_start ()'>" inpu_onoff. FOCUS () f_Result ()}</p> <p>Function f_readygo () // 2 ~~~ 1 ... go !!! When ready start time & input {tt_timeout = settimeout ("INPU_ONOFF.VALUE = '~~~~~~~~~~~~~~~ ~~~ 2 '", 1000) tt_timeout = setTimeout (" INPU_ONOFF.VALUE =' 1 ......... "", 2000) TT_TIMEOUT = setTimeout ("INPU_ONOFF.VALUE = '!!! !!!!!!!!!!!!!!! Go !!!!!!!!!!!!!!!!!! '", 3000) TT_TIMEOUT = setTimeout (' f_settext () ', 3000 ) tt_timeout = setTimeout ( 'inpu_type.readOnly = false; inpu_type.focus ()', 4000) tt_timeout = setTimeout ( "inpu_onoff.value = 'Stop'; inpu_onoff.disabled = false", 4000) tt_timeout = setTimeout ( 'f_refresh ( ) ', 4000} Function f_settext () // random or not {if (CHEC_IFRANDOM.CHECKED == 1) {f_randomtext ()} else {f_ordertext ()}} function f_OrDertext () // show 50 Order Words in Input Box {TEMP_ARRAY = TEXT_SAMPLE.VALUE.SPLIT ('/ r / n'). Join (') Temp_random = Math.Round (Math.random () * (Temp_array.length-50)) Inpu_text.Value = Temp_Array.substr Temp_random, 50)}</p> <p>Function f_randomtext () // show 50 random chars in infut box {temp_array = text_sample.Value.split ('/ r / n'). Join (') Temp_random = Temp_Array INPU_TEXT.VALUE =' FOR (i = 0; I <50; i ) {char_rand = Temp_random.charat (math.Round (Math.Round ()))) InPu_Text.Value = char_rand}}</p> <p>function f_result () // show speed & right & time & input {text_result.value = inpu_speed.value '/ t' 'Char / Minute' '/ n' text_result.value = inpu_right.value '/ t' ' Right Rate ' ' / n 'text_result.value = inpu_disptime.value ' / t ' ' Cost Time ' ' / n 'text_result.value = inpu_righttype.value ' / t ' ' Input Right ' ' / n ' text_result.value = inpu_ttltype.value '/ t' 'Input Total' '/ n' text_result.value = Date () '/ n' '/ n' text_result.scrollTop = 110} function f_refresh () {f_show_time () F_show_record () TT_TIMEOUT = setTimeout ('f_refresh ()', 100) // Refresh Time Per 0.1seconds}</p> <p>Function f_show_time () {INPU_CURTIME.VALUE // set time INTO INPUT BOX</p> <p>Temp = new arch</p> <p>Temp [0] = PARSEINT (INPU_CURTIME.VALUE) // GET Real Millions Temp [1] = PARSEINT (INPU_CURTIME.VALUE / 10) // Get Real Seconds Temp [2] = PARSEINT (Input (Input) / 10/60) / / GET Real Minutes Temp [3] = PARSEINT (Inpu_curtime.Value / 10/60/60) // Get Real Hours</p> <p>Temp [0] = TEMP [0]% 10 // Only Millions Temp [1] = Temp [1]% 60 // Only Seconds Temp [2] = Temp [2]% 60 // Only Minutes Temp [3] = Temp [3] // Only Hours</p> <p>INPU_DISPTIME.VALUE = Temp [3] ':' Temp [2] ':' Temp [1] '.' Temp [0] // Put Time INTO INPUT BOX}</p> <p>Function f_show_record () {INPU_TTTLTYPE.VALUE = INPU_TYPE.VALUE.LENGTH INPU_SPEED.VALUE = (INPU_TTTLTYPE.VALUE / (Inpu_curtime.value / 10) * 60) .tofixed (2)</p> <p>// Input Right Begin inpu_righttype.value = inpu_ttltype.value inpu_wrong.value = '' for (i = 0; i <inpu_ttltype.value; i )! {If (inpu_text.value.charAt (i) = inpu_type.value.charAt (i)) // Diff text & Type {INPU_RIGHTTYPE.VALUE - // if Diff Inpu_Wrong.Value = '?' // TYPE WRONG ALERT} Else // Same (Type Right) {INPU_WRONG.VALUE = '///// show type right}} // Input right End // right Rate Begin if (inpu_ttltype.value == 0) inpu_right.value = '0.00%' else inpu_right.value = (inpu_righttype.value / inpu_ttltype.value * 100) .toFixed (2) '%' // Right Rate End}</p> <p>function f_set_res () // show radio {if (radi_resource [0] .checked == true) {text_sample.value = text_article.value} else if (radi_resource [1] .checked == true) {text_sample.value = ' ` 1234567890 [] / ~! @ # $% ^ & * () {} | / ',. pyfgcrl / = "<> pyfgcrl? Aoeuidhtns-aoeuidhtns_; qjkxbmwvz: qjkxbmwvz'} else if (Radi_Resource [2] .checked = = true) {text_sample.value = '/' ,. pyfgcrlaoeuidhtns; qjkxbmwvz '} else if (radi_resource [3] .checked == true) {text_sample.value =' abcdefghijklmnopqrstuvwxyz '} else if (radi_resource [4] .checked = = True) {text_sample.value = '1234567890'} else if (radi_resource [5] .CHECKED == true) {text_sample.value = ''}}</p> <p>/ END User JS Function //</p> <p>/ Start system js function //</p> <p>Function Document.onkeyDown () {if (event.keycode == 13 && inpu_onoff.value == 'stop') {f_stop () returnaf false}}</p> <p>/ End System JS Function //</p> <p></ script> <script> / end js // </ script> <script> Document.execcommand ("stop") // do not run the folload rubbish code </ script> <! - myStyle <input id = INPU_ABC οnclick = 'f_abc ()> <script> function f_abc () {alert ()} </ script> -></p></div><div class="text-center mt-3 text-grey"> 转载请注明原文地址:https://www.9cbs.com/read-99377.html</div><div class="plugin d-flex justify-content-center mt-3"></div><hr><div class="row"><div class="col-lg-12 text-muted mt-2"><i class="icon-tags mr-2"></i><span class="badge border border-secondary mr-2"><h2 class="h6 mb-0 small"><a class="text-secondary" href="tag-2.html">9cbs</a></h2></span></div></div></div></div><div class="card card-postlist border-white shadow"><div class="card-body"><div class="card-title"><div class="d-flex justify-content-between"><div><b>New Post</b>(<span class="posts">0</span>) </div><div></div></div></div><ul class="postlist list-unstyled"> </ul></div></div><div class="d-none threadlist"><input type="checkbox" name="modtid" value="99377" checked /></div></div></div></div></div><footer class="text-muted small bg-dark py-4 mt-3" id="footer"><div class="container"><div class="row"><div class="col">CopyRight © 2020 All Rights Reserved </div><div class="col text-right">Processed: <b>0.042</b>, SQL: <b>9</b></div></div></div></footer><script src="./lang/en-us/lang.js?2.2.0"></script><script src="view/js/jquery.min.js?2.2.0"></script><script src="view/js/popper.min.js?2.2.0"></script><script src="view/js/bootstrap.min.js?2.2.0"></script><script src="view/js/xiuno.js?2.2.0"></script><script src="view/js/bootstrap-plugin.js?2.2.0"></script><script src="view/js/async.min.js?2.2.0"></script><script src="view/js/form.js?2.2.0"></script><script> var debug = DEBUG = 0; var url_rewrite_on = 1; var url_path = './'; var forumarr = {"1":"Tech"}; var fid = 1; var uid = 0; var gid = 0; xn.options.water_image_url = 'view/img/water-small.png'; </script><script src="view/js/wellcms.js?2.2.0"></script><a class="scroll-to-top rounded" href="javascript:void(0);"><i class="icon-angle-up"></i></a><a class="scroll-to-bottom rounded" href="javascript:void(0);" style="display: inline;"><i class="icon-angle-down"></i></a></body></html><script> var forum_url = 'list-1.html'; var safe_token = '7Dtp1JBL_2BS7aGcWn0F2FpfokL_2FcaiwPAwMyOiFxlue67h_2FXzStEvvPDqoUnn_2BjN1Hnx0SUXY6FBXzUJdlSYHZg_3D_3D'; var body = $('body'); body.on('submit', '#form', function() { var jthis = $(this); var jsubmit = jthis.find('#submit'); jthis.reset(); jsubmit.button('loading'); var postdata = jthis.serializeObject(); $.xpost(jthis.attr('action'), postdata, function(code, message) { if(code == 0) { location.reload(); } else { $.alert(message); jsubmit.button('reset'); } }); return false; }); function resize_image() { var jmessagelist = $('div.message'); var first_width = jmessagelist.width(); jmessagelist.each(function() { var jdiv = $(this); var maxwidth = jdiv.attr('isfirst') ? first_width : jdiv.width(); var jmessage_width = Math.min(jdiv.width(), maxwidth); jdiv.find('img, embed, iframe, video').each(function() { var jimg = $(this); var img_width = this.org_width; var img_height = this.org_height; if(!img_width) { var img_width = jimg.attr('width'); var img_height = jimg.attr('height'); this.org_width = img_width; this.org_height = img_height; } if(img_width > jmessage_width) { if(this.tagName == 'IMG') { jimg.width(jmessage_width); jimg.css('height', 'auto'); jimg.css('cursor', 'pointer'); jimg.on('click', function() { }); } else { jimg.width(jmessage_width); var height = (img_height / img_width) * jimg.width(); jimg.height(height); } } }); }); } function resize_table() { $('div.message').each(function() { var jdiv = $(this); jdiv.find('table').addClass('table').wrap('<div class="table-responsive"></div>'); }); } $(function() { resize_image(); resize_table(); $(window).on('resize', resize_image); }); var jmessage = $('#message'); jmessage.on('focus', function() {if(jmessage.t) { clearTimeout(jmessage.t); jmessage.t = null; } jmessage.css('height', '6rem'); }); jmessage.on('blur', function() {jmessage.t = setTimeout(function() { jmessage.css('height', '2.5rem');}, 1000); }); $('#nav li[data-active="fid-1"]').addClass('active'); </script>