123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530 |
- (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/bordeaux/presentation-0'>POPSU France 2</a></li>" +
- "<li class='metropoples'><a href='/popsu-metropoles/bordeaux/presentation'>POPSU Métropoles</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/grenoble/presentation-0'>POPSU France 2</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/grenoble/presentation'>POPSU Métropoles</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/lille/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/lille/presentation'>POPSU Métropoles</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/lyon/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/lyon/presentation'>POPSU Métropoles</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/marseille/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/marseille/presentation'>POPSU Métropoles</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>" +
- "<li class='metropoles'><a href='/popsu-metropoles/montpellier/presentation'>POPSU Métropoles</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/nantes/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/nantes/presentation'>POPSU Métropoles</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>"
- });
- /* Orléans */
- $("#point-nid-1120").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/orleans-metropole'>POPSU Métropoles</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/rennes/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/rennes/presentation'>POPSU Métropoles</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/strasbourg/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/strasbourg/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Stuttgart */
- $("#point-nid-1031").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "</ul>"
- });
- /* Rome */
- $("#point-nid-1030").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<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/toulon/presentation-0'>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/toulouse/presentation-0'>POPSU France 2</a></li>" +
- "<li class='popsueurope'><a href='/popsu-europe/accueil'>POPSU Europe</a></li>" +
- "<li class='metropoles'><a href='/popsu-metropoles/toulouse/presentation'>POPSU Métropoles</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>"
- });
- /* Brest */
- $("#point-nid-1093").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/brest/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Rouen */
- $("#point-nid-1099").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/rouen/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Clermont-ferrand */
- $("#point-nid-1094").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/clermont-ferrand/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Dijon */
- $("#point-nid-1095").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/dijon/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Nice */
- $("#point-nid-1098").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/nice/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Metz */
- $("#point-nid-1097").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/metz/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- /* Nancy */
- $("#point-nid-1102").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='metropoles'><a href='/popsu-metropoles/nancy/presentation'>POPSU Métropoles</a></li>" +
- "</ul>"
- });
- // /* Vitré */
- $("#point-nid-1148").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/vitre/vitre'>POPSU Térritoires</a></li>" +
- "</ul>"
- });
- // /* Chateau-Thierry */
- $("#point-nid-1144").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/chateau-thierry/chateau-thierry'>POPSU Térritoires</a></li>" +
- "</ul>"
- });
- // /* Rive-de-Gier */
- $("#point-nid-1147").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/rive-de-gier/rive-de-gier'>POPSU Térritoires</a></li>" +
- "</ul>"
- });
- // /* Briançon */
- $("#point-nid-1143").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/briancon/briancon'>POPSU Térritoires</a></li>" +
- "</ul>"
- });
- // /* Marseillan */
- $("#point-nid-1146").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/marseillan/marseillan'>POPSU Térritoires</a></li>" +
- "</ul>"
- });
- // /* Isle-sur-la-Sorgue */
- $("#point-nid-1145").popover({
- title: false,
- trigger: "hover",
- content: "<ul>" +
- "<li class='territoires'><a href='/popsu-territoires/isle-sur-la-sorgue/isle-sur-la-sorgue'>POPSU Térritoires</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);
|