PageSourceSearch

https://www.vieuxportdemontreal.com/modules/custom/dashboard/assets/js/dashboard_preview.js?v=1.x

js vieuxportdemontreal.com collected 2026-10-02 05:26:14 UTC 1,523 bytes, 41 lines download raw bytes

1/*(function ($) {
2    $.uriQuery = function () {
3        var url = window.location.href,
4            query = {};
5        if (url.indexOf('?') > -1) {
6            var strQuery = url.substr(url.indexOf('?') + 1),
7                queryData = strQuery.split('&');
8            for (var i = 0; i < queryData.length; i++) {
9                var key = queryData[i].substring(0, queryData[i].indexOf('=')),
10                    value = queryData[i].substr(queryData[i].indexOf('=') + 1);
11                query[key] = value;
12            }
13        }
14        return query;
15    };
16    $.fn.addClassOld = $.fn.addClass;
17    $.fn.addClass = function () {
18        $(this).trigger('classChange');
19        return $(this).addClassOld(arguments[0]);
20    };
21    var removeToolbarIfNeeded = function () {
22        if ($.uriQuery().hasOwnProperty('dashboard_preview') && $.uriQuery()['dashboard_preview'] == 'true') {
23            $('#toolbar-administration').hide();
24            $('#block-vpm-d8-local-tasks').remove();
25            var bodyClasses = $('body').attr('class').split(' ');
26            for (var i = 0; i < bodyClasses.length; i++) {
27                if (bodyClasses[i].indexOf('toolbar') != -1 || bodyClasses[i].indexOf('logged') != -1) {
28                    $('body').removeClass(bodyClasses[i]);
29                }
30            }
31        }
32    };
33    $(document).ready(function () {
34        $('body').on('classChange', function () {
35            removeToolbarIfNeeded();
36        });
37        removeToolbarIfNeeded();
38    });
39})(jQuery);
40
41*/

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.