2022-06-07 17:22:42 +00:00
|
|
|
$(document).ready(function () {
|
|
|
|
// Load it when the #screenshot tab is in use, so we dont give a slow experience when waiting for the text diff to load
|
|
|
|
window.addEventListener('hashchange', function (e) {
|
|
|
|
toggle(location.hash);
|
|
|
|
}, false);
|
|
|
|
|
|
|
|
toggle(location.hash);
|
|
|
|
|
|
|
|
function toggle(hash_name) {
|
|
|
|
if (hash_name === '#screenshot') {
|
|
|
|
$("img#screenshot-img").attr('src', screenshot_url);
|
2022-06-07 17:53:13 +00:00
|
|
|
$("#settings").hide();
|
2022-08-15 16:56:53 +00:00
|
|
|
} else if (hash_name === '#error-screenshot') {
|
|
|
|
$("img#error-screenshot-img").attr('src', error_screenshot_url);
|
|
|
|
$("#settings").hide();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
else {
|
2022-06-07 17:53:13 +00:00
|
|
|
$("#settings").show();
|
2022-06-07 17:22:42 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|