Socket
Book a DemoInstallSign in
Socket

@orange-games/gdpr

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@orange-games/gdpr

A gdpr consent wall to cover basics for ORCA portals

latest
npmnpm
Version
0.1.6
Version published
Maintainers
2
Created
Source

A simple gdprWall feature to cover basic GDPR things (mainly cookies). This wall also has a build in GEOlocation tracker, so it will only show the gdprwall for EU visitors and show a regular cookiewall for non EU visitors.

Getting started

Lets start by installing the package, like most of the other packages we will make use of NPM

npm i @orange-games/gdpr --save-dev

Now lets call get the tool in our project.

import Gdpr from '@orange-games/gdpr';

At last let's call the feature!

new Gdpr({
     language: 'EN',
     prefix: 'ogdpr_',
     brandName: 'brandName',
     brandImages: {
         brandLogo: 'url to logo'
     },
     companyPolicy: 'http://orangegames.com/cookie-policy/',
     companyCookie: 'http://orangegames.com/cookie-policy/',
     pageInfo: {
         page: 'pageName',
     },
     textDirectory: 'path-to-texts',
     cookieWallItems: {
         title: 'ccTitle',
         message: 'ccMessage',
         dismiss: 'ccDissmiss',
         learnMore: 'ccLearnmore',
         link: 'link',
         mask: false,
         theme: '//cookies.orangegames.com/assets/css/spele-bottom.css',
         callback: function () {
            //...
         }
     },
     wallAccepted: function(){
         //...
     },
     ogdprAdvertisement: function(state) {
         //...
     },
     ogdprTracking: function(state) {
         //...
     },
     ogdprThirdParty: function(state) {
         //...
     }
 });

note: You can leave out any property that you wont use

The styles are not included in this tool.

STYLES ARE REQUIRED FOR THIS TOOL TO WORK

Here are the style elements used. SASS format: https://hastebin.com/ifixudewin.php

CSS format: https://hastebin.com/ubiduqorit.css

And done, it's that simple!

FAQs

Package last updated on 25 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts