File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 75
75
76
76
const default_blur_radius = 16 ; // 16px
77
77
78
- const statistics_help = 'L - Loaded\nF - Failed\nT - Total\nLR - Loaded Rate\n\nG - Gallery\nA - All' ;
78
+ const scroll_top = 800 ;
79
79
80
- var scroll_top = 800 ;
80
+ const statistics_help = 'L - Loaded\nF - Failed\nT - Total\nLR - Loaded Rate\n\nG - Gallery\nA - All' ;
81
81
82
82
function detect_scroll ( ) {
83
83
if ( document . body . scrollTop > scroll_top || document . documentElement . scrollTop > scroll_top ) {
235
235
}
236
236
237
237
function load_gallery ( ) {
238
- if ( document . getElementById ( 'base_link' ) . value != '' && document . getElementById ( 'images_amount' ) . value != '' && is_any_radio_checked ( 'file_format' ) ) {
238
+ if ( ( document . getElementById ( 'base_link' ) . value != '' && document . getElementById ( 'images_amount' ) . value != '' && is_any_radio_checked ( 'file_format' ) ) && ( document . getElementById ( 'base_link' ) . value . startsWith ( 'https://' ) || document . getElementById ( 'base_link' ) . value . startsWith ( 'http://' ) ) ) {
239
239
var image_id = '' ;
240
240
var image_url = '' ;
241
241
var image_item ;
You can’t perform that action at this time.
0 commit comments