PageSourceSearch

https://polyglia.com/wp-content/plugins/360mind-quiz/assets/js/global.js?ver=1790261410

js polyglia.com collected 2026-09-24 14:50:49 UTC 1,765 bytes, 47 lines download raw bytes

1jQuery(document).ready(function($) {
2
3    $('body').on('click', '[generalizedquiz]', function(e) {
4        let targetValue = $(this).attr('generalizedquiz');
5        let cookieName = '_generalizedQuiz';
6        setCookie(cookieName, targetValue);
7    });
8
9
10    window.addEventListener( "pageshow", function ( event ) {
11        var historyTraversal = event.persisted ||
12            ( typeof window.performance != "undefined" &&
13                window.performance.navigation.type === 2 );
14        if (historyTraversal && ( window.location.href.includes('quiz'))) {
15            window.location.reload();
16        }
17    });
18
19    function checkPreviousURL() {
20        const previousURL = sessionStorage.getItem('previousURL');
21        if (previousURL && previousURL.includes('calculating')) {
22
23            // let custom_urls = data_var.custom_urls;
24            // let custom_urls_length = custom_urls.length;
25            console.log('Navigated back from a URL with slug "calculating"');
26            // $('.question').hide();
27            // $('.question[data-custom-url="'+custom_urls[custom_urls_length-1]+'"').show();
28            // $('.current-count').text(custom_urls_length);
29            // $('.back-quiz').visibility('visible');
30        }
31    }
32    //
33    // window.addEventListener('beforeunload', function () {
34    //     sessionStorage.setItem('previousURL', window.location.href);
35    // });
36    //
37    // window.addEventListener('popstate', function (event) {
38    //     checkPreviousURL();
39    // });
40    //
41    // checkPreviousURL();
42    $('body').on('click','.set-gender', function(e){
43        let targetValue = $(this).find('.elementor-button-text').text();
44        let cookieName = '_selected_gender';
45        setCookie(cookieName,targetValue);
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.