cookie_alert 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/cookie_alert.js +2 -2
- data/app/assets/stylesheets/cookie_alert.css +23 -16
- data/app/views/cookie_alert/cookies/_primary_alert.html.erb +3 -2
- data/app/views/cookie_alert/cookies/_secondary_alert.html.erb +12 -12
- data/lib/cookie_alert/version.rb +1 -1
- data/lib/generators/cookie_alert/templates/_primary_alert.html.erb +3 -2
- data/lib/generators/cookie_alert/templates/_secondary_alert.html.erb +12 -10
- data/lib/generators/cookie_alert/templates/cookie_alert.css +23 -16
- data/lib/generators/cookie_alert/templates/cookie_alert.js +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 19de38d42409355262c7cce9edeb8fbf8055305f
|
4
|
+
data.tar.gz: 46caaddec5094cb63b4151e6d27160b0f9230afa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c2b4cf415218b6aae539eb85699a3012f2297bf352a05fd791ea2a4c17451b5b623e5c5813556b5503384022b8031f90d6a89688cb07583e9a010ca67ca4493
|
7
|
+
data.tar.gz: 3987c961635d735992fb43e9a9a637206b9d58223b5de4f92542a00a8bfc9423f3654c39f1d1c369041be34f0225e9118939d12cc00c810978ba292461ac2472
|
@@ -1,12 +1,12 @@
|
|
1
1
|
$(function(){
|
2
2
|
|
3
3
|
$("#cookie_alert.secondary-alert").on( 'mouseenter', function(e){
|
4
|
-
$("#cookie_alert_text").show();
|
4
|
+
$("#cookie_alert_text").show(500);
|
5
5
|
|
6
6
|
});
|
7
7
|
|
8
8
|
$("#cookie_alert.secondary-alert").on( 'mouseleave', function(e){
|
9
|
-
$("#cookie_alert_text").hide();
|
9
|
+
$("#cookie_alert_text").hide(500);
|
10
10
|
|
11
11
|
});
|
12
12
|
});
|
@@ -2,48 +2,55 @@
|
|
2
2
|
position: fixed;
|
3
3
|
bottom: 0;
|
4
4
|
left: 0;
|
5
|
-
color:
|
6
|
-
background-color: #
|
5
|
+
color: #dedede;
|
6
|
+
background-color: #0088cc;
|
7
7
|
border: 2px solid #444444;
|
8
|
+
z-index: 100;
|
8
9
|
}
|
9
10
|
|
10
11
|
#cookie_alert_message {
|
11
12
|
margin: 0;
|
12
13
|
padding: 5px;
|
14
|
+
clear: both;
|
13
15
|
}
|
14
16
|
|
15
17
|
#cookie_alert_title {
|
16
18
|
float: left;
|
19
|
+
color: white;
|
17
20
|
width: 75px;
|
18
21
|
font-weight: bold;
|
19
22
|
font-size: 18px;
|
20
23
|
line-height: 18px;
|
21
24
|
vertical-align: top;
|
22
|
-
padding-bottom:
|
23
|
-
text-shadow: 1px 1px 0
|
25
|
+
padding-bottom: 5px;
|
26
|
+
text-shadow: 1px 1px 0 #444444;
|
24
27
|
|
25
28
|
|
26
29
|
}
|
27
30
|
|
28
31
|
#cookie_alert_text {
|
29
32
|
margin-left: 80px;
|
30
|
-
line-height: 1.
|
33
|
+
line-height: 1.5em;
|
31
34
|
}
|
32
35
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
|
37
|
+
|
38
|
+
#cookie_alert_close {
|
39
|
+
float: right;
|
40
|
+
line-height: 1em;
|
41
|
+
padding: 1px 4px 2px 4px;
|
42
|
+
font-size: 12px;
|
43
|
+
background-color: red;
|
44
|
+
color: white;
|
45
|
+
font-weight: bold;
|
37
46
|
text-decoration: none;
|
38
|
-
|
39
|
-
|
40
|
-
margin: 0 5px;
|
47
|
+
text-shadow: 1px 1px 0 #444444;
|
48
|
+
margin-left: 2px;
|
41
49
|
|
42
50
|
}
|
43
51
|
|
44
|
-
#
|
52
|
+
#cookie_alert_close:hover {
|
45
53
|
text-decoration: none;
|
46
|
-
background-color:
|
47
|
-
color:
|
48
|
-
border: 1px solid black;
|
54
|
+
background-color: red;
|
55
|
+
color: white;
|
49
56
|
}
|
@@ -1,12 +1,13 @@
|
|
1
1
|
<div id='cookie_alert'>
|
2
2
|
<div id='cookie_alert_message'>
|
3
|
-
|
3
|
+
<div id='cookie_alert_title'>
|
4
4
|
Cookies:
|
5
5
|
</div>
|
6
6
|
<div id='cookie_alert_text'>
|
7
|
+
<%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
|
7
8
|
We use cookies to help personalise and improve your web experience.
|
8
9
|
By using our website you consent to our use of cookies, some of which may have already been set on your device.
|
9
|
-
View our Cookie Policy to learn more
|
10
|
+
View our Cookie Policy to learn more.
|
10
11
|
</div>
|
11
12
|
</div>
|
12
13
|
</div>
|
@@ -1,14 +1,14 @@
|
|
1
|
-
<div id='cookie_alert'class='secondary-alert'>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<div id='cookie_alert' class='secondary-alert'>
|
2
|
+
<div id='cookie_alert_message'>
|
3
|
+
<div id='cookie_alert_title'>
|
4
|
+
Cookies:
|
5
|
+
</div>
|
6
|
+
<div id='cookie_alert_text' style='display:none;'>
|
7
|
+
<%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
|
8
|
+
We use cookies to help personalise and improve your web experience.
|
9
|
+
By using our website you consent to our use of cookies, some of which may have already been set on your device.
|
10
|
+
View our Cookie Policy to learn more.
|
11
|
+
</div>
|
10
12
|
</div>
|
11
13
|
</div>
|
12
|
-
|
13
|
-
|
14
|
-
|
14
|
+
|
data/lib/cookie_alert/version.rb
CHANGED
@@ -1,12 +1,13 @@
|
|
1
1
|
<div id='cookie_alert'>
|
2
2
|
<div id='cookie_alert_message'>
|
3
|
-
|
3
|
+
<div id='cookie_alert_title'>
|
4
4
|
Cookies:
|
5
5
|
</div>
|
6
6
|
<div id='cookie_alert_text'>
|
7
|
+
<%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
|
7
8
|
We use cookies to help personalise and improve your web experience.
|
8
9
|
By using our website you consent to our use of cookies, some of which may have already been set on your device.
|
9
|
-
View our Cookie Policy to learn more
|
10
|
+
View our Cookie Policy to learn more.
|
10
11
|
</div>
|
11
12
|
</div>
|
12
13
|
</div>
|
@@ -1,12 +1,14 @@
|
|
1
|
-
<div id='cookie_alert'class='secondary-alert'>
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
<div id='cookie_alert' class='secondary-alert'>
|
2
|
+
<div id='cookie_alert_message'>
|
3
|
+
<div id='cookie_alert_title'>
|
4
|
+
Cookies:
|
5
|
+
</div>
|
6
|
+
<div id='cookie_alert_text' style='display:none;'>
|
7
|
+
<%= link_to "X", cookie_alert_path, id: 'cookie_alert_close', remote: true %>
|
8
|
+
We use cookies to help personalise and improve your web experience.
|
9
|
+
By using our website you consent to our use of cookies, some of which may have already been set on your device.
|
10
|
+
View our Cookie Policy to learn more.
|
11
|
+
</div>
|
10
12
|
</div>
|
11
13
|
</div>
|
12
|
-
|
14
|
+
|
@@ -2,48 +2,55 @@
|
|
2
2
|
position: fixed;
|
3
3
|
bottom: 0;
|
4
4
|
left: 0;
|
5
|
-
color:
|
6
|
-
background-color: #
|
5
|
+
color: #dedede;
|
6
|
+
background-color: #0088cc;
|
7
7
|
border: 2px solid #444444;
|
8
|
+
z-index: 100;
|
8
9
|
}
|
9
10
|
|
10
11
|
#cookie_alert_message {
|
11
12
|
margin: 0;
|
12
13
|
padding: 5px;
|
14
|
+
clear: both;
|
13
15
|
}
|
14
16
|
|
15
17
|
#cookie_alert_title {
|
16
18
|
float: left;
|
19
|
+
color: white;
|
17
20
|
width: 75px;
|
18
21
|
font-weight: bold;
|
19
22
|
font-size: 18px;
|
20
23
|
line-height: 18px;
|
21
24
|
vertical-align: top;
|
22
|
-
padding-bottom:
|
23
|
-
text-shadow: 1px 1px 0
|
25
|
+
padding-bottom: 5px;
|
26
|
+
text-shadow: 1px 1px 0 #444444;
|
24
27
|
|
25
28
|
|
26
29
|
}
|
27
30
|
|
28
31
|
#cookie_alert_text {
|
29
32
|
margin-left: 80px;
|
30
|
-
line-height: 1.
|
33
|
+
line-height: 1.5em;
|
31
34
|
}
|
32
35
|
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
36
|
+
|
37
|
+
|
38
|
+
#cookie_alert_close {
|
39
|
+
float: right;
|
40
|
+
line-height: 1em;
|
41
|
+
padding: 1px 4px 2px 4px;
|
42
|
+
font-size: 12px;
|
43
|
+
background-color: red;
|
44
|
+
color: white;
|
45
|
+
font-weight: bold;
|
37
46
|
text-decoration: none;
|
38
|
-
|
39
|
-
|
40
|
-
margin: 0 5px;
|
47
|
+
text-shadow: 1px 1px 0 #444444;
|
48
|
+
margin-left: 2px;
|
41
49
|
|
42
50
|
}
|
43
51
|
|
44
|
-
#
|
52
|
+
#cookie_alert_close:hover {
|
45
53
|
text-decoration: none;
|
46
|
-
background-color:
|
47
|
-
color:
|
48
|
-
border: 1px solid black;
|
54
|
+
background-color: red;
|
55
|
+
color: white;
|
49
56
|
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
$(function(){
|
2
2
|
|
3
3
|
$("#cookie_alert.secondary-alert").on( 'mouseenter', function(e){
|
4
|
-
$("#cookie_alert_text").show();
|
4
|
+
$("#cookie_alert_text").show(500);
|
5
5
|
|
6
6
|
});
|
7
7
|
|
8
8
|
$("#cookie_alert.secondary-alert").on( 'mouseleave', function(e){
|
9
|
-
$("#cookie_alert_text").hide();
|
9
|
+
$("#cookie_alert_text").hide(500);
|
10
10
|
|
11
11
|
});
|
12
12
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cookie_alert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- CodeMeister
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-05-
|
11
|
+
date: 2013-05-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -31,7 +31,7 @@ dependencies:
|
|
31
31
|
- - '>='
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
|
-
type: :
|
34
|
+
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|