PageSourceSearch

https://www.osforensics.com/js/main.js

js osforensics.com collected 2026-10-02 18:45:11 UTC 8,754 bytes, 307 lines download raw bytes

1
2// SLIDERS--------------
3$(document).ready(function(){
4    $('.passmarkslick-track').slick({
5      dots: true,
6      infinite: true,
7      speed: 800,
8      slidesToShow: 3,
9      slidesToScroll: 1,
10      autoplay: true,
11      autoplaySpeed: 4000,
12      arrows: true,
13      responsive: [
14        {
15          breakpoint: 1200,
16          settings: {
17            centerMode: true,
18            slidesToShow: 2
19          }
20        },
21        {
22          breakpoint: 768,
23          settings: {
24            arrows: false,
25            centerMode: true,
26            slidesToShow: 1
27          }
28        }
29      ]
30    });
31});
32//free tools
33$(document).ready(function(){
34  $('.free-tools-track').slick({
35    dots: true,
36    infinite: true,
37    speed: 800,
38    slidesToShow: 3,
39    slidesToScroll: 1,
40    autoplay: true,
41    autoplaySpeed: 4000,
42    arrows: true,
43    responsive: [
44      {
45        breakpoint: 1200,
46        settings: {
47          centerMode: true,
48          slidesToShow: 2,
49          arrows: false
50        }
51      },
52      {
53        breakpoint: 768,
54        settings: {
55          arrows: false,
56          centerMode: true,
57          slidesToShow: 1
58        }
59      }
60    ]
61  });
62});
63//products_osForensics
64$(document).ready(function(){
65  $('.products-os_track').slick({
66    infinite: true,
67    speed: 800,
68    slidesToShow: 1,
69    slidesToScroll: 1,
70    arrows: false,
71    autoplay: true,
72    autoplaySpeed: 4000,
73  });
74  $(".top-slider-list a").click(function(e){
75    e.preventDefault();
76    slideIndex = $(this).index();
77    $(".top-slider-list a").removeClass('slick-current-link');
78    $(this).addClass('slick-current-link');
79    $( '.products-os_track' ).slick( 'slickGoTo',slideIndex );
80});
81$('.products-os_track').on('afterChange', function(event, slick, currentSlide, nextSlide){
82  $(".top-slider-list a").removeClass('slick-current-link');
83  $(".top-slider-list a").eq(currentSlide).addClass('slick-current-link');
84});
85  //proffecional
86  $('.professional_track').slick({
87    infinite: true,
88    speed: 800,
89    slidesToShow: 1,
90    slidesToScroll: 1,
91    autoplay: false,
92    autoplaySpeed: 4000,
93    arrows: true,
94    dots:true
95  });
96  //complete
97  $(".complete-track").slick({
98    dots: true
99  });
100  $(".products-main-section__slider-nav div").click(function(e){
101      e.preventDefault();
102      slideIndex = $(this).index();
103      $(".products-main-section__slider-nav div").removeClass('slick-current');
104      $(this).addClass('slick-current');
105      $( '.complete-track' ).slick( 'slickGoTo',slideIndex );
106  });
107  $('.complete-track').on('afterChange', function(event, slick, currentSlide, nextSlide){
108    $(".products-main-section__slider-nav div").removeClass('slick-current');
109    $(".products-main-section__slider-nav div").eq(currentSlide).addClass('slick-current');
110  });
111  
112  //identify
113  $(".identify-track").slick({
114    dots: true
115  });
116  $(".identify-nav div").click(function(e){
117    e.preventDefault();
118    slideIndex = $(this).index();
119    $(".identify-nav div").removeClass('slick-current');
120    $(this).addClass('slick-current');
121    $( '.identify-track' ).slick('slickGoTo',slideIndex );
122  });
123  $('.identify-track').on('afterChange', function(event, slick, currentSlide, nextSlide){
124    $(".identify-nav div").removeClass('slick-current');
125    $(".identify-nav div").eq(currentSlide).addClass('slick-current');
126  });
127  //manage
128  $(".manage-track").slick({
129    dots: true
130  });
131  $(".manage-nav div").click(function(e){
132    e.preventDefault();
133    slideIndex = $(this).index();
134    $(".manage-nav div").removeClass('slick-current');
135    $(this).addClass('slick-current');
136    $( '.manage-track' ).slick('slickGoTo',slideIndex );
137    
138  });
139  $('.manage-track').on('afterChange', function(event, slick, currentSlide, nextSlide){
140    $(".manage-nav div").removeClass('slick-current');
141    $(".manage-nav div").eq(currentSlide).addClass('slick-current');
142  });
143  
144
145  //pricing 
146  $('.pricing-track').slick({
147    speed: 800,
148    slidesToShow: 1,
149    slidesToScroll: 1,
150    arrows: false
151  });
152  $(".pricing-nav div").click(function(e){
153    e.preventDefault();
154    slideIndex = $(this).index();
155    $(".pricing-nav div").removeClass('slick-current');
156    $(this).addClass('slick-current');
157    $( '.pricing-track' ).slick('slickGoTo',slideIndex );
158  });
159  $("#search_submit").click(function(e){
160    let searchText = $("#search_input").val();
161    if (searchText == 0) {
162      e.preventDefault();
163    }
164    $(this).addClass('active-search');
165  });
166  $('#search_submit').click(function(e) {
167    let searchText = $("#search_input").val();
168    $('#search_submit').attr("href", '/search.html?zoom_query=' + searchText);
169  });
170  document.onkeyup = function (e) {
171    e = e || window.event;
172    if (e.keyCode === 13) {
173      let searchText = $("#search_input").val();
174      if(searchText != 0) {
175        window.location="/search.html?zoom_query=" + searchText;
176      }
177      
178    }   
179    return false;
180  }
181
182});
183
184
185
186// //////SLIDERS--------------
187//FAQ
188$(document).ready(function(){
189  //open-one
190  $('.faq-block_title').click(function () {
191    var tx = $(this).parent().find('.faq-block-content');
192    var arrow = $(this).parent().find('.faq-block_arrow');
193    if ($(tx).hasClass('open-faq')) {
194        $(tx).slideUp(function () {
195            $(tx).removeClass('open-faq');
196            $(arrow).removeClass('arr-rotate');
197        });
198    } else {
199        $(tx).slideDown(function () {
200            $(tx).addClass('open-faq');
201            $(arrow).addClass('arr-rotate');
202        });
203    }
204    return false;
205  });
206  //open-all
207  $('.expand-butt').click(function () {
208    $('.faq-block-content').slideDown(function () {
209      $('.faq-block-content').addClass('open-faq');
210        $('.faq-block_arrow').addClass('arr-rotate');
211    });
212    return false;
213  });
214  //close-one
215  $('.collapse-butt').click(function () {
216    if ($('.faq-block-content').hasClass('open-faq')) {
217      $('.faq-block-content').slideUp(function () {
218        $('.faq-block-content').removeClass('open-faq');
219            $('.faq-block_arrow').removeClass('arr-rotate');
220        });
221    }
222    return false;
223  });
224});
225//button-search
226$("#search_submit").click(function() {
227    $("#search_input").toggleClass("open-search");
228});
229//burger-button
230$(".navbar-toggler").click(function() {
231    $(".navbar-nav").toggleClass("open-nav");
232    $("header").toggleClass("header--bc");
233});
234//aside-mobile
235$(document).ready(function() {
236    if ($(window).width() <= '995'){
237      $('.aside_title-block').click(function () {
238        var tx = $(this).parent().find('.aside_main-block');
239        if ($(tx).hasClass('open-aside')) {
240            $(tx).slideUp(function () {
241                $(tx).removeClass('open-aside');
242            });
243        } else {
244            $(tx).slideDown(function () {
245                $(tx).addClass('open-aside');
246            });
247        }
248        return false;
249      });
250    }
251});
252$(window).scroll(function() {
253    $('header').toggleClass('scroll', $(this).scrollTop() > 0);
254});
255[].forEach.call(document.querySelectorAll('img[data-src]'), function(img) {
256  img.setAttribute('src', img.getAttribute('data-src'));
257  img.onload = function() {
258 img.removeAttribute('data-src');
259  };
260});
261$(".price input").click(function() {
262    $(".price-f-checkbox").removeClass("price-f-checkbox");
263});
264//price-first
265$('input[name="singer_user_type"]').click(function() {
266  if ($('input[name="singer_user_type"]:checked').val()) {
267    let prodId = $('input[name="singer_user_type"]:checked').attr('data-product');
268    $('.pricing-button-single').attr("href", 'https://www.passmark.com/sales/cart.php?add&id=' + prodId + '&qty=1');
269  }
270  else {
271    alert('false');
272  }
273});
274//price-sec
275$('input[name="singer_user_type-2"]').click(function() {
276  if ($('input[name="singer_user_type-2"]:checked').val()) {
277    let prodId = $('input[name="singer_user_type-2"]:checked').attr('data-product');
278    let priceCount = $('input[name="singer_user_type-2"]:checked').attr('data-count');
279    $('.pricing-button-sec').attr("href", 'https://www.passmark.com/sales/cart.php?add&id=' + prodId + '&qty=' + priceCount);
280  }
281  else {
282    alert('false');
283  }
284});
285
286//page active
287$(function () {
288  var location = window.location.href;
289  var cur_url = '/' + location.split('/').pop();
290  //aside links
291  $('.aside_links-block li').each(function () {
292      var link = $(this).find('a').attr('href');
293      if (cur_url == link) {
294          $(this).parents('.aside_item').addClass('aside-border-l');
295          $(this).addClass('current-link');
296      }
297  });
298  //aside titles
299  $('.aside_title-block').each(function () {
300    var link = $(this).find('a').attr('href');
301    
302    if (cur_url == link) {
303      $(this).parent().addClass('aside-border-l');
304        $(this).addClass('current-link');
305    }
306});
307});

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.