Skip to content

Commit 4e3c20a

Browse files
committed
Edited image_galleries.html
1 parent cbe4793 commit 4e3c20a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

html/image_galleries.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@
7575

7676
const default_blur_radius = 16; // 16px
7777

78-
const statistics_help = 'L - Loaded\nF - Failed\nT - Total\nLR - Loaded Rate\n\nG - Gallery\nA - All';
78+
const scroll_top = 800;
7979

80-
var scroll_top = 800;
80+
const statistics_help = 'L - Loaded\nF - Failed\nT - Total\nLR - Loaded Rate\n\nG - Gallery\nA - All';
8181

8282
function detect_scroll() {
8383
if (document.body.scrollTop > scroll_top || document.documentElement.scrollTop > scroll_top) {
@@ -235,7 +235,7 @@
235235
}
236236

237237
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://'))) {
239239
var image_id = '';
240240
var image_url = '';
241241
var image_item;

0 commit comments

Comments
 (0)