I do npm install
and my colleagues think it's amazing.
thomasorus / kaku Goto Github PK
View Code? Open in Web Editor NEWKaku - 書く - A markup language I did for myself
Home Page: https://thomasorus.github.io/Kaku/
License: Other
Kaku - 書く - A markup language I did for myself
Home Page: https://thomasorus.github.io/Kaku/
License: Other
I do npm install
and my colleagues think it's amazing.
Kaku image shortcut should do better:
The code when using a figcaption should look like this:
<figure>
<picture>
<source type="image/webp" srcset="
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb-400.webp 400w,
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb-800.webp 800w,
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb.webp
"
/>
<img srcset="
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb-400.jpg 400w,
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb-800.jpg 800w,
https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb.jpg
" src="https://raw.githubusercontent.com/Thomasorus/Ronbun/master/dist/media/hhkb-400.jpg"
alt="My keyboard script" loading="lazy" />
</picture>
<figcaption>This is my super figcaption text</figcaption>
</figure>
Kinda unsure about how to polyfill lazy loading. Most of the time it requires having src and srcset replaced by data-src and data-srcset in the html. If lazy loading works, a js script changes them back to src and srcset and native lazy load is automatic. If it's not supported, the script has to use intersection observer to change src and srcset on the fly when they arrive in the viewport.
But if both lazy loading and intersection observer fail, or the user disabled javascript, then img and source elements are left without valid src and srcsets, so no image appears. The only solution is then to use a noscript element and copy duplicate the img/source html with correct src and srcset. But that doubles the amount of html, the other img and source elements are still there which is bad from an accessibility standpoint, and so are their alt and figcaption tags which are creating duplicating with the ones in the noscript element.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.