Skip to content

Commit

Permalink
Merge pull request #125 from adobe/lib-helix
Browse files Browse the repository at this point in the history
chore: splitting off lib-franklin.js
  • Loading branch information
davidnuescheler authored Oct 13, 2022
2 parents 246ea03 + 4297637 commit 10c3778
Show file tree
Hide file tree
Showing 13 changed files with 769 additions and 770 deletions.
4 changes: 2 additions & 2 deletions 404.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<meta property="og:title" content="Page not found">
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<script type="module">
import { sampleRUM } from '/scripts/scripts.js';
import { sampleRUM } from '/scripts/lib-franklin.js';

window.addEventListener('load', () => {
if (document.referrer) {
Expand Down Expand Up @@ -64,4 +64,4 @@ <h2 class="error-message">Page Not Found</h2>
<footer></footer>
</body>

</html>
</html>
2 changes: 1 addition & 1 deletion blocks/cards/cards.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { createOptimizedPicture } from '../../scripts/scripts.js';
import { createOptimizedPicture } from '../../scripts/lib-franklin.js';

export default function decorate(block) {
/* change to ul, li */
Expand Down
2 changes: 1 addition & 1 deletion blocks/footer/footer.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readBlockConfig, decorateIcons } from '../../scripts/scripts.js';
import { readBlockConfig, decorateIcons } from '../../scripts/lib-franklin.js';

/**
* loads and decorates the footer
Expand Down
2 changes: 1 addition & 1 deletion blocks/header/header.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { readBlockConfig, decorateIcons } from '../../scripts/scripts.js';
import { readBlockConfig, decorateIcons } from '../../scripts/lib-franklin.js';

/**
* collapses all open nav sections
Expand Down
1 change: 1 addition & 0 deletions head.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="/scripts/lib-franklin.js" type="module" crossorigin="use-credentials"></script>
<script src="/scripts/scripts.js" type="module" crossorigin="use-credentials"></script>
<link rel="stylesheet" href="/styles/styles.css"/>
<link rel="icon" href="data:,">
2 changes: 1 addition & 1 deletion scripts/delayed.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// eslint-disable-next-line import/no-cycle
import { sampleRUM } from './scripts.js';
import { sampleRUM } from './lib-franklin.js';

// Core Web Vitals RUM collection
sampleRUM('cwv');
Expand Down
Loading

0 comments on commit 10c3778

Please sign in to comment.