File tree Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Expand file tree Collapse file tree 2 files changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,14 @@ import Mousetrap from 'mousetrap';
99
99
killDisco ( ) ;
100
100
killHay ( ) ;
101
101
fullMode = false ;
102
- sizeiframe ( getRandom ( minViewportWidth , 500 ) ) ;
102
+ sizeiframe (
103
+ getRandom (
104
+ minViewportWidth ,
105
+ config . ishViewportRange !== undefined
106
+ ? parseInt ( config . ishViewportRange . s [ 1 ] )
107
+ : 500
108
+ )
109
+ ) ;
103
110
}
104
111
105
112
$ ( '#pl-size-s' ) . on ( 'click' , function ( e ) {
@@ -119,10 +126,12 @@ import Mousetrap from 'mousetrap';
119
126
fullMode = false ;
120
127
sizeiframe (
121
128
getRandom (
122
- minViewportWidth ,
123
129
config . ishViewportRange !== undefined
124
- ? parseInt ( config . ishViewportRange . s [ 1 ] )
125
- : 500
130
+ ? parseInt ( config . ishViewportRange . m [ 0 ] )
131
+ : 500 ,
132
+ config . ishViewportRange !== undefined
133
+ ? parseInt ( config . ishViewportRange . m [ 1 ] )
134
+ : 800
126
135
)
127
136
) ;
128
137
}
@@ -133,7 +142,7 @@ import Mousetrap from 'mousetrap';
133
142
} ) ;
134
143
135
144
Mousetrap . bind ( 'ctrl+shift+m' , function ( e ) {
136
- goLarge ( ) ;
145
+ goMedium ( ) ;
137
146
return false ;
138
147
} ) ;
139
148
@@ -147,9 +156,7 @@ import Mousetrap from 'mousetrap';
147
156
config . ishViewportRange !== undefined
148
157
? parseInt ( config . ishViewportRange . l [ 0 ] )
149
158
: 800 ,
150
- config . ishViewportRange !== undefined
151
- ? parseInt ( config . ishViewportRange . l [ 1 ] )
152
- : 1200
159
+ maxViewportWidth
153
160
)
154
161
) ;
155
162
}
You can’t perform that action at this time.
0 commit comments