diff options
| author | Akshay Nair <phenax5@gmail.com> | 2023-08-11 17:13:33 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2023-08-11 17:13:33 +0530 |
| commit | 67748db74f73343b054ee0af1763e376a5470416 (patch) | |
| tree | 39b8df64ea1d657ef107fcdfed2da8ce66063589 /examples/api/style.css | |
| parent | dfd4da6ca2d06c9d05d5c7e297304316da211dd4 (diff) | |
| download | css-everything-67748db74f73343b054ee0af1763e376a5470416.tar.gz css-everything-67748db74f73343b054ee0af1763e376a5470416.zip | |
feat: adds more functions for eval
Diffstat (limited to 'examples/api/style.css')
| -rw-r--r-- | examples/api/style.css | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/examples/api/style.css b/examples/api/style.css index 213d9e2..81eada1 100644 --- a/examples/api/style.css +++ b/examples/api/style.css @@ -4,17 +4,18 @@ body { #load-btn { display: inline-block; - border: 1px solid gray; + background: #5180e9; + color: #000; padding: 0.5rem 1rem; cursor: pointer; --cssx-on-click: add-class(output-container, 'loading') add-class(load-btn, 'loading') - delay('2000') + load-cssx(output-container-content, './content.css') remove-class(output-container, 'loading') - add-class(output-container, 'loaded') remove-class(load-btn, 'loading') + delay('50') js-eval('alert("Loaded page")') ; } @@ -30,7 +31,4 @@ body { #output-container.loading::after { content: "Loading..."; } -#output-container.loaded::after { - content: "This content is loaded my guy"; -} |
