Subversion Repositories eFlore/Applications.eflore-consultation

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
547 jpm 1
/**
2
 * Contient les fonction JS communes à l'ensemble des parties d'eflore (popup.php, index.php).
3
 *
4
 */
5
 
6
$(document).ready(function() {
7
	$('a.lien-externe, a.lien_externe').on('click', ouvrirFenetreExterne);
8
	$('.mailto').on('click', ouvrirPopUpContact);
9
});
10
 
11
function ouvrirFenetreExterne(event) {
12
	event.preventDefault();
13
	window.open($(this).attr('href'));
14
}
15
 
16
function ouvrirPopUpContact(event) {
17
	event.preventDefault();
18
	window.open($(this).attr('href'), "Contact",
19
		'height=500, width=500, top=100, left=100, toolbar=no, menubar=no, location=no, resizable=yes, scrollbars=yes, status=no');
20
}