ShareShortcuts

GUI Calculator - No Ads!

I know we’re tired of ads and that’s why you can use this

aaf
Fork “GUI Calculator - No Ads!”

Built something new on top of this Shortcut? Share it as a fork: it becomes a Shortcut of your own, which you manage, and both pages link to each other so aaf gets credit.

  1. 1Get the Shortcut and change it in the Shortcuts app. Give it a name of its own.
  2. 2Share it from the Shortcuts app and copy the iCloud link.
  3. 3Come back here, paste the link and describe what is different, e.g. “Added a step that uses Apple Intelligence to personalise the text.”
Downloads
3K
Saved
0
Actions
3
Category
Calculations
Version
2.0
Language
EN

Preview

I know we’re tired of ads and that’s why you can use this. It even supports scientific callculations!

Here is an example: https://drive.google.com/file/d/1btn47P3QsMD0g_F1pq1LmBH7gWWk0WJS/view?usp=drivesdk


UPDATE LOG v1.1:

  • GUI!

What's New

Version 2.0

GUI is now available

Version History
2.0 Aug 3, 2026

GUI is now available

1.1 Aug 3, 2026

.

1.1 Aug 3, 2026

Now in gui

1.0 Jul 28, 2026

First release

What it does

3 actions
  1. Text
  2. Set Name
  3. Show Web Page

View as code
Beta

Every action of this Shortcut written out as Cherri, a programming language for Shortcuts. Great for learning how it works.

#include 'actions/web'
#define color darkgray

const Text = "<!DOCTYPE html>\n<html lang=\\"en\\">\n<head>\n  <meta charset=\\"UTF-8\\">\n  <title>Calculator - No ads!</title>\n  <style>\n    body {\n      font-family: Arial, sans-serif;\n      margin: 0;\n      height: 100vh;\n      background: #f4f4f4;\n    }\n    /* Loader styles */\n    #loader {\n      position: fixed;\n      top: 0; left: 0;\n      width: 100%; height: 100%;\n      background: #4caf50;\n      color: #fff;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      font-size: 2em;\n      z-index: 9999;\n    }\n    /* Full screen calculator */\n    .calculator {\n      width: 100%;\n      height: 100%;\n      background: #fff;\n      display: none; /* hidden until loader finishes */\n      display: flex;\n      flex-direction: column;\n      justify-content: flex-start;\n      align-items: center;\n      padding: 20px;\n      box-sizing: border-box;\n    }\n    #display {\n      width: 100%;\n      height: 70px;\n      font-size: 2em;\n      margin-bottom: 20px;\n      text-align: right;\n      padding: 10px;\n      border: 1px solid #ccc;\n      border-radius: 5px;\n      box-sizing: border-box;\n    }\n    .buttons {\n      width: 100%;\n      flex: 1;\n      display: grid;\n      grid-template-columns: repeat(6, 1fr);\n      gap: 10px;\n    }\n    button {\n      font-size: 1.2em;\n      border: none;\n      border-radius: 5px;\n      background: #e0e0e0;\n      cursor: pointer;\n      transition: background 0.2s;\n    }\n    button:hover {\n      background: #d0d0d0;\n    }\n    .equal {\n      grid-column: span 2;\n      background: #4caf50;\n      color: #fff;\n    }\n    .equal:hover {\n      background: #45a049;\n    }\n  </style>\n</head>\n<body>\n  <!-- Loader -->\n  <div id=\\"loader\\">Loading...</div>\n\n  <!-- Calculator -->\n  <div class=\\"calculator\\" id=\\"calculator\\">\n    <input type=\\"text\\" id=\\"display\\" disabled>\n    <div class=\\"buttons\\">\n      <!-- Scientific functions -->\n      <button onclick=\\"appendValue('Math.sin(')\\">sin</button>\n      <button onclick=\\"appendValue('Math.cos(')\\">cos</button>\n      <button onclick=\\"appendValue('Math.tan(')\\">tan</button>\n      <button onclick=\\"appendValue('Math.sqrt(')\\">√</button>\n      <button onclick=\\"appendValue('Math.pow(')\\">xʸ</button>\n      <button onclick=\\"appendValue('Math.PI')\\">π</button>\n\n      <!-- Standard operations -->\n      <button onclick=\\"clearDisplay()\\">C</button>\n      <button onclick=\\"appendValue('/')\\">÷</button>\n      <button onclick=\\"appendValue('*')\\">×</button>\n      <button onclick=\\"appendValue('-')\\">−</button>\n      <button onclick=\\"appendValue('+')\\">+</button>\n      <button onclick=\\"deleteLast()\\">⌫</button>\n\n      <!-- Numbers -->\n      <button onclick=\\"appendValue('7')\\">7</button>\n      <button onclick=\\"appendValue('8')\\">8</button>\n      <button onclick=\\"appendValue('9')\\">9</button>\n      <button onclick=\\"appendValue('(')\\">(</button>\n      <button onclick=\\"appendValue(')')\\">)</button>\n      <button onclick=\\"appendValue('.')\\">.</button>\n\n      <button onclick=\\"appendValue('4')\\">4</button>\n      <button onclick=\\"appendValue('5')\\">5</button>\n      <button onclick=\\"appendValue('6')\\">6</button>\n      <button onclick=\\"appendValue('^')\\">^</button>\n      <button onclick=\\"appendValue('Math.log(')\\">log</button>\n      <button onclick=\\"appendValue('Math.exp(')\\">exp</button>\n\n      <button onclick=\\"appendValue('1')\\">1</button>\n      <button onclick=\\"appendValue('2')\\">2</button>\n      <button onclick=\\"appendValue('3')\\">3</button>\n      <button onclick=\\"appendValue('0')\\">0</button>\n      <button class=\\"equal\\" onclick=\\"calculate()\\">=</button>\n    </div>\n  </div>\n\n  <script>\n    const display = document.getElementById('display');\n    const loader = document.getElementById('loader');\n    const calculator = document.getElementById('calculator');\n\n    // Show loader for 1.5 seconds\n    window.onload = function() {\n      setTimeout(() => {\n        loader.style.display = 'none';\n        calculator.style.display = 'flex';\n      }, 1500);\n    };\n\n    function appendValue(value) {\n      display.value += value;\n    }\n    function clearDisplay() {\n      display.value = '';\n    }\n    function deleteLast() {\n      display.value = display.value.slice(0, -1);\n    }\n    function calculate() {\n      try {\n        display.value = eval(display.value);\n      } catch {\n        display.value = 'Error';\n      }\n    }\n  </script>\n</body>\n</html>\n"
setName(Text, "Calculator.html")
showWebpage()
Open in Cherri Playground Decompiled with cherri 2.3.0 (GPL-2.0). May need small fixes before it compiles.

Ratings & Reviews

Write a Review
–
out of 5
★★★★★
★★★★
★★★
★★
★
0 ratings

No reviews yet. Be the first to share what you think!

Advertisement

More by aaf

See All

You Might Also Like

See All
Advertisement