Culture: Difference between revisions

From Anarchy In Action
No edit summary
m (Test 2 iframe imbedding back to github api)
Line 1: Line 1:
// Align to the culture; Feed it and from it
<!DOCTYPE html>
<html>
<head>
    <title>TEST</title>
</head>
<body>


// The starting point was long ago; Jump right in where you feel comfortable
<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>


<script type="text/javascript">
</body>
    function prepareFrame() {
</html>
        var ifrm = document.createElement("iframe");
        ifrm.setAttribute("src", "https://github.com/AnarchyInAction/TheGoldenPath/blob/main/Data/FoodAgricultureWater");
        ifrm.style.width = "640px";
        ifrm.style.height = "480px";
        document.body.appendChild(ifrm);
    }
</script>

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>