-
Notifications
You must be signed in to change notification settings - Fork 0
/
pdf-2021-1105.html
617 lines (578 loc) · 24.1 KB
/
pdf-2021-1105.html
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
*{margin:0;padding:0}
body,html{margin:0;padding:0;background-color:#fff;height:100%}
#loading{width:16px;height:16px;background:url(/ananas/css/loading.gif) no-repeat center;position:absolute;top:50%;left:50%}
#note{background:#fafbfd;font-size:14px;display:none}
#note1-wrap{background:#fafbfd;font-size:14px}
#hl{width:0;transition:width .2s;-webkit-transition:width .2s}
#note1{padding:10px;font-size:12px}
.popWindow{background-color:grey;width:100%;height:100%;left:0;top:0;opacity:.5;z-index:1;position:absolute}
.maskLayer{width:68px;height:66px;background:url(/ananas/css/play-document.png) no-repeat center;position:absolute;top:42%;left:42%;z-index:10;cursor:pointer}
.Divhover{position:absolute;right:0;bottom:35px;z-index:2}
.Con{position:relative;height:40px;width:160px;overflow:hidden}
.RightArrow{position:absolute;right:0;bottom:0;display:inline-block;width:18px;height:32px;cursor:pointer}
.OtherOpen{display:inline-block;background:rgba(0,0,0,.5);color:#fff;font-size:14px;padding:0 14px;line-height:32px;border-radius:35px 0 0 35px;float:left;position:absolute;right:-127px;bottom:0}
#docContainer{height:590px;}
.imglook{width:100%;height: calc(100% - 48px);overflow:auto}
.imglook .documentImg{border-bottom:1px solid #000}
.imglook .mkeNum{width:100%;text-align:center;position:fixed;bottom:0;background-color:#f6f6f6;font-size:13px;color:grey}
.imglook .mkeLbtn{background:url(/ananas/css/bnt_left.png) no-repeat;width:60px;height:60px;position:fixed;left:20px;top:50%;margin-top:-30px;z-index:10;cursor:pointer;display:none}
.imglook .mkeRbtn{background:url(/ananas/css/bnt_right.png) no-repeat;width:60px;height:60px;position:fixed;right:20px;top:50%;margin-top:-30px;z-index:10;cursor:pointer;display:none}
.line1{height:8px;background:#ebf0f5;position:relative}
.line2,.line3{position:absolute;left:0;top:0;height:8px;width:251px;opacity:.3}
.line2{background:#8b8b8b}
.line3{background:#4fcf5a;opacity:1}
.tipStyle{padding-left:51px;height:54px;font-size:14px;color:#646873;line-height:54px;background:url(/ananas/modules/video/wrong.png) no-repeat 21px 17px}
.tipStyle span{color:#646873;font-size:12px}
.tipStyle a{font-size:14px;color:#646873;text-decoration:none}
.making{background:url(/ananas/modules/video/tips.png) no-repeat 21px 17px}
.downloadContent{display:none;position:absolute;width:32px;height:32px;top:9px;right:24px;z-index:1}
.download{position:absolute;top:0;right:0;background:#000;width:32px;height:32px;opacity:.1;border-radius:32px;z-index:2}
.downloadBtn{position:absolute;top:6px;right:6px;width:20px;height:20px;z-index:100}
.downloadBtn>a{display:inline-block;width:20px;height:20px;background:url(/ananas/css/download.png) no-repeat left top;background-size:100%}
.mkeNum_bom{background:#fbfbfb;height:48px;line-height:48px;padding:0 10px;width:100%;box-sizing:border-box}
.fl{float:left}
.turnpage_Btn{width:104px;margin:0 auto;padding-top:7px}
.turnpage_Btn a{display:inline-block;width:34px;height:34px;margin:0 9px;float:left}
.turnpage_Btn a.preBtn{background:url(/ananas/css/preBtn.png) no-repeat;background-size:100%}
.turnpage_Btn a.preBtn:hover{background:url(/ananas/css/preBtnHover.png) no-repeat;background-size:100%}
.turnpage_Btn a.nextBtn{background:url(/ananas/css/nextBtn.png) no-repeat;background-size:100%}
.turnpage_Btn a.nextBtn:hover{background:url(/ananas/css/nextBtnHover.png) no-repeat;background-size:100%}
.BtnRight{float:right;position:relative;padding-top:5px}
.downLoad,.fullsrceen,.otherOpen,.report{position:relative}
.downLoad{display:none}
.otherOpenIcon{display:inline-block;width:22px;height:22px;margin-left:12px;float:left}
.otherOpenIcon:hover{background:#ecf2de;border-radius:2px}
.tipsCon{position:absolute;left:-30px;top:-42px;width:104px;height:37px;background:rgba(24,30,51,.8);border-radius:4px;opacity:0;visibility:hidden;-webkit-transition:opacity .1s 1s,visibility 0s .3s;transition:opacity .1s 1s,visibility 0s .2s;text-align:center;line-height:37px;color:#fff;font-size:12px}
.tipsCon i{display:block;width:0;height:0;border:solid rgba(24,30,51,.8) 4px;position:absolute;left:50%;margin-left:-2px;top:37px;bottom:auto;border-color:rgba(24,30,51,.8) transparent transparent transparent}
.tipsCon i.active{display:block;width:0;height:0;border:solid rgba(63,63,63,.8) 4px;position:absolute;left:50%;margin-left:-4px;bottom:40px;top:auto;border-color:transparent transparent rgba(24,30,51,.8) transparent}
.downLoad:hover .tipsCon,.fullsrceen:hover .tipsCon,.otherOpen:hover .tipsCon,.report:hover .tipsCon{display:block;opacity:1;visibility:visible;-webkit-transition:opacity .3s .1s,visibility .3s .1s;transition:opacity .3s .1s,visibility .3s .1s}
.downLoadIcon,.fullsrceenIcon,.reportIcon{display:inline-block;width:22px;height:22px;margin-left:12px;float:left;cursor:pointer}
.report{padding-right: 10px;}
.reportLine{height:10px;border-right: 1px solid #dbdbdb;width:1px;margin-top: 9px;}
.downLoadIcon:hover,.fullsrceenIcon:hover,.reportIcon:hover{background:#ecf2de;border-radius:2px}
.wid70{width:50px;left:-3px}
.pageInfo{color:#A2A2A2}
.num{color:#333}
.all{color:#A2A2A2}
</style>
<script type="text/javascript" src="/static/js/domain.js"></script>
<script type="text/javascript" src="/ananas/ext-4.2.0.663/all-classes.js?v=2021-0401-1110"></script>
<script type="text/javascript" src="/ananas/swfobject/flashchecker.js"></script>
<script type="text/javascript" src="/ananas/swfobject/swfobject.js"></script>
<script type="text/javascript" src="/ananas/ext/ed_complete.js"></script>
<script type="text/javascript" src="/ananas/ueditor/documentJob.js?v=2019-0312-1128"></script>
<script type="text/javascript" src="/ananas/ueditor/form.utils.js"></script>
<!--<script type="text/javascript" src="https://officeonline.superlib.com/3rd/js/messenger.js"></script> -->
<script type="text/javascript" src="/ananas/screenfull/screenfull.min.js"></script>
<script type="text/javascript">
Ext.Ajax.autoAbort = true;
var timer, percent = 0;
var downloadNum = window.frameElement.getAttribute('download');
function getCookie(objname){
var arrstr = document.cookie.split("; ");
for(var i = 0;i < arrstr.length;i ++){
var temp = arrstr[i].split("=");
if(temp[0] == objname){
return unescape(temp[1]);
}
}
};
Ext.onReady(function () {
function setTopicName(list) {
if(Ext.fly(window.frameElement).parent().select("#topicList") != null){
if (list && list.length == 0) {
return;
}
Ext.fly(window.frameElement).parent().select("#topicType").setHTML('知识点:');
var spanList = "";
for (var i = 0, len = list.length; i < len; i++) {
spanList += "<span>" + list[i] + "</span>";
}
Ext.fly(window.frameElement).parent().select("#topicContent").setHTML(spanList);
}
}
var requestSatusResourceDownGrade = parent.requestSatusResourceDownGrade;
if (requestSatusResourceDownGrade && requestSatusResourceDownGrade == 1) {
var tipImg = '<img src="/ananas/css/downgradeBlueTip.jpg" width="676" height="540">';
Ext.select('body').setHTML(tipImg);
return;
}
var setting = parent.AttachmentSetting,
data = Ext.decode(window.frameElement.getAttribute('data'));
if (setting && setting.control) {
var attachments = setting.attachments,
spec = data.objectid,
s = '',
m = {};
for (var i = 0; i < attachments.length; i++) {
m = attachments[i];
if (m.property && m.property.objectid) {
s = m.property.objectid;
if (spec == s) {
if (m.topicList) {
setTopicName(m.topicList);
}
window._jobindex = i;
break;
}
}
}
}
request();
//timer = setInterval(request, 5000);
if (checkJobFinish()) {
greenligth();
} /* else if (hasJobToFinish()) {
mask();
} */
});
function request() {
var objectid = window.frameElement.getAttribute('objectid'),
note = Ext.get('note'),
hl = Ext.get('hl'),
note1Wrap = Ext.get('note1-wrap'),
note1 = Ext.get('note1');
if (percent <= 100) {
hl.setWidth((percent += 5) + "%");
}
if (!objectid) {
return;
}
//Ext.get('objectid').setHTML('(文件ID:' + objectid + ')');
Ext.Ajax.request({
url: '/ananas/status/' + objectid + '?flag=normal',
success: function (response) {
eval("var data = " + response.responseText);
switch (data.status) {
case 'success':
note1Wrap.remove();
if (top.location.protocol.indexOf("https:") != -1 && data.download.indexOf("http:") != -1) {
data.download = data.download.replace("http:", "https:");
} else if (top.location.protocol.indexOf("http:") != -1 && data.download.indexOf("https:") != -1) {
data.download = data.download.replace("https:", "http:");
}
renderImg(data) || renderOfficeOnline(data);
bindToggleLook(data);
bindReport(data);
if (timer)
clearInterval(timer);
break;
case 'failed':
if (timer)
clearInterval(timer);
note1Wrap.remove();
note.show();
break;
case 'waiting':
note1Wrap.update('<div class="line1"><div class="line3"></div></div><p class="tipStyle making">文件正在转码,您无需在此页面等待【9001】</p>');
break;
case 'converting':
case 'transfer':
note1Wrap.update('<div class="line1"><div class="line2"></div></div><p class="tipStyle">文件上传中【9002】</p>');
break;
}
Ext.get('loading').hide();
},
failure: function (resp) {
if (resp.status == 0) {
timer && clearInterval(timer);
note1Wrap.update('<div class="line1"><div class="line3"></div></div><p class="tipStyle">文件加载超时,请刷新页面重试【9003】</p>');
Ext.get('loading').hide();
} else {
timer && clearInterval(timer);
note1Wrap.update('<div class="line1"><div class="line2"></div><p class="tipStyle">文件加载失败,请稍后再试【9004】</p>');
Ext.get('loading').hide();
}
}
});
}
function renderSWF(data) {
var objectid = data.objectid;
var page = data.pagenum;
var baseSrc = data.swf;
var fls = flashChecker();
if (!(Ext.isIpad || Ext.isIos || Ext.isMac) && !fls.hasFlash) {
var href = "http://www.adobe.com/go/getflashplayer";
Ext.get(Ext.query("#reader")).setHTML('您没有安装flashplayer,请到<a href="' + href + '" target="_blank">www.adobe.com</a>下载安装。');
return false;
}
var swfUrl = '/flexreader/FlexReader.swf';
/* if(document.domain=="haust.edu.cn"){
swfUrl='http://mooc1.haust.edu.cn/flexreader/FlexReader.swf';
} */
swfobject.embedSWF(
swfUrl,
'reader',
'100%', '100%',
'10.1.85.3',
'',
{objectId: objectid, pageCount: page, baseSrc: ServerHosts.CS_HOST + '/mtiView/reader'},
{
quality: 'high',
wmode: 'opaque',
allowScriptAccess: 'sameDomain',
swLiveConnect: 'true',
allowFullScreen: 'true'
}
);
data.openStyle = 'flash';
return true;
}
function renderOfficeOnline(data) {
if (Ext.isIE && Ext.isIE8m) {
Ext.get('toggleBtn').hide();
return false;
}
var filename = data.filename;
var suffixTypes = ['xls', 'xlsx', 'ppt', 'pptx', 'doc', 'docx', 'pdf'];
if (filename) {
var suffixIndex = filename.lastIndexOf('.');
if (suffixIndex < 0) {
return false;
}
var suffixName = filename.substring(suffixIndex + 1, filename.length);
var isExists = Ext.Array.contains(suffixTypes, suffixName);
if (!isExists) {
return false;
}
}
var objectid = data.objectid;
var tpl = [
'<iframe id="officeonlineview" width="676" height="542" onload="" allowfullscreen="true"',
' src="https://officeonline.superlib.com/3rd/proxy.html?objectid={objectid}&suffix={suffixName}">',
'</iframe>'];
var dataParam = {};
dataParam.objectid = objectid;
dataParam.suffixName = suffixName;
var el = new Ext.XTemplate(tpl).insertAfter('toggleBtn', dataParam);
data.openStyle = 'officeonline';
return true;
}
function renderImg(data) {
var controlLook = docReadControl();
var containerTpl = "";
if (!controlLook) {
containerTpl = '<div class="Divhover" id="toggleBtn">' +
'</div>' +
'<div class="imglook" id="img">' +
'<div class="mkeNum" id="navigation">' +
'<div class="fl pageInfo" style="padding-left: 10px;line-height:28px;"><span class="num">1</span> / <span class="all">1</span></div>' +
'<div class="BtnRight" style="padding-top:0;margin-right:10px">' +
'<div class="report fl" id="reportDiv" style="margin-top:4px;">' +
'<a class="reportIcon" id="report" href="javascript:void(0)"><img src="/ananas/css/report.png" width="100%" height="100%"/></a>' +
'<div class="tipsCon wid70"><i></i>举报</div>' +
'</div>' +
'<div class="reportLine fl"></div>' +
'<div class="otherOpen fl" id="otherOpen" style="margin-top:3px">' +
'<span class="otherOpenIcon"><img src="/ananas/css/qtIcon.png" width="100%" height="100%"/></span>' +
'<div class="tipsCon"><i></i>其他方式打开</div>' +
'</div>' +
'<div class="downLoad fl" id="downLoad" style="margin-top:3px">' +
'<a class="downLoadIcon" id="downloadUrl" href="javascript:void(0)" target="_blank"><img src="/ananas/css/downloaddoc.png" width="100%" height="100%"/></a>' +
'<div class="tipsCon wid70"><i></i>下载</div>' +
'</div>' +
'<div class="fullsrceen fl" style="margin-top:3px">' +
'<span class = "fullsrceenIcon"><img src = "/ananas/css/full.png" width = "100%" height = "100%"/></span>' +
'<div class="tipsCon wid70" id="fullScreenTip"><i></i>全屏</div>' +
'</div>' +
'</div>' +
'</div>' +
'<div class="mkeLbtn" title="上一页"></div>' +
'<div class="mkeRbtn" title="下一页"></div>' +
'</div>';
window.frameElement.style['height'] = 570 + 'px';
} else {
window.frameElement.style['height'] = 590 + 'px';
containerTpl = '<div class="imglook" id="img">' +
'<div class="mkeNum mkeNum_bom" id="navigation">' +
'<div class="fl pageInfo"><span class="num">1</span> / <span class="all">1</span></div>' +
'<div class="turnpage_Btn">' +
'<a href="javascript:void(0);" class="preBtn"></a>' +
'<a href="javascript:void(0);" class="nextBtn"></a>' +
'</div>' +
'<div class="BtnRight">' +
'<div class="report fl" id="reportDiv" style="margin-top:4px;">' +
'<a class="reportIcon" id="report" href="javascript:void(0)"><img src="/ananas/css/report.png" width="100%" height="100%"/></a>' +
'<div class="tipsCon wid70"><i></i>举报</div>' +
'</div>' +
'<div class="reportLine fl"></div>' +
'<div class="otherOpen fl" id="otherOpen">' +
'<span class="otherOpenIcon"><img src="/ananas/css/qtIcon.png" width="100%" height="100%"/></span>' +
'<div class="tipsCon"><i></i>其他方式打开</div>' +
'</div>' +
'<div class="downLoad fl" id="downLoad">' +
'<a class="downLoadIcon" id="downloadUrl" href="javascript:void(0)" target="_blank"><img src="/ananas/css/downloaddoc.png" width="100%" height="100%"/></a>' +
'<div class="tipsCon wid70"><i></i>下载</div>' +
'</div>' +
'<div class="fullsrceen fl">' +
'<span class = "fullsrceenIcon"><img src = "/ananas/css/full.png" width = "100%" height = "100%"/></span>' +
'<div class="tipsCon wid70" id="fullScreenTip"><i></i>全屏</div>' +
'</div>' +
'</div>' +
'</div>';
}
Ext.select('#docContainer').setHTML(containerTpl);
if (downloadNum == "1") {
Ext.get("downLoad").show();
Ext.select('#downloadUrl').set({"href": data.download});
}
var pagenum = data.pagenum;
var iframedata = window.data;
// var btime = iframedata.btime;
// var timing = iframedata.timing;
var jobid = iframedata.jobid;
// var start = iframedata.start || 1;
var end = pagenum;
var url = data.thumb;
//var limitTime = btime ? (timing || 1) : 1;
var tpl = '';
var pageSize = 5;
if (pagenum > 2) {
tpl = tpl + '<img class="documentImg" index="' + 1 + '" src="' + url
+ 1 + '.png" style="width:100%;">';
tpl = tpl + '<img class="documentImg" index="' + 2 + '" src="' + url
+ 2 + '.png" style="width:100%;">';
} else {
for (var i = 1; i <= pagenum; i++) {
tpl = tpl + '<img class="documentImg" index="' + i + '" src="' + url
+ i + '.png" style="width:100%;">';
}
}
Ext.select('.all').setHTML(pagenum);
new Ext.XTemplate(tpl).insertBefore('navigation');
if (controlLook) {
initChangeControl();
} else {
Ext.select('.imglook').on('scroll', function (event) {
var imgEle = Ext.get(event.target);
var top = imgEle.getScrollTop();
var page = whichPage(top);
var curPageNum = Ext.query(".documentImg").length;
if (page == curPageNum && curPageNum != pagenum && this.scrollHeight - this.clientHeight - this.scrollTop < 10) {
if (pagenum > curPageNum + pageSize) {
var htmlStr = "";
for (var i = page + 1; i <= page + pageSize; i++) {
htmlStr += '<img class="documentImg" index="' + i + '" src="' + url
+ i + '.png" style="width:100%;">';
}
new Ext.XTemplate(htmlStr).append('img');
} else {
var htmlStr = "";
for (var i = page + 1; i <= pagenum; i++) {
htmlStr += '<img class="documentImg" index="' + i + '" src="' + url
+ i + '.png" style="width:100%;">';
}
new Ext.XTemplate(htmlStr).append('img');
}
}
if (page > 0) {
Ext.select('.num').setHTML(page);
}
});
}
data.openStyle = 'imglook';
fullscreenEvent();
return true;
function limitReadTime(page) {
if (page == end) {
!checkJobFinish() && finishJob();
}
if (page != 1) {
Ext.select('.preBtn').show();
}
if (page != pagenum) {
Ext.select('.nextBtn').show();
}
}
function changePage(offset) {
var nowPage = Ext.select('.num').first().getHTML();
var nextPage = Number(nowPage) + Number(offset);
var len = Ext.query(".documentImg").length;
if (nowPage == len && offset > 0) {
var addHtml = '<img class="documentImg" index="' + nextPage + '" src="' + url
+ nextPage + '.png" style="width:100%;display: none;">';
new Ext.XTemplate(addHtml).append('img');
}
Ext.select('.documentImg').applyStyles({
"display": "none"
});
Ext.select('.documentImg[index=' + nextPage + ']').applyStyles({
"display": ""
});
Ext.select('.num').setHTML(nextPage);
if (nextPage == "1") {
Ext.select('.preBtn').hide();
}
if (nextPage == pagenum) {
Ext.select('.nextBtn').hide();
}
limitReadTime(nextPage);
}
function initChangeControl() {
changePage(0);
Ext.select('.preBtn').on('click', function (ele) {
changePage(-1);
});
Ext.select('.nextBtn').on('click', function (ele) {
changePage(1);
});
Ext.select("#otherOpen").setStyle({
"display": "none"
});
}
function whichPage(scrollTop) {
if (scrollTop == 0) {
return 1;
}
var imgHeights = [];
Ext.select('.documentImg').each(function (ele, c, index) {
var height = Ext.get(ele).getHeight();
imgHeights[index] = height;
});
var viewHeight = 542;
var sumHeight = 0;
for (var i = 0; i < imgHeights.length; i++) {
sumHeight += imgHeights[i];
if (scrollTop + viewHeight <= sumHeight) {
return i + 1;
}
}
return -1;
}
}
function fullscreenEvent() {
if (!screenfull.enabled) {
Ext.select('.fullscreen, .fullsrceen').first().remove();
return false;
}
Ext.select('.fullscreen, .fullsrceen').on('click', function (ele) {
var imglook = Ext.select('.imglook').first().dom;
screenfull.toggle(imglook);
});
Ext.select('.fullsrceen').on('mouseover', function (ele) {
var tips = "";
if (screenfull.isFullscreen) {
tips = "<i></i>取消全屏";
} else {
tips = "<i></i>全屏";
}
Ext.select('#fullScreenTip').setHTML(tips);
});
Ext.select('.fullscreen').on('mouseover', function (ele) {
if (screenfull.isFullscreen) {
Ext.select('.fullscreen').set({"title": "退出全屏"});
} else {
Ext.select('.fullscreen').set({"title": "全屏"});
}
});
}
function bindReport(data) {
var reportUrl = "https://groupweb.chaoxing.com/pc/report/reportIndex";
var sourceContent = {"downUrl" : data.download, "name" : data.filename, "puid" : getCookie("_uid")};
Ext.select('.report').on('click', function (ele) {
var params = new Array();
params.push({name : "type", value : "clouddisk"});
params.push({name : "sourceIdstr", value : data.objectid});
params.push({name : "sourceContent", value : encodeURIComponent(JSON.stringify(sourceContent))})
FORM_UTILS.post(reportUrl, params, "_blank");
});
}
function bindToggleLook(data) {
Ext.select('.RightArrow').on('mouseover', function (ele) {
Ext.get(this).hide();
Ext.select(".OtherOpen").setStyle({
"right": "0px"
});
});
Ext.select('.OtherOpen').on('mouseleave', function (ele) {
Ext.select('.RightArrow').show();
Ext.get(this).setStyle({
"right": "-127px"
});
});
Ext.select('.OtherOpen, .otherOpen').on('click', function (ele) {
var openStyle = data.openStyle;
if (openStyle == 'imglook') {
Ext.get('img').setStyle("display", "none");
if (Ext.get('officeonlineview')) {
Ext.get('officeonlineview').setStyle("display", "");
} else {
renderOfficeOnline(data);
}
Ext.select(".toggleImg").show();
if (downloadNum == "1") {
Ext.select("#downLoad1").show();
Ext.select('#downloadUrl1').set({"href": data.download});
Ext.get('bR').setStyle("padding-right", "10px");
} else {
Ext.get('bR').setStyle("padding-right", "40px");
}
data.openStyle = 'officeonline';
} else if (openStyle == 'officeonline') {
Ext.get('officeonlineview').setStyle("display", "none");
Ext.select(".toggleImg").hide();
Ext.get('img').setStyle("display", "");
data.openStyle = 'imglook';
}
});
}
</script>
<script type="text/javascript">
function mask() {
document.getElementById('popWindow').style.display = 'block';
document.getElementById('maskLayer').style.display = 'block';
}
function unMaskAndFinishJob() {
document.getElementById('popWindow').style.display = 'none';
document.getElementById('maskLayer').style.display = 'none';
!checkJobFinish() && finishJob();
}
</script>
</head>
<body oncontextmenu="return false">
<div class="downloadContent" id="downloadContent">
<div class="download" id="download"></div>
<div class="downloadBtn" id="downloadBtn"></div>
</div>
<div id="popWindow" class="popWindow" style="display: none;"></div>
<div id="maskLayer" class="maskLayer" style="display: none;" onclick="unMaskAndFinishJob()"></div>
<div id="loading"></div>
<div id="note">
<div class="line1">
<div class="line2"></div>
</div>
<p class="tipStyle">文档转码失败,请使用其他软件另存后重新上传【9005】</p>
</div>
<div id="note1-wrap">
<div class="line1">
<div class="line3" id="hl"></div>
</div>
<p class="tipStyle making">正在为您加载文件... </p>
</div>
<div id="docContainer">
</div>
<div class="toggleImg" style="display: none;">
<div class="BtnRight" style="padding-top:0;" id="bR">
<div class="report fl" id="reportDiv" style="margin-top:4px;">
<a class="reportIcon" id="report" href="javascript:void(0)"><img src="/ananas/css/report.png" width="100%" height="100%"/></a>
<div class="tipsCon wid70"><i></i>举报</div>
</div>
<div class="reportLine fl"></div>
<div class="otherOpen fl" id="otherOpen1">
<span class="otherOpenIcon"><img src="/ananas/css/qtIcon.png" width="100%" height="100%"/></span>
<div class="tipsCon"><i></i>其他方式打开</div>
</div>
<div class="downLoad fl" id="downLoad1">
<a class="downLoadIcon" id="downloadUrl1" href="javascript:void(0)" target="_blank"><img src="/ananas/css/downloaddoc.png" width="100%" height="100%"/></a>
<div class="tipsCon wid70"><i></i>下载</div>
</div>
</div>
</div>
</div>
</body>
</html>