PageSourceSearch

https://www.victoriamonet.co/js/scripts.js

js victoriamonet.co collected 2026-09-24 22:34:08 UTC 2,300 bytes, 73 lines download raw bytes

1jQuery(document).ready(function ($) {
2    $(".newsletter").on("submit", function (e) {
3        e.preventDefault();
4        var data = $(this).serialize();
5        $.ajax({
6            type: "POST",
7            url: "https://subs.sonymusicfans.com/submit",
8            dataType: "json",
9            data: data,
10            xhrFields: {
11                withCredentials: false
12            },
13            success: function (data) {
14                $('body').addClass('open-modal');
15                $('.modal').addClass('hidden');
16                $("#msg-modal h2").html("Thank you for Signing up");
17                $('#msg-modal').removeClass('hidden');
18            },
19            error: function (err) {
20                $('body').addClass('open-modal');
21                $('.modal').addClass('hidden');
22                $("#msg-modal h2").html("It seems there was a problem. Please try again.");
23                $('#msg-modal').removeClass('hidden');
24            }
25        });
26    });
27});
28
29// year
30const y = new Date();
31let year = y.getFullYear();
32document.getElementById("current_year").innerHTML = year;
33/*-- end year --*/
34
35// mobile menu
36function toggleMenu() {
37    var menu = document.getElementById("menu");
38    var menuToggle = document.getElementById("menuToggle");
39    menu.classList.toggle("open");
40    menuToggle.classList.toggle("active");
41}
42var menuLinks = document.querySelectorAll("nav a")
43menuLinks.forEach(function(elm){
44    elm.addEventListener("click", function() {
45        toggleMenu();
46    })
47})
48
49// toggle modals
50const modals = document.querySelectorAll('.modal');
51
52document.querySelectorAll('.open-modal').forEach(button => {
53    button.addEventListener('click', () => {
54        const targetId = button.getAttribute('data-modal');
55
56        modals.forEach(modal => {
57            if (modal.id === targetId) {
58                modal.classList.remove('hidden');
59                document.body.classList.add('open-modal');
60            } else {
61                modal.classList.add('hidden');
62            }
63        });
64    });
65});
66
67// Optional: close button logic
68document.querySelectorAll('.btn-close').forEach(button => {
69    button.addEventListener('click', () => {
70        button.closest('.modal').classList.add('hidden');
71        document.body.classList.remove('open-modal');
72    });
73});

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.