|
|
@@ -1338,10 +1338,6 @@ controller = {
|
|
|
|
|
|
activeButton.classList = "menuButton active";
|
|
|
activeButton.disabled = true;
|
|
|
-
|
|
|
- if(window.screen.availWidth <= 1000){
|
|
|
- this.closeMenu();
|
|
|
- }
|
|
|
},
|
|
|
|
|
|
/*
|
|
|
@@ -1568,6 +1564,11 @@ controller = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+if(window.screen.availWidth > 1000 && window.screen.availWidth <= 1400){
|
|
|
+ controller.changeMenu();
|
|
|
+ document.getElementById("menuShifter2").style.display = "none";
|
|
|
+}
|
|
|
+
|
|
|
//Add click listeners for menu buttons
|
|
|
document.getElementById("homeBtn").onclick = ()=>{controller.openStrand("home")};
|
|
|
document.getElementById("ingredientsBtn").onclick = ()=>{controller.openStrand("ingredients")};
|
|
|
@@ -3355,7 +3356,7 @@ let home = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- const layout = {
|
|
|
+ let layout = {
|
|
|
title: "REVENUE",
|
|
|
xaxis: {
|
|
|
title: "DATE"
|
|
|
@@ -3365,6 +3366,13 @@ let home = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ if(screen.width < 1400){
|
|
|
+ layout.margin = {
|
|
|
+ l: 35,
|
|
|
+ r: 0
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
Plotly.newPlot("graphCard", [trace], layout);
|
|
|
},
|
|
|
|
|
|
@@ -3467,7 +3475,9 @@ let home = {
|
|
|
}
|
|
|
|
|
|
let layout = {
|
|
|
- title: "MOST POPULAR INGREDIENTS",
|
|
|
+ title: {
|
|
|
+ text: "MOST POPULAR INGREDIENTS"
|
|
|
+ },
|
|
|
xaxis: {
|
|
|
zeroline: false,
|
|
|
title: "QUANTITY"
|
|
|
@@ -3477,14 +3487,15 @@ let home = {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if(screen.width < 1000){
|
|
|
+ if(screen.width < 1400){
|
|
|
layout.margin = {
|
|
|
l: 10,
|
|
|
r: 10,
|
|
|
- t: 100,
|
|
|
- b: 100
|
|
|
+ t: 80,
|
|
|
+ b: 40
|
|
|
};
|
|
|
}
|
|
|
+
|
|
|
|
|
|
Plotly.newPlot("popularIngredientsCard", [trace], layout);
|
|
|
}else{
|