Pre template modifications

This commit is contained in:
2024-03-05 09:08:24 +01:00
parent e6a5fad2db
commit f23c9e3953
15 changed files with 531 additions and 64 deletions

23
static/js/generic.js Normal file
View File

@@ -0,0 +1,23 @@
$(document).ready(function(){
$("#facebook_link").click(function(){
window.open("https://www.facebook.com/", "_blank");
});
$("#twitter_x_link").click(function(){
window.open("https://twitter.com/", "_blank");
});
$("#ul_link").click(function(){
window.open("https://www.uni-lj.si/", "_blank");
});
$("#aris_link").click(function(){
window.open("https://www.arrs.si/", "_blank");
});
$("#cjvt_link").click(function(){
window.open("https://www.cjvt.si/", "_blank");
});
$("#clarin_link").click(function(){
window.open("https://www.clarin.si/", "_blank");
});
$("#apache_link").click(function(){
window.open("https://www.apache.org/licenses/LICENSE-2.0", "_blank");
});
});

View File

@@ -128,6 +128,21 @@ document.addEventListener("DOMContentLoaded", function(event) {
$('#advanced-tree-expand i').text('add');
}
});
$('#compare-settings').hide();
var compareExpanded = false;
$('#compare-expand').bind('click', function(e) {
if (!compareExpanded){
compareExpanded = true;
$('#compare-settings').show('fast');
$('#compare-expand i').text('remove');
} else {
compareExpanded = false;
$('#compare-settings').hide('fast');
$('#compare-expand i').text('add');
}
});
});
$("#submit-form").submit( function(eventObj) {