See More

" + a + ": " + tag + "
Test for " + prop + "
Your code: " + y + "
Correct code: " + x + ""; document.getElementById("blueprint").innerHTML = bptxt; } if (typ == "IN") { if (y.toLowerCase().indexOf(x.toLowerCase()) > -1) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } else { if (margin != 0) { if (Number(y.replace("px","")) < (Number(x.replace("px","")) + margin) && Number(y.replace("px","")) > ((Number(x.replace("px","")) - margin))) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } else { if (oper == "=") { if (y.toLowerCase() == x.toLowerCase()) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } if (oper == "<") { if (y < x) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } if (oper == "<=") { if (y <= x) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } if (oper == ">") { if (y > x) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } if (oper == ">=") { if (y >= x) { if (comp == "NOT LIKE") { return false; } else { return true; } } else { if (comp == "NOT LIKE") { hit = true; } else { hit = false; } } } } } } return hit; } function convert_cssColor(color) { var doc = document.createElement('div'); doc.style.backgroundColor = color; document.body.appendChild(doc); return w3_getStyleValue(doc, "background-color"); } function convert_cssFontSize(size) { var doc = document.createElement('div'); doc.style.fontSize = size; document.getElementById("iframeResult").contentWindow.document.body.appendChild(doc); return w3_getStyleValue(doc, "font-size"); } /*function convert_cssSize(tag, size, p) { var rv, doc = document.createElement(tag.tagName); if (p == "width") {doc.style.width = size; } if (p == "height") {doc.style.height = size; } tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, p); tag.parentNode.removeChild(doc); return rv }*/ function convert_cssSize(tag, size, p) { var rv, doc = document.createElement(tag.tagName); //doc = tag.cloneNode(true); if (p == "width") { feilmargin += calc_feilmargin(tag, "border-left-width"); feilmargin += calc_feilmargin(tag, "border-right-width"); feilmargin += calc_feilmargin(tag, "padding-left"); feilmargin += calc_feilmargin(tag, "padding-right"); doc.style.width = size; } if (p == "height") { feilmargin += calc_feilmargin(tag, "border-top-width"); feilmargin += calc_feilmargin(tag, "border-bottom-width"); feilmargin += calc_feilmargin(tag, "padding-top"); feilmargin += calc_feilmargin(tag, "padding-bottom"); doc.style.height = size; } tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, p); tag.parentNode.removeChild(doc); return rv } function convert_cssGradient(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.backgroundImage = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "background-image"); tag.parentNode.removeChild(doc); return rv } function convert_cssTransform(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.transform = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "transform"); tag.parentNode.removeChild(doc); return rv } function convert_cssTransitionTiming(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.transitionTimingFunction = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "transition-timing-function"); tag.parentNode.removeChild(doc); return rv } function convert_cssAnimationTiming(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.animationTimingFunction = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "animation-timing-function"); tag.parentNode.removeChild(doc); return rv } function convert_cssTextShadow(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.textShadow = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "text-shadow"); tag.parentNode.removeChild(doc); return rv } function convert_cssBoxShadow(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.boxShadow = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "box-shadow"); tag.parentNode.removeChild(doc); return rv } function convert_cssFontWeight(tag, size, p) { var rv, doc = document.createElement(tag.tagName); doc.style.fontWeight = size; tag.parentNode.insertBefore(doc, tag); rv = w3_getStyleValue(doc, "font-weight"); tag.parentNode.removeChild(doc); return rv } function calc_feilmargin(tag, cssprop) { var cssvalue = w3_getStyleValue(tag, cssprop); cssvalue = cssvalue.replace("px", ""); return (Number(cssvalue) || 0); } } function w3_getStyleValue(elmnt,style) { if (window.getComputedStyle) { return window.getComputedStyle(elmnt,null).getPropertyValue(style); } else { return elmnt.currentStyle[style]; } } function w3_trim(x) { return x.replace(/^\s+|\s+$/gm,'') } var validHTML = function (html) { var doc = document.createElement('html'); if (html.toLowerCase().indexOf("") == -1) { html = "" + html; } html = html.replace("",""); html = html.replace("",""); html = html.replace("",""); html = html.trim(); doc.innerHTML = html; return ( doc.innerHTML.toLowerCase() === html.toLowerCase() ); } function codeCheckWarningClose() { document.getElementById("codeCheckWarning").style.display = "none"; } function codeCheckCorrectClose() { document.getElementById("codeCheckCorrect").style.display = "none"; }

Menu
×
×
Correct!

Exercise:

Not Correct

Click here to try again.

Correct!

Next ❯

  

    
  




"; txt += ""; // txt += ' '; txt += ' MYPAGE'; txt += ' '; txt += ' '; txt += ' '; txt += ' '; txt += ' '; txt += ' '; document.getElementById("userprogress").innerHTML = txt; x = Math.round((userscore/numberofexercises) * 100); degrees = x * 3.6; if (degrees > 359) degrees = 359; document.getElementById("mypage_circle1").setAttribute("d", describeArc(26, 35, 24, 0, 359)); document.getElementById("mypage_circle2").setAttribute("d", describeArc(26, 35, 24, 0, degrees)); document.getElementsByClassName("exercisemenuinner")[0].style.top = "169px"; } } function polarToCartesian(centerX, centerY, radius, angleInDegrees) { var angleInRadians = (angleInDegrees-90) * Math.PI / 180.0; return { x: centerX + (radius * Math.cos(angleInRadians)), y: centerY + (radius * Math.sin(angleInRadians)) }; } function describeArc(x, y, radius, startAngle, endAngle){ var start = polarToCartesian(x, y, radius, endAngle); var end = polarToCartesian(x, y, radius, startAngle); var largeArcFlag = endAngle - startAngle <= 180 ? "0" : "1"; var d = [ "M", start.x, start.y, "A", radius, radius, 0, largeArcFlag, 0, end.x, end.y ].join(" "); return d; } function drawSignupLogin() { var txt = ""; txt += "
"; txt += ""; txt += "Log in"; txt += ""; txt += "
Log in to keep your progress
"; txt += ""; txt += "Sign Up"; txt += ""; txt += "
Sign up to keep your progress
"; txt += "
"; document.getElementById("userprogress").innerHTML = txt; }

 

AWS Cloud Computing
AWS Cloud Benefits
AWS EC2
AWS Elastic Load Balancing
AWS Messaging
AWS SNS
AWS SQS
AWS Serverless
AWS Lambda
AWS Containers
AWS ECS
AWS EKS
AWS Fargate
AWS Infrastructure
AWS Networking
AWS Storage
AWS Databases
AWS Cloud Security
AWS Monitoring and Analytics
AWS Pricing and Support
AWS Migration and Innovation

×

Reset the Score?

This will reset the score of ALL 81 exercises.

Are you sure you want to continue?



×

Congratulations!

You have finished all 81 AWS exercises.

Share your score: