PageSourceSearch

https://oulu2026.eu/wp-content/plugins/hoyry-block-styles-manager/build/front.js?ver=1734606671

js oulu2026.eu collected 2026-10-02 03:00:32 UTC 4,817 bytes, 89 lines download raw bytes

1/******/ (() => { // webpackBootstrap
2var __webpack_exports__ = {};
3/*!**********************!*\
4  !*** ./src/front.js ***!
5  \**********************/
6(function ($) {
7  function hoyry_init_form() {
8    setTimeout(function () {
9      if ($('.hoyry-form, .fluentform').length) {
10        // Reset Fluentform button
11        $('.hoyry-form, .fluentform').find('.ff-btn:not(.ff-btn-submit)').addClass('wp-element-button').addClass('wp-block-button__link').addClass('hoyry-form-button').removeClass('ff_btn_style').removeClass('ff-btn').removeClass('ff-btn-md').removeClass('ff_upload_btn');
12
13        // Reset Fluentform submit button
14        $('.hoyry-form, .fluentform').find('.ff-btn-submit').addClass('wp-element-button').addClass('wp-block-button__link').addClass('hoyry-form-submit-button').removeClass('ff_btn_style').removeClass('ff-btn-submit').removeClass('ff-btn').removeClass('ff-btn-md').removeClass('ff_upload_btn');
15
16        // Add hoyry-form-select wrapper to all select fields
17        $('.hoyry-form, .fluentform').find('select:not(.ff_has_multi_select):not([class*="flatpickr"])').each(function () {
18          if (!$(this).parent().hasClass('hoyry-form-select')) {
19            $(this).wrap('<div class="hoyry-form-select"></div>');
20          }
21        });
22
23        // Add hoyry-form-control class to fields
24        $('.hoyry-form, .fluentform').find('input[type="text"]:not(.choices__input), input[type="password"], input[type="color"], input[type="date"], input[type="datetime"], input[type="datetime-local"], input[type="email"], input[type="month"], input[type="number"], input[type="search"], input[type="tel"], input[type="time"], input[type="url"], input[type="week"], select:not([class*="flatpickr"]), textarea').addClass('hoyry-form-control');
25
26        // Add hoyry-form-radio element after all radio fields
27        $('.hoyry-form, .fluentform').find('input[type="radio"]').each(function () {
28          if (!$(this).hasClass('hoyry-form-radio-input')) {
29            $(this).addClass('hoyry-form-radio-input');
30            if ($(this).closest('.ff-el-image-holder').length == 0) $(this).after('<span class="hoyry-form-radio"></span>');
31          }
32        });
33
34        // Add hoyry-form-checkbox element after all checkbox fields
35        $('.hoyry-form, .fluentform').find('input[type="checkbox"]').each(function () {
36          if (!$(this).hasClass('hoyry-form-checkbox-input')) {
37            $(this).addClass('hoyry-form-checkbox-input');
38            if ($(this).closest('.ff-el-image-holder').length == 0) $(this).after('<span class="hoyry-form-checkbox"></span>');
39          }
40        });
41
42        // Set is-placeholder-selected class to select fields when value is empty
43        $('.hoyry-form, .fluentform').find('select:not(.ff_has_multi_select):not([class*="flatpickr"])').each(function () {
44          if (!$(this).val() || $(this).val() == null) $(this).closest('.hoyry-form-select').addClass('is-placeholder-selected');
45        });
46        $(document).on('change', '.hoyry-form select:not([class*="flatpickr"]), .fluentform select:not(.ff_has_multi_select):not([class*="flatpickr"])', function () {
47          if (!$(this).val()) $(this).closest('.hoyry-form-select').addClass('is-placeholder-selected');else $(this).closest('.hoyry-form-select').removeClass('is-placeholder-selected');
48        });
49      }
50    }, 100);
51  }
52  $(document).ready(function () {
53    hoyry_init_form();
54  });
55  $('.wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container > .has-child').on('mouseenter', function () {
56    var $submenu = $(this).find('> .wp-block-navigation__submenu-container');
57    var $parent = $(this);
58    $submenu.css('left', '0');
59    setTimeout(function () {
60      var newLeft = 0;
61      var dimensions = $submenu[0].getBoundingClientRect();
62      var rightEdge = dimensions.width + dimensions.left;
63      var screenWidth = $(window).width();
64      if ($parent.hasClass('has-description')) {
65        var parentDimensions = $parent[0].getBoundingClientRect();
66        newLeft = dimensions.width / 2 - parentDimensions.width / 2;
67        var overRightEdge = rightEdge - newLeft - screenWidth;
68        var overLeftEdge = (dimensions.left - newLeft) * -1;
69        if (overRightEdge > 0) {
70          newLeft += overRightEdge;
71        } else if (overLeftEdge > 0) {
72          newLeft -= overLeftEdge;
73        }
74      } else {
75        var overRightEdge = rightEdge - screenWidth;
76        if (overRightEdge > 0) {
77          newLeft = overRightEdge;
78        }
79      }
80      $submenu.css('left', '-' + newLeft + 'px');
81    }, 1);
82  });
83  $('.wp-block-navigation .has-child').on('mouseleave', function () {
84    $(this).find('.wp-block-navigation__submenu-container').css('transform', 'initial');
85  });
86})(jQuery);
87/******/ })()
88;
89//# sourceMappingURL=front.js.map

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.