Skip to content

Commit 9948cb1

Browse files
authored
Update script.js
1 parent b1e4557 commit 9948cb1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

resources/script.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,6 @@ function onPhoneFrameLoaded() {
1010
getPatterns();
1111
}
1212

13-
window.onresize = function() {
14-
drawLayout();
15-
}
16-
1713
function beginRandomMode() {
1814
isModeChanged = true;
1915
currentMode = "random";
@@ -48,6 +44,8 @@ function drawVerticalLayout() {
4844
document.getElementById('text_container').style.left = "5%";
4945
}
5046

47+
window.addEventListener('orientationchange', drawLayout);
48+
5149
function drawPoints() {
5250
var gridSize = 3;
5351
var startX = 0;

0 commit comments

Comments
 (0)