Skip to content

Commit

Permalink
updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sshermat committed Nov 21, 2024
1 parent 7eee327 commit 1d3c1d6
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 223 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ __pycache__/

#Ignore VS Code settings
.vscode/
.env
File renamed without changes.
16 changes: 0 additions & 16 deletions essential_words/asgi.py

This file was deleted.

143 changes: 0 additions & 143 deletions essential_words/settings.py

This file was deleted.

18 changes: 0 additions & 18 deletions essential_words/urls.py

This file was deleted.

16 changes: 0 additions & 16 deletions essential_words/wsgi.py

This file was deleted.

30 changes: 0 additions & 30 deletions quiz/static/JS/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -341,33 +341,3 @@ document.addEventListener('dblclick',function(e){
e.preventDefault();
});


// 1. Use URL parameters
// Modify your JavaScript to update the URL when changing pages
function updateURL(page) {
history.pushState(null, '', `?page=${page}`);
}

// Check URL parameters on page load
window.addEventListener('load', () => {
const urlParams = new URLSearchParams(window.location.search);
const page = urlParams.get('page');
if (page) {
// Load the appropriate page based on the URL parameter
loadPage(page);
}
});

// 2. Use localStorage
// Save the current page state
// function savePage(page) {
// localStorage.setItem('currentPage', page);
// }

// // Load the saved page on refresh
// window.addEventListener('load', () => {
// const savedPage = localStorage.getItem('currentPage');
// if (savedPage) {
// loadPage(savedPage);
// }
// });

0 comments on commit 1d3c1d6

Please sign in to comment.