So I have this js code for an image gallery:
(this.settings.update_window_hash) {
var thumb_link = this.images[this.current_index].thumb_link;
if (thumb_link.attr("id")) {
window.location.hash = "#image-"+ thumb_link.attr("id"); //#url
} else {
window.location.hash = "#image-"+ this.current_index;
};
};
So as you've probably assumed this appends $image-(int) to the url. So if I have a gallery with multiple images if the thir image is selected the url will look like this: mysite.com/gallery.html#image-3
All good. But I dont really like this to be appended to the end of the url. So is there any problem if I remove this part of the script entirely? So regardless the number of image currently selected the url will look like this: mysite.com/gallery.html
I've tested it and it works okay. But I'm not very experienced with javascript and I want to make sure I'm not making a mistake. So IS IT OKAY IF I REMOVE THIS SCRIPT ENTIRELY? WILL IT CAUSE ANY PROBLEMS?
HUGE THANKS.