blob: b544a6386df258ab6988516036868e0adf83534e [file] [log] [blame]
/**
* @license
* Copyright 2021 The Go Authors. All rights reserved.
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
*/
const hiddenChips = document.querySelectorAll('.js-sameModChip[data-hidden]');
const showMore = document.querySelector<HTMLButtonElement>('.js-showMoreChip');
showMore?.addEventListener('click', () => {
for (const el of hiddenChips) {
el.removeAttribute('data-hidden');
}
showMore.parentElement?.removeChild(showMore);
});