Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

add-to-calendar-button

Package Overview
Dependencies
Maintainers
1
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

add-to-calendar-button - npm Package Compare versions

Comparing version 1.2.0 to 1.2.1

5

npm_dist/atcb_npm.js

@@ -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']) {

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc