PageSourceSearch

https://www.principal.cl/themes/custom/principal_cl/assets/js/buttonFixed.js?tmfq8t

js principal.cl collected 2026-10-07 19:41:06 UTC 515 bytes, 23 lines download raw bytes

1"use strict";
2
3(function ($, Drupal) {
4  'use strict';
5
6  Drupal.behaviors.buttonFixed = {
7    attach: function attach() {
8      var $btnContent = $('.js-btn-fixed');
9      $(window).scroll(function () {
10        scrollEvent($btnContent);
11      });
12      scrollEvent($btnContent);
13    }
14  };
15  function scrollEvent($pElement) {
16    var contentTop = 50;
17    if (contentTop > $(window).scrollTop()) {
18      $pElement.removeClass('active');
19    } else {
20      $pElement.addClass('active');
21    }
22  }
23})(jQuery, Drupal);

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.