-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIRISNotes.js
More file actions
130 lines (107 loc) · 4.02 KB
/
IRISNotes.js
File metadata and controls
130 lines (107 loc) · 4.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
//Copy to clipboard Scripts
//Copy Lighthouse Description
var copyLHDescBtn = document.querySelector(".CopyDesc");
copyLHDescBtn.addEventListener("click", function(event) {
var copyLHDesc = document.querySelector("#LHDesc");
copyLHDesc.select();
try {
var successful = document.execCommand("copy");
var msg = successful ? "successful" : "unsuccessful";
console.log("Copying text command was " + msg);
} catch (err) {
console.log("Oops, unable to copy");
}
});
//Populates the Remedy Work Log
function myLHDesc() {
var a = document.getElementById("Q1").value;
var c = document.getElementById("Q2").value;
var d = document.getElementById("Q3").value;
var e = document.getElementById("Q4").value;
var f = document.getElementById("Q5").value;
var g = document.getElementById("Q6").value;
var h = document.getElementById("Q7").value;
var i = document.getElementById("Q8").value;
var j = document.getElementById("Q9").value;
var k = document.getElementById("Q10").value;
/* var l = document.getElementById("Q11").value;
var m = document.getElementById("Q12").value; */
var n = document.getElementById("Q13").value;
var o = document.getElementById("Q14").value;
var t = document.getElementById("Q19").value;
var u = document.getElementById("Q11a").value;
var v = document.getElementById("Q11b").value;
var w = document.getElementById("Q11c").value;
if(document.getElementById("Q18").checked){
document.getElementById("LHDesc").innerHTML =
"Node " + a + "\r"
+ "Customer #1 " + "\r"
+ "Account Number " + c +"\r"
+ "Address " + d + "\r"
+ "Biller Notes " + e + "\r"
+ "Upstream and Downstream Issues " + u + "\r"
+ "Customer #2 " + "\r"
+ "Account Number " + f + "\r"
+ "Address " + g + "\r"
+ "Biller Notes " + h + "\r"
+ "Upstream and Downstream Issues " + v + "\r"
+ "Customer #3 " + "\r"
+ "Account Number " + i + "\r"
+ "Addresses " + j + "\r"
+ "Biller Notes " + k + "\r"
+ "Upstream and Downstream Issues " + w + "\r"
+ "Ping Stats" + "\r" + n + "\r"
+ "SNR " + "\r" + o + "\r"
+ "CBT Reason " + t + "\r"
}
else{
document.getElementById("LHDesc").innerHTML =
"Node " + a + "\r"
+ "Customer #1 " + "\r"
+ "Account Number " + c +"\r"
+ "Address " + d + "\r"
+ "Biller Notes " + e + "\r"
+ "Upstream and Downstream Issues " + u + "\r"
+ "Customer #2 " + "\r"
+ "Account Number " + f + "\r"
+ "Address " + g + "\r"
+ "Biller Notes " + h + "\r"
+ "Upstream and Downstream Issues " + v + "\r"
+ "Customer #3 " + "\r"
+ "Account Number " + i + "\r"
+ "Addresses " + j + "\r"
+ "Biller Notes " + k + "\r"
+ "Upstream and Downstream Issues " + w + "\r"
+ "Ping Stats" + "\r" + n + "\r"
+ "SNR " + "\r" + o + "\r"
}
if (document.getElementById("AN").value == "Yes"){
alert = ("Please Dispatch Immediately")
}else if (document.getElementById("AN").value == "No"){
for (let el of document.querySelectorAll('.USDS')) el.classList.remove("displayNone");
}
if (document.getElementById("USDSA").value == "Yes"){
alert = ("Please Dispatch Immediately")
}else if (document.getElementById("USDSA").value == "No"){
for (let el of document.querySelectorAll('.Dispatch')) el.classList.remove("displayNone");
}
}
//Declare Global Variables for Help section in the footer
//Get the modal
var modal = document.getElementById('myModal');
//Get Remedy Work Log image
var img = document.getElementById('DMGuidelines');
var modalImg = document.getElementById("img01");
var captionText = document.getElementById("caption");
img.onclick = function(){
modal.style.display = "block";
modalImg.src = 'Images/DMGuidelines.png';
captionText.innerHTML = 'Guidelines for planned maintenance approval.';
}
//Allows Modal to be closed using close button
//Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];
//When the user clicks on <span> (x), close the modal
span.onclick = function() {
modal.style.display = "none";
}