Skip to content
This repository was archived by the owner on Feb 4, 2024. It is now read-only.

Commit 116466a

Browse files
committed
Added some TODO comments
1 parent 0d3c2c6 commit 116466a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

resources/js/contentTransformation.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ window.addEventListener('load', function () {
4949
}
5050
});
5151

52+
// TODO: Split article to <section> elements
53+
// TODO: Add 'to top' markers to section ends
54+
5255
/* Reformat history pages */
5356
window.addEventListener('load', function () {
5457
if (document.getElementById('mw-history-compare')) {
@@ -162,4 +165,4 @@ window.addEventListener('load', function () {
162165
caller.find('p').html('Article not found!<br>Reason: ' + status + ', ' + err);
163166
});
164167
};
165-
});
168+
});

resources/templates/main.mustache

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
<body>
2+
{{! TODO: Replace UIkit with something that's more CSS and less JS, for better default usability https://github.com/troxler/awesome-css-frameworks }}
23
{{! TODO: Better mermaid integration to remove need for <pre> tags }}
34
{{! TODO: Better image handling to prevent overrun }}
45
{{! TODO: RTL version conditional on $data['rtl'] }}
56
{{#if prebodyhtml}}<div>{{{prebodyhtml}}}</div>{{/if}}
67
{{! WORKAROUND: can't add classes to <body>, so using a wrapper div }}
78
<div id="body-wrapper" class="uk-grid uk-margin-auto">
9+
{{! TODO: Convert top-bar to 'sticky' }}
810
<header id="top-bar" class="uk-width-1-1 uk-grid uk-margin-bottom">
911
<div class="uk-width-expand">
1012
{{! filler to push #logo and #page-title to the right }}
@@ -21,6 +23,7 @@
2123
{{! filler to push #tools to the right }}
2224
</div>
2325
{{! TODO: Integrate $data['language_urls'] conditionally as a dropdown list }}
26+
{{! TODO: Restrucutre menus for JS-less clients using <noscript> tags}}
2427
<nav id="tools" class="uk-navbar-container uk-navbar-transparent uk-padding-remove-left " uk-navbar>
2528
<ul class="uk-navbar-nav">
2629
<li id="site-tools">

0 commit comments

Comments
 (0)