PageSourceSearch

https://www.oesterlarskirke.dk/typo3temp/assets/compressed/merged-…8bc1726b8bc930291051b44e267dd.js?1787905601

js oesterlarskirke.dk collected 2026-10-04 13:33:00 UTC 4,974 bytes, 130 lines download raw bytes

1
2(function($){
3    // Our namespace
4        $.DKM3S = {}; // This is our namespace ALLWAYS create functions and vars inside.
5        $.DKM3S.func = {}; // for all the functions
6        $.DKM3S.data = {   // for all global vars
7        };
8    
9        $(document).ready(function() {
10            $(".search-toggl").click(function(e) {
11                e.preventDefault();
12                if($('#field_search').length) {
13                    $('.search-bar').toggleClass('slideIn');
14                    if($('.search-bar').hasClass("slideIn")) {
15                    setTimeout(function() {
16                        $('.search-form__sword').focus();
17                    }, 300);}
18                }
19            });
20            $("#field_search form").focusout(function(e) {
21                var self = this;
22                timeout = setTimeout(function() {
23                    $('.search-bar').removeClass('slideIn');
24                }, 200);
25            });
26
27            // WCAG 2.5.3 (Label in Name): Shariff sets each share button's
28            // aria-label to the localized title (e.g. "Del på X") while the
29            // visible label is the short share-text (e.g. "Post"). When the
30            // visible text is not part of the accessible name, voice-control
31            // users cannot activate the button by its visible label. Ensure
32            // the visible label is contained in the aria-label.
33            $.DKM3S.func.fixShariffLabels = function() {
34                $('.shariff a[aria-label]').each(function() {
35                    var $a = $(this);
36                    var visible = ($a.find('.share_text').text() || '').trim();
37                    if (!visible) {
38                        return;
39                    }
40                    var aria = ($a.attr('aria-label') || '').trim();
41                    if (aria && aria.toLowerCase().indexOf(visible.toLowerCase()) === -1) {
42                        $a.attr('aria-label', visible + ' – ' + aria);
43                    }
44                });
45                // The print button has no localized label in Danish, leaving
46                // it without an accessible name (fails WCAG 4.1.2). Give it one.
47                $('.shariff-button.print a').each(function() {
48                    var $a = $(this);
49                    if (!($a.attr('aria-label') || '').trim() && !$a.find('.share_text').text().trim()) {
50                        $a.attr('aria-label', 'Udskriv').attr('title', 'Udskriv');
51                    }
52                });
53            };
54            $.DKM3S.func.fixShariffLabels();
55            var shariffContainer = document.querySelector('.shariff');
56            if (shariffContainer && window.MutationObserver) {
57                // Shariff builds its buttons on DOMContentLoaded; the order of
58                // ready handlers is not guaranteed, so also react to buttons
59                // being inserted after this handler runs.
60                new MutationObserver(function() {
61                    $.DKM3S.func.fixShariffLabels();
62                }).observe(shariffContainer, { childList: true, subtree: true });
63            }
64        });
65    })(jQuery);
66/**
67 * SVG Fixer
68 *
69 * Fixes references to inline SVG elements when the <base> tag is in use.
70 * Firefox won't display SVG icons referenced with
71 * `<svg><use xlink:href="#id-of-icon-def"></use></svg>` when the <base> tag is on the page.
72 *
73 * More info:
74 * - http://stackoverflow.com/a/18265336/796152
75 * - http://www.w3.org/TR/SVG/linking.html
76 *
77 * One would think that setting the `xml:base` attribute fixes things,
78 * but that is being removed from the platform: https://code.google.com/p/chromium/issues/detail?id=341854
79 */
80
81(function(document, window) {
82	"use strict";
83
84	/**
85	* Initialize the SVG Fixer after the DOM is ready
86	*/
87	document.addEventListener("DOMContentLoaded", function() {
88
89		/**
90		 * Current URL, without the hash
91		 */
92		var baseUrl = window.location.href
93			.replace(window.location.hash, "");
94
95		/**
96		*  Find all `use` elements with a namespaced `href` attribute, e.g.
97		*  <use xlink:href="#some-id"></use>
98		*
99		*  See: http://stackoverflow.com/a/23047888/796152
100		*/
101		[].slice.call(document.querySelectorAll("use[*|href]"))
102
103			/**
104			* Filter out all elements whose namespaced `href` attribute doesn't
105			* start with `#` (i.e. all non-relative IRI's)
106			*
107			* Note: we're assuming the `xlink` prefix for the XLink namespace!
108			*/
109			.filter(function(element) {
110				return (element.getAttribute("xlink:href").indexOf("#") === 0);
111			})
112
113			/**
114			* Prepend `window.location` to the namespaced `href` attribute value,
115			* in order to make it an absolute IRI
116			*
117			* Note: we're assuming the `xlink` prefix for the XLink namespace!
118			*/
119			.forEach(function(element) {
120				element.setAttribute("xlink:href", baseUrl + element.getAttribute("xlink:href"));
121			});
122
123	}, false);
124
125}(document, window));
126
127
128$(document).ready(function(){
129  $(".csc-default .filelinks").find("a").attr("target","_blank");
130});

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.