多单位版国产化地质资料管理系统
zhai
2025-12-18 3c6f6c1e3016e38146a4c46be6e7b625c35591f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>
 
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">
    <title>文件浏览</title>
    <link rel="stylesheet" href="static/plugins/html5media/media/styles.min.css" type="text/css"/>
    <script type="text/javascript" src="static/plugins/jquery/jquery.min.js"></script>
    <script type="text/javascript" src="static/plugins/html5media/html5media.js"></script>
    <script src="static/scripts/ptLimitFloat.js"></script>
    <style>
        html,
        body {
            height: 100%;
            overflow: hidden;
        }
 
        ul,
        li {
            list-style: none;
            margin: 0px;
            padding: 0px;
        }
 
        .bg {
            background-color: #000;
            opacity: 0.5;
            width: 100%;
            height: 30px;
            position: absolute;
            top: 0px;
            z-index: 11;
        }
 
        .strongest-con {
            position: absolute;
            width: 100%;
            overflow: hidden;
            height: 30px;
            top: 0px;
            color: #fff;
            z-index: 12;
        }
 
        .strongest-con ul {
            height: 30px;
            position: absolute;
            left: 0px;
            top: 0;
        }
 
        .strongest-con li {
            float: left;
            width: 15px;
            height: 30px;
            line-height: 30px;
        }
 
        .pt-view {
            width: 100%;
            height: 100%;
            z-index: 1;
            position: absolute;
        }
 
        #piaofu {
            background-color: rgba(0, 0, 0, 0.4);
            color: #fff;
            z-index: 12;
            font-size: ${watermarkFontsize/2}px;
        }
 
        /*video默认全屏按钮*/
        video::-webkit-media-controls-fullscreen-button {
            display: none !important;
        }
 
    </style>
</head>
<body>
<c:if test="${enableWatermark}">
    <!--下面一行是漂浮模式-->
    <div id="piaofu">${watermarkText}</div>
</c:if>
<video id="video" class="video" width="800" height="558" controlsList="nodownload" autoplay controls preload>
    <source src="general/${attachViewUrl}"></source>
    <!--         <source src="static/plugins/html5media/media/video.mp4?fdsfasdf=fdssd"></source> -->
</video>
<script>
    document.oncontextmenu = function () {
        //return false;
    }
 
    $(function () {
        resizeWin();
 
        $(window).resize(function () {
            resizeWin();
        })
 
        <c:if test="${enableWatermark}">
        PiaoFu(); //漂浮调用
        </c:if>
    });
 
    function resizeWin() {
        var $video = $("#video");
        if ($video.length > 0) {
            var ww = $(window).width();
            var wh = $(window).height();
            $video.attr("width", ww);
            $video.attr("height", wh);
 
            <c:if test="${enableWatermark}">
            //漂浮要加的这句话,得到尺寸
            AdMoveLimitConfig.Resize($video);
            </c:if>
        }
    }
 
    function PiaoFu() { //漂浮
        var ad = new AdMoveLimit("piaofu", "video");
        ad.Run();
    }
</script>
</body>
</html>