1/* 2 * Used in the following files: 3 * /app/packages/module/Resources/Private/Templates/Content/MediaAudioAndVideo.html 4 * 5 * See them on how best to use this JavaScript helper. 6 */ 7$(function () { 8 //console.log('Btn action display more cards.'); 9 10 const BUTTON_ACTION_CLASS = 'btn-action-show-more-cards'; 11 const HIDDEN_CARD_CLASS = 'd-none'; 12 const ACTION_SHOW_MORE_NUM = 'showActionNum'; 13 const PARENT_SHOW_MORE_ID = 'card-parent-id'; 14 15 $('.' + BUTTON_ACTION_CLASS).on('click', function() { 16 console.log('Action button show more cards clicked'); 17 let moreNum = $(this).data(ACTION_SHOW_MORE_NUM); 18 $(this).parent('#' + PARENT_SHOW_MORE_ID + '-' + moreNum).find('.' + HIDDEN_CARD_CLASS).removeClass(HIDDEN_CARD_CLASS); 19 $(this).addClass(HIDDEN_CARD_CLASS); 20 }); 21});
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.