Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const WIDTH = '400px';
- const HEIGHT = '100px';
- var lists = document.getElementsByClassName('list-wrapper');
- var kslist, card;
- for( i=0; i < lists.length; i++) {
- kslist = lists[i];
- kslist.setAttribute('style', 'width: ' + WIDTH);
- var cards = kslist.getElementsByClassName('list-card');
- for ( j=0; j < cards.length; j++) {
- card = cards[j]
- card.setAttribute('style', 'max-width: ' + WIDTH + '; min-height: ' + HEIGHT);
- }
- }
Add Comment
Please, Sign In to add comment