Add arrows(buttons)

This commit is contained in:
Tomasz 2021-02-01 22:21:51 +01:00
parent b1bc85150a
commit 6f0e94c331
4 changed files with 8 additions and 0 deletions

View file

@ -4,6 +4,8 @@ myStorage = window.sessionStorage;
const getAttendance = () => {
document.querySelector('#content').innerHTML = 'Here is attendance (in my imagination)';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_left</i></button>';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_right</i></button>';
cookies_data = sessionStorage.getItem('cookies_data');
csrfcookie_ = sessionStorage.getItem('csrfcookie');
fetch(url = '../api/attendance', {

View file

@ -4,6 +4,8 @@ myStorage = window.sessionStorage;
const getExams = () => {
document.querySelector('#content').innerHTML = 'Here is exams (in my imagination)';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_left</i></button>';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_right</i></button>';
cookies_data = sessionStorage.getItem('cookies_data');
csrfcookie_ = sessionStorage.getItem('csrfcookie');
fetch(url = '../api/exams', {

View file

@ -4,6 +4,8 @@ myStorage = window.sessionStorage;
const getHomeworks = () => {
document.querySelector('#content').innerHTML = 'Here is homeworks (in my imagination)';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_left</i></button>';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_right</i></button>';
cookies_data = sessionStorage.getItem('cookies_data');
csrfcookie_ = sessionStorage.getItem('csrfcookie');
fetch(url = '../api/homeworks', {

View file

@ -4,6 +4,8 @@ myStorage = window.sessionStorage;
const getTimetable = () => {
document.querySelector('#content').innerHTML = 'Here is timetable (in my imagination)';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_left</i></button>';
document.querySelector('#content').innerHTML += '<button><i class="material-icons">keyboard_arrow_right</i></button>';
cookies_data = sessionStorage.getItem('cookies_data');
csrfcookie_ = sessionStorage.getItem('csrfcookie');
fetch(url = '../api/timetable', {