123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398 |
- (function($) { $(document).ready(function() {
- //console.log($('div#menu-trigger-level1'));
- /* accordéon pour des views pane */
- $('div.accordion-h2.accordion-h2-views div.view-header').click(function() {
- $(this).siblings('div.view-content').toggle('fast', function() {
- $(this).parent().parent().parent().toggleClass('accordion-h2-opened');
- });
- });
- /* accordéon pour des panels pane */
- $('div.accordion-h2.accordion-h2-panel > h2.pane-title').click(function() {
- $(this).siblings('div.pane-content').toggle('fast', function() {
- $(this).parent().toggleClass('accordion-h2-opened');
- });
- });
- /* accordéon auto-exclusifs pour des panels pane */
- $('div.accordion-h2-ex.accordion-h2-panel > h2.pane-title').click(function() {
- $(this).parent().siblings('div.accordion-h2-ex').children('div.pane-content').hide();
- $(this).parent().siblings('div.accordion-h2-ex').removeClass('accordion-h2-opened');
- $(this).siblings('div.pane-content').toggle('fast', function() {
- $(this).parent().toggleClass('accordion-h2-opened');
- });
- });
- /* accordéon pour des panels pane */
- $('div.accordion-trigger').click(function() {
- $(this).toggleClass('accordion-h2-opened');
- $(this).parent().parent().siblings('div.accordion-content').toggle('fast', function() {
- });
- $(this).siblings('div.accordion-content').toggle('fast', function() {
- });
- });
- $('div#menu-trigger-level1').click(function() {
- $('#block-menu_block-3').slideDown('slow', function() {
- // Animation complete.
- });
- $('div#menu-trigger-level1').hide();
- $('div#menu-trigger-level1-off').show();
- });
- $('div#menu-trigger-level1-off').click(function() {
- $('#block-menu_block-3').slideUp('slow', function() {
- // Animation complete.
- });
- $('div#menu-trigger-level1-off').hide();
- $('div#menu-trigger-level1').show();
- });
- $('.flexslider').flexslider({
- /*selector: 'ul > li',*/
- animation: "fade",
- animationLoop: true,
- itemWidth: "100%",
- /*itemMargin: 0,
- minItems: 1,*/
- controlNav: false, //Boolean: Create navigation for paging control of each clide? Note: Leave true for manualControls usage
- directionNav: false, //Boolean: Create navigation for previous/next navigation? (true/false)
- prevText: "Précédent", //String: Set the text for the "previous" directionNav item
- nextText: "Suivant",
- /*maxItems: 10,*/
- /*start: function(slider){
- $('body').removeClass('loading');
- }*/
- });
- /* AMSTERDAM */
- $("#point-nid-870").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* BARCELONE */
- $("#point-nid-871").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* BERLIN */
- $("#point-nid-872").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* BIRMINGHAM */
- $("#point-nid-873").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* BORDEAUX */
- $("#point-nid-869").popover({
- title: false,
- trigger: "hover",
- content: "<ul><li class='popsu1'><a href='/popsu1/bordeaux/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "</ul>"
- });
- /* BRUXELLES */
- $("#point-nid-874").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Copenhague */
- $("#point-nid-875").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* dordrecht */
- $("#point-nid-961").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* dunkerque */
- $("#point-nid-962").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* GRENOBLE */
- $("#point-nid-876").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "</ul>"
- });
- /* Hambourg */
- $("#point-nid-963").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* LAUSANNE */
- $("#point-nid-877").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* LILLE */
- $("#point-nid-878").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/lille/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* LONDRES */
- $("#point-nid-879").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* LYON */
- $("#point-nid-880").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/lyon/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* MALAGA */
- $("#point-nid-881").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* MARSEILLE */
- $("#point-nid-882").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/marseille/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* mayence */
- $("#point-nid-964").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Montpellier */
- $("#point-nid-883").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/montpellier/presentation'>POPSU France 1</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Montréal */
- $("#point-nid-884").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Nantes */
- $("#point-nid-868").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/nantes/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Nimes */
- $("#point-nid-965").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Paris */
- $("#point-nid-885").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Rennes */
- $("#point-nid-886").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Rotterdam */
- $("#point-nid-887").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Strasbourg */
- $("#point-nid-888").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Toulon */
- $("#point-nid-889").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "</ul>"
- });
- /* Toulouse */
- $("#point-nid-890").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsu1'><a href='/popsu1/toulouse/presentation'>POPSU France 1</a></li>" +
- "<li class='popsu2'><a href='/popsu2/accueil'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Turin */
- $("#point-nid-891").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Vienne */
- $("#point-nid-892").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- $.each($(".captioned img"), function(legend, item) {
- title = $(item).attr('title')
- if (title && title != "") {
- $(item).after('<p class="flex-caption"><span class="ville-title">' + title + '</span></p>');
- }
- });
- }); })(jQuery);
|