Skip to content

Commit db5a5ae

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

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

resources/script.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ var sortedPatterns;
55
var currentMode = "random";
66
var isModeChanged = false;
77

8+
window.addEventListener('orientationchange', drawLayout);
9+
810
function onPhoneFrameLoaded() {
911
drawLayout();
1012
getPatterns();
@@ -44,8 +46,6 @@ function drawVerticalLayout() {
4446
document.getElementById('text_container').style.left = "5%";
4547
}
4648

47-
window.addEventListener('orientationchange', drawLayout);
48-
4949
function drawPoints() {
5050
var gridSize = 3;
5151
var startX = 0;

0 commit comments

Comments
 (0)