Skip to content

Commit 90a2c2d

Browse files
committed
Simplified the CDN example
Added github example
1 parent bd8691f commit 90a2c2d

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

brython/github_install/index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<script src="https://raw.githack.com/brython-dev/brython/master/www/src/brython.js"></script>
6+
</head>
7+
<body onload="brython()">
8+
<script type="text/python">
9+
import browser
10+
browser.alert("Hello Real Python!")
11+
</script>
12+
</body>
13+
</html>

brython/zero_install/index.html

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
<html>
33
<head>
44
<meta charset="utf-8">
5-
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.9/brython.min.js" async></script>
5+
<script src="https://cdnjs.cloudflare.com/ajax/libs/brython/3.8.9/brython.min.js"></script>
66
</head>
77
<body onload="brython()">
88
<script type="text/python">
99
import browser
10-
print("Before Alert")
11-
browser.alert("Hello Real Python!"")
12-
browser.console.log("After Alert")
10+
browser.alert("Hello Real Python!")
1311
</script>
1412
</body>
1513
</html>

0 commit comments

Comments
 (0)