/
shared.html
63 lines (52 loc) · 2.33 KB
/
shared.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
<!DOCTYPE html>
<!-- saved from url=(0070)https://excel.officeapps.live.com/clipboard/shared.aspx?WacCluster=HK1 -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><title>
Shared Clipboard iframe content
</title>
<script type="text/javascript">
var sharedClipboardSettings = {
whitelistOriginComponents: 1,
staticContentURLPrefix: "https://c1-excel-15.cdn.office.net:443/clipboard/s/161091937950_App_Scripts/",
sharedClipboardExpirationInMinutes: 3600,
clipboardPromiseTimeoutInMinutes: 2,
sharedClipboardSchemaVersion: 1,
sharedClipboardHostingApp: "excel",
sharedClipboardHostingApps: "[\"broadcast\", \"excel\", \"onenote\", \"powerpoint\", \"view\", \"visio\", \"word-edit\", \"word-view\"]",
sharedClipboardHostingEnvironments: "[\"officeapps.live.com\", \"officeapps-df.live.com\", \"online.office.de\", \"gov.online.office365.us\", \"dod.online.office365.us\", \"partner.officewebapps.cn\"]"
};
var es6PromiseScriptFileName = 'es6-promise.auto.min.js';
var sharedClipboardScriptFileName = 'sharedclipboard.min.js';
var promisesCapability = typeof Promise !== 'undefined' && typeof Promise.resolve === 'function' && Promise.resolve(0) &&
typeof Promise.resolve(0).then === 'function';
function loadScript(fileName) {
var scriptElement = document.createElement('script');
scriptElement.setAttribute('src', getScriptSrc(fileName));
scriptElement.setAttribute('type', 'text/javascript');
scriptElement.setAttribute('async', 'false');
scriptElement.setAttribute('defer', 'defer');
var body = document.getElementsByTagName('body')[0];
body.appendChild(scriptElement);
}
function getScriptSrc(fileName) {
var prefix = sharedClipboardSettings.staticContentURLPrefix;
if (!prefix) {
return fileName;
}
var queryMark = prefix.indexOf('?');
if (queryMark < 0) {
return prefix + fileName;
}
var postfix = prefix.substr(queryMark);
prefix = prefix.substr(0, queryMark);
return prefix + fileName + postfix;
}
</script>
</head>
<body onload="window.sharedClipboard.initialize();">
<script>
if (!promisesCapability) {
loadScript(es6PromiseScriptFileName);
}
loadScript(sharedClipboardScriptFileName);
</script><script src="./sharedclipboard.min.js.download" type="text/javascript" async="false" defer="defer"></script>
</body></html>