# July, 15 2019
# For CON, working on a GTM custom javascript variable to capture img alts if the link is an image rather than text.
function() {
if ({{Click Element}}.children.length > 0) {
return {{Click Element}}.children[0].alt;
} else {
return {{Click Element}}.innerText;
}
}
1
2
3
4
5
6
7
2
3
4
5
6
7
# Back on TAP, used grid span really effectively for the first time.
- The designer used a 12 column grid, so it was easy to use this to size items.
@supports (display: grid) {
display: grid;
grid-gap: em(28);
grid-template-columns: repeat(12, 1fr);
& > li {
grid-column: span 6;
}
& > li:nth-child(n+5) {
grid-column: span 4;
}
}
1
2
3
4
5
6
7
8
9
10
11
2
3
4
5
6
7
8
9
10
11