This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get the FIRST url parameter | |
// between the start of query string (? excluded) | |
// and the first separator (& excluded) | |
"use strict"; | |
window.onload = () => { | |
// Optional Chaining and Nullish Coalescing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let tabs = document.querySelector('.tab__links'); | |
let tabsPaddingLeft = parseInt(window.getComputedStyle(tabs, null).getPropertyValue('padding-left')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
window.addEventListener("load", function () { | |
var tabLinks = document.querySelectorAll(".search-results__tab-link"); | |
var tabs = document.querySelectorAll(".search-results__tab"); | |
tabLinks.forEach(function (element) { | |
element.addEventListener("click", function (event) { | |
activateTab(event.target.dataset.tabId); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ng-container *ngTemplateOutlet="navigation; context: {classes: 'desktop', label: 'desktop'}"></ng-container> | |
<ng-container *ngTemplateOutlet="navigation; context: {classes: 'mobile', label: 'mobile'}"></ng-container> | |
<ng-template #navigation let-classes="classes" let-label="label"> | |
<div [ngClass]="classes"> | |
{{ label }} | |
</div> | |
</ng-template> |
OlderNewer