File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -112,4 +112,45 @@ <h2>👨🔧 Request Expert Advice</h2>
112112 }
113113</ script >
114114
115+ < script >
116+ // 1. Secure Machine Status Check
117+ function checkMachineStatus ( ) {
118+ let input = prompt ( "Enter Machine Temperature (°C):" ) ;
119+ if ( input === null ) return ;
120+
121+ let temp = parseFloat ( input ) ; // Qubee gara lakkoofsaatti jijjiira
122+
123+ if ( isNaN ( temp ) ) { // Yoo lakkoofsa hin taane (Check Security)
124+ alert ( "❌ Invalid Input! Please enter a numeric value." ) ;
125+ return ;
126+ }
127+
128+ if ( temp > 90 ) {
129+ alert ( "⚠️ DANGER: Critical Overheating (" + temp + "°C). Shut down now!" ) ;
130+ } else {
131+ alert ( "✅ NORMAL: Machine is stable at " + temp + "°C." ) ;
132+ }
133+ }
134+
135+ // 2. Fault Code Interpreter
136+ function interpretFault ( ) {
137+ const faults = {
138+ "E01" : "Phase Failure: Verify electrical input supply." ,
139+ "E02" : "High Temperature: Motor/Chamber overheating." ,
140+ "E03" : "Vibration Alert: Inspect foundation and bearings." ,
141+ "E04" : "Oil Pressure Low: Check hydraulic tank levels."
142+ } ;
143+ let code = prompt ( "Enter Fault Code (E01-E04):" ) ;
144+ if ( code === null ) return ;
145+
146+ let formattedCode = code . trim ( ) . toUpperCase ( ) ; // Fageenya fi qubee sirreessa
147+ let result = faults [ formattedCode ] ;
148+
149+ if ( result ) {
150+ alert ( "🔍 Diagnosis: " + result ) ;
151+ } else {
152+ alert ( "❓ Unknown Code. Contact Abdurhaman for direct support." ) ;
153+ }
154+ }
155+ </ script >
115156</ body >
You can’t perform that action at this time.
0 commit comments