-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
37 lines (34 loc) · 1.04 KB
/
index.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
<!DOCTYPE html>
<html>
<head></head>
<body>
<h1>Amazing iframe integration goes here</h1>
<p>Please mind that the links are pointing to the actual hosted newsroom.</p>
<div style="border:1px dotted red">
<script type="text/javascript" charset="utf-8" id="mnd-script">
(function(){
const query =
location.search.substring(1)
.split('&')
.map(function(qs) { return qs.split('=') });
const newsroomName =
(
query.find(function (qs) { return qs[0] === 'newsroom' })
|| [null, "press"]
)[1];
const serverName =
(
query.find(function (qs) { return qs[0] === 'server' })
|| [null, "mynewsdesk.com"]
)[1];
const s = document.createElement('script');
s.type = 'text/javascript';
s.async = true;
s.src = 'https://' + newsroomName + '.' + serverName + '/hosted_newsroom.js';
const i = document.getElementsByTagName('script')[0];
i.parentNode.insertBefore(s, i);
})();
</script>
</div>
</body>
</html>