Skip to content

Commit

Permalink
update demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Fershad authored and mrchrisadams committed Aug 1, 2022
1 parent e954d6b commit b48a88b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions public/index.html
Expand Up @@ -24,9 +24,8 @@ <h2 class="result">
</h2>


<script src="./index.js"></script>
<script src="/dist/iife/index.js"></script>
<script>

let emissions = new co2.co2();

async function main() {
Expand All @@ -36,7 +35,9 @@ <h2 class="result">
// is the result green?
const result = await hosting.check("google.com")
// should return true or false
console.log({result})
console.log({
result
})

document.querySelector('form').addEventListener('submit', function (event) {
event.preventDefault();
Expand All @@ -54,4 +55,4 @@ <h2 class="result">
</script>
</body>

</html>
</html>

0 comments on commit b48a88b

Please sign in to comment.