PageSourceSearch

https://www.astrowi.com/js/interface.js

js astrowi.com collected 2026-10-10 01:29:26 UTC 5,964 bytes, 234 lines download raw bytes

1$( document ).ready(function() {
2  "use strict";
3  //Activate Tooltip
4    $(function () {
5        $("[data-toggle='tooltip']").tooltip();
6    });
7
8	// Fb page
9	fbBox();
10	// $( window ).resize(function() {
11	  // fbBox();
12	// });
13	function fbBox() {
14		var width = ($(window).width() < 360) ? 300 : 360;
15		$("#fb-like-page").data('width', width);
16	}
17
18	//Fixed Top
19	var menu = $('#navigation');
20
21	function scroll() {
22		var $window = $(window);
23		if ($window.scrollTop() >= origOffsetY) {
24			$('.fixed-top').addClass('sticky-top').addClass('border-bottom-yellow-5x');
25			$('.content').addClass('content-fixed-top');
26			$('#header-tel').addClass('hidden');
27			$('#home').removeClass('hidden');
28
29			if ($window.width() > 767) {
30				$('#header .navbar-toggle').css('display','block');
31			}
32
33		} else {
34			$('.fixed-top').removeClass('sticky-top').removeClass('border-bottom-yellow-5x');
35			$('.content').removeClass('content-fixed-top');
36			$('#header-tel').removeClass('hidden');
37			$('#home').addClass('hidden');
38
39			if ($window.width() > 767) {
40				$('#header .navbar-toggle').css('display','none');
41			}
42		}
43	}
44	if (menu.length > 0) {
45		var origOffsetY = menu.offset().top;
46		document.onscroll = scroll;
47	};
48
49	//Waypoint.js and Animate.css - On Scroll Animations - On Scroll Animations
50	$(".vartha-animation").waypoint(function(direction) {
51		var varthaAnimationClass = $(this).attr('data-animation');
52		$(this).addClass("animated").addClass(varthaAnimationClass);
53	}, {
54		offset: "75%",
55		triggerOnce: false
56	});
57
58	//Colorbox function
59	$.colorbox.settings.opacity = 0.75;
60	$.colorbox.settings.maxWidth = "90%";
61	$.colorbox.settings.maxHeight = "90%";
62	jQuery('.video-gallery').colorbox({
63		current: '',
64		iframe: true,
65		innerWidth:640,
66		innerHeight:390,
67		rel: 'video-gallery'
68	});
69
70	jQuery('.watch-now-discover').colorbox({
71		current: '',
72		iframe: true,
73		innerWidth:640,
74		innerHeight:390
75	});
76
77
78	/*
79	//Owl Carousel - Main Slider
80	$(".home-carousel").owlCarousel({
81		items:1,
82		autoPlay:1000,
83		nav:true,
84		mouseDrag: false,
85		navText:    ['<i class="fa fa-angle-left fa-5x"></i>','<i class="fa fa-angle-right fa-5x"></i>'],
86		loop:true,
87		responsiveClass:true,
88		responsive:{
89			0:{
90				dots: false
91			},
92			480:{
93				dots: false
94			},
95			768:{
96				dots: true
97			}
98		}
99	});
100
101
102	//Owl Carousel - Videos
103	$(".latest-videos").owlCarousel({
104		lazyLoad:true,
105		dots:false,
106		items: 1,
107		loop:true,
108		margin:20,
109		mouseDrag: true,
110		nav: false,
111		navText: ['<i class="fa fa-angle-left fa-3x"></i>','<i class="fa fa-angle-right fa-3x"></i>'],
112		stagePadding: 100,
113		responsiveClass:true,
114		responsive:{
115			480:{
116				items:2
117			},
118			768:{
119				items:3,
120				nav: true,
121				stagePadding: 150
122			}
123		}
124	});
125	*/
126	/*
127	$('.newsticker').newsTicker({max_rows:1});
128
129    //Add Bootstrap Plus and Minus Icon to Accordion
130    var $active = $('.accordion .panel-collapse.in').prev().addClass('active');
131    $active.find('a').append('<i class="fa fa-minus"></i>');
132    $('.accordion .panel-heading').not($active).find('a').append('<i class="fa fa-plus"></i>');
133    $('.accordion').on('show.bs.collapse', function (e)
134    {
135        $(this).find('.panel-heading.active').removeClass('active').find('.fa').toggleClass('fa-plus fa-minus');
136        $(e.target).prev().addClass('active').find('.fa').toggleClass('fa-plus fa-minus');
137    });
138    $('.accordion').on('hide.bs.collapse', function (e)
139    {
140        $(e.target).prev().removeClass('active').find('.fa').removeClass('fa-minus').addClass('fa-plus');
141    });
142
143    //Adding Panel border to Active Class for Accordion 2
144    $('.accordion-style2').find('.active').parent().addClass('panel-border-active');
145    $('.accordion-style2').on('show.bs.collapse', function (e)
146    {
147        $(e.target).prev().parent().addClass('panel-border-active');
148    });
149    $('.accordion-style2').on('hide.bs.collapse', function (e)
150    {
151        $(e.target).prev().parent().removeClass('panel-border-active');
152    });
153
154    //Adding Panel border to Active Class for Accordion 3
155    $('.accordion-style3').find('.active').parent().addClass('icon-border-active');
156    $('.accordion-style3').on('show.bs.collapse', function (e)
157    {
158        $(e.target).prev().parent().addClass('icon-border-active');
159    });
160    $('.accordion-style3').on('hide.bs.collapse', function (e)
161    {
162        $(e.target).prev().parent().removeClass('icon-border-active');
163    });
164	*/
165
166
167  /* horoscope astrologie annuel */
168	$('.js-horoscope-annual-content').each(function () {
169		var $container = $(this);
170		var $sections = $container.find('.annual-section');
171
172		if (!$sections.length) {
173			return;
174		}
175
176		function findSectionIndex(targetKey) {
177			var foundIndex = -1;
178
179			$sections.each(function (sectionIndex) {
180				if ($(this).attr('data-section') === targetKey) {
181					foundIndex = sectionIndex;
182					return false;
183				}
184			});
185
186			return foundIndex;
187		}
188
189		function showOnly(index) {
190			$sections.each(function (sectionIndex) {
191				$(this).toggleClass('is-hidden', sectionIndex !== index);
192			});
193		}
194
195		var initialHash = window.location.hash ? window.location.hash.replace('#', '') : '';
196		var initialIndex = findSectionIndex(initialHash);
197		showOnly(initialIndex >= 0 ? initialIndex : 0);
198
199		$container.on('click', 'a[href^="#"]', function (event) {
200			var $link = $(this);
201			var targetKey = $link.attr('href').replace('#', '');
202			var targetIndex = findSectionIndex(targetKey);
203
204			if (targetIndex < 0) {
205				return;
206			}
207
208			event.preventDefault();
209			showOnly(targetIndex);
210
211			if (window.history && window.history.replaceState) {
212				window.history.replaceState(null, '', '#' + targetKey);
213			}
214
215			var targetSection = $sections.get(targetIndex);
216			if (targetSection && typeof targetSection.scrollIntoView === 'function') {
217				targetSection.scrollIntoView({ behavior: 'smooth', block: 'start' });
218			}
219		});
220	});
221
222
223});
224
225function isDDNok(input,lib)
226{
227if(input.val()==''){
228  alert('Veuillez saisir '+lib+'.');
229  input.focus();
230  return false;
231}else{
232	return true;
233}
234}

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.