PageSourceSearch

https://static.4shared.com/js/bottomSheets/bottomsheets.4min.js?ver=1594108648

js 4shared.com collected 2026-09-24 07:16:43 UTC 959 bytes, 37 lines download raw bytes

1$(function () {
2  const docBody = $('body');
3  window.showBottomSheet = function (type, params) {
4    if (!type) {
5      console.log('BottomSheet type is not defined');
6      return;
7    }
8
9    docBody.attr('data-bottom-sheet', 'show' + type.charAt(0).toUpperCase() + type.slice(1) + 'BS');
10  }
11
12  window.hideAllBottomSheets = function () {
13    $('body').removeAttr('data-bottom-sheet');
14  }
15
16  docBody.on('click', '.jsCloseBottomSheet', function () {
17    window.hideAllBottomSheets();
18  });
19
20  docBody.on('click', '.bottom-sheet-bg', function () {
21    window.hideAllBottomSheets();
22  });
23
24  $(document).on('keydown', function (e) {
25    if (e.key === 'Escape' && $('body').attr('data-bottom-sheet')) {
26      window.hideAllBottomSheets();
27    }
28  });
29
30  docBody.on('click', '.jsCloseSuccessBS', function () {
31    const url = new URL(window.location.href);
32    url.searchParams.delete('checkout');
33    history.replaceState(null, '', url.toString());
34  });
35
36
37})

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.