PageSourceSearch

https://its-my.link/assets/js/main-dashboard.js

js its-my.link collected 2026-10-01 12:14:03 UTC 3,008 bytes, 85 lines download raw bytes

1
2(function ($) {
3
4    "use strict";
5
6    var fullHeight = function () {
7
8        $('.js-fullheight').css('height', $(window).height());
9        $(window).resize(function () {
10            $('.js-fullheight').css('height', $(window).height());
11        });
12
13    };
14    fullHeight();
15
16    $('#sidebarCollapse').on('click', function () {
17        $('#sidebar').toggleClass('active');
18    });
19
20    $.ajaxSetup({
21        headers: {
22            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
23        }
24    });
25    var sortableTbody = document.getElementById("links-table-body");
26    if (sortableTbody) {
27        const sortableLinkTable = Sortable.create(sortableTbody, {
28            handle: ".sortable-handle",
29            animation: 150,
30            swapThreshold: 0.60,
31            ghostClass: 'bg-soft-secondary',
32            onChange: function (event) {
33            },
34            store: {
35                get: function (sortable) {
36                    var order = linksTableOrders || "";
37                    return order ? order.split('|') : [];
38                },
39                set: function (sortable) {
40                    const linkOrders = sortable.toArray();
41                    const currentPage = sortableTbody.dataset.page || 1;
42                    const perPage = sortableTbody.dataset.perPage || 0;
43                    const formData = {
44                        'linkOrders': linkOrders,
45                        'currentPage': currentPage,
46                        'perPage': perPage,
47                    };
48                    // $.blockUI({
49                    // 	message: '<img width="70px" src="img/loading.gif" />',
50                    // 	css: {
51                    // 		backgroundColor: 'transparent',
52                    // 		border: 'none',
53                    // 		color: '#444444',
54                    // 	}
55                    // });
56
57                    // VERY janky solution; have to fix later
58                    var str = window.location.pathname;
59                    str = str.replace("/studio/links", "");
60
61                    $.post(str + "/studio/sort-link", formData, function (response) {
62                        if (response.linkOrders) {
63                            $.each(response.linkOrders, function (linkId, linkOrder) {
64                                // $("#links-table-body div[data-id='"+linkId+"']")
65                                // 	.find("div:eq(3)")
66                                // 	.html(linkOrder);
67                            });
68                            //$.unblockUI();
69                        } else {
70                            alert("Something went wrong! Please, Try again.")
71                        }
72                    });
73                    
74                    setTimeout(function(){
75                        document.getElementById('frPreview1').src += '';
76                        document.getElementById('frPreview2').src += '';
77                    }, 300);
78                }
79            }
80        });
81    }
82
83
84
85})(jQuery);

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.