PageSourceSearch

https://www.vay.fr/wp-content/themes/noyau/assets/js/scripts-noyau.js

js vay.fr collected 2026-10-02 20:35:55 UTC 1,934 bytes, 68 lines download raw bytes

1jQuery(function($) {
2
3
4	// Responsive Iframe Videos
5	// ----------------------------------------------------------------
6	jQuery( ".entry-content iframe").each(function(){
7		var src = jQuery(this).attr('src');
8		var youtube_str = src.indexOf("youtube");
9		var dailymotion_str= src.indexOf("dailymotion");
10		var vimeo_str = src.indexOf("vimeo");
11
12		if(youtube_str > 0 || dailymotion_str > 0 || vimeo_str > 0){
13			jQuery(this).wrap("<div class='video-container'></div>");
14		}
15	});
16
17	// Affichage des vidéos Youtube et Vimeo en 100%
18	// ----------------------------------------------------------------
19    var $allVideos = $("iframe[src^='//player.vimeo.com'], iframe[src^='//www.youtube.com'], object, embed"),
20    $fluidEl = $("figure");
21
22	$allVideos.each(function() {
23
24	  $(this)
25	    // jQuery .data does not work on object/embed elements
26	    .attr('data-aspectRatio', this.height / this.width)
27	    .removeAttr('height')
28	    .removeAttr('width');
29
30	});
31
32	// Bouton top (haut de page)
33	// ----------------------------------------------------------------
34	if($(window).width() > 480){
35		$('.scroll-top').click(function() {
36			$('html,body').animate({scrollTop: 0}, 'slow');
37		});
38
39		$(window).scroll(function(){
40			if($(window).scrollTop()<100){
41				$('.scroll-top').fadeOut();
42			}else{
43				$('.scroll-top').fadeIn();
44			}
45		});
46	}
47
48	// Placeholder, thanks IE
49	// ----------------------------------------------------------------
50	if($('body').hasClass('ie9') || $('body').hasClass('ie8') || $('body').hasClass('ie7')){
51		$('input[placeholder]').each(function() {  
52			var input = $(this);        
53			$(input).val(input.attr('placeholder'));
54
55			$(input).focus(function(){
56				if (input.val() == input.attr('placeholder')) {
57					input.val('');
58				}
59			});
60
61			$(input).blur(function(){
62				if (input.val() == '' || input.val() == input.attr('placeholder')) {
63					input.val(input.attr('placeholder'));
64				}
65			});
66		});  
67	}
68});

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.