PageSourceSearch

https://oneoptimumlifestyles.com/myaccountv2/assets/js/sweetalert.js

js oneoptimumlifestyles.com collected 2026-10-02 16:04:39 UTC 4,524 bytes, 138 lines download raw bytes

1
2    $(document).ready(function () {
3        $('#basic').on('click', function () {
4            Swal.fire('Hello! This is a Basic Message.')
5    	});
6        $('#basic-title').on('click', function () {
7            Swal.fire(
8                'The Internet?',
9                'That thing is still around?',
10                'question'
11            )
12        });
13        $('#success').on('click', function () {
14            Swal.fire({                
15                icon: 'success',
16                title: 'Your work has been saved',
17                showConfirmButton: false,                
18            })
19        });
20        $('#info').on('click', function () {
21            Swal.fire({                
22                icon: 'info',
23                title: 'Good Job!',
24                showConfirmButton: false,                
25            })
26        });
27        $('#warning').on('click', function () {
28            Swal.fire({                
29                icon: 'warning',
30                title: 'Changes are not saved',
31                showConfirmButton: fal
31se,
32                
33            })
34        });
35        $('#danger').on('click', function () {
36            Swal.fire({
37                icon: 'error',
38                title: 'OOps!!',
39                text: 'Something went Wrong',
40                showConfirmButton: false,                
41            })
42        });
43        $('#confirmation').on('click', function () {
44            Swal.fire({
45                title: "Are you sure?",
46                text: "Once deleted, you will not be able to recover this imaginary file!",
47                icon: "warning",
48                buttons: true,
49                dangerMode: true,
50            })
51            .then((willDelete) => {
52                if (willDelete) {
53                    Swal.fire("Poof! Your imaginary file has been deleted!", {
54                        icon: "success",
55                    });
56                } else {
57                    Swal.fire("Your imaginary file is safe!");
58                }
59            });
60        });
61        $('#custom-buttons').on('click', function () {
62            Swal.fire("A wild Pikachu appeared! What do you want to do?", {
63                buttons: {
64                    cancel: "Run away!",
65                    catch: {
66                        text: "Throw Pokéball!",
67                        value: "catch",
68                    },
69                    defeat: true,
70                },
71            })
72            .then((value) => {
73                switch (value) {
74
75                    case "defeat":
76                        Swal.fire("Pikachu fainted! You gained 500 XP!");
77                        break;
78
79                    case "catch":
80                        Swal.fire("Gotcha!", "Pikachu was caught!", "success");
81                        break;
82
83                    default:
84                        Swal.fire("Got away safely!");
85                }
86            });
87        });
88        $('#ajax-request').on('click', function () {
89            Swal.fire({
90                text: 'Search for a movie. e.g. "La La Land".',
91                content: "input",
92                button: {
93                    text: "Search!",
94                    closeModal: false,
95                },
96            })
97            .then(name => {
98                if (!name) throw null;
99
100                return fetch(`https://itunes.apple.com/search?term=${name}&entity=movie`);
101            })
102            .then(results => {
103                return results.json();
104            })
105            .then(json => {
106                const movie = json.results[0];
107
108                if (!movie) {
109                    return Swal.fire("No movie was found!");
110                }
111
112                const name = movie.trackName;
113                const imageURL = movie.artworkUrl100;
114
115                Swal.fire({
116                    title: "Top result:",
117                    text: name,
118                    icon: imageURL,
119                });
120            })
121            .catch(err => {
122                if (err) {
123                    Swal.fire("Oh noes!", "The AJAX request failed!", "error");
124                } else {
125                    Swal.fire.stopLoading();
126                    Swal.fire.close();
127                }
128            });
129        }); 
130        $('#form-input').on('click', function () {
131            Swal.fire("Write something here:", {
132                content: "input",
133            })
134            .then((value) => {
135                Swal.fire(`You typed: ${value}`);
136            });
137        });      
138    });

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.