Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
15 changed files
with
154 additions
and
14 deletions.
There are no files selected for viewing
BIN
+6.41 KB
chromium_page_load.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+0 Bytes
(100%)
public/.DS_Store
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
BIN
+11.6 KB
public/images/amber.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+5.46 KB
public/images/desktop.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+11.4 KB
public/images/green.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+9.78 KB
public/images/red.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
BIN
+4.84 KB
public/images/tablet.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
|
||
import { getCookie, login } from '../core.js' | ||
import { getCookie, login, showMessage } from '../core.js' | ||
|
||
export async function setup() { | ||
try { | ||
await login() | ||
document.querySelector('h1').innerText = 'Home Page' | ||
document.querySelector('main > button').addEventListener('click', event => { | ||
console.log('adding a new note') | ||
document.querySelector('main section').classList.remove('hidden') | ||
}) | ||
} catch(err) { | ||
console.log(err.message) | ||
showMessage(err.message) | ||
window.location.href = '/#login' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
|
||
import { deleteCookie } from '../core.js' | ||
import { deleteCookie, getCookie } from '../core.js' | ||
|
||
export async function setup() { | ||
deleteCookie('authorization') | ||
window.location.href = '/#login' | ||
navigator.geolocation.clearWatch(getCookie('geoID')) | ||
deleteCookie('authorization') | ||
deleteCookie('geoID') | ||
window.location.href = '/#login' | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,12 @@ | ||
|
||
<p>Home Page</p> | ||
<button>Add list</button> | ||
|
||
<section class="hidden"> | ||
<form name="note"> | ||
<h2>Add Note</h2> | ||
<p><label for="name">Name</label><br /><input type="text" name="name" placeholder="name of note" /></p> | ||
<p><label for="pass">Description</label><br /><textarea></textarea></p> | ||
<p><button type="submit">Add</button></p> | ||
</form> | ||
</section> |