Full Code of R3-b0ot/Calculator for AI

main 67ea40664c20 cached
5 files
3.9 KB
1.3k tokens
3 symbols
1 requests
Download .txt
Repository: R3-b0ot/Calculator
Branch: main
Commit: 67ea40664c20
Files: 5
Total size: 3.9 KB

Directory structure:
gitextract__rsimi69/

├── .gitattributes
├── README.md
├── css/
│   └── styles.css
├── index.html
└── js/
    └── script.js

================================================
FILE CONTENTS
================================================

================================================
FILE: .gitattributes
================================================
# Auto detect text files and perform LF normalization
* text=auto


================================================
FILE: README.md
================================================
# Calculator


================================================
FILE: css/styles.css
================================================
@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');
:root {
    --first-hue: 250;
    --sat: 66%;
    --lig: 75%;
    --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
}

.calculator {
    padding: 10px;
    border-radius: 1em;
    height: 380px;
    width: 400px;
    margin: auto;
    background-color: #191b28;
    box-shadow: rgba(0, 0, 0, 0.19) 0px 10px 20px, rgba(0, 0, 0, 0.23) 0px 6px 6px;
}

.display-box {
    font-family: 'Orbitron', sans-serif;
    background-color: #dcdbe1;
    border: solid black 0.5px;
    color: black;
    border-radius: 5px;
    width: 100%;
    height: 65%;
}

.button {
    font-family: 'Orbitron', sans-serif;
    background-color: var(--first-color);
    color: white;
    border: solid black 0.5px;
    width: 100%;
    border-radius: 5px;
    height: 70%;
    outline: none;
}

.button:active {
    background: #e5e5e5;
    -webkit-box-shadow: inset 0px 0px 5px #c1c1c1;
    -moz-box-shadow: inset 0px 0px 5px #c1c1c1;
    box-shadow: inset 0px 0px 5px #c1c1c1;
}

@media screen and (max-width: 320px) {}

================================================
FILE: index.html
================================================
<!DOCTYPE html>
<html lang="en" dir="ltr">

<head>
    <meta charset="utf-8">
    <title>Calculator</title>
    <link rel="stylesheet" href="css/styles.css">
</head>

<body>

    <table class="calculator">
        <tr>
            <td colspan="3"><input class="display-box" type="text" id="result" disabled /></td>
            <!-- clearScreen() function clear all the values  -->
            <td><input class="button" type="button" value="C" onclick="clearScreen()" style="background-color: #fb0066;" /> </td>
        </tr>
        <tr>
            <!-- display() function display the value of clicked button -->
            <td><input class="button" type="button" value="1" onclick="display('1')" /> </td>
            <td><input class="button" type="button" value="2" onclick="display('2')" /> </td>
            <td><input class="button" type="button" value="3" onclick="display('3')" /> </td>
            <td><input class="button" type="button" value="/" onclick="display('/')" /> </td>
        </tr>
        <tr>
            <td><input class="button" type="button" value="4" onclick="display('4')" /> </td>
            <td><input class="button" type="button" value="5" onclick="display('5')" /> </td>
            <td><input class="button" type="button" value="6" onclick="display('6')" /> </td>
            <td><input class="button" type="button" value="-" onclick="display('-')" /> </td>
        </tr>
        <tr>
            <td><input class="button" type="button" value="7" onclick="display('7')" /> </td>
            <td><input class="button" type="button" value="8" onclick="display('8')" /> </td>
            <td><input class="button" type="button" value="9" onclick="display('9')" /> </td>
            <td><input class="button" type="button" value="+" onclick="display('+')" /> </td>
        </tr>
        <tr>
            <td><input class="button" type="button" value="." onclick="display('.')" /> </td>
            <td><input class="button" type="button" value="0" onclick="display('0')" /> </td>
            <!-- calculate() function evaluate the mathematical expression -->
            <td><input class="button" type="button" value="=" onclick="calculate()" style="background-color: #fb0066;" /> </td>
            <td><input class="button" type="button" value="*" onclick="display('*')" /> </td>
        </tr>
    </table>

    <script type="text/javascript" src="js/script.js"></script>
</body>

</html>

================================================
FILE: js/script.js
================================================
// This function clear all the values
function clearScreen() {
    document.getElementById("result").value = "";
}


// This function display values
function display(value) {
    document.getElementById("result").value += value;
}

// This function evaluates the expression and return result
function calculate() {
    var p = document.getElementById("result").value;
    var q = eval(p);
    document.getElementById("result").value = q;
}
Download .txt
gitextract__rsimi69/

├── .gitattributes
├── README.md
├── css/
│   └── styles.css
├── index.html
└── js/
    └── script.js
Download .txt
SYMBOL INDEX (3 symbols across 1 files)

FILE: js/script.js
  function clearScreen (line 2) | function clearScreen() {
  function display (line 8) | function display(value) {
  function calculate (line 13) | function calculate() {
Condensed preview — 5 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (5K chars).
[
  {
    "path": ".gitattributes",
    "chars": 66,
    "preview": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": "README.md",
    "chars": 13,
    "preview": "# Calculator\n"
  },
  {
    "path": "css/styles.css",
    "chars": 1085,
    "preview": "@import url('https://fonts.googleapis.com/css2?family=Orbitron&display=swap');\n:root {\n    --first-hue: 250;\n    --sat: "
  },
  {
    "path": "index.html",
    "chars": 2420,
    "preview": "<!DOCTYPE html>\n<html lang=\"en\" dir=\"ltr\">\n\n<head>\n    <meta charset=\"utf-8\">\n    <title>Calculator</title>\n    <link re"
  },
  {
    "path": "js/script.js",
    "chars": 440,
    "preview": "// This function clear all the values\nfunction clearScreen() {\n    document.getElementById(\"result\").value = \"\";\n}\n\n\n// "
  }
]

About this extraction

This page contains the full source code of the R3-b0ot/Calculator GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 5 files (3.9 KB), approximately 1.3k tokens, and a symbol index with 3 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.

Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.

Copied to clipboard!