Skip to content

Commit 34820f6

Browse files
authored
Adding a package.json (jacksonbenete#28)
1 parent 24f02d0 commit 34820f6

File tree

8 files changed

+3661
-9
lines changed

8 files changed

+3661
-9
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
node-version: '14'
2424

2525
- name: Install ⚙️🔧
26-
run: npm install eslint eslint-config-strict eslint-config-jquery
26+
run: npm install
2727

2828
- name: Running checks ☑
2929
run: node_modules/.bin/eslint --fix src/*.js

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules/

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
1010
## not released yet
1111

1212
### Added
13-
- new demo commands `target.exe`, `artifact`, `decrypt` & `identify`
13+
- new example software programs: `demo.exe`, `target.exe`, `artifact`, `decrypt` & `identify`
1414
- `software` programs logic can now be defined as Javascript code in `software.js`
1515
- `software` programs `messages` can now include **images** 🖼️, with an optional `glitch` / `particule` effect
1616
- `software` programs `messages` can now include text with an optional effects:

config/software.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ function decrypt( args ) { // The same function can be used to encode text
1616
const textInClear = rot13( args.join( " " ) );
1717
return `<p class="hack-reveal">${ textInClear }</p>`;
1818
}
19-
function rot13( s ) {
19+
function rot13( s ) { // cf. https://en.wikipedia.org/wiki/ROT13
2020
return s.replace( /[a-zA-Z]/g, ( c ) => String.fromCharCode( ( c <= "Z" ? 90 : 122 ) >= ( c = c.charCodeAt( 0 ) + 13 ) ? c : c - 26 ) );
2121
}
2222

2323
function identify() {
2424
const introMsg = [ "What is this?", `<img src="https://thisartworkdoesnotexist.com/?${ performance.now() }" style="width: 10rem; max-width: 100%;">` ];
2525
return { message: introMsg, onInput( answer ) {
26-
return `Wrong! This is not ${ answer }`;
26+
return `Wrong! This is not "${ answer }"`;
2727
} };
2828
}
2929

0 commit comments

Comments
 (0)