Skip to content

Commit e2572f5

Browse files
committed
Doc
1 parent cdb00d7 commit e2572f5

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
**_EasyCoder_** has [its own website](https://easycoder.github.io) here on GitHub. Here you will find examples, tutorials and a programmer's playground where you can quickly create interactive apps.
66

7-
## Here are the main benefits of **_EasyCoder_**
7+
## The main benefits of **_EasyCoder_**
88

99
1. It's quick to write browser applications in **_EasyCoder_**. Website development is faster and sites are more reliable because they are more compact and easier to read.
1010
1. **_EasyCoder_** scripts are smaller than the corresponding JavaScript and are easy to read by most people, not just by programmers. This matters later on when maintenance is needed and the original programmer may no longer be available.

resources/ecs/examples.ecs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
button ShowLife
1919
button ShowLifeDoc
2020
div Status
21+
a HowItWorks
2122
variable Content
2223
variable Script
2324
variable Message
@@ -36,6 +37,12 @@
3637
else if Message is `pause` begin end
3738
else go to Start
3839
end
40+
41+
attach HowItWorks to `how-it-works`
42+
on click HowItWorks
43+
begin
44+
alert `How it works`
45+
end
3946

4047
attach Status to `ec-status`
4148
set ready

resources/md/examples.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ The following websites were all built entirely in EasyCoder script:
1010
- [I Wanna Show You](https://iwannashowyou.com)
1111
- [Vehicle Checks](https://vehiclecheck.netlify.app)
1212

13+
## This website
14+
15+
The ~ec~ website is driven by a script, with text provided as custom Markdown files. These 2 components work closely together and it's not immediately obvious where to start when trying to understand how it's done. <a href="#" id="how-it-works">Here's a page</a> that explains the process.
16+
1317
## Dice roller /SHOW-DICEROLLER/
1418

1519
This simple demo shows two dice with a random choice of faces. Click either dice to select a new pair of value. A simple animation mimics the rolling of the dice.

0 commit comments

Comments
 (0)