Commits

Yang Zhang committed eb3fba4

fix a little bug

  • Participants
  • Parent commits 21885d5

Comments (0)

Files changed (2)

File static/main.js

 function getOriginalWidthOfImg(img_element) {
     var t = new Image();
     t.src = (img_element.getAttribute ? img_element.getAttribute("src") : false) || img_element.src;
+    if(t.width > 940){
+        return 940;
+    }
     return t.width;
 }
 function keyBorad(){

File templates/showchapter.html

         {%if page.image%}
             <span><img id='comic_image' src="{{page.image}}"></span>
         {%else%}
-            <span><img id='comic_image' src="{{page.page_index}}"></span>
+            <span><img id='comic_image' src="{{page.file_link}}"></span>
         {%endif%}
         </div>
     </div>