Loading Words
- -- Please Wait... @@ -133,6 +134,39 @@ Privacy +
+ ×︎
+
+
+
+
+
+
diff --git a/src/index.js b/src/index.js
index 75e118f..2965f89 100644
--- a/src/index.js
+++ b/src/index.js
@@ -9,10 +9,10 @@ import { generateRandomWords } from './js/utilities';
function initialize() {
console.log('initializing');
window.currentDictionary = cloneObject(DEFAULT_DICTIONARY);
- generateRandomWords(100);
+ // generateRandomWords(100);
setupListeners();
renderAll();
- console.log('Rendered!');
+ // console.log('Rendered!');
}
window.onload = (function (oldLoad) {
diff --git a/src/js/setupListeners.js b/src/js/setupListeners.js
index 3db06ab..fcdf5c4 100644
--- a/src/js/setupListeners.js
+++ b/src/js/setupListeners.js
@@ -9,6 +9,7 @@ import { goToNextPage, goToPreviousPage, goToPage } from './pagination';
export default function setupListeners() {
setupDetailsTabs();
setupSearchBar();
+ setupSettingsModal();
setupWordForm();
setupMobileWordFormButton();
setupInfoButtons();
@@ -194,6 +195,12 @@ export function setupWordOptionSelections() {
});
}
+export function setupSettingsModal() {
+ document.getElementById('settingsButton').addEventListener('click', () => {
+ document.getElementById('settingsModal').style.display = '';
+ });
+}
+
export function setupWordEditFormButtons() {
const saveChangesButtons = document.getElementsByClassName('edit-save-changes');
const cancelChangesButtons = document.getElementsByClassName('edit-cancel');
diff --git a/src/scss/_structure.scss b/src/scss/_structure.scss
index ef68fc7..de4b63b 100644
--- a/src/scss/_structure.scss
+++ b/src/scss/_structure.scss
@@ -76,6 +76,10 @@
}
}
}
+
+ #settingsButton {
+ float: right;
+ }
}
#mobileWordFormShow {