add error checking to Warranty Highlight feature
refactor code
This commit is contained in:
@@ -1,14 +1,25 @@
|
|||||||
"use strict";
|
"use strict";
|
||||||
|
|
||||||
/*
|
/*
|
||||||
TODO: insert a reset button into search form
|
TODO float buttons on bottom of RO
|
||||||
TODO: style menubar and keep it sticky on the window
|
TODO float location entry on RO (sidebar?)
|
||||||
TODO: style/move the location scan to float with the RO
|
TODO style individual buttons
|
||||||
TODO: implement facebook-style notifications
|
TODO options page
|
||||||
|
- move parts list buttons top or bottom
|
||||||
|
- color themes?
|
||||||
|
BUG close button on photo pages is styled along with the btnCancel
|
||||||
|
HACK display tiny images next to parts list?
|
||||||
|
TODO shrink navbar/header/location on scroll
|
||||||
|
TODO fancy button animations
|
||||||
|
TODO choose file on upload window
|
||||||
|
TODO insert a reset button into search form
|
||||||
|
TODO style menubar and keep it sticky on the window
|
||||||
|
TODO style/move the location scan to float with the RO
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Warranty Highlight
|
// Warranty Highlight
|
||||||
const isWarranty = document.getElementById("chkWarrantee");
|
const isWarranty = document.getElementById("chkWarrantee");
|
||||||
|
if (isWarranty != null) {
|
||||||
isWarranty.addEventListener("change", updateBackground);
|
isWarranty.addEventListener("change", updateBackground);
|
||||||
updateBackground();
|
updateBackground();
|
||||||
function updateBackground() {
|
function updateBackground() {
|
||||||
@@ -19,10 +30,18 @@ function updateBackground() {
|
|||||||
? "white"
|
? "white"
|
||||||
: "black";
|
: "black";
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO highlight change case label if SN updated
|
||||||
|
|
||||||
|
// TODO color bg to bin color
|
||||||
|
|
||||||
|
// TODO add current location to top of page somewhere
|
||||||
|
|
||||||
// Notification system
|
// Notification system
|
||||||
|
// TODO implement facebook-style notifications
|
||||||
// https://portal.trgrepair.com/task_manager.asp?rnd=0.9996227368620352
|
// https://portal.trgrepair.com/task_manager.asp?rnd=0.9996227368620352
|
||||||
|
|
||||||
const notifCountStr = document.getElementById("lblTask").innerText;
|
// const notifCountStr = document.getElementById("lblTask").innerText;
|
||||||
const notifCount = parseInt(notifCountStr.split(" ")[2]); // Total task count
|
// const notifCount = parseInt(notifCountStr.split(" ")[2]); // Total task count
|
||||||
const notifCountNew = parseInt(notifCountStr.split(" ")[5].slice(1)); // New task count
|
// const notifCountNew = parseInt(notifCountStr.split(" ")[5].slice(1)); // New task count
|
||||||
|
|||||||
@@ -1,18 +1,3 @@
|
|||||||
/*
|
|
||||||
|
|
||||||
TODO float buttons on bottom of RO
|
|
||||||
TODO float location entry on RO (sidebar?)
|
|
||||||
TODO style individual buttons
|
|
||||||
TODO options page
|
|
||||||
- move parts list buttons top or bottom
|
|
||||||
- color themes?
|
|
||||||
BUG close button on photo pages is styled along with the btnCancel
|
|
||||||
HACK display tiny images next to parts list?
|
|
||||||
TODO shrink navbar/header/location on scroll
|
|
||||||
TODO fancy button animations
|
|
||||||
TODO choose file on upload window
|
|
||||||
*/
|
|
||||||
|
|
||||||
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
|
@import url("https://fonts.googleapis.com/css2?family=Roboto&display=swap");
|
||||||
|
|
||||||
@font-face {
|
@font-face {
|
||||||
@@ -129,7 +114,11 @@ input[value="Remove Repair"] {
|
|||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
transition: background-color 250ms ease;
|
transition: background-color 250ms ease-in, color 250ms ease-in;
|
||||||
|
}
|
||||||
|
|
||||||
|
label[for="chkWarrantee"] {
|
||||||
|
padding: 0.35em;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Images */
|
/* Images */
|
||||||
@@ -152,7 +141,3 @@ img[id="Img3"] {
|
|||||||
outline: none;
|
outline: none;
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
label[for="chkWarrantee"] {
|
|
||||||
padding: 0.35em;
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user