From 8120d641edb1c02e64406dcdfb00d47410ca7cb2 Mon Sep 17 00:00:00 2001 From: zhouquan <748583403@qq.com> Date: Thu, 12 Aug 2021 23:06:42 +0800 Subject: [PATCH] =?UTF-8?q?new=20page:=20add=20calculator=20page=20?= =?UTF-8?q?=F0=9F=A7=AE=20(#35)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * new page: add calculator page 🧮 * remove whitespaces Co-authored-by: zhouLion --- README.md | 20 ++++++++++++++++---- README.sh | 12 ++++++++++++ calculator.html | 1 + 3 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 calculator.html diff --git a/README.md b/README.md index 00cbded..0cd2880 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ Awfice is a collection of tiny office suite apps: * this project is only a half-joke, I actually use a few Awfice apps as quick scratchpads. * the only way to save your job is to save a HTML or send it to the printer/print to PDF. -## Text editor - 59 bytes! +## Text editor - 59 bytes! A simple rich text editor. Type whatever you want, it won't be saved anywhere, but it might be convenient for quick throwaway notes. You should be able to use Ctrl+B and Ctrl+I to mark text selection as bold or italic. Undo/redo should work as well. You can also copy/paste text and images from other sources. @@ -69,20 +69,32 @@ data:text/html,'"> +data:text/html, ``` [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/code.html) +## Calculator - 657 bytes! + +A simple calculator which supports the basic operational symbol to calculate. + +Copy and add to bookmarks or open in the URL bar: + +```html +data:text/html,
+``` + +[Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/calculator.html) + ## Contributions The code is distributed under MIT license. PRs are always welcome, especially if they fix something or make the code smaller, or add features that are valuable, but do not require a lot of code. -To modify something - edit HTML files directly. There is README.sh script that re-generates the README and embeds apps code into it. \ No newline at end of file +To modify something - edit HTML files directly. There is README.sh script that re-generates the README and embeds apps code into it. diff --git a/README.sh b/README.sh index 320cf49..72947ec 100755 --- a/README.sh +++ b/README.sh @@ -83,6 +83,18 @@ data:text/html,$(cat code.html) [Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/code.html) +## Calculator - $(wc -c < calculator.html) bytes! + +A simple calculator which supports the basic operational symbol to calculate. + +Copy and add to bookmarks or open in the URL bar: + +\`\`\`html +data:text/html,$(cat calculator.html) +\`\`\` + +[Try it!](https://htmlpreview.github.io/?https://github.com/zserge/awfice/blob/main/calculator.html) + ## Contributions The code is distributed under MIT license. PRs are always welcome, especially if they fix something or make the code smaller, or add features that are valuable, but do not require a lot of code. diff --git a/calculator.html b/calculator.html new file mode 100644 index 0000000..aaf851d --- /dev/null +++ b/calculator.html @@ -0,0 +1 @@ +
\ No newline at end of file