Skip to content

Commit

Permalink
[fix] split scripts and footer
Browse files Browse the repository at this point in the history
  • Loading branch information
ponsfrilus committed Jan 13, 2024
1 parent 0f0bdb2 commit 6883356
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 16 deletions.
3 changes: 2 additions & 1 deletion src/views/pages/about.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
</div>
</div>
</div>
<footer><%- include('partials/footer'); -%></footer>
<%- include('partials/footer'); -%> <%- include('partials/footer_scripts');
-%>
</body>
</html>
4 changes: 2 additions & 2 deletions src/views/pages/catalog.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<%- include('partials/head'); %>
</head>
<body>
<div class="container mt-5">
<div class="container mt-5 main-content">
<h3>catalog</h3>
<ul>
<% data.forEach(function(d) { %>
Expand All @@ -17,6 +17,6 @@
<% }); %>
</ul>
</div>
<%- include('partials/footer'); %>
<%- include('partials/footer'); include('partials/footer_scripts'); -%>
</body>
</html>
18 changes: 13 additions & 5 deletions src/views/pages/help.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -35,22 +35,30 @@
<td><kbd>g</kbd>, <kbd>go</kbd></td>
<td>go.epfl.ch</td>
</tr>
<tr>
<td><kbd>net</kbd>, <kbd>epnet</kbd></td>
<td>network.epfl.ch</td>
</tr>
<tr>
<td><kbd>m</kbd></td>
<td>map.epfl.ch</td>
</tr>
<tr>
<td><kbd>p</kbd></td>
<td>people.epfl.ch</td>
<td><kbd>n</kbd></td>
<td>news.epfl.ch</td>
</tr>
<tr>
<td><kbd>sn</kbd></td>
<td>epfl.servicenow.com</td>
<td><kbd>p</kbd></td>
<td>people.epfl.ch</td>
</tr>
<tr>
<td><kbd>u</kbd></td>
<td>units.epfl.ch</td>
</tr>
<tr>
<td><kbd>sn</kbd></td>
<td>epfl.servicenow.com</td>
</tr>
<tr>
<td><kbd>w</kbd></td>
<td>Wikipedia</td>
Expand Down Expand Up @@ -81,6 +89,6 @@
</div>
</div>
</div>
<%- include('partials/footer'); -%>
<%- include('partials/footer'); include('partials/footer_scripts'); -%>
</body>
</html>
2 changes: 1 addition & 1 deletion src/views/pages/home.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,6 @@
</div>
</div>
</div>
<%- include('partials/footer'); -%>
<%- include('partials/footer'); include('partials/footer_scripts'); -%>
</body>
</html>
7 changes: 0 additions & 7 deletions src/views/pages/partials/footer.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,3 @@
<a href="https://github.com/epfl-si/startpage" target="_blank">source</a>
</span>
</footer>

<script>
svgPath = 'https://web2018.epfl.ch/6.4.0/icons/icons.svg';
featherSvgPath = 'https://web2018.epfl.ch/6.4.0/icons/feather-sprite.svg';
</script>
<script src="https://web2018.epfl.ch/6.4.0/js/elements.min.js"></script>
<script src="/js/search.js"></script>
6 changes: 6 additions & 0 deletions src/views/pages/partials/footer_scripts.ejs
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<script>
svgPath = 'https://web2018.epfl.ch/6.4.0/icons/icons.svg';
featherSvgPath = 'https://web2018.epfl.ch/6.4.0/icons/feather-sprite.svg';
</script>
<script src="https://web2018.epfl.ch/6.4.0/js/elements.min.js"></script>
<script src="/js/search.js"></script>

0 comments on commit 6883356

Please sign in to comment.