1function resize_table(){ 2 if (jQuery( window ).width() <= 665) { 3 jQuery(".show_title_only").html(' '); 4 }else{ 5 jQuery(".show_title_only").each(function(){ 6 data_title = jQuery(this).attr('data-title'); 7 jQuery(this).html(data_title); 8 }); 9 } 10} 11 12$(document).ready(function(){ 13 $('.slider_home_mobile_wrapper').bxSlider({ 14 slideMargin: 10, 15 controls: false, 16 auto: true, 17 }); 18}); 19 20jQuery(function(){ 21 22 jQuery( window ).resize(function() { 23 resize_table(); 24 }); 25 26 resize_table(); 27 28 jQuery(".link_tools_rs").socialSharePrivacy({ 29 services : { 30 facebook : { 31 'sharer' : { 32 'status' : 'on', 33 'dummy_img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_facebook_share_en.png', 34 'img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/facebook_share_en.png' 35 }, 36 "statut" : "off", 37 "perma_option" : "false", 38 'dummy_img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_facebook_share_en.png', 39 'img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/facebook_share_en.png' 40 }, 41 twitter : { 42 "status" : "on", 43 "perma_option" : "false", 44 'dummy_img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_twitter.png', 45 'img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_twitter_dark.png' 46 }, 47 gplus : { 48 "status" : "on", 49 "perma_option" : "false", 50 'dummy_img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_gplus.png', 51 'img' : '/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/images/dummy_twitter_dark.png' 52 } 53 }, 54 "css_path" : "/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/socialshareprivacy.css", 55 "lang_path" : "/sites/all/themes/muma_v2/js/socialshareprivacy/socialshareprivacy/lang/", 56 "language" : "fr", 57 }); 58 59 // === Select all === 60 jQuery('a.select').click(function(e){ 61 e.preventDefault(); 62 jQuery(this).parent().next().children().children('.form-checkbox').attr('checked', 'checked'); 63 jQuery(this).css({'display':'none'}); 64 jQuery(this).next().css({'display':'inline'}); 65 }); 66 67 jQuery('a.select_none').click(function(e){ 68 e.preventDefault(); 69 jQuery(this).parent().next().children().children('.form-checkbox').removeAttr('checked'); 70 jQuery(this).css({'display':'none'}); 71 jQuery(this).prev().css({'display':'inline'}); 72 }); 73 74 jQuery('#muma-agenda-search-mobile-form a.select').click(function(e){ 75 e.preventDefault(); 76 jQuery(this).parent().children('.form-type-checkboxes').children('.form-checkboxes').children('.form-type-checkbox').children('.form-checkbox').attr('checked', 'checked'); 77 jQuery(this).css({'display':'none'}); 78 jQuery(this).next().css({'display':'inline'}); 79 }); 80 81 jQuery('#muma-agenda-search-mobile-form a.select_none').click(function(e){ 82 e.preventDefault(); 83 jQuery(this).parent().children('.form-type-checkboxes').children('.form-checkboxes').children('.form-type-checkbox').children('.form-checkbox').removeAttr('checked'); 84 jQuery(this).css({'display':'none'}); 85 jQuery(this).prev().css({'display':'inline'}); 86 }); 87 88 // === Onglets === 89 jQuery('.link_tabs').click(function(e){ 90 e.preventDefault(); 91 var div_id = jQuery(this).attr('href'); 92 jQuery('.onglets').children('.content_infos').addClass('ds'); 93 jQuery(div_id).removeClass('ds'); 94 jQuery('.onglets').children().children('.link_tabs').removeClass('actif'); 95 jQuery(this).addClass('actif'); 96 }); 97 98 // === Item ressources hover === 99 jQuery('.item_ressources,.item_ressources_ck').hover(function() { 100 jQuery(this).prev().css({'background-position-x': '-22px'}); 101 }, function() { 102 jQuery(this).prev().css({'background-position-x': '0'}); 103 }); 104 105 // === menu expo === 106 jQuery('.menu_expo_title').click(function(){ 107 if (jQuery(this).next().is(':visible')) { 108 jQuery(this).next().css({'display':'none'}); 109 jQuery(this).removeClass('open').addClass('close'); 110 }else{ 111 jQuery('.menu_expo_title').next().css({'display':'none'}); 112 jQuery('.menu_expo_title').removeClass('open').addClass('close'); 113 jQuery(this).next().css({'display':'block'}); 114 jQuery(this).removeClass('close').addClass('open'); 115 } 116 }); 117 118 jQuery('.menu_expo a.activ').parent().parent().prev('.menu_expo_title').removeClass('close').addClass('open'); 119 jQuery('.menu_expo a.activ').parent().parent().css({'display':'block'}); 120 121 // === player audio === 122 $( 'audio' ).audioPlayer(); 123 124 // === PARAGRAPHE OPEN / CLOSE === 125 jQuery('h2.close').next().addClass('ds'); 126 127 jQuery('h2.close, h2.open').click(function(){ 128 if (jQuery(this).next().is(':visible')) { 129 jQuery(this).next().css({'display':'none'}); 130 jQuery(this).removeClass('open').addClass('close'); 131 }else{ 132 jQuery(this).next().css({'display':'block'}); 133 jQuery(this).removeClass('close').addClass('open'); 134 } 135 }); 136 137 // === SCROLL TOP === 138 jQuery('.btn_scroll').click(function() { 139 jQuery('html,body').animate({scrollTop: 0}, 'slow'); 140 }); 141 142 // === FANCYBOX === 143 jQuery('.fancybox').fancybox({ 144 'transitionIn' : 'elastic', 145 'padding' : 0, 146 'overlayOpacity' : 1, 147 'loop' : false, 148 helpers : { 149 title : { 150 type: 'float' 151 }, 152 overlay: {
153 locked: false 154 } 155 }, 156 beforeShow : function(opt) { 157 if(this.element.parent().next('.legend_visuel').length > 0){ 158 legend_visuel = this.element.parent().next('.legend_visuel').html(); 159 }else if(this.element.parent().next('.legend_oeuvre').length > 0){ 160 legend_txt = this.element.parent().next('.legend_oeuvre').children('.legend_visuel').html(); 161 legend_visuel = legend_txt.replace(/<br\s*[\/]?>/gi, ' '); 162 }else if(this.element.next('.legend_visuel').length > 0){ 163 legend_visuel = this.element.next('.legend_visuel').html(); 164 }else if(this.element.parent().children('.legend_visuel').length > 0){ 165 legend_visuel = this.element.parent().children('.legend_visuel').html(); 166 } 167 168 if (jQuery( window ).width() >= 990){ 169 this.title = legend_visuel; 170 } 171 172 var stop_timeout = false; 173 174 jQuery(".fancybox-overlay").mousemove(function() { 175 show_div(); 176 clearTimeout(stop_timeout); 177 stop_timeout = setTimeout(function() { hide_div(); }, 2000); 178 }); 179 180 } 181 }); 182 183 function hide_div(){ 184 jQuery(".fancybox-next").fadeOut("slow"); 185 jQuery(".fancybox-prev").fadeOut("slow"); 186 }; 187 188 function show_div(){ 189 jQuery(".fancybox-next").fadeIn("slow"); 190 jQuery(".fancybox-prev").fadeIn("slow"); 191 }; 192 193 // === MENU XL === 194 if (jQuery( window ).width() >= 990) { 195 196 var menu_deroulant = jQuery('.nav_lv_1'); 197 198 menu_deroulant.children('li').each(function(i){ 199 var width_li = jQuery(this).width(); 200 jQuery(this).css({'width': width_li}); 201 202 if(jQuery(this).children('ul').length > 0){ 203 204 jQuery(this).children('ul').css({'width':jQuery( window ).width()}); //add width window à UL XL 205 var margin_li = (jQuery( window ).width() - 990)/2; 206 jQuery(this).children('ul').children('li:first').css({'margin-left':margin_li}); //add margin-left first li 207 208 jQuery(this).children('a:eq(0)').click(function(e){ 209 e.preventDefault(); 210 211 if (jQuery(this).parent().children('ul').is(':visible')) { 212 jQuery('.nav_lv_2').css({'display':'none'}); 213 jQuery(this).parent().children('ul').css({'display':'none'}); 214 jQuery('.lv_1').children('a').removeClass('activ'); 215 } 216 else { 217 jQuery('.nav_lv_2').css({'display':'none'}); 218 jQuery(this).parent().children('ul').css({'display':'block'}); 219 jQuery('.lv_1').children('a').removeClass('activ'); 220 jQuery(this).addClass('activ'); 221 } 222 }); 223 } 224 }); 225 }else{ 226 jQuery('#resp_nav').click(function(){ 227 if (jQuery('#navigation').is(':visible')) {
228 jQuery('#navigation').slideUp(); 229 }else{ 230 jQuery('#navigation').slideDown(); 231 } 232 }); 233 var menu_deroulant = jQuery('.nav_lv_1'); //identifier l'UL de 1er niveau 234 menu_deroulant.children('li').each(function(i){ //boucle sur LI 235 if(jQuery(this).children('ul').length > 0){ //si LI Ã un enfant de type UL 236 jQuery(this).children('a:eq(0)').click(function(e){ //au click sur lien 237 e.preventDefault(); //on bloque le lien 238 239 if (jQuery(this).parent().children('ul').is(':visible')) { 240 jQuery('.nav_lv_2').css({'display':'none'}); 241 }else{ 242 jQuery('.nav_lv_2').css({'display':'none'}); 243 jQuery(this).parent().children('ul').css({'display':'block'}); 244 } 245 246 //jQuery('.nav_lv_2').css({'display':'none'}); 247 //jQuery(this).parent().children('ul').toggle('fast'); 248 }); 249 } 250 }); 251 252 } 253 // === CLOSE MENU CLICK HTML === 254 jQuery('html').click(function() { 255 jQuery('.nav_lv_2').css({'display':'none'}); 256 jQuery('.tools_close').css({'display':'none'}); 257 }); 258 259 jQuery('.nav_lv_1').click(function(event){ 260 event.stopPropagation(); 261 }); 262 263 jQuery('.tools').click(function(event){ 264 event.stopPropagation(); 265 }); 266 267 jQuery('.tools_close').click(function(event){ 268 event.stopPropagation(); 269 }); 270 271 jQuery('.nav_lv_2').click(function(event){ 272 event.stopPropagation(); 273 }); 274 275 // === MENU BLOCK === 276 jQuery('.li_block_lv_2 a.a_2').click(function(e){ 277 e.preventDefault(); 278 279 if (jQuery(this).next().is(':visible')){ 280 jQuery('.a_2_activ').addClass('a_2_close').removeClass('a_2_activ'); 281 jQuery(this).addClass('a_2_close').removeClass('a_2_activ'); 282 jQuery(this).next().addClass('ul_3_close').removeClass('ul_3_open'); 283 }else{ 284 jQuery('.a_2_activ').addClass('a_2_close').removeClass('a_2_activ'); 285 jQuery(this).addClass('a_2_activ').removeClass('a_2_close'); 286 jQuery('.ul_3_open').addClass('ul_3_close').removeClass('ul_3_open'); 287 jQuery(this).next().addClass('ul_3_open').removeClass('ul_3_close'); 288 } 289 290 }); 291 292 293}); 294 295jQuery(window).load(function(){ 296 297 // === MASONRY === 298 if(document.querySelector('#mur')){ 299 var container = document.querySelector('#mur'); 300 var msnry = new Masonry( container, { 301 // options 302 "isFitWidth": true, 303 columnWidth: 200, 304 itemSelector: '.item_mur', 305 "gutter": 25, 306 }); 307 } 308 309 310 if(document.querySelector('.vignettes_oeuvre')){ 311 var container_vignette = document.querySelector('.vignettes_oeuvre'); 312 var msnry = new Masonry( container_vignette, { 313 // options 314 "isFitWidth": true, 315 columnWidth: 75, 316 itemSelector: '.vignette_oeuvre', 317 "gutter": 4, 318 }); 319 } 320 321 if(document.querySelector('#muma-agenda-search-mobile-form .form-type-checkboxes')){ 322 var container_vignette = document.querySelector('#muma-agenda-search-mobile-form .form-type-checkboxes'); 323 var msnry = new Masonry( container_vignette, { 324 // options 325 "isFitWidth": true, 326 columnWidth: 120, 327 itemSelector: '.form-type-checkbox', 328 "gutter": 5, 329 }); 330 } 331 332 if(document.querySelector('#mur_nav')){ 333 var container_vignette = document.querySelector('#mur_nav'); 334 var msnry = new Masonry( container_vignette, { 335 // options 336 "isFitWidth": true, 337 columnWidth: 158, 338 itemSelector: '.item_mur_nav', 339 "gutter": 10, 340 }); 341 342 } 343 344 if(document.querySelector('#mur_blog')){ 345 if(jQuery( window ).width() <= 330){ 346 colWidth = 300; 347 }else{ 348 colWidth = 325; 349 } 350 var container_blog = document.querySelector('#mur_blog'); 351 var msnry = new Masonry( container_blog, { 352 // options 353 "isFitWidth": true, 354 columnWidth: colWidth, 355 itemSelector: '.teaser_blog', 356 "gutter": 15, 357 }); 358 } 359 360 var i = 0; 361 jQuery('.multi_mur').each(function(){ 362 jQuery('#multi_mur_'+i).addClass('test'); 363 364 var msnry = new Masonry( document.querySelector('#multi_mur_'+i), { 365 // options 366 "isFitWidth": true, 367 columnWidth: 158, 368 itemSelector: '.item_mur', 369 "gutter": 10, 370 }); 371 372 i++; 373 }); 374
375 if(document.querySelector('.vignettes')){ 376 var container_vignette = document.querySelector('.vignettes'); 377 var msnry = new Masonry( container_vignette, { 378 // options 379 "isFitWidth": true, 380 columnWidth: 50, 381 itemSelector: '.vignette', 382 "gutter": 4, 383 }); 384 } 385 386 // === HIDE ADMIN BARRE === 387 setTimeout(add_id, 1000); 388 function add_id(){ 389 jQuery('#admin-menu-menu li a').each(function(index) { 390 if(jQuery(this).html() == 'Masquer la barre admin'){ 391 jQuery(this).attr('id','hide_admin_barre'); 392 } 393 }); 394 } 395 jQuery('#hide_admin_barre').live( "click", function(e) { 396 e.preventDefault(); 397 jQuery('.tabs-wrapper').toggle('fast'); 398 }); 399 400});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.