Get started with winjs CDN
MIT licensed
WinJS: Microsofts free library for fast, responsive, engaging Windows 8.1/Phone 8.1 apps using HTML5, CSS3 .
Tags:- Windows
- JavaScript
Stable version
Copied!
How to start using winjs CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with winjs CDN - cdnhub.io</title>
<link href="//cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet">
<link href="https://cdn.cdnhub.io/winjs/4.4.3/css/ui-dark.css" rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<script src="https://cdn.cdnhub.io/winjs/4.4.3/js/base.js"></script>
<script src="https://cdn.cdnhub.io/winjs/4.4.3/js/ui.min.js"></script>
</head>
<body>
<div id="content" class="container mt-5">
<h1 class="text-center mb-5">WinJS Example</h1>
<button id="myButton" class="btn btn-primary">Click me</button>
<div id="myList" style="height: 200px; overflow-y: auto;"></div>
<script>
WinJS.UI.processAll();
document.getElementById("myButton").addEventListener("click", function () {
WinJS.Utilities.array.forEach(WinJS.Utilities.createRange(1, 11), function (i) {
WinJS.Utilities.array.push(document.getElementById("myList"), WinJS.Binding.html(i + " "));
});
});
</script>
</div>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!