Culture: Difference between revisions
From Anarchy In Action
D A Earwig (talk | contribs) No edit summary |
D A Earwig (talk | contribs) m (Test 2 iframe imbedding back to github api) |
||
Line 1: | Line 1: | ||
// | <!DOCTYPE html> | ||
<html> | |||
<head> | |||
<title>TEST</title> | |||
</head> | |||
<body> | |||
// | <iframe id="github-iframe" src=""></iframe> | ||
<script> | |||
fetch('https://api.github.com/repos/AnarchyInAction/TheGoldenPath/blob/main/Data/FoodAgricultureWater') | |||
.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> | |||
< | </body> | ||
</html> | |||
</ |
Revision as of 14:34, 18 March 2024
<!DOCTYPE html> <html> <head> <title>TEST</title> </head> <body> <iframe id="github-iframe" src=""></iframe> <script> fetch('https://api.github.com/repos/AnarchyInAction/TheGoldenPath/blob/main/Data/FoodAgricultureWater') .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> </body> </html>