|
|
@@ -13,76 +13,6 @@
|
|
|
============================*/
|
|
|
|
|
|
|
|
|
-
|
|
|
-/*============================
|
|
|
- SWITCH COULEURS
|
|
|
-==============================
|
|
|
- Change la palette de
|
|
|
- couleurs du site
|
|
|
-============================*/
|
|
|
-
|
|
|
-
|
|
|
-$('#site-colors').on('change', function() {
|
|
|
- jQuery('#bt-removable-css').remove();
|
|
|
- jQuery('head').append('<link type="text/css" rel="stylesheet" href="css/skins/skin-'+this.value+'.css" id="bt-removable-css">');
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
-/*============================
|
|
|
- AFFICHAGE SLIDER
|
|
|
-==============================
|
|
|
- Affiche ou masque
|
|
|
- le diaporama
|
|
|
-============================*/
|
|
|
-
|
|
|
-$("#slider-on").click(function() {
|
|
|
- $('.rev_slider').show();
|
|
|
- if(!$('#slider-off').hasClass('button-border')){
|
|
|
- $('#slider-off').addClass('button-border');
|
|
|
- }
|
|
|
- if( $('#slider-on').hasClass('button-border')){
|
|
|
- $('#slider-on').removeClass('button-border');
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
-$("#slider-off").click(function() {
|
|
|
- $('.rev_slider').hide();
|
|
|
- if(!$('#slider-on').hasClass('button-border')){
|
|
|
- $('#slider-on').addClass('button-border');
|
|
|
- }
|
|
|
- if( $('#slider-off').hasClass('button-border')){
|
|
|
- $('#slider-off').removeClass('button-border');
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
-
|
|
|
-/*============================
|
|
|
- AFFICHAGE RESEAU
|
|
|
-==============================
|
|
|
- Affiche ou masque
|
|
|
- les éléments réseau
|
|
|
-============================*/
|
|
|
-
|
|
|
-$("#reseau-on").click(function() {
|
|
|
- $('.reseau').show();
|
|
|
- if(!$('#reseau-off').hasClass('button-border')){
|
|
|
- $('#reseau-off').addClass('button-border');
|
|
|
- }
|
|
|
- if( $('#reseau-on').hasClass('button-border')){
|
|
|
- $('#reseau-on').removeClass('button-border');
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
-$("#reseau-off").click(function() {
|
|
|
- $('.reseau').hide();
|
|
|
- if(!$('#reseau-on').hasClass('button-border')){
|
|
|
- $('#reseau-on').addClass('button-border');
|
|
|
- }
|
|
|
- if( $('#reseau-off').hasClass('button-border')){
|
|
|
- $('#reseau-off').removeClass('button-border');
|
|
|
- }
|
|
|
-});
|
|
|
-
|
|
|
/*============================
|
|
|
Slick carousels
|
|
|
============================*/
|
|
|
@@ -176,22 +106,6 @@ $(document).ready(function(){
|
|
|
showMap($('#structure-map').first());
|
|
|
}
|
|
|
|
|
|
- // Automatically open popups if they have the display-modal class
|
|
|
- // $('.modal.show-at-start').each(function() {
|
|
|
- // console.log(this);
|
|
|
- // $.magnificPopup.open({
|
|
|
- // items: { src: this },
|
|
|
- // type: "inline",
|
|
|
- // modal: true,
|
|
|
- // mainClass: "mfp-no-margins mfp-fade",
|
|
|
- // closeBtnInside: !0,
|
|
|
- // fixedContentPos: !0,
|
|
|
- // removalDelay: 500
|
|
|
- // }, 0);
|
|
|
- // $(this).addClass('show');
|
|
|
- // $(this).setStyle('padding-right: 15px; display: block;');
|
|
|
- // });
|
|
|
-
|
|
|
// Automatically open popups if they have the display-modal class
|
|
|
// (the only/dirty way I found to force the opening of the popups is to trgigger the click on the link...)
|
|
|
$('.trigger-on-load').trigger('click');
|