PageSourceSearch

https://integratsioon.ee/themes/insa/js/insa.js?tm8477

js integratsioon.ee collected 2026-10-01 11:40:21 UTC 3,155 bytes, 75 lines download raw bytes

1jQuery(document).ready(function ($) {
2
3  // Contact page navigation.
4  var $affixNav = $('.affix-nav');
5  if ($affixNav.length > 0) {
6
7    $affixNav.affix({
8      offset: {
9        top: function () {
10          return (this.top = $('.contact-wrapper').offset().top)
11        },
12        bottom: function () {
13          return (this.bottom = $('.footer').outerHeight(true) + 40)
14        }
15      }
16    })
17
18    $affixNav.css('width', $affixNav.parent().width());
19
20    $(window).bind('resize', function () {
21      $affixNav.css('width', $affixNav.parent().width());
22    })
23
24    $('body').scrollspy({target: '.affix-nav'})
25
26    $('.filter-toggle').bind('click', function (e) {
27      e.preventDefault();
28      if ($('.article-box', $affixNav).is('.in')) {
29        $('.article-box', $affixNav).removeClass('in');
30      }
31      else {
32        $('.article-box', $affixNav).addClass('in');
33      }
34    })
35
36    $('.sidenav a', $affixNav).bind('click', function (e) {
37      $(this).parents('.article-box').removeClass('in');
38    })
39  }
40
41});
42
43jQuery(document).ready(function(){
44
45  jQuery('#quiz-question-answering-form').one('submit', function() {
46    jQuery(this).find('button').attr('disabled','disabled');
47  });
48
49});
50
51
52(function (Drupal, $, once) {
53  Drupal.behaviors.insaDatepicker = {
54    attach(context) {
55      const $elements = $(once('insaDatepicker', '.bef-datepicker, .bef-exposed-form .form-item-start .form-control, .bef-exposed-form .form-item-end .form-control', context));
56      $elements.datepicker({
57        closeText: Drupal.t('Done'),
58        prevText: Drupal.t('Prev'),
59        nextText: Drupal.t('Next'),
60        currentText: Drupal.t('Today'),
61        monthNames: [Drupal.t('January', {}, { context: 'Long month name' }), Drupal.t('February', {}, { context: 'Long month name' }), Drupal.t('March', {}, { context: 'Long month name' }), Drupal.t('April', {}, { context: 'Long month name' }), Drupal.t('May', {}, { context: 'Long month name' }), Drupal.t('June', {}, { context: 'Long month name' }), Drupal.t('July', {}, { context: 'Long month name' }), Drupal.t('August', {}, { context: 'Long month name' }), Drupal.t('September', {}, { context: 'Long month name' }), Drupal.t('October', {}, { context: 'Long month name' }), Drupal.t('November', {}, { context: 'Long month name' }), Drupal.t('December', {}, { context: 'Long month name' })],
62        monthNamesShort: [Drupal.t('Jan'), Drupal.t('Feb'), Drupal.t('Mar'), Drupal.t('Apr'), Drupal.t('May'), Drupal.t('Jun'), Drupal.t('Jul'), Drupal.t('Aug'), Drupal.t('Sep'), Drupal.t('Oct'), Drupal.t('Nov'), Drupal.t('Dec')],
63        dayNames: [Drupal.t('Sunday'), Drupal.t('Monday'), Drupal.t('Tuesday'), Drupal.t('Wednesday'), Drupal.t('Thursday'), Drupal.t('Friday'), Drupal.t('Saturday')],
64        dayNamesShort: [Drupal.t('Sun'), Drupal.t('Mon'), Drupal.t('Tue'), Drupal.t('Wed'), Drupal.t('Thu'), Drupal.t('Fri'), Drupal.t('Sat')],
65        dayNamesMin: [Drupal.t('Su'), Drupal.t('Mo'), Drupal.t('Tu'), Drupal.t('We'), Drupal.t('Th'), Drupal.t('Fr'), Drupal.t('Sa')],
66        dateFormat: Drupal.t('mm/dd/yy'),
67        firstDay: 1,
68        isRTL: 0
69      });
70    }
71  };
72})(Drupal, jQuery, once);
73
74
75

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.