Updated paths for deployment.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
// Global array to store input names
|
||||
var globalInputList = ['tree_size_min', 'tree_size_max', 'file', 'association_measures', 'labeled_trees', 'node_type_upos', 'fixed_order', 'input_url', 'node_type_lemma', 'root_restriction', 'node_type_form', 'frequency_threshold'];
|
||||
//const URLSearchParams = window.URLSearchParams;
|
||||
|
||||
// Function to store values to local storage
|
||||
function storeValuesToLocalstorage() {
|
||||
globalInputList.forEach(function(inputName) {
|
||||
@@ -75,24 +75,6 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
},
|
||||
format: format
|
||||
});
|
||||
/*
|
||||
// OLD VERSION
|
||||
var perfEntries = performance.getEntriesByType("navigation");
|
||||
|
||||
for (var i = 0; i < perfEntries.length; i++) {
|
||||
if (perfEntries[i].type === 'back_forward') {
|
||||
window.location.href = '?noreload=true'
|
||||
return;
|
||||
}
|
||||
}
|
||||
var urlParams = new URLSearchParams(window.location.search);
|
||||
if (!urlParams.has('noreload')) {
|
||||
if (Object.keys(localStorage).length > 1) {
|
||||
localStorage.clear();
|
||||
window.location.href = '?noreload=true'
|
||||
}
|
||||
|
||||
}*/
|
||||
|
||||
var urlParams = new URLSearchParams(window.location.search);
|
||||
var lang='en'
|
||||
@@ -103,17 +85,15 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
var perfEntries = performance.getEntriesByType("navigation");
|
||||
for (var i = 0; i < perfEntries.length; i++) {
|
||||
if (perfEntries[i].type === 'back_forward') {
|
||||
window.location.href = '/?lang='+lang;
|
||||
window.location.href = '/stark/?lang='+lang;
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if (urlParams.has('reload')) {
|
||||
// if (Object.keys(localStorage).length > 1) {
|
||||
localStorage.clear();
|
||||
window.location.href = '/?lang='+lang;
|
||||
// }
|
||||
window.location.href = '/stark/?lang='+lang;
|
||||
|
||||
}
|
||||
});
|
||||
@@ -123,11 +103,9 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
|
||||
$('.sidenav').sidenav();
|
||||
|
||||
}); // end of document ready
|
||||
});
|
||||
$(document).ready(function(){
|
||||
$('.modal').modal();
|
||||
// var instance = M.Modal.getInstance(elem);
|
||||
// instance.open();
|
||||
|
||||
$('.input-field input[type="checkbox"]').on('change', function() {
|
||||
var isChecked = $('.input-field input[type="checkbox"]:checked').length > 0;
|
||||
@@ -186,5 +164,5 @@ document.addEventListener("DOMContentLoaded", function(event) {
|
||||
storeValuesToLocalstorage();
|
||||
return true;
|
||||
});
|
||||
})(jQuery); // end of jQuery name space
|
||||
})(jQuery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user