Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

The question maybe a little bit hard but if you slove it i will thank you a lot

ID: 3657719 • Letter: T

Question



The question maybe a little bit hard but if you slove it i will thank you a lot


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Leap Year</title>
<script src="jquery-1.8.3.min.js" type="text/jaavascript"></script>
<script type="texxt/javascript">
$(document).ready(function () { });
function leapyear() {
var year = $("#newbox1").val();
a = year.substring(7, 10);
b = year.charAt(7);
c = year.substring(7, year.length);
if (a % 4 == 0) {
if (a % 100==0) {
if (a % 400 == 0) {
$("#YES").show(2000, function () { $("#YES").hide(); });
}
else {
$("#No").show(2000, function () { $("#No").hide(); })
}
}
else {
$("#YES").show(2000, function () { $("#YES").hide(); });
}
}
else {
$("#No").show(2000, function () { $("#No").hide(); });
}
if (b.search(/[aeiouAEIOU]/) > -1){
document.getElementById('piglatin').innerHTML?? + "way";

}
else if(b.search(/[bcdfghjklmnpqrstvwxyzBCDFGHJKLMNPQRSTVWXYZ]/) >-1){
document.getElementById('piglatin').innerHTML??.reverse() + "ay";
}
else {
return c;
}
}
</script>

</head>
<body>
<div>
Enter a Date (mm/dd/yyyy):
<input id="newBox1" type="text" value="MM/DD/YYYY"/><br/>
<input type="button" value="Click Here">
</div>
<div id="YES">
<img src="../images/8B5.gif">

</div>
<div id="No">
<img src="../images/8B1.gif">
</div>
<div id="piglatin">

</div>
</body>
</html>

And here is my code:


Explanation / Answer

The question maybe a little bit hard but if you slove it i will thank you a lot


<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>Leap Year</title>
<script src="jquery-1.8.3.min.js" type="text/jaavascript"></script>
<script type="texxt/javascript">
$(document).ready(function () { });




</head>
<body>
<div>
Enter a Date (mm/dd/yyyy):
<input id="newBox1" type="text" value="MM/DD/YYYY"/><br/>
<input type="button" value="Click Here">
</div>
<div id="YES">
<img src="../images/8B5.gif">

</div>
<div id="No">
<img src="../images/8B1.gif">
</div>
<div id="piglatin">

</div>
</body>

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote