index.html 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245
  1. <head>
  2. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  3. <title>实验中学成绩整理</title>
  4. <script type="text/javascript" src="/js/jquery.min.js" crossorigin="anonymous"></script>
  5. <link rel="stylesheet" href="/css/bootstrap.min.css" crossorigin="anonymous">
  6. <script type="text/javascript" src="/js/bootstrap.min.js" crossorigin="anonymous"></script>
  7. <script async src="/js/saver.min.js"></script>
  8. <script async src="/js/echarts-4.7.0.min.js"></script>
  9. <script src="/js/aes.js"></script>
  10. <script src="/js/pad-pkcs7.js"></script>
  11. <script src="/js/mode-ecb.js"></script>
  12. <link href="https://fonts.loli.net/css2?family=Anonymous+Pro:ital,wght@0,400;0,700;1,400;1,700
  13. &family=Noto+Serif+SC:wght@300;400;500;600;700&display=swap" rel="stylesheet">
  14. <link rel="stylesheet" href="/css/style.css">
  15. <script type="text/javascript" src="/js/score.min.js"></script>
  16. <style>
  17. body {
  18. transition-duration: 300ms;
  19. }
  20. #controls {
  21. position: fixed;
  22. bottom: 20px;
  23. right: 20px;
  24. padding: 5px;
  25. border: 5px solid rgba(15, 15, 15, 0.1);
  26. border-radius: 15px;
  27. background-color: rgba(15, 15, 15, 0.1);
  28. backdrop-filter: blur(5px);
  29. z-index: -1;
  30. }
  31. #name {
  32. background-color: rgba(215, 215, 215, 0.7);
  33. border-radius: 5px;
  34. padding-right: 3px;
  35. }
  36. #controls:not(.disabled) {
  37. z-index: 1;
  38. }
  39. .well {
  40. border-top-left-radius: 0;
  41. border-top-right-radius: 0;
  42. border-bottom-left-radius: 30px;
  43. border-bottom-right-radius: 30px;
  44. -webkit-box-shadow: inset 0 3px 3px rgb(0 0 0 / 5%);
  45. box-shadow: inset 0 3px 3px rgb(0 0 0 / 5%);
  46. }
  47. .btn.btn-how {
  48. border-bottom: none;
  49. border-bottom-left-radius: 0;
  50. border-bottom-right-radius: 0;
  51. }
  52. img {
  53. transition-duration: 300ms;
  54. border: 3px dotted grey;
  55. width: 100%;
  56. }
  57. .minus {
  58. transition-duration: 300ms;
  59. color: rgb(217, 83, 79);
  60. font-weight: 800;
  61. font-family: 'Consolas';
  62. background-color: rgba(215, 215, 215, 0.7);
  63. position: absolute;
  64. border-radius: 4px;
  65. padding: 2px;
  66. }
  67. .minus.full {
  68. color: rgb(92, 184, 92);
  69. }
  70. .sp {
  71. outline: 1px solid rgba(15, 15, 15, 0.7);
  72. background-color: rgba(215, 215, 215, 0.7);
  73. position: absolute;
  74. border-radius: 1px;
  75. }
  76. .sp.cor {
  77. background-color: rgba(92, 184, 92, 0.7);
  78. }
  79. .sp.err {
  80. background-color: rgba(217, 83, 79, 0.7);
  81. }
  82. </style>
  83. </head>
  84. <body>
  85. <a class="btn btn-info" href="/"><span class="glyphicon glyphicon-home" aria-hidden="true"></span>&nbsp;返回</a>
  86. <a tabindex="0" class="btn btn-warning hidable toggleHide"
  87. onclick="$('.hidable').show(1000);$('.toggleHide').toggle(1000)" style="display:none;">
  88. <span class="glyphicon glyphicon-eye-close" aria-hidden="true"></span>
  89. </a>
  90. <div class="hidable fetch">
  91. <div class="page-header">
  92. <h1>
  93. 实验中学成绩整理
  94. <small>基于心意答数据整理汇总考试成绩</small>
  95. </h1>
  96. </div>
  97. <h3>如何获取数据</h3>
  98. <p>点击 <span class="text-danger">?!</span> 按钮即可获取,如有疑问请咨询我。</p>
  99. <a onclick="$('.getData').toggle(500)">原始方法</a>
  100. <div class="getData" style="display: none;">
  101. <p>尽量使用 Google Chrome 浏览器,不保证其他浏览器操作相同。</p>
  102. <p>1. 进入心意答查分页面;</p>
  103. <p>2. 按下 F12 打开控制台,若无反应,尝试 Fn+F12;</p>
  104. <p>3. 控制台顶栏分页中找到“<b>网络</b>”或“<b>Network</b>”(可能需要从下拉框里面找);</p>
  105. <p>4. 刷新页面(用 F5 刷新),此时应看到控制台中出现一批文件,点击其中的“<b>getStudentReportMEVO</b>”;</p>
  106. <p>5. 在新出现的小页面的顶栏分页中找到“<b>预览</b>”或“<b>Preview</b>”;</p>
  107. <p>6. 此时应看到“{data: {,...”等数据,一定在数据第一行右键(或在其最后一行下方空白处右键),随后“<b>复制物体</b>”或“<b>Copy Object</b>”;</p>
  108. <p>7. 新建文本文档(格式为 txt,不可用 Word 文档),将所复制的内容粘贴并保存,于下方按钮打开。</p>
  109. <p style="font-size: 12px;font-style: italic;">
  110. 注:图表整理均在本地进行,你的成绩不会上传到网络(上传与否,已经不重要了)。<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;把所有人的成绩信息完整地公布在接口上,心意答我真服了你!
  111. </p>
  112. <a tabindex="0" class="btn btn-default fetch" href="tutor/">
  113. <span class="glyphicon glyphicon-question-sign" aria-hidden="true"></span>&nbsp;<b>查看示例截图</b>
  114. </a>
  115. </div>
  116. <h3>操作指南</h3>
  117. <p>1. 加载多个文件后,使用方向键或右下角控件可在文件间快速切换,方便比较;</p>
  118. <p>2. 点击图例可隐藏部分内容;</p>
  119. <p>3. 鼠标悬浮于右下角控件可让图片半透明,方便查看小分。</p>
  120. </div>
  121. <div class="fetch" style="display:none">(高质量接口)</div>
  122. <div class="input-group fetch" style="display:none">
  123. <span class="input-group-addon">考试编号<a data-toggle="tooltip" data-placement="bottom"
  124. title="心意答点击考试标题后,切换考试的列表里可见" aria-hidden="true">*</a></span>
  125. <input id="Id" type="text" class="form-control" autocomplete="off" placeholder="972" value="972">
  126. </div>
  127. <div class="input-group fetch" style="display:none">
  128. <span class="input-group-addon">姓名<a href="/js/e.json" onclick="setWeigh2()" data-toggle="tooltip"
  129. data-placement="bottom" title="仅限2025届高考部">*</a>或数字校园号</span>
  130. <input id="Input" type="text" class="form-control" autocomplete="off" placeholder="20222001 或 小明">
  131. <span class="input-group-btn">
  132. <button type="button" class="btn btn-success" onclick="fetchMe($('#Input').val())"
  133. id="fetchBtn"><span class="glyphicon glyphicon-hand-right" aria-hidden="true"></span> FETCH</button>
  134. </span>
  135. </div>
  136. <div style="text-align: center;" class="hidable">
  137. <div class="btn-group">
  138. <a id="upbtn" tabindex="0" class="btn btn-info" onclick="document.getElementById('fileInput').click();">
  139. <span id="upicon" class="glyphicon glyphicon-open" aria-hidden="true"></span> <b>打开文件</b><input
  140. style="display: none;" id="fileInput" type="file" onchange="getFiles(event)">
  141. </a>
  142. <a id="upbtn" tabindex="0" class="btn btn-danger"
  143. onclick="/*var a=aesEncrypt(prompt('我的班级')),b=aesEncrypt(prompt('我的学号'));if(a=='1170185235a2b833f24d4cf0e7d3f1c1'&&b=='b1b384c7b1e81d67482a132f60b3456e')*/$('.fetch').toggle(1000);/*else alert('你非我')*/">
  144. <b>?!</b>
  145. </a>
  146. <!-- If you must... -->
  147. </div>
  148. <a tabindex="0" class="btn btn-warning toggleHide fetch"
  149. onclick="$('.hidable').hide(1000);$('.toggleHide').toggle(1000)">
  150. <span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span>
  151. </a>
  152. </div>
  153. <div id="controls" class="disabled" style="text-align: center;" onmouseenter="$('img').css('opacity','0.1')"
  154. onmouseleave="$('img').css('opacity','1')">
  155. <div id="name"></div>
  156. <div class="btn-group">
  157. <a id="lbtn" tabindex="0" class="btn btn-default btn-lg disabled" onclick="prevFile();">
  158. <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
  159. </a>
  160. <a id="rbtn" tabindex="0" class="btn btn-default btn-lg disabled" onclick="nextFile();">
  161. <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
  162. </a>
  163. </div>
  164. </div>
  165. <div id="message" class="hidable"></div>
  166. <div id="fileInfo" class="hideble"></div>
  167. <div class="chart">
  168. <ul class="nav nav-tabs">
  169. <li class="active"><a href="#chart" data-toggle="tab" onclick="resizeChart()">图表</a></li>
  170. <li><a href="#data" data-toggle="tab">数据</a></li>
  171. <li><a href="#single" data-toggle="tab" onclick="getSe(curSe,1)">答题卡</a></li>
  172. <li><a href="#other" data-toggle="tab">谁问你了</a></li>
  173. </ul>
  174. <div class="tab-content well well-sm">
  175. <div class="tab-pane fade in active" id="chart">
  176. <br>
  177. <button id="resizeBtn" class="btn btn-default" onclick="resizeChart()"
  178. style="display: none;">图表没显示?暴力重置一下</button>
  179. <div id="comp" class="chart"></div>
  180. <h4>班内一览表</h4>
  181. <div id="score1" class="chart"></div>
  182. <div id="score2" class="chart"></div>
  183. <h4>排名</h4>
  184. <div id="order2" class="chart"></div>
  185. <div id="order4" class="chart"></div>
  186. <div id="order1" class="chart"></div>
  187. <div id="order3" class="chart"></div>
  188. <br><br>
  189. </div>
  190. <div class="tab-pane fade" id="data">
  191. <div id="fileOutput"></div>
  192. <div style="text-align:center">
  193. <a id="downbtn" tabindex="0" class="btn btn-default" onclick="down()">
  194. <span id="upicon" class="glyphicon glyphicon-save" aria-hidden="true"></span> <b>导出源文件</b><input
  195. style="display: none;">
  196. </a>
  197. <a id="downbtn" tabindex="0" class="btn btn-default" onclick="$('.active.in').wordExport('data')">
  198. <span id="upicon" class="glyphicon glyphicon-save" aria-hidden="true"></span> <b>导出
  199. Word</b><input style="display: none;">
  200. </a>
  201. </div>
  202. </div>
  203. <div class="tab-pane fade" id="single" style="min-height: 1000px;">
  204. </div>
  205. <div class="tab-pane fade" id="other">
  206. <p>Nobody asked</p>
  207. <p>原为实验中学 74 桌出品,我仅做搬运修改。</p>
  208. <p><a href="/js/score.js">压缩前代码</a></p>
  209. <p>如恶意使用接口,后果自负、、</p>
  210. <br><br><br>
  211. <!-- <p>你是否还想看看别人考的怎么样?</p>
  212. <p>想看别人考的怎么样,首先你得安装并启用<a href="https://greasyfork.org/zh-CN/scripts/456705-wangshaui-simulator"
  213. target="_blank">这个脚本</a>。</p>
  214. <p>假如你安装脚本都费劲,那无论如何你得先装上 Chrome 浏览器,我已经帮你把 Tampermonkey 搞来了,你只需要<a href="tutor/tamper.crx">下载</a>,Chrome
  215. 大概率会自动安装,你再<a href="https://greasyfork.org/zh-CN/scripts/456705-wangshaui-simulator"
  216. target="_blank">从这里</a>就能直接安装脚本了。</p>
  217. <p>随后进入心意答界面。多刷新几次,你会发现你来到了后台,然后你得进入学情分析页。</p>
  218. <p>这时按
  219. <kbd>F12</kbd> 打开 DevTools 界面,从顶栏分页找到 Network,再刷新一次。
  220. </p>
  221. <p>此时应出现一堆文件的列表,从里面找到以 'app.9739...'
  222. 开头的那个文件,右键选择 Block request URL 屏蔽它。</p>
  223. <p>不要关闭 DevTools,再次刷新,你就能看到别人考的怎么样了。假如你还想从不同老师的视角看,可以点击顶端的
  224. changeId 按钮,至于老师的 id 是多少,你可以上数字校园邮箱里面翻一翻。</p>
  225. <img async src="tutor/5.png"> -->
  226. </div>
  227. </div>
  228. </div>
  229. </body>