PageSourceSearch

https://www.stellardata-recovery.com/public/frontEnd/affiliate/New/js/globalv1.js

js stellardata-recovery.com collected 2026-09-29 14:35:55 UTC 7,609 bytes, 211 lines download raw bytes

1var cookie={
2	setcookie:function(name,value,Days,path){
3		if(typeof(Days)=='undefined'){
4			var Days=24;
5		}
6		if(typeof(path)=='undefined'){
7			path='path=/;';
8		}else{
9			path='';
10		}
11		var date=new Date(); 
12		date.setTime(date.getTime() + Days*4*60*60*1000);
13		document.cookie=name+"="+value+";"+path+"expires="+date.toGMTString();
14	},
15	getcookie:function(name){
16		var cookies=document.cookie.split(';'); 
17		var cookieValue=0;
18		for (var i=0; i < cookies.length; i++){
19			var cookie=jQuery.trim(cookies[i]); 
20			if(cookie.substring(0, name.length + 1)==(name + '=')){
21				cookieValue=decodeURIComponent(cookie.substring(name.length + 1)); 
22				break; 
23			}
24		}
25		return cookieValue; 
26	}
27}
28var file_js=function(){
29	this.go_to=function(){
30		$('.go_ahead').click(function(){
31  			var id=$(this).attr('where');
32			var top_padding=$(this).attr("top_padding");
33			if(typeof(top_padding)=='undefined'){
34				top_padding=0;
35			}
36			var top=$('#'+id).offset().top-top_padding;
37			$('body,html').animate({ scrollTop:top},600);
38			return false;
39		});
40	};
41	this.screenshot_open=function(){
42		var t = $(".bookTabGallery");
43			0 < t.length && t.each(function() {
44			 var t = $(this),
45            i = t.find("figure"),
46            r = $(".reportingList li"),
47            s = (t.data("interval"), 0),
48            e = [1, 2, 3],
49            o = [3, 2, 1],
50            a = [2, 1, 3];			
51		function l(t) {
52            switch (t) {
53                case e[0]:
54                    return e;
55                case o[0]:
56                    return o;
57                case a[0]:
58                    return a
59            }
60        }
61		$('.reportingList li').on('click',function (e) {
62			var t = $(this).index() + 1;
63			! function(t) {		
64				for (var e = l(t), n = 0; n < i.length; n++) 0 != n && $(i[n]).removeClass(function(t, e) {
65                        return (e.match(/(^|\s)galleryImg_\S+/g) || []).join("")
66                    }).addClass("galleryImg_" + e[n - 1]);	
67					$(r[t-1]).addClass("active").siblings().removeClass("active")			
68						}(t)			
69				});	
70		});
71	};
72    this.limage=function(){
73        var lazyloadImages;
74        if ("IntersectionObserver" in window) {
75            lazyloadImages = document.querySelectorAll(".img-ly");
76            var imageObserver = new IntersectionObserver(function(entries, observer) {
77                entries.forEach(function(entry) {
78                    if (entry.isIntersecting) {
79                        var image = entry.target;
80                        image.src = image.dataset.src;
81                        image.classList.remove("lazy");
82                        imageObserver.unobserve(image);}
83                });
84            });
85            lazyloadImages.forEach(function(image) {
86                imageObserver.observe(image);
87            });
88        } else {
89            var lazyloadThrottleTimeout;
90            lazyloadImages = $(".img-ly");
91
92            function lazyload () {
93                if(lazyloadThrottleTimeout) {
94                    clearTimeout(lazyloadThrottleTimeout);
95                }
96                lazyloadThrottleTimeout = setTimeout(function() {
97                    var scrollTop = $(window).scrollTop();
98                    lazyloadImages.each(function() {
99                        var el = $(this);
100                        if(el.offset().top - scrollTop < window.innerHeight) {
101                            var url = el.attr("data-src");
102                            el.attr("src", url);
103                            el.removeClass("lazy");
104                            lazyloadImages = $(".img-ly");
105                        }
106                    });
107                    if(lazyloadImages.length == 0) {
108                        $(document).off("scroll");
109                        $(window).off("resize");
110                    }
111                }, 20);
112            }
113            $(document).on("scroll", lazyload);
114            $(window).on("resize", lazyload); }
115
116    };
117    this.scrollwindows=function(){
118        $(window).scroll(function () {
119            if($(window).scrollTop()<=$('.product_char').offset().top+710) {
120                $( ".collection_points" ).removeClass("fixed-top" );
121                $( ".back-to-top" ).css('display','none');
122                $( ".free_download_hidden" ).hide();
123            }else {
124                $( ".collection_points" ).addClass( "fixed-top" );
125                $( ".back-to-top" ).css('display','block');
126                $( ".free_download_hidden" ).show();
127                
128            }
129        });
130    };
131    this.newscrollwindows=function(){
132        $(window).scroll(function () {
133            if($(window).scrollTop()<=$('.product_banner').offset().top+647) {
134                $('.nav_btn_free').css({'visibility':'hidden','color':'#000' , });
135                $( ".back-to-top" ).css('display','none');
136                $('.navtop_stellar').css({'box-shadow':'0 0  0 #ccc', 'z-index':'0'});                
137            }else {
138                $('.nav_btn_free').css({'visibility':'visible','color':'#000' , });
139                $( ".back-to-top" ).css('display','block');
140                $('.navtop_stellar').css({'box-shadow':'0 0  10px #ccc', 'z-index':'999'});                
141            }
142        });
143    };
144    this.faqs=function(){
145        $('.faq_q a.faq_h').click(function(){
146            var value=$(this).attr('aria-expanded');         
147            if(value=='false'){
148                $(this).css('background-image','url(https://www.stellarinfo.com/image/catalog/blacktheme/data-recovery-standard/minus.png)');
149            }else if(value=='true'){
150                $(this).css('background-image','url(https://www.stellarinfo.com/image/catalog/blacktheme/data-recovery-standard/plus.png)');
151            }else{
152                $(this).css('background-image','url(https://www.stellarinfo.com/image/catalog/blacktheme/data-recovery-standard/minus.png)');
153                
154            }
155        });
156    };
157    this.infoCookie=function(){			
158				var createCookie=function(name,value,days) {
159					if (days) {
160					var date = new Date();
161					date.setTime(date.getTime()+(days*24*60*60*1000));
162					var expires = "; expires="+date.toGMTString();
163					}
164					else var expires = "";
165					document.cookie = name+"="+value+expires+"; path=/";
166				}	
167				var readCookie=function(name) {
168					var nameEQ = name + "=";
169					var ca = document.cookie.split(';');
170					for(var i=0;i < ca.length;i++) {
171					var c = ca[i];
172					while (c.charAt(0)==' ') c = c.substring(1,c.length);
173					if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
174					}
175					return null;
176				}
177				var eraseCookie=function(name) {
178					createCookie(name,"",-1);
179				}
180				if(!readCookie('CookiesShownhr')){
181				$('.cookies_message').show();	
182				}
183				$(".cos_stor").click(function(){			
184				$('.cookies_message').fadeOut();
185				createCookie('CookiesShownhr', true, 2)	
186				});
187	};
188	this.menu_top=function(){
189			 $('.menu_tab .nav-tabs > li > a').on('click',function(event){
190				event.preventDefault();
191				var id=$(this).attr('where');
192    			$(this).tab('show');
193				$('.tabbcategory').hide();
194				$('.'+ id).css('display','block');
195			});
196			$('.dropdown-menu .openmenu').on('click', function(event){
197  				 event.stopPropagation();
198 			});
199			$('.dropdown-menu a[data-toggle="tab"]').on('click',function (e) {
200    			e.preventDefault()        
201   			 	$(this).tab('show')
202			});
203			$(".cross_btn").on('click',function() {
204    			$(this).dropdown("toggle");
205			});
206			$('.menu-large .mainnavtab').click(function(){
207				$('.menu-large a.dropdown-toggle').removeClass('active');
208				$(this).addClass('active');	
209			});
210	}
211};

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.