Skip to content

Commit 5064d31

Browse files
committed
updated basiljs logo for p5js
when embedding to template, be sure to include the window.onblur/onfocus script - to save visitors browser resources if they have it open in a tab.
1 parent 1743b0f commit 5064d31

File tree

3 files changed

+117
-0
lines changed

3 files changed

+117
-0
lines changed

assets/basiljslogo/index.html

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<script src="p5.min.js"></script>
6+
<script src="sketch.js"></script>
7+
<script type="text/javascript">
8+
window.onblur = function() { noLoop(); }
9+
window.onfocus = function() { loop(); }
10+
</script>
11+
</head>
12+
<body>
13+
</body>
14+
</html>

0 commit comments

Comments
 (0)