Skip to content

Commit

Permalink
commit pages
Browse files Browse the repository at this point in the history
  • Loading branch information
wmannard committed Jul 9, 2024
1 parent d374b9f commit 59c141c
Show file tree
Hide file tree
Showing 1,532 changed files with 10,353 additions and 4 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
node_modules/
public/
!public/cdn_test.html
.idea/
npm-debug.log
Expand Down
6 changes: 3 additions & 3 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ exports.alpha = gulp.series(
copyResource,
copyExtraResources,
copyThemes,
getTestPages,
moveDownloadedFiles,
deleteOriginalFiles,
// getTestPages,
// moveDownloadedFiles,
// deleteOriginalFiles,
copyLocalTestFiles
);

Expand Down
393 changes: 393 additions & 0 deletions public/automatic-facets/dynamics.html

Large diffs are not rendered by default.

37 changes: 37 additions & 0 deletions public/automatic-facets/header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
const links = [
{href: './dynamics.html', label: 'Dynamics'},
{href: './lithium.html', label: 'Lithium'},
{href: './rss.html', label: 'Rss'},
{href: './servicenow.html', label: 'Servicenow'},
{href: './youtube.html', label: 'Youtube'},
];

const header = document.createElement('header');

const getCurrentExample = () =>
links.find((link) => link.href === window.location.pathname);

const makeLinks = () => {
return links
.filter((link) => link.href !== window.location.pathname)
.map(
(link) =>
`<li style="display: inline-block; list-decoration: none;">
<a href="${link.href}" style="margin-right: 10px; color: var(--atomic-primary); text-decoration: none;">${link.label}</a>
</li>`
)
.join('');
};
const example = getCurrentExample();
header.innerHTML = `
<nav style="padding: 10px 20px; font-family: var(--atomic-font-family);">
<span style="font-weight: var(--atomic-font-bold);">${
example ? example.label : ''
} automatic facet examples</span>
<ul style="display: inline-block; font-size: var(--atomic-text-sm);">
${makeLinks()}
</ul>
</nav>
`;

document.body.insertAdjacentElement('afterbegin', header);
Loading

0 comments on commit 59c141c

Please sign in to comment.