add-to-calendar-button
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -6,3 +6,3 @@ /** | ||
*/ | ||
const atcbVersion = '1.2.0'; | ||
const atcbVersion = '1.2.1'; | ||
/* Creator: Jens Kuerschner (https://jenskuerschner.de) | ||
@@ -263,2 +263,5 @@ * Project: https://github.com/jekuer/add-to-calendar-button | ||
bgOverlay.addEventListener('mouseenter', atcb_close_all, false); | ||
// update the placeholder class to prevent multiple initializations | ||
button.classList.remove('atcb'); | ||
button.classList.add('atcb_initialized'); | ||
// show the placeholder div | ||
@@ -265,0 +268,0 @@ if (data['inline']) { |
{ | ||
"name": "add-to-calendar-button", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "A convenient JavaScript snippet, which lets you create beautiful buttons, where people can add events to their calendars.", | ||
@@ -5,0 +5,0 @@ "main": "npm_dist/atcb_npm.js", |
@@ -66,3 +66,3 @@ # Your next Add-to-Calendar Button | ||
4. Init the js after the DOM has been loaded. To determine the right moment and execute, ... | ||
1. with Angular, you would use `ngAfterViewInit()` with `atcb_init();`; | ||
1. with Angular, you would use `ngAfterViewInit()` with `atcb_init();` (mind that, depending on your app, other hooks might be better); | ||
2. with React, you might want to include an event listener like `document.addEventListener('DOMContentLoaded', atcb_init, false);`. | ||
@@ -69,0 +69,0 @@ 5. Include the css. For example with Angular or React, add the following to the global style.css: `@import 'add-to-calendar-button/assets/css/atcb.min'`; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80270
642