-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
7 additions
and
7 deletions.
There are no files selected for viewing
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,12 @@ | ||
"use strict"; | ||
document.addEventListener("DOMContentLoaded", async function () { | ||
let plusInput = document.getElementById("plus"); | ||
let minusInput = document.getElementById("minus"); | ||
let tylkoLiczDoSredniej = document.getElementById("tylkoLiczDoSredniej"); | ||
let schowajZachowanie = document.getElementById("schowajZachowanie"); | ||
let ignoreCorrectedGrades = document.getElementById("ignoreCorrectedGrades"); | ||
let nextWeekAtWeekend = document.getElementById("nextWeekAtWeekend"); | ||
let submitButton = document.getElementById("submit"); | ||
const plusInput = document.getElementById("plus"); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
EnterVPL
|
||
const minusInput = document.getElementById("minus"); | ||
const tylkoLiczDoSredniej = document.getElementById("tylkoLiczDoSredniej"); | ||
const schowajZachowanie = document.getElementById("schowajZachowanie"); | ||
const ignoreCorrectedGrades = document.getElementById("ignoreCorrectedGrades"); | ||
const nextWeekAtWeekend = document.getElementById("nextWeekAtWeekend"); | ||
const submitButton = document.getElementById("submit"); | ||
|
||
plusInput.value = await getData("plus"); | ||
minusInput.value = await getData("minus"); | ||
|
jeśli chcesz sobie to skrócić, to możesz utworzyć taki alias:
wtedy
elemById()
będzie działać tak samo jakdocument.getElementById()
bo to będzie to samo