-
Notifications
You must be signed in to change notification settings - Fork 0
/
embed-code.txt
21 lines (18 loc) · 981 Bytes
/
embed-code.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script type="text/javascript">
if(window.addEventListener) {
window.addEventListener("message", receiveMessage, false);
} else if (window.attachEvent){
window.attachEvent("message", receiveMessage);
}
function receiveMessage(event) {
if (event.origin === "http://[your-presenter].appspot.com") {
window.location.hash = event.data;
}
}
</script>
<iframe frameborder="0" src="http://[your-presenter].appspot.com/p/[your-prefix]?l=[locale-code]#[default-chart-hash]" allowtransparency="true" class="daxplore-presenter-iframe" id="daxplore-presenter" style="width:100%; height: 1000px"></iframe>
<script type="text/javascript">
if(window.location.hash) {
document.getElementById("daxplore-presenter").src = "http://[your-presenter].appspot.com/p/[your-prefix]?l=[locale-code]" + window.location.hash;
}
</script>