PageSourceSearch

https://sugarfina.sg/Scripts/v2/home/collapse-card.js?v=27.20260916-124

js sugarfina.sg collected 2026-09-29 23:22:28 UTC 662 bytes, 19 lines download raw bytes

1const $collapseBox = '.collapse-box';
2const collapseHeader = '.collapse-header';
3const collapseBody = '.collapse-body';
4
5const setHeightQRCodeSection = ($that) => {
6    $that.find(collapseBody).css("height", $that.find('.collapse-card').outerHeight());
7};
8
9$(document).on('click', '.btn-collapse', function () {
10    let $that = $(this).parents('.collapse-box');
11    if ($that.find(collapseHeader).hasClass('in')) {
12        setHeightQRCodeSection($that);
13        $that.find(collapseHeader).removeClass('in');
14    }
15    else {
16        $that.find(collapseBody).removeAttr('style');
17        $that.find(collapseHeader).addClass('in');
18    }
19});

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.