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.

63 lines
1.1 KiB
JavaScript

5 years ago
$(document).ready(function(){
5 years ago
5 years ago
// When the user clicks the button, open the modal
$( '.button-tos, #button-right').click(function() {
5 years ago
var text_tos = $(this).text().toLowerCase() + '.html';
console.log(text_tos);
5 years ago
$('#myModal').css('display', 'block');
$('html, body').css('position', 'fixed');
4 years ago
$('.tof').addClass('tofhide');
});
$('.close').click(function() {
4 years ago
$('#myModal').css('display', 'none');
$('html, body').css("position", "relative");
4 years ago
$('.tof').removeClass('tofhide')
window.location.replace("index.html#contents");
return false;
4 years ago
});
5 years ago
// 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);
5 years ago
$('#t_myModal').css('display', 'block');
$('html, body').css('position', 'fixed');
5 years ago
});
5 years ago
$('.t_close').click(function() {
$('#t_myModal').css('display', 'none');
$('html, body').css("position", "relative");
window.location.replace("index.html#contents");
return false;
5 years ago
treaty_iframe.src = treaty_iframe.src;
5 years ago
});
5 years ago
})