Created Calender
This commit is contained in:
+6
@@ -12,6 +12,8 @@ function toggleMenu() {
|
||||
var buttonElement = document.getElementById('menuIcon');
|
||||
|
||||
var htmlElement = document.getElementsByTagName('html')[0];
|
||||
var headerElement = document.getElementsByTagName('header')[0];
|
||||
var bodyElement = document.getElementsByTagName('body')[0];
|
||||
var logoElement = document.getElementById('sdeLogo');
|
||||
var mainElement = document.getElementsByTagName('main')[0];
|
||||
|
||||
@@ -20,6 +22,8 @@ function toggleMenu() {
|
||||
if(buttonElement.alt === '-')
|
||||
{
|
||||
htmlElement.style.backgroundColor = 'rgb(0, 120, 138)';
|
||||
bodyElement.style.backgroundColor = 'rgb(0, 120, 138)';
|
||||
headerElement.style.backgroundColor = 'rgb(0, 120, 138)';
|
||||
logoElement.src = '/images/logos/Logo-hvid.svg';
|
||||
menu.classList.remove('d-none');
|
||||
mainElement.classList.add('d-none');
|
||||
@@ -29,6 +33,8 @@ function toggleMenu() {
|
||||
else
|
||||
{
|
||||
htmlElement.style.backgroundColor = 'rgb(255, 255, 255)';
|
||||
bodyElement.style.backgroundColor = 'rgb(255, 255, 255)';
|
||||
headerElement.style.backgroundColor = 'rgb(255, 255, 255)';
|
||||
logoElement.src = '/images/logos/Logo-normal.svg';
|
||||
menu.classList.add('d-none');
|
||||
mainElement.classList.remove('d-none');
|
||||
|
||||
Reference in New Issue
Block a user