Skip to content

Commit

Permalink
changed cmd command
Browse files Browse the repository at this point in the history
  • Loading branch information
aaj2005 committed Feb 24, 2024
2 parents fe04df0 + e7e5912 commit 5819a2a
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions APIStuff/Google Maps API/test copy.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://pyscript.net/alpha/pyscript.css" />
<script defer src="https://pyscript.net/alpha/pyscript.js"></script>
</head>
<body>
<b><p>Today is <u><label id='today'></label></u></p></b>

<script>
function pr() {
return "hello";
}

// JavaScript equivalent of pyscript.write()
function write(id, text) {
document.getElementById(id).innerText = text;
}

write('today', new Date().toLocaleDateString('en-US', { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' }));
write('label', pr());
</script>

<!-- Corrected iframe -->
<iframe
width="600"
height="450"
style="border:0"
loading="lazy"
allowfullscreen
referrerpolicy="no-referrer-when-downgrade"
src="">
</iframe>
</body>
</html>

0 comments on commit 5819a2a

Please sign in to comment.