Get started with egjs CDN

MIT licensed

EGJS is a lightweight, feature-rich library for creating interactive and dynamic web applications.

Tags:
  • egjs
  • flicking
  • infiniteGrid
  • visible
  • scrollend
  • rotate
  • class
  • component
  • persist
  • plugin
  • javascript
  • jQuery

Stable version

Copied!

How to start using egjs CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with egjs CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap/dist/css/bootstrap.min.css">
    <link rel="stylesheet" href="https://cdn.cdnhub.io/egjs/2.2.0/themes/default/easyui.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <script src="https://cdn.cdnhub.io/egjs/2.2.0/eg.min.js"></script>
</head>
<body>
    <div id="content">
        <button id="btn" class="btn btn-primary">Click me</button>
    </div>

    <script>
        $(document).ready(function() {
            $('#btn').click(function() {
                $.messager.alert('Info', 'You clicked the button!');
            });
        });
    </script>

    <script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.6/dist/umd/popper.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/js/bootstrap.min.js"></script>
</body>
</html>

All versions