MediaWiki:Common.js : Différence entre versions

De Wiki ODR
Aller à : navigation, rechercher
(Page créée avec « Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. : jQuery(document).ready(function ($) { $('#checkbox').change(functio... »)
 
 
(33 révisions intermédiaires par un autre utilisateur non affichées)
Ligne 1 : Ligne 1 :
 
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
 
/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
 +
// Can also be used with $(document).ready()
  
jQuery(document).ready(function ($) {
+
/*Carré ODR*/
 +
$(document).ready(function() {
 +
  $("#carre_odr").click(function(){
 +
document.getElementById("carre_odr").style.cursor="pointer";
 +
      window.open('./Sous_portail_odr','mywindow');
 +
      return false;
 +
  });
 +
});
  
  $('#checkbox').change(function(){
+
/*Carré démarches qualité*/
    setInterval(function () {
+
$(document).ready(function() {
        moveRight();
+
  $("#carre-demarches").click(function(){
    }, 3000);
+
document.getElementById("carre-demarches").style.cursor="pointer";
  });
+
      window.open('./Sous-portail-qualite','mywindow');
 
+
      return false;
var slideCount = $('#slider ul li').length;
+
  });
var slideWidth = $('#slider ul li').width();
+
});
var slideHeight = $('#slider ul li').height();
 
var sliderUlWidth = slideCount * slideWidth;
 
 
$('#slider').css({ width: slideWidth, height: slideHeight });
 
 
$('#slider ul').css({ width: sliderUlWidth, marginLeft: - slideWidth });
 
 
    $('#slider ul li:last-child').prependTo('#slider ul');
 
  
    function moveLeft() {
+
/*Carré politiques de dev rural*/
        $('#slider ul').animate({
+
$(document).ready(function() {
            left: + slideWidth
+
  $("#carre7").click(function(){
        }, 200, function () {
+
document.getElementById("carre7").style.cursor="pointer";
            $('#slider ul li:last-child').prependTo('#slider ul');
+
      window.open('./Sous_portail_politique_dev','mywindow');
            $('#slider ul').css('left', '');
+
      return false;
        });
+
  });
    };
+
});
  
    function moveRight() {
+
/*Carré suivi des données*/
        $('#slider ul').animate({
+
$(document).ready(function() {
            left: - slideWidth
+
  $("#carre-suivi").click(function(){
        }, 200, function () {
+
document.getElementById("carre-suivi").style.cursor="pointer";
            $('#slider ul li:first-child').appendTo('#slider ul');
+
      window.open('./Sous_portail_suivi','mywindow');
            $('#slider ul').css('left', '');
+
      return false;
        });
+
  });
    };
+
});
  
    $('a.control_prev').click(function () {
+
/*Carré Environnement*/
        moveLeft();
+
$(document).ready(function() {
    });
+
  $("#carre10").click(function(){
 +
document.getElementById("carre10").style.cursor="pointer";
 +
      window.open('./Sous_portail_environnement','mywindow');
 +
      return false;
 +
  });
 +
});
  
    $('a.control_next').click(function () {
+
/*Carré données etc*/
        moveRight();
+
$(document).ready(function() {
    });
+
  $("#donnees-spatiales").click(function(){
 +
document.getElementById("donnees-spatiales").style.cursor="pointer";
 +
      window.open('./Sous_portail_donnees','mywindow');
 +
      return false;
 +
  });
 +
});
  
 +
 +
 +
/*Carré FEADER*/
 +
$(document).ready(function() {
 +
  $("#carre-feader").click(function(){
 +
document.getElementById("carre-feader").style.cursor = "pointer";
 +
      window.open('http://www.europe-en-france.gouv.fr/','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 +
/******** Sous-portail ********/
 +
/*Dernier article*/
 +
$(document).ready(function() {
 +
  $("#carre_derarticle1").click(function(){
 +
document.getElementById("carre_derarticle1").style.border="none" ;
 +
      window.open('./Utilisateur','mywindow');
 +
      return false;
 +
  });
 +
});
 +
 +
$(document).ready(function() {
 +
  $("#carre_derarticle2").click(function(){
 +
document.getElementById("carre_derarticle2").style.border="none" ;
 +
      window.open('./Dossier_thématique','mywindow');
 +
      return false;
 +
  });
 
});
 
});

Version actuelle datée du 29 septembre 2017 à 11:22

/* Tout JavaScript ici sera chargé avec chaque page accédée par n’importe quel utilisateur. */
// Can also be used with $(document).ready()

/*Carré ODR*/
$(document).ready(function() {
   $("#carre_odr").click(function(){
document.getElementById("carre_odr").style.cursor="pointer";
      window.open('./Sous_portail_odr','mywindow');
      return false;
   });
});

/*Carré démarches qualité*/
$(document).ready(function() {
   $("#carre-demarches").click(function(){
document.getElementById("carre-demarches").style.cursor="pointer";
      window.open('./Sous-portail-qualite','mywindow');
      return false;
   });
});

/*Carré politiques de dev rural*/
$(document).ready(function() {
   $("#carre7").click(function(){
document.getElementById("carre7").style.cursor="pointer";
      window.open('./Sous_portail_politique_dev','mywindow');
      return false;
   });
});

/*Carré suivi des données*/
$(document).ready(function() {
   $("#carre-suivi").click(function(){
document.getElementById("carre-suivi").style.cursor="pointer";
      window.open('./Sous_portail_suivi','mywindow');
      return false;
   });
});

/*Carré Environnement*/
$(document).ready(function() {
   $("#carre10").click(function(){
document.getElementById("carre10").style.cursor="pointer";
      window.open('./Sous_portail_environnement','mywindow');
      return false;
   });
});

/*Carré données etc*/
$(document).ready(function() {
   $("#donnees-spatiales").click(function(){
document.getElementById("donnees-spatiales").style.cursor="pointer";
      window.open('./Sous_portail_donnees','mywindow');
      return false;
   });
});



/*Carré FEADER*/
$(document).ready(function() {
   $("#carre-feader").click(function(){
document.getElementById("carre-feader").style.cursor = "pointer"; 
      window.open('http://www.europe-en-france.gouv.fr/','mywindow');
      return false;
   });
});

/******** Sous-portail ********/
/*Dernier article*/
$(document).ready(function() {
   $("#carre_derarticle1").click(function(){
document.getElementById("carre_derarticle1").style.border="none" ; 
      window.open('./Utilisateur','mywindow');
      return false;
   });
});

$(document).ready(function() {
   $("#carre_derarticle2").click(function(){
document.getElementById("carre_derarticle2").style.border="none" ; 
      window.open('./Dossier_thématique','mywindow');
      return false;
   });
});