Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how can this be used in plain HTML/js #567

Closed
nikolayganovski1 opened this issue Sep 29, 2023 · 2 comments
Closed

how can this be used in plain HTML/js #567

nikolayganovski1 opened this issue Sep 29, 2023 · 2 comments

Comments

@nikolayganovski1
Copy link

nikolayganovski1 commented Sep 29, 2023

How can I use this library with plain JS or jQuery?
Where are the CDN links?

@nikolayganovski1 nikolayganovski1 changed the title how can i use it in HTML how can i use it in HTML/js Sep 29, 2023
@nikolayganovski1 nikolayganovski1 changed the title how can i use it in HTML/js how can this be used in plain HTML/js Sep 29, 2023
@t1m0n
Copy link
Owner

t1m0n commented Oct 1, 2023

It's not available now on CDNjs, but you can use files from raw github, I've commented on this issue with example link #562

@t1m0n t1m0n closed this as completed Oct 1, 2023
@likev
Copy link

likev commented Nov 30, 2023

I find jsdelivr cdn is available

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/air-datepicker.min.css">
</head>
<body>
  <input id=el />
  <script src="https://cdn.jsdelivr.net/npm/[email protected]/air-datepicker.min.js"></script>

  <script>
  let dp = new AirDatepicker('#el', {
    selectedDates: ['2021-02-20 18:00'],
    toggleSelected:false
  });
  </script>

</body>
</html>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants