You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
1.1 KiB
JavaScript

$(document).ready(function(){
// When the user clicks the button, open the modal
$( '.button-tos, #button-right').click(function() {
var text_tos = $(this).text().toLowerCase() + '.html';
console.log(text_tos);
$('#myModal').css('display', 'block');
$('html, body').css('position', 'fixed');
$('.tof').addClass('tofhide');
});
$('.close').click(function() {
$('#myModal').css('display', 'none');
$('html, body').css("position", "relative");
$('.tof').removeClass('tofhide')
window.location.replace("index.html#contents");
return false;
});
// When the user clicks right menu, open the modal
$('.button-ht, #t_button-right').click(function() {
var text_treaty = $(this).text().toLowerCase().replace(/\s/g, "-") + '.html';
console.log(text_treaty);
$('#t_myModal').css('display', 'block');
$('html, body').css('position', 'fixed');
});
$('.t_close').click(function() {
$('#t_myModal').css('display', 'none');
$('html, body').css("position", "relative");
window.location.replace("index.html#contents");
return false;
});
})