Get started with zui CDN
MIT licensed
Zui: Lightweight JS library for web apps, with customizable components.
Tags:- css
- js
- less
- html5
- responsive
- front-end
- framework
- web
Stable version
Copied!
How to start using zui CDN
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/zui/dist/zui.min.css">
<script src="https://cdn.cdnhub.io/zui/1.10.0/zui.min.js"></script>
<title>Get started with zui CDN - cdnhub.io</title>
</head>
<body>
<button id="toggle">Toggle</button>
<div id="panel" class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">Panel title</h3>
</div>
<div class="panel-body">
<p>Panel content.</p>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const toggleBtn = document.getElementById('toggle');
const panel = document.getElementById('panel');
Z.on(toggleBtn, 'click', function() {
Z.toggleClass(panel, 'panel-collapsed');
});
});
</script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!