Skip to content

Commit

Permalink
Merge pull request #15 from dayschedule/development
Browse files Browse the repository at this point in the history
Development
  • Loading branch information
vickyRathee authored Oct 30, 2023
2 parents 3ecf0e6 + 804c0f3 commit cd049e5
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 5 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,14 @@ There are 2 types of embed option available on [DaySchedule](https://dayschedule

### Popup widget
To embed as a button and open the appointment scheduling popup when clicked. We **recommends** the popup widget, because it's initialized when someone click on the book now button, instead of having it initialize upon page load to improve website speed and performance by avoiding unnecessary requests.

1. Add the `dayschedule-popup.css` on website header.

```
<link href="https://cdn.jsdelivr.net/npm/dayschedule-widget@latest/dist/dayschedule-popup.css" rel="stylesheet" />
```
2. Add a `onClick` function to open the popup when clicked on a button
```
daySchedule.initPopupWidget({
url: 'https://meet.dayschedule.com',
Expand Down
2 changes: 1 addition & 1 deletion dist/dayschedule-widget.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion examples/inline.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>DaySchedule Inline Widget</title>
<link href="../dist/dayschedule-widget.css" rel="stylesheet" />
<script src="../dist/dayschedule-widget.js" defer></script>
</head>
<body>
Expand Down
3 changes: 1 addition & 2 deletions examples/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Booking popup for appointments - DaySchedule Widget</title>
<link href="../dist/dayschedule-popup.css" rel="stylesheet" />
<link href="../dist/dayschedule-widget.css" rel="stylesheet" />
<link href="https://cdn.jsdelivr.net/npm/dayschedule-widget@latest/dist/dayschedule-popup.css" rel="stylesheet" />
<script src="../dist/dayschedule-widget.js" defer></script>
</head>
<body>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dayschedule-widget",
"version": "1.1.4",
"version": "1.1.5",
"description": "Appointment scheduling widget to embed the booking calendar on your website for 1:1, round-robin and group bookings with Google meet, Zoom and MS Teams integrations",
"main": "dist/dayschedule-widget.js",
"files": [
Expand Down

0 comments on commit cd049e5

Please sign in to comment.