Get started with tinyColorPicker CDN

MIT licensed

TinyColorPicker is a lightweight library for creating color pickers in web applications.

Tags:
  • jquery
  • javascript
  • color
  • picker
  • colorpicker
  • mobile
  • WCAG2.0
  • requestAnimationFrame

Stable version

Copied!

How to start using tinyColorPicker CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with tinyColorPicker CDN - cdnhub.io</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js">
    <link rel="stylesheet" href="https://cdn.cdnhub.io/tinyColorPicker/1.1.1/jqColorPicker.min.css">
    <script src="https://cdn.cdnhub.io/tinyColorPicker/1.1.1/jqColorPicker.min.js"></script>
</head>
<body>
    <button id="openColorPicker">Open Color Picker</button>
    <div id="colorPickerContainer"></div>

    <script>
        $(document).ready(function() {
            $('#openColorPicker').click(function() {
                $('#colorPickerContainer').jqColor({
                    change: function(cp, hsv, rgb, a, hex) {
                        console.log(hex);
                    }
                });
            });
        });
    </script>
</body>
</html>
Copied!
Copied!
Copied!
Copied!
Copied!
Copied!

All versions