Skip to content

Commit

Permalink
docs: update installation-and-usage.mdx and installation-and-usage.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
uvarov-frontend committed Nov 16, 2024
1 parent c8e9dc2 commit db6eed0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions docs/en/learn/installation-and-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,9 @@ If you need to quickly integrate Vanilla Calendar Pro without using build tools
<body>
<div id="calendar"></div>
<script>
// Destructure the Calendar constructor
const { Calendar } = window.VanillaCalendarPro;
document.addEventListener('DOMContentLoaded', () => {
// Destructure the Calendar constructor
const { Calendar } = window.VanillaCalendarPro;
// Create a calendar instance and initialize it.
const calendar = new Calendar('#calendar');
calendar.init();
Expand Down
5 changes: 2 additions & 3 deletions docs/ru/learn/installation-and-usage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,9 @@ import 'vanilla-calendar-pro/styles/themes/dark.css'; // Темная тема
<body>
<div id="calendar"></div>
<script>
// Деструктуризация конструктора Calendar
const { Calendar } = window.VanillaCalendarPro;
document.addEventListener('DOMContentLoaded', () => {
// Деструктуризация конструктора Calendar
const { Calendar } = window.VanillaCalendarPro;
// Создайте экземпляр календаря и инициализируйте его.
const calendar = new Calendar('#calendar');
calendar.init();
Expand Down

0 comments on commit db6eed0

Please sign in to comment.