Skip to content

Commit

Permalink
Add cookie bar (#165)
Browse files Browse the repository at this point in the history
* Add cookie bar
Fixes #92
  • Loading branch information
eronisko committed Apr 23, 2019
1 parent ce63021 commit 728a20f
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/assets/javascripts/application.js
Expand Up @@ -14,8 +14,28 @@
//= require jquery
//= require activestorage
//= require turbolinks
//= require cookieconsent.min
//= require_tree .

$(document).on('turbolinks:load', function () {
// Initialize GovUK Javascript
window.navodyDigitalFrontend.initAll();

// Initialize Cookie Bar
window.cookieconsent.initialise({
"palette": {
"popup": {
"background": "#1d1e21"
},
"button": {
"background": "#4cae18"
}
},
"theme": "classic",
"content": {
"message": "Tento web používa súbory cookie na poskytovanie služieb a analýzu webu. Používaním tohto webu vyjadrujete svoj súhlas s používaním súborov cookie.",
"dismiss": "OK"
},
"showLink": false
})
});
1 change: 1 addition & 0 deletions app/assets/stylesheets/application.css
Expand Up @@ -10,6 +10,7 @@
* files in this directory. Styles in this file should be added after the last require_* statement.
* It is generally better to create a new file per style scope.
*
*= require cookieconsent.min
*= require_tree .
*= require_self
*/
Expand Down

0 comments on commit 728a20f

Please sign in to comment.