PageSourceSearch

https://flex-reisen.de/wp-content/plugins/smg-customer-portal/scripts/modal.js?ver=7.1

js flex-reisen.de collected 2026-10-07 05:32:32 UTC 1,892 bytes, 65 lines download raw bytes

1window.jQuery(document).ready(function() {
2	var $ = window.jQuery;
3
4	if (typeof window.location.search === 'string' && window.location.search.length > 0) {
5		const url = new URL(location);
6		const dialogToOpen = url.searchParams.get('open_dialog');
7
8		if (typeof dialogToOpen === 'string' && dialogToOpen.length > 0) {
9			$('.cupo-modal.cupo-modal-' + dialogToOpen).addClass('active');
10			url.searchParams.delete('open_dialog');
11			history.pushState({}, "", url);
12		}
13	}
14
15	$('.cupo-modal-cancel_button').on('click', function(e) {
16		var cancelButton = $(this)[0];
17
18		$('.cupo-modal.active').find('form').trigger('reset');
19
20		$(cancelButton).closest('div.cupo-modal').removeClass('active');
21	});
22
23	$('.cupo-modal-confirm_button:not(.cupo-modal form .cupo-modal-confirm_button)').on('click', function(e) {
24		var confirmButton = $(this)[0];
25
26		if (!e.target.form || e.target.form.checkValidity()) {
27			$(confirmButton).closest('div.cupo-modal').removeClass('active');
28		}
29	});
30
31	$('.cupo-modal-overlay').on('click', function(e) {
32		var modalOverlay = $(this)[0];
33
34		$('.cupo-modal.active').find('form').trigger('reset');
35
36		$(modalOverlay).closest('div.cupo-modal').removeClass('active');
37	});
38
39	$('.cupo-modal-close_button').on('click', function () {
40		var closeButton = $(this)[0];
41
42		$('.cupo-modal.active').find('form').trigger('reset');
43
44		$(closeButton).closest('div.cupo-modal').removeClass('active');
45
46		if ($(closeButton).data('reload-page') === 'yes') {
47			location.reload();
48		}
49
50		var redirectRoute = $(closeButton).data('redirect');
51
52		if (typeof redirectRoute === 'string' && redirectRoute.trim().length > 0) {
53			location.href = redirectRoute;
54		}
55	});
56
57	$(document).on('keyup', function(e) {
58		if (e.which === 27 || e.key === 'Escape' || e.code === 'Escape') {
59
60			$('.cupo-modal.active').find('form').trigger('reset');
61
62			$('div.cupo-modal').removeClass('active');
63		}
64	});
65});

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.