PageSourceSearch

https://www.marktplaats.nl/m/veiligheidscentrum/js/main.js

js marktplaats.nl collected 2026-09-24 08:25:49 UTC 2,063 bytes, 77 lines download raw bytes

1var coll = document.getElementsByClassName("collapsible");
2
3for (var i = 0; i < coll.length; i++) {
4  coll[i].addEventListener("click", function() {
5    this.classList.toggle("active");
6    var content = this.nextElementSibling;
7    if (content.style.maxHeight){
8      content.style.maxHeight = null;
9    } else {
10      content.style.maxHeight = content.scrollHeight + "px";
11    }
12
13    window.setTimeout(function() {
14        $(window).trigger('resize').trigger('scroll');
15    }, 300);
16  });
17}
18
19var coll = document.getElementsByClassName("collapsible-light");
20
21for (var i = 0; i < coll.length; i++) {
22  coll[i].addEventListener("click", function() {
23    this.classList.toggle("active");
24    var content = this.nextElementSibling;
25    if (content.style.maxHeight){
26      content.style.maxHeight = null;
27    } else {
28      content.style.maxHeight = content.scrollHeight + "px";
29    }
30
31    window.setTimeout(function() {
32        $(window).trigger('resize').trigger('scroll');
33    }, 300);
34  });
35}
36
37var coll = document.getElementsByClassName("collapsible-light1");
38
39for (var i = 0; i < coll.length; i++) {
40  coll[i].addEventListener("click", function() {
41    this.classList.toggle("active");
42    var content = this.nextElementSibling;
43    if (content.style.maxHeight){
44      content.style.maxHeight = null;
45    } else {
46      content.style.maxHeight = content.scrollHeight + "px";
47    }
48
49    window.setTimeout(function() {
50        $(window).trigger('resize').trigger('scroll');
51    }, 300);
52  });
53}
54
55$(window).scroll(function() {
56    $(".parallax-mirror:last img").css({
57        'opacity' : 1-(($(this).scrollTop())/550)
58    });
59});
60
61
62$(document).on('click', 'a[href^="#"]', function (event) {
63    event.preventDefault();
64
65    $('html, body').animate({
66        scrollTop: $($.attr(this, 'href')).offset().top
67    }, 500);
68});
69
70var isInApp = /Mozilla.* AppleWebKit.*Mobile(?!.*Safari)|MarktplaatsWebiew/i.test(navigator.userAgent);
71$(function() {
72  $('.in-app-content').hide();
73  if (isInApp) {
74    $('.out-app-content').hide();
75    $('.in-app-content').show();
76  }
77});

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.