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

simple_cookies

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple_cookies

  • 0.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Simple Cookies

A simple gem to display cookies consent !

Installation

Simple Cookies is distributed as a gem, which is how it should be used in your app.

Include the gem in your Gemfile:

gem 'simple_cookies'

Install assets file in application.js:

//= require simple_cookies

And in application.css:

*= require simple-cookies

Or, if you have application.scss:

@import "simple-cookies";

Usage

In your view add

<%= render 'simple_cookies/consent', appname: "App name", path: nil, klass: 'top' %>

Default style

Simple Cookies comes with some customization. Here are css class :

full : make simple-cookies box full width of browser. Default is 375px.

top || bottom : position the box at the top or bottom of the window.

content-centered : center content inside the box. Default content is left align.

CSS class and customization

You can customize the box by overriding css.

"Simple cookies" contains 4 elements :

div#simple-cookies
  h1
  p
  a.simple-cookies-accept

FAQs

Package last updated on 27 Oct 2017

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

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