Pre template modifications
This commit is contained in:
23
static/js/generic.js
Normal file
23
static/js/generic.js
Normal 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");
|
||||
});
|
||||
});
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user