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.

40 lines
823 B
Plaintext

$(document).ready(function(){
// When the user clicks the button, open the modal
$( '.button-tos').click(function() {
var text_tos = $(this).text().toLowerCase() + '.html';
console.log(text_tos);
$('iframe#tosview').attr('src', text_tos);
$('#myModal').css('display', 'block');
});
$('.close').click(function() {
$('#myModal').css('display', 'none');
});
// When the user clicks right menu, open the modal
$('.button-ht').click(function() {
var text_treaty = $(this).text().toLowerCase().replace(/\s/g, "-") + '.html';
console.log(text_treaty);
$('iframe#treatyview').attr('src', text_treaty);
$('#t_myModal').css('display', 'block');
});
$('.t_close').click(function() {
$('#t_myModal').css('display', 'none');
treaty_iframe.src = treaty_iframe.src;
});
})