/[LeafOK_CVS]/fenglin/bbs/themes/default/view_article.view.php
ViewVC logotype

Diff of /fenglin/bbs/themes/default/view_article.view.php

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.30 by sysadm, Tue Apr 29 10:27:33 2025 UTC Revision 1.34 by sysadm, Wed May 7 12:12:32 2025 UTC
# Line 99  Line 99 
99                  font-size: 16px;                  font-size: 16px;
100                  text-decoration: line-through;                  text-decoration: line-through;
101          }          }
102            IMG.auto_adjust
103            {
104                    display: none;
105            }
106          </style>          </style>
         <script type="text/javascript" src="../js/img_adjust.js"></script>  
107          <script src="../js/polyfill.min.js"></script>          <script src="../js/polyfill.min.js"></script>
108          <script src="../js/axios.min.js"></script>          <script src="../js/axios.min.js"></script>
109            <script src="../js/jquery.min.js"></script>
110          <script type="text/javascript">          <script type="text/javascript">
111          function ch_page(page)          function ch_page(page)
112          {          {
# Line 307  Line 311 
311                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',                  baseURL: document.location.protocol + '//' + document.location.hostname + (document.location.port=='' ? '' : (':' + document.location.port)) + '/bbs/',
312          });          });
313    
314          window.addEventListener("load", () => {          $(document).ready(function() {
315                  var s = document.getElementById("ex_dir");                  $("#ex_dir").on("change", function(e) {
316                  if (s)                          set_ex_dir($("#ex_dir").find(":selected").val());
317                  {                  });
                         s.addEventListener("change", (e) => {  
                                 set_ex_dir(s.value);  
                         });  
                 }  
318    
319                  var f = document.getElementById("move_article");                  $("#move_article").on("submit", (e) => {
320                  if (f)                          e.preventDefault();
321                  {                          if ($("#move_article").find("#sid").find(":selected").val() > 0)
322                          f.addEventListener("submit", (e) => {                          {
323                                  e.preventDefault();                                  move_article($("#move_article").find("#sid").find(":selected").val());
324                                  move_article(f.sid.value);                          }
325                          });                  });
                 }  
         });  
326    
327                    $("img[class=auto_adjust]").on("load", function() {
328                            if ($(this).width() > {$BBS_img_max_width})
329                            {
330                                    $(this).width({$BBS_img_max_width});
331                            }
332                            $(this).show();
333                    })
334                    .on("mousewheel", function(e) {
335                            var zoom = parseFloat($(this).css("zoom"));
336                            zoom *= (1 + e.originalEvent.wheelDelta / 1000);
337                            if (zoom > 0)
338                            {
339                                    $(this).css("zoom", zoom);
340                            }
341                    });
342            });
343          </script>          </script>
344          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">          <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3013347141025996" crossorigin="anonymous">
345          </script>          </script>
# Line 505  Line 519 
519                                          case "tiff":                                          case "tiff":
520                                                  $atta_list .= <<<HTML                                                  $atta_list .= <<<HTML
521                                                          <br />                                                          <br />
522                                                          <img onmousewheel="return bbs_img_zoom(event, this)" src="dl_file.php?aid={$attachment['aid']}">                                                          <img class="auto_adjust" src="dl_file.php?aid={$attachment['aid']}">
523                                                  HTML;                                                  HTML;
524                                                  break;                                                  break;
525                                  }                                  }
# Line 701  Line 715 
715          </body>          </body>
716          </html>          </html>
717          HTML;          HTML;
 //?>  


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1