PageSourceSearch

https://splendidam990.com/templates/hiper-template/js/yt-script.js

js splendidam990.com collected 2026-10-02 12:46:33 UTC 2,416 bytes, 79 lines download raw bytes

1// JavaScript Document
2function createCookie(name,value,days) {
3  if (days) {
4    var date = new Date();
5    date.setTime(date.getTime()+(days*24*60*60*1000));
6    var expires = "; expires="+date.toGMTString();
7  }
8  else expires = "";
9  document.cookie = name+"="+value+expires+"; path=/";
10}
11
12function getCookie(c_name, defaultvalue){	//alert(document.cookie);
13	var i,x,y,arrcookies=document.cookie.split(";");
14	for (i=0;i<arrcookies.length;i++){
15	  x=arrcookies[i].substr(0,arrcookies[i].indexOf("="));
16	  y=arrcookies[i].substr(arrcookies[i].indexOf("=")+1);
17	  x=x.replace(/^\s+|\s+$/g,"");
18	  if (x==c_name){
19		  return unescape(y);
20	  }
21	}
22	return defaultvalue;
23}
24
25
26jQuery(window).load(function(){
27	if(jQuery("#yt_menu")){
28		responsiveLayout();
29		jQuery(window).resize(responsiveLayout);
30	}
31});
32// responsiveLayout Menu
33var responsiveflagMenu = false;
34function responsiveLayout(element,eclass){
35	offset_top = jQuery("#yt_menu").offset().top;
36	//alert(offset_top)
37   if (jQuery(document).width() >= 320 && responsiveflagMenu == false){
38    // if (jQuery(document).width() >= 1201 && responsiveflagMenu == false){
39		processScroll("#yt_menu", "navbar-fixed-top", offset_top);
40		jQuery(window).scroll(function(){
41			processScroll("#yt_menu", "navbar-fixed-top", offset_top);
42		});
43		responsiveflagMenu = true;
44	}
45	
46}
47
48// processScroll Menu
49function processScroll(element, eclass, offset_top) {
50	
51	if(jQuery(element).height()< jQuery(window).height()){
52		var scrollTop = jQuery(window).scrollTop();
53		if (scrollTop > offset_top) {
54			//fix secondary navigation
55			//jQuery(element).addClass(eclass);
56			jQuery(element).addClass(eclass);
57			
58			//push the .cd-main-content giving it a top-margin
59			jQuery('.header-bottom').addClass('has-top-margin');	
60			
61			//on Firefox CSS transition/animation fails when parent element changes position attribute
62			//so we to change secondary navigation childrens attributes after having changed its position value
63			setTimeout(function() {
64	            jQuery(element).addClass('animate-children');
65	        }, 150);
66		} else if (scrollTop <= offset_top) {
67			//jQuery(element).removeClass(eclass);
68			//push the .cd-main-content giving it a top-margin
69			jQuery('.header-bottom').removeClass('has-top-margin');	
70				jQuery(element).removeClass(eclass);		
71			setTimeout(function() {
72	            jQuery(element).removeClass('animate-children');
73	        }, 150);
74		}
75
76	}
77}
78
79

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.