PageSourceSearch

https://store.bim-world.de/js/Utils/getUrlParameters.js

js bim-world.de collected 2026-10-02 10:41:11 UTC 1,171 bytes, 47 lines download raw bytes

1import { throwError } from "./errorHandler.js";
2
3export const getEventFromUrl = () => {
4    const urlParams = new URLSearchParams(window.location.search);
5    if(urlParams.get('e') == null){
6        throwError();
7    }
8    return urlParams.get('e'); 
9}
10
11export const getTicketFromUrl = () => {
12    const urlParams = new URLSearchParams(window.location.search);
13    if(urlParams.get('t') == null){
14        throwError();
15    }
16    return urlParams.get('t');
17
18}
19
20export const getQuantityFromUrl = () => {
21    const urlParams = new URLSearchParams(window.location.search);
22    if(urlParams.get('q') == null){
23        throwError();
24    }
25    return urlParams.get('q');
26    
27}
28
29export const getOrderFromUrl = () => {
30    const urlParams = new URLSearchParams(window.location.search);
31    if(urlParams.get('r') == null){
32        throwError();
33    }
34    return urlParams.get('r'); 
35}
36
37export const getCodeFromUrl = () => {
38    const urlParams = new URLSearchParams(window.location.search);
39    return urlParams.get('c');
40}
41
42export const getUpgradeStatusFromUrl = () => {
43    const urlParams = new URLSearchParams(window.location.search);
44    return urlParams.get('update'); 
45}
46
47

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.