Browse Source

ppt预览水印

陈精华 2 years ago
parent
commit
9860df9b6d
1 changed files with 5 additions and 1 deletions
  1. 5 1
      server/src/main/resources/web/ppt.ftl

+ 5 - 1
server/src/main/resources/web/ppt.ftl

@@ -7,7 +7,7 @@
     <link href="pptx/bootstrap/css/bootstrap.min.css" rel="stylesheet">
     <link href="pptx/idocv/idocv_common.min.css" rel="stylesheet">
     <link href="pptx/jquery.contextMenu.css" rel="stylesheet">
-
+    <#include "*/commonHeader.ftl">
     <#--  手机端预览兼容  -->
     <script type="text/javascript">
         var windowWidth = document.documentElement.clientWidth;
@@ -16,6 +16,10 @@
             var redirectUrl = window.location.pathname + '?type=mobile' + (!!searchStr ? ('&' + searchStr) : '');
             window.location.replace(redirectUrl);
         }
+        /*初始化水印*/
+        window.onload = function () {
+            initWaterMark();
+        }
     </script>
 
     <style type="text/css">