PageSourceSearch

https://www.clavans-en-oisans.com/assets/js/utils/push-utils-13bf1bb5de23b62caa4805945d804f16.js

js clavans-en-oisans.com collected 2026-10-02 16:59:26 UTC 828 bytes, 23 lines download raw bytes

1import {successSwal, errorSwal} from 'swal-utils';
2
3export function sendPush() {
4    document.querySelectorAll('.btn-push').forEach(function (button) {
5        button.addEventListener('click', function () {
6            var url = Routing.generate('smartphone_push', {id: button.getAttribute('data-id'), stationId: button.getAttribute('data-station')});
7
8            fetch(url, {
9                method: 'GET',
10                headers: {
11                    'Content-Type': 'application/json'
12                }
13            })
14                .then(response => response.json())
15                .then(data => {
16                    successSwal(JSON.stringify(data, null, 4));
17                })
18                .catch(error => {
19                    errorSwal(JSON.stringify(error, null, 4));
20                });
21        });
22    });
23}

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.