-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.html
42 lines (37 loc) · 1.44 KB
/
app.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
<!DOCTYPE html>
<html>
<head>
<title>App - Embeddable App Test</title>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript" src="https://rawgit.luolix.top/ternarylabs/porthole/master/src/porthole.min.js"></script>
<script type="text/javascript" src="https://rawgit.luolix.top/millermedeiros/js-signals/master/dist/signals.min.js"></script>
<script type="text/javascript" src="https://rawgit.luolix.top/millermedeiros/Hasher/master/dist/js/hasher.min.js"></script>
<script type="text/javascript" src="//unhassle.brennanmceachran.com/embedded-app.js"></script>
</head>
<body>
<h1>APP!</h1>
<p><a href="#home">Home</a> | <a href="#about">About</a> | <a href="#contact">Contact</a></p>
<script type="text/javascript">
(function () {
'use strict';
var embeddedApp = EmbeddableApp.create({
proxyUrl: 'http://unhassle.brennanmceachran.com/proxy.html',
resize: true,
proxyHash: true
});
embeddedApp.on({
offsetModal: function (payload) {
// offset the size of the modal depending on where the user
// is on the parent page.
}
});
//embeddedApp.send('backdrop', {show: true});
}());
setTimeout(function(){
$('body').append(
'<hr><p>hello EVERYONE</p><hr><p>hello EVERYONE</p><hr><p>hello EVERYONE</p><hr><p>hello EVERYONE</p><hr><p>hello EVERYONE</p>'
)
},5000)
</script>
</body>
</html>