-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRun2.html
32 lines (30 loc) · 877 Bytes
/
Run2.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
<!DOCTYPE html>
<html>
<head>
<link id="panic" rel="stylesheet" href="style.css" />
<script src="script.js"></script>
<div class="panic">
<button onclick="window.location.href = 'https://www.google.com';">
panic
</button>
</div>
</head>
<body>
<iframe id="github-iframe" src=""></iframe>
<script>
fetch('https://api.github.com/repos//hubot-mubot/contents/src/mubot.coffee')
.then(function(response) {
return response.json();
}).then(function(data) {
var iframe = document.getElementById('github-iframe');
iframe.src = 'data:text/html;base64,' + encodeURIComponent(data['content']);
});
</script>
<footer>
<nav>
<a href="./GamesList.html">ok. heres game</a>
<a href="./index.html">ok. heres homepage</a>
</nav>
</footer>
</body>
</html>