PageSourceSearch

https://www.visitlasvegas.com/includes/public/managed/v_a2e6ae52_1…/js/custom_form_popup_style_helper.js

js visitlasvegas.com collected 2026-10-02 02:40:15 UTC 497 bytes, 21 lines download raw bytes

1// CRM FORM STYLING HELPER JS
2// Adds the body class as quickly as possible to hide all the items on the page so we don't
3// have the site flash before the calendar shows up
4
5const paramsList = [
6	{
7		key: 'action',
8		value: 'popupCal',
9	},
10	{
11		key: 'action',
12		value: 'fileUploadForm',
13	},
14];
15
16const urlParams = new URLSearchParams(window.location.search);
17paramsList.forEach(({ key, value }) => {
18	if (urlParams.get(key) === value) {
19		document.body.classList.add('crm-calendar-popup');
20	}
21});

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.