Skip to content

Commit

Permalink
Time Round Improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Alland committed Sep 18, 2019
1 parent 4779649 commit 817de0b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
Binary file modified resources/images/.DS_Store
Binary file not shown.
23 changes: 14 additions & 9 deletions src/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function makePages(content) {
}
else {
// Time round cannot display as many characters.
pages = splitTextCleanly(pages, 68, 0, true, paragraphs[paragraphNum]);
pages = splitTextCleanly(pages, 72, 0, true, paragraphs[paragraphNum]);
}
}
}
Expand Down Expand Up @@ -242,14 +242,19 @@ var articleSelectMenu = {};
function selectArticle(articleList, heading) {

articleDisplayTitles = [];
for (i = 0; i < articleList.length; i++) {
currTitle = [];
splitTextCleanly(currTitle, 17, 0, false, articleList[i].title);

articleDisplayTitles.push({
title: currTitle[0],
subtitle: currTitle.slice(1, currTitle.length).join(' ')
});
if (! Feature.round()) {
for (i = 0; i < articleList.length; i++) {
currTitle = [];
splitTextCleanly(currTitle, 17, 0, false, articleList[i].title);

articleDisplayTitles.push({
title: currTitle[0],
subtitle: currTitle.slice(1, currTitle.length).join(' ')
});
}
}
else {
articleDisplayTitles = articleList;
}

articleSelectMenu = new UI.Menu({
Expand Down

0 comments on commit 817de0b

Please sign in to comment.