PersonInfo/TypeWord.aspx

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ Page language="c#" Inherits="EasyExam.PersonInfo.TypeWord" CodeFile="TypeWord.aspx.cs" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
	<HEAD>
		<title>打字窗口</title>
		<base target="_self">
		<meta name="GENERATOR" Content="Microsoft FrontPage 5.0">
		<meta name="CODE_LANGUAGE" Content="C#">
		<meta name="vs_defaultClientScript" content="JavaScript">
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<LINK href="../CSS/Style.CSS" type="text/css" rel="stylesheet">
		<script language="JavaScript">
			var time_type=<%=intTypeTime%>*60;
			var time_passed=0;
			function show_secs()
			{
				time_passed++;
				curmin=Math.floor(time_passed/60);
    			cursec=Math.floor(time_passed-curmin*60);
    			show_time.innerText="已经用时:"+curmin+"分"+cursec+"秒";
    			text1=document.form1.showword.value;
				type_speed.innerText='打字速度:'+Math.round((parseInt(document.form1.typeright.value)+parseInt(document.form1.typewrong.value))/time_passed*60)+"个字/分钟";
				document.form1.typespeed.value=Math.round((parseInt(document.form1.typeright.value)+parseInt(document.form1.typewrong.value))/time_passed*60);
			
				if (time_passed==time_type)
				{
					returntext();
				}
				window.setTimeout('show_secs()',1000);
			}
			function ok()
			{
				text1=document.form1.showword.value;
				text2=document.form1.textarea.value;
				while(text2.indexOf('\r\n')>-1)
				{
					text2=text2.replace('\r\n',"<br>")
				}
				wrong=0;
				right=0;
				flagword="";
				for (i=0;i<Math.min(text1.length,text2.length);i++)
				{
					if (text1.substr(i,4)=="<br>")
					{
						if (text2.substr(i,4)==text1.substr(i,4))
						{
							right=right+4;
						}
						else
						{
							wrong=wrong+4;
						}
						flagword=flagword+"<br>"
						i=i+3;
					}
					else
					{
						if ((text2.substr(i,1)==text1.substr(i,1))||((text2.substr(i,1).charCodeAt(0)==32)&&(text1.substr(i,1).charCodeAt(0)==160)))
						{
后面还有 69 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。