aboutsummaryrefslogtreecommitdiff
path: root/examples/counter
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2023-08-11 21:40:54 +0530
committerAkshay Nair <phenax5@gmail.com>2023-08-11 21:50:20 +0530
commit845d503bb16cb5046a4fec6d046b7b527a080187 (patch)
treea9f8fdf4510ad4d61e8d105065be9071946e2bdf /examples/counter
parent5a9942fde65787b35d4eb8e3441af6fe68819612 (diff)
downloadcss-everything-845d503bb16cb5046a4fec6d046b7b527a080187.tar.gz
css-everything-845d503bb16cb5046a4fec6d046b7b527a080187.zip
chore: adds prettier
Diffstat (limited to 'examples/counter')
-rw-r--r--examples/counter/index.html6
-rw-r--r--examples/counter/style.css6
2 files changed, 6 insertions, 6 deletions
diff --git a/examples/counter/index.html b/examples/counter/index.html
index 158ee16..9aa89d2 100644
--- a/examples/counter/index.html
+++ b/examples/counter/index.html
@@ -1,9 +1,9 @@
-<!DOCTYPE html>
+<!doctype html>
<html lang="en">
<head>
<title>Counter example</title>
- <meta charset="UTF-8">
- <link href="./style.css" rel="stylesheet">
+ <meta charset="UTF-8" />
+ <link href="./style.css" rel="stylesheet" />
</head>
<body>
<script async defer src="../../dist/index.js"></script>
diff --git a/examples/counter/style.css b/examples/counter/style.css
index 9cf50e0..b60785f 100644
--- a/examples/counter/style.css
+++ b/examples/counter/style.css
@@ -1,6 +1,6 @@
body {
--cssx-children: container todo-container;
- --cssx-on-load: js(console.log("what have we done?!"));
+ --cssx-on-load: js(console.log('what have we done?!'));
}
#container {
@@ -11,7 +11,7 @@ body {
#counter {
}
#counter::before {
- content: "Count: " var(--count);
+ content: 'Count: ' var(--count);
}
#btn-increment {
@@ -22,5 +22,5 @@ body {
--cssx-on-click: update(container, --count, calc(var(--count) + 1));
}
#btn-increment::after {
- content: "Increment";
+ content: 'Increment';
}