From 93a5d0d86f9fe9b1f2bb6bf4010c3aa4738fcaa9 Mon Sep 17 00:00:00 2001 From: Orest Bida Date: Sun, 13 Jun 2021 19:03:19 +0200 Subject: [PATCH] First commit --- .gitignore | 1 + README.md | 374 +++++++++- demo/app.js | 80 +++ demo/assets/fonts.css | 25 + demo/assets/fonts/basier-square-regular.woff2 | Bin 0 -> 14904 bytes .../assets/fonts/basier-square-semibold.woff2 | Bin 0 -> 16224 bytes demo/assets/iframemanager_logo.svg | 11 + demo/index.html | 85 +++ dist/iframemanager.css | 1 + dist/iframemanager.js | 17 + src/iframemanager.css | 300 ++++++++ src/iframemanager.js | 666 ++++++++++++++++++ 12 files changed, 1558 insertions(+), 2 deletions(-) create mode 100644 .gitignore create mode 100644 demo/app.js create mode 100644 demo/assets/fonts.css create mode 100644 demo/assets/fonts/basier-square-regular.woff2 create mode 100644 demo/assets/fonts/basier-square-semibold.woff2 create mode 100644 demo/assets/iframemanager_logo.svg create mode 100644 demo/index.html create mode 100644 dist/iframemanager.css create mode 100644 dist/iframemanager.js create mode 100644 src/iframemanager.css create mode 100644 src/iframemanager.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7bf3a16 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/dev_tools \ No newline at end of file diff --git a/README.md b/README.md index c59a1c4..3739299 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,372 @@ -# iframemanager -🍪 GDPR friendly iframe manager written in vanilla js +

+ IframeManager Logo +

+ +
+ +[Demo](demo)   |   [Features](#features)   |   [Installation](#installation)    + +[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT) +![Size](https://img.shields.io/github/size/orestbida/iframemanager/dist/iframemanager.js) +[![Stable version](https://img.shields.io/github/v/release/orestbida/iframemanager)](https://github.com/orestbida/cookieconsent/iframemanager) +
+
+ +**IframeMananger** is a lightweight javascript plugin which helps you **comply with `GDPR`** by completely removing iframes initially and setting a notice relative to that service. **Iframes are loaded only after consent**. + + + + +The plugin was mainly developed to aid [**CookieConsent**](https://github.com/orestbida/cookieconsent) with iframe management. + + + +
+ +
+ +## Table of Contents + +- [**Key features**](#features) +- [**Installation**](#installation) +- [**Configuration options & API**](#configuration-options) +- [**Configuration examples**](#configuration-examples) + - How to embed youtube video + - How to embed dailymotion video + - How to embed vimeo video + - How to embed twitch channel/chat +- [**License**](#license) + +## Features +- Lightweight +- Complies with **GDPR** +- **Multilanguage** support +- Automatic/custom thumbnail [support *](#note) +- Allows to integrate any service which uses iframes +- Improves website **performance**: + - no `