Browse Source

20210821 8-37 修改

邪性 3 years ago
parent
commit
2fd6e5bd04
3 changed files with 24 additions and 18 deletions
  1. 13 9
      .idea/workspace.xml
  2. 10 8
      js/components.js
  3. 1 1
      js/exam_list.js

+ 13 - 9
.idea/workspace.xml

@@ -1,10 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project version="4">
   <component name="ChangeListManager">
-    <list default="true" id="82570a17-8430-4238-ae79-81bbbd2de81f" name="Default Changelist" comment="">
-      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
-      <change beforePath="$PROJECT_DIR$/js/components.js" beforeDir="false" afterPath="$PROJECT_DIR$/js/components.js" afterDir="false" />
-    </list>
+    <list default="true" id="82570a17-8430-4238-ae79-81bbbd2de81f" name="Default Changelist" comment="" />
     <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
     <option name="SHOW_DIALOG" value="false" />
     <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -97,12 +94,12 @@
     <session id="-1918643531">
       <usages-collector id="statistics.file.extensions.edit">
         <counts>
-          <entry key="txt" value="50" />
+          <entry key="txt" value="55" />
         </counts>
       </usages-collector>
       <usages-collector id="statistics.file.types.edit">
         <counts>
-          <entry key="PLAIN_TEXT" value="50" />
+          <entry key="PLAIN_TEXT" value="55" />
         </counts>
       </usages-collector>
       <usages-collector id="statistics.lifecycle.project">
@@ -695,12 +692,18 @@
       <option name="project" value="LOCAL" />
       <updated>1629540188150</updated>
     </task>
-    <option name="localTasksCounter" value="39" />
+    <task id="LOCAL-00039" summary="20210821 16-00">
+      <created>1629540890203</created>
+      <option name="number" value="00039" />
+      <option name="presentableId" value="LOCAL-00039" />
+      <option name="project" value="LOCAL" />
+      <updated>1629540890203</updated>
+    </task>
+    <option name="localTasksCounter" value="40" />
     <servers />
   </component>
   <component name="ToolWindowManager">
     <frame x="-120" y="34" width="1933" height="899" extended-state="0" />
-    <editor active="true" />
     <layout>
       <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.16550988" />
       <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
@@ -811,7 +814,8 @@
     <MESSAGE value="20210821 14-21" />
     <MESSAGE value="20210821 16-51" />
     <MESSAGE value="20210821 17-30" />
-    <option name="LAST_COMMIT_MESSAGE" value="20210821 17-30" />
+    <MESSAGE value="20210821 16-00" />
+    <option name="LAST_COMMIT_MESSAGE" value="20210821 16-00" />
   </component>
   <component name="editorHistoryManager">
     <entry file="file://$PROJECT_DIR$/h_news/new_detail.html" />

+ 10 - 8
js/components.js

@@ -523,12 +523,14 @@ $(function () {
     imglistdom.hide()
   });
   // 拖动
-  $("#imglist>div>img")[0].addEventListener("mousewheel", function (e) {
-    e = e || window.event;
-    if (e.wheelDelta == 120) {
-      scale(-0.5)
-    } else {
-      scale(0.5)
-    }
-  })
+  try {
+    $("#imglist>div>img")[0].addEventListener("mousewheel", function (e) {
+      e = e || window.event;
+      if (e.wheelDelta == 120) {
+        scale(-0.5)
+      } else {
+        scale(0.5)
+      }
+    })
+  } catch (err) { }
 })

+ 1 - 1
js/exam_list.js

@@ -1,7 +1,7 @@
 $(function () {
   $("img").lazyload();
   const globaldata = {
-    active: 0,
+    active: null,
   }
   let params = lxd.parseUrl(window.location.href).query,
     my_nav = $(".my-nav"), my_nav_lis = my_nav.find("li"), id = params["id"] || 0;