From 91c4417d8953fce04f2eb6a487238e6ea1703a82 Mon Sep 17 00:00:00 2001 From: Logic Kenzie Date: Mon, 25 Sep 2023 10:20:56 -0500 Subject: [PATCH] Add and update Calculator app --- .gitmodules | 3 +++ src/pages/calc | 1 + src/pages/projects/{calculator.md => calc.md} | 8 +++++--- 3 files changed, 9 insertions(+), 3 deletions(-) create mode 160000 src/pages/calc rename src/pages/projects/{calculator.md => calc.md} (80%) diff --git a/.gitmodules b/.gitmodules index 3484d24..6718217 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,3 +1,6 @@ [submodule "src/pages/speedtest"] path = src/pages/speedtest url = https://git.ixvd.net/logically.cc/speedtest +[submodule "src/pages/calc"] + path = src/pages/calc + url = https://git.ixvd.net/logically.cc/calc diff --git a/src/pages/calc b/src/pages/calc new file mode 160000 index 0000000..a568258 --- /dev/null +++ b/src/pages/calc @@ -0,0 +1 @@ +Subproject commit a568258c25860e5553ecd4626e178c297cfd2f65 diff --git a/src/pages/projects/calculator.md b/src/pages/projects/calc.md similarity index 80% rename from src/pages/projects/calculator.md rename to src/pages/projects/calc.md index b089ce0..52c157f 100644 --- a/src/pages/projects/calculator.md +++ b/src/pages/projects/calc.md @@ -1,14 +1,16 @@ --- title: Calculator category: Utility -status: Planned +status: Online source: https://git.ixvd.net/logically.cc/calc layout: ../../layouts/primary.astro --- # Calculator ```For when the calculator on your phone is too much hassle, so you google "Calculator" and go to the 4th page``` -## Planned Features +## Features - Addition, Subtraction, Multiplication, Division - Uses text field as well as buttons -- Doesn't use `eval()` but rather uses a parser \ No newline at end of file +- Uses "safe eval" + +[Open App](/calc) \ No newline at end of file