Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yanorei32/jquery-practice
It's a joke repository
https://github.com/yanorei32/jquery-practice
ansi c console css jquery
Last synced: about 2 months ago
JSON representation
It's a joke repository
- Host: GitHub
- URL: https://github.com/yanorei32/jquery-practice
- Owner: yanorei32
- License: unlicense
- Created: 2022-05-10T06:22:15.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T17:54:16.000Z (about 1 year ago)
- Last Synced: 2024-10-10T21:13:17.012Z (2 months ago)
- Topics: ansi, c, console, css, jquery
- Language: C
- Homepage:
- Size: 25.4 KB
- Stars: 35
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jQuery Practice
jQuery like ANSI terminal formatter.
**written-in-C** (joke project)
## quick start
```bash
git clone https://github.com/yanorei32/jquery-practice
cd jquery-practice
gcc main.c
./a.out
```## example
```c
$(
"",
(json){ text: "Hello World" }
).css("background-color", "white")
.css("color", "black")
.appendTo("body");$(
"",
(json){ text: "Italic + Red" }
).css("font-style", "italic")
.css("color", "red")
.appendTo("body");$(
"",
(json){ text: "Strike + Underline" }
).css("text-decoration", "line-through underline")
.appendTo("body");/* Hex color (must support 24-bit color) */
$(
"",
(json){ text: "Hex Color" }
).css("background-color", "#e34234")
.css("color", "#ee6")
.appendTo("body");/* Hex color with opacity emulation
(must support 24-bit color)
TERMINAL_COLOR macro is required.
ex) #define TERMINAL_COLOR 0x1d, 0x1f, 0x21 */
$(
"",
(json){ text: "Hex Color (opacity-emulation)" }
).css("background-color", "#e3423511")
.css("color", "#ee61")
.appendTo("body");$(
"",
(json){ text: "Without \\n" }
).css("background-color", "#fff")
.css("color", "#000")
.appendTo("body");puts();
```