[
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": "README.md",
    "content": "# Calculator\n"
  },
  {
    "path": "css/styles.css",
    "content": "@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');\n:root {\n    --first-hue: 250;\n    --sat: 66%;\n    --lig: 75%;\n    --first-color: hsl(var(--first-hue), var(--sat), var(--lig));\n}\n\n.calculator {\n    padding: 10px;\n    border-radius: 1em;\n    height: 380px;\n    width: 400px;\n    margin: auto;\n    background-color: #191b28;\n    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;\n}\n\n.display-box {\n    font-family: 'Orbitron', sans-serif;\n    background-color: #dcdbe1;\n    border: solid black 0.5px;\n    color: black;\n    border-radius: 5px;\n    width: 100%;\n    height: 65%;\n}\n\n.button {\n    font-family: 'Orbitron', sans-serif;\n    background-color: var(--first-color);\n    color: white;\n    border: solid black 0.5px;\n    width: 100%;\n    border-radius: 5px;\n    height: 70%;\n    outline: none;\n}\n\n.button:active {\n    background: #e5e5e5;\n    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;\n    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;\n    box-shadow: inset 0px 0px 5px #c1c1c1;\n}\n\n@media screen and (max-width: 320px) {}"
  },
  {
    "path": "index.html",
    "content": "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n\n<head>\n    <meta charset=\"utf-8\">\n    <title>Calculator</title>\n    <link rel=\"stylesheet\" href=\"css/styles.css\">\n</head>\n\n<body>\n\n    <table class=\"calculator\">\n        <tr>\n            <td colspan=\"3\"><input class=\"display-box\" type=\"text\" id=\"result\" disabled /></td>\n            <!-- clearScreen() function clear all the values  -->\n            <td><input class=\"button\" type=\"button\" value=\"C\" onclick=\"clearScreen()\" style=\"background-color: #fb0066;\" /> </td>\n        </tr>\n        <tr>\n            <!-- display() function display the value of clicked button -->\n            <td><input class=\"button\" type=\"button\" value=\"1\" onclick=\"display('1')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"2\" onclick=\"display('2')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"3\" onclick=\"display('3')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"/\" onclick=\"display('/')\" /> </td>\n        </tr>\n        <tr>\n            <td><input class=\"button\" type=\"button\" value=\"4\" onclick=\"display('4')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"5\" onclick=\"display('5')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"6\" onclick=\"display('6')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"-\" onclick=\"display('-')\" /> </td>\n        </tr>\n        <tr>\n            <td><input class=\"button\" type=\"button\" value=\"7\" onclick=\"display('7')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"8\" onclick=\"display('8')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"9\" onclick=\"display('9')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"+\" onclick=\"display('+')\" /> </td>\n        </tr>\n        <tr>\n            <td><input class=\"button\" type=\"button\" value=\".\" onclick=\"display('.')\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"0\" onclick=\"display('0')\" /> </td>\n            <!-- calculate() function evaluate the mathematical expression -->\n            <td><input class=\"button\" type=\"button\" value=\"=\" onclick=\"calculate()\" style=\"background-color: #fb0066;\" /> </td>\n            <td><input class=\"button\" type=\"button\" value=\"*\" onclick=\"display('*')\" /> </td>\n        </tr>\n    </table>\n\n    <script type=\"text/javascript\" src=\"js/script.js\"></script>\n</body>\n\n</html>"
  },
  {
    "path": "js/script.js",
    "content": "// This function clear all the values\nfunction clearScreen() {\n    document.getElementById(\"result\").value = \"\";\n}\n\n\n// This function display values\nfunction display(value) {\n    document.getElementById(\"result\").value += value;\n}\n\n// This function evaluates the expression and return result\nfunction calculate() {\n    var p = document.getElementById(\"result\").value;\n    var q = eval(p);\n    document.getElementById(\"result\").value = q;\n}\n"
  }
]