index.html 13 KB

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