social_share_privacy 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/MIT-LICENSE +20 -0
- data/README.rdoc +3 -0
- data/Rakefile +38 -0
- data/lib/social_share_privacy.rb +6 -0
- data/lib/social_share_privacy/version.rb +3 -0
- data/lib/tasks/social_share_privacy_tasks.rake +4 -0
- data/test/dummy/README.rdoc +261 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +15 -0
- data/test/dummy/app/assets/stylesheets/application.css +13 -0
- data/test/dummy/app/controllers/application_controller.rb +3 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +59 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +37 -0
- data/test/dummy/config/environments/production.rb +67 -0
- data/test/dummy/config/environments/test.rb +37 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +15 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/routes.rb +58 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +25 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/social_share_privacy_test.rb +7 -0
- data/test/test_helper.rb +15 -0
- data/vendor/assets/images/dummy_facebook.png +0 -0
- data/vendor/assets/images/dummy_facebook_en.png +0 -0
- data/vendor/assets/images/dummy_gplus.png +0 -0
- data/vendor/assets/images/dummy_gplus_alt.png +0 -0
- data/vendor/assets/images/dummy_twitter.png +0 -0
- data/vendor/assets/images/settings.png +0 -0
- data/vendor/assets/images/socialshareprivacy_info.png +0 -0
- data/vendor/assets/images/socialshareprivacy_on_off.png +0 -0
- data/vendor/assets/javascripts/jquery.socialshareprivacy.js +33 -0
- data/vendor/assets/stylesheets/socialshareprivacy.css +226 -0
- metadata +155 -0
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,33 @@
|
|
1
|
+
/*
|
2
|
+
* jquery.socialshareprivacy.js | 2 Klicks fuer mehr Datenschutz
|
3
|
+
*
|
4
|
+
* http://www.heise.de/extras/socialshareprivacy/
|
5
|
+
* http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html
|
6
|
+
*
|
7
|
+
* Copyright (c) 2011 Hilko Holweg, Sebastian Hilbig, Nicolas Heiringhoff, Juergen Schmidt,
|
8
|
+
* Heise Zeitschriften Verlag GmbH & Co. KG, http://www.heise.de
|
9
|
+
*
|
10
|
+
* is released under the MIT License http://www.opensource.org/licenses/mit-license.php
|
11
|
+
*
|
12
|
+
* Spread the word, link to us if you can.
|
13
|
+
*/
|
14
|
+
(function(b){function x(b,a){var f=decodeURIComponent(b);if(f.length<=a)return b;var j=f.substring(0,a-1).lastIndexOf(" ");return f=encodeURIComponent(f.substring(0,j))+"\u2026"}function q(c){return b('meta[name="'+c+'"]').attr("content")||""}function r(){var c=q("DC.title"),a=q("DC.creator"),c=0<c.length&&0<a.length?c+(" - "+a):b("title").text();return encodeURIComponent(c)}function s(){var c=document.location.href,a=b("link[rel=canonical]").attr("href");a&&0<a.length&&(0>a.indexOf("http")&&(a=document.location.protocol+
|
15
|
+
"//"+document.location.host+a),c=a);return c}b.fn.socialSharePrivacy=function(c){var a=b.extend(!0,{services:{facebook:{status:"on",dummy_img:"socialshareprivacy/images/dummy_facebook.png",txt_info:"2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Facebook senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",txt_fb_off:"nicht mit Facebook verbunden",txt_fb_on:"mit Facebook verbunden",
|
16
|
+
perma_option:"on",display_name:"Facebook",referrer_track:"",language:"de_DE",action:"recommend"},twitter:{status:"on",dummy_img:"socialshareprivacy/images/dummy_twitter.png",txt_info:"2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Twitter senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",txt_twitter_off:"nicht mit Twitter verbunden",txt_twitter_on:"mit Twitter verbunden",perma_option:"on",
|
17
|
+
display_name:"Twitter",referrer_track:"",tweet_text:r,language:"en"},gplus:{status:"on",dummy_img:"socialshareprivacy/images/dummy_gplus.png",txt_info:"2 Klicks für mehr Datenschutz: Erst wenn Sie hier klicken, wird der Button aktiv und Sie können Ihre Empfehlung an Google+ senden. Schon beim Aktivieren werden Daten an Dritte übertragen – siehe <em>i</em>.",txt_gplus_off:"nicht mit Google+ verbunden",txt_gplus_on:"mit Google+ verbunden",perma_option:"on",display_name:"Google+",
|
18
|
+
referrer_track:"",language:"de"}},info_link:"http://www.heise.de/ct/artikel/2-Klicks-fuer-mehr-Datenschutz-1333879.html",txt_help:"Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter oder Google in die USA übertragen und unter Umständen auch dort gespeichert. Näheres erfahren Sie durch einen Klick auf das <em>i</em>.",settings_perma:"Dauerhaft aktivieren und Datenüber­tragung zustimmen:",cookie_path:"/",cookie_domain:document.location.host,
|
19
|
+
cookie_expires:"365",css_path:"socialshareprivacy/socialshareprivacy.css",uri:s},c),f="on"===a.services.facebook.status,j="on"===a.services.twitter.status,n="on"===a.services.gplus.status;if(f||j||n)return 0<a.css_path.length&&(document.createStyleSheet?document.createStyleSheet(a.css_path):b("head").append('<link rel="stylesheet" type="text/css" href="'+a.css_path+'" />')),this.each(function(){b(this).prepend('<ul class="social_share_privacy_area"></ul>');var d=b(".social_share_privacy_area",this),
|
20
|
+
c=a.uri;"function"===typeof c&&(c=c(d));if(f){var g=encodeURIComponent(c+a.services.facebook.referrer_track),q='<iframe src="http://www.facebook.com/plugins/like.php?locale='+a.services.facebook.language+"&href="+g+"&send=false&layout=button_count&width=120&show_faces=false&action="+a.services.facebook.action+'&colorscheme=light&font&height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:145px; height:21px;" allowTransparency="true"></iframe>',
|
21
|
+
t='<img src="'+a.services.facebook.dummy_img+'" alt="Facebook "Like"-Dummy" class="fb_like_privacy_dummy" />';d.append('<li class="facebook help_info"><span class="info">'+a.services.facebook.txt_info+'</span><span class="switch off">'+a.services.facebook.txt_fb_off+'</span><div class="fb_like dummy_btn">'+t+"</div></li>");var k=b("li.facebook",d);b("li.facebook div.fb_like img.fb_like_privacy_dummy,li.facebook span.switch",d).live("click",function(){k.find("span.switch").hasClass("off")?
|
22
|
+
(k.addClass("info_off"),k.find("span.switch").addClass("on").removeClass("off").html(a.services.facebook.txt_fb_on),k.find("img.fb_like_privacy_dummy").replaceWith(q)):(k.removeClass("info_off"),k.find("span.switch").addClass("off").removeClass("on").html(a.services.facebook.txt_fb_off),k.find(".fb_like").html(t))})}if(j){g=a.services.twitter.tweet_text;"function"===typeof g&&(g=g());var g=x(g,"120"),o=encodeURIComponent(c+a.services.twitter.referrer_track),e=encodeURIComponent(c),r='<iframe allowtransparency="true" frameborder="0" scrolling="no" src="http://platform.twitter.com/widgets/tweet_button.html?url='+
|
23
|
+
o+"&counturl="+e+"&text="+g+"&count=horizontal&lang="+a.services.twitter.language+'" style="width:130px; height:25px;"></iframe>',u='<img src="'+a.services.twitter.dummy_img+'" alt=""Tweet this"-Dummy" class="tweet_this_dummy" />';d.append('<li class="twitter help_info"><span class="info">'+a.services.twitter.txt_info+'</span><span class="switch off">'+a.services.twitter.txt_twitter_off+'</span><div class="tweet dummy_btn">'+u+"</div></li>");var l=b("li.twitter",d);b("li.twitter div.tweet img,li.twitter span.switch",
|
24
|
+
d).live("click",function(){l.find("span.switch").hasClass("off")?(l.addClass("info_off"),l.find("span.switch").addClass("on").removeClass("off").html(a.services.twitter.txt_twitter_on),l.find("img.tweet_this_dummy").replaceWith(r)):(l.removeClass("info_off"),l.find("span.switch").addClass("off").removeClass("on").html(a.services.twitter.txt_twitter_off),l.find(".tweet").html(u))})}if(n){var s='<div class="g-plusone" data-size="medium" data-href="'+(c+a.services.gplus.referrer_track)+'"></div><script type="text/javascript">window.___gcfg = {lang: "'+
|
25
|
+
a.services.gplus.language+'"}; (function() { var po = document.createElement("script"); po.type = "text/javascript"; po.async = true; po.src = "https://apis.google.com/js/plusone.js"; var s = document.getElementsByTagName("script")[0]; s.parentNode.insertBefore(po, s); })(); <\/script>',v='<img src="'+a.services.gplus.dummy_img+'" alt=""Google+1"-Dummy" class="gplus_one_dummy" />';d.append('<li class="gplus help_info"><span class="info">'+a.services.gplus.txt_info+'</span><span class="switch off">'+
|
26
|
+
a.services.gplus.txt_gplus_off+'</span><div class="gplusone dummy_btn">'+v+"</div></li>");var m=b("li.gplus",d);b("li.gplus div.gplusone img,li.gplus span.switch",d).live("click",function(){m.find("span.switch").hasClass("off")?(m.addClass("info_off"),m.find("span.switch").addClass("on").removeClass("off").html(a.services.gplus.txt_gplus_on),m.find("img.gplus_one_dummy").replaceWith(s)):(m.removeClass("info_off"),m.find("span.switch").addClass("off").removeClass("on").html(a.services.gplus.txt_gplus_off),
|
27
|
+
m.find(".gplusone").html(v))})}d.append('<li class="settings_info"><div class="settings_info_menu off perma_option_off"><a href="'+a.info_link+'"><span class="help_info icon"><span class="info">'+a.txt_help+"</span></span></a></div></li>");b(".help_info:not(.info_off)",d).live("mouseenter",function(){var a=b(this),c=window.setTimeout(function(){b(a).addClass("display")},500);b(this).data("timeout_id",c)});b(".help_info",d).live("mouseleave",function(){var a=b(this).data("timeout_id");window.clearTimeout(a);
|
28
|
+
b(this).hasClass("display")&&b(this).removeClass("display")});c="on"===a.services.facebook.perma_option;g="on"===a.services.twitter.perma_option;o="on"===a.services.gplus.perma_option;if((f&&c||j&&g||n&&o)&&(!b.browser.msie||b.browser.msie&&7<b.browser.version)){for(var i=document.cookie.split(";"),e="{",p=0;p<i.length;p+=1){var w=i[p].split("="),e=e+('"'+b.trim(w[0])+'":"'+b.trim(w[1])+'"');p<i.length-1&&(e+=",")}var e=JSON.parse(e+"}"),h=b("li.settings_info",d);h.find(".settings_info_menu").removeClass("perma_option_off");
|
29
|
+
h.find(".settings_info_menu").append('<span class="settings">Einstellungen</span><form><fieldset><legend>'+a.settings_perma+"</legend></fieldset></form>");f&&c&&(i="perma_on"===e.socialSharePrivacy_facebook?' checked="checked"':"",h.find("form fieldset").append('<input type="checkbox" name="perma_status_facebook" id="perma_status_facebook"'+i+' /><label for="perma_status_facebook">'+a.services.facebook.display_name+"</label>"));j&&g&&(i="perma_on"===e.socialSharePrivacy_twitter?' checked="checked"':
|
30
|
+
"",h.find("form fieldset").append('<input type="checkbox" name="perma_status_twitter" id="perma_status_twitter"'+i+' /><label for="perma_status_twitter">'+a.services.twitter.display_name+"</label>"));n&&o&&(i="perma_on"===e.socialSharePrivacy_gplus?' checked="checked"':"",h.find("form fieldset").append('<input type="checkbox" name="perma_status_gplus" id="perma_status_gplus"'+i+' /><label for="perma_status_gplus">'+a.services.gplus.display_name+"</label>"));h.find("span.settings").css("cursor","pointer");
|
31
|
+
b(h.find("span.settings"),d).live("mouseenter",function(){var a=window.setTimeout(function(){h.find(".settings_info_menu").removeClass("off").addClass("on")},500);b(this).data("timeout_id",a)});b(h,d).live("mouseleave",function(){var a=b(this).data("timeout_id");window.clearTimeout(a);h.find(".settings_info_menu").removeClass("on").addClass("off")});b(h.find("fieldset input")).live("click",function(c){var e=c.target.id,g="socialSharePrivacy_"+e.substr(e.lastIndexOf("_")+1,e.length);if(b("#"+c.target.id+
|
32
|
+
":checked").length){var c=a.cookie_expires,h=a.cookie_path,f=a.cookie_domain,i=new Date;i.setTime(i.getTime()+c*864E5);document.cookie=g+"=perma_on; expires="+i.toUTCString()+"; path="+h+"; domain="+f;b("form fieldset label[for="+e+"]",d).addClass("checked")}else{c=a.cookie_path;h=a.cookie_domain;f=new Date;f.setTime(f.getTime()-100);document.cookie=g+"=perma_on; expires="+f.toUTCString()+"; path="+c+"; domain="+h;b("form fieldset label[for="+e+"]",d).removeClass("checked")}});f&&c&&"perma_on"===
|
33
|
+
e.socialSharePrivacy_facebook&&b("li.facebook span.switch",d).click();j&&g&&"perma_on"===e.socialSharePrivacy_twitter&&b("li.twitter span.switch",d).click();n&&o&&"perma_on"===e.socialSharePrivacy_gplus&&b("li.gplus span.switch",d).click()}})}})(jQuery);
|
@@ -0,0 +1,226 @@
|
|
1
|
+
.social_share_privacy_area {
|
2
|
+
clear: both;
|
3
|
+
margin: 20px 0 !important;
|
4
|
+
list-style-type: none;
|
5
|
+
padding: 0 !important;
|
6
|
+
width: auto;
|
7
|
+
height: 25px;
|
8
|
+
display: block;
|
9
|
+
}
|
10
|
+
.social_share_privacy_area li {
|
11
|
+
margin: 0 !important;
|
12
|
+
padding: 0 !important;
|
13
|
+
height: 21px;
|
14
|
+
float: left;
|
15
|
+
}
|
16
|
+
.social_share_privacy_area li .dummy_btn {
|
17
|
+
float: left;
|
18
|
+
margin: 0 0 0 10px;
|
19
|
+
cursor: pointer;
|
20
|
+
padding: 0;
|
21
|
+
height: inherit;
|
22
|
+
}
|
23
|
+
.social_share_privacy_area li div iframe {
|
24
|
+
overflow: hidden;
|
25
|
+
height: inherit;
|
26
|
+
width: inherit;
|
27
|
+
}
|
28
|
+
/* Facebook begin */
|
29
|
+
.social_share_privacy_area .facebook {
|
30
|
+
width: 180px;
|
31
|
+
display: inline-block;
|
32
|
+
}
|
33
|
+
.social_share_privacy_area .facebook .fb_like iframe {
|
34
|
+
width: 145px;
|
35
|
+
}
|
36
|
+
/* Facebook end */
|
37
|
+
/* Twitter begin */
|
38
|
+
.social_share_privacy_area .twitter {
|
39
|
+
width: 148px;
|
40
|
+
}
|
41
|
+
.social_share_privacy_area li div.tweet {
|
42
|
+
width: 115px;
|
43
|
+
}
|
44
|
+
/* Twitter end */
|
45
|
+
/* Google+ begin */
|
46
|
+
.social_share_privacy_area .gplus {
|
47
|
+
width: 123px;
|
48
|
+
}
|
49
|
+
.social_share_privacy_area li div.gplusone {
|
50
|
+
width: 90px;
|
51
|
+
}
|
52
|
+
/* Google+ end */
|
53
|
+
/* Switch begin */
|
54
|
+
.social_share_privacy_area li .switch {
|
55
|
+
display: inline-block;
|
56
|
+
text-indent: -9999em;
|
57
|
+
background: transparent url(images/socialshareprivacy_on_off.png) no-repeat 0 0 scroll;
|
58
|
+
width: 23px;
|
59
|
+
height: 12px;
|
60
|
+
overflow: hidden;
|
61
|
+
float: left;
|
62
|
+
margin: 4px 0 0;
|
63
|
+
padding: 0;
|
64
|
+
cursor: pointer;
|
65
|
+
}
|
66
|
+
.social_share_privacy_area li .switch.on {
|
67
|
+
background-position: 0 -12px;
|
68
|
+
}
|
69
|
+
/* Switch end */
|
70
|
+
/* Tooltips begin */
|
71
|
+
.social_share_privacy_area li.help_info {
|
72
|
+
position: relative;
|
73
|
+
}
|
74
|
+
.social_share_privacy_area li.help_info .info,
|
75
|
+
.social_share_privacy_area li .help_info.icon .info {
|
76
|
+
display: none;
|
77
|
+
position: absolute;
|
78
|
+
bottom: 40px;
|
79
|
+
left: 0;
|
80
|
+
width: 290px;
|
81
|
+
padding: 10px 15px;
|
82
|
+
margin: 0;
|
83
|
+
font-size: 12px;
|
84
|
+
line-height: 16px;
|
85
|
+
font-weight: bold;
|
86
|
+
border: 1px solid #ccc;
|
87
|
+
-moz-border-radius: 4px;
|
88
|
+
-webkit-border-radius: 4px;
|
89
|
+
border-radius: 4px;
|
90
|
+
-moz-box-shadow: 0 3px 4px #999;
|
91
|
+
-webkit-box-shadow: 0 3px 4px #999;
|
92
|
+
box-shadow: 0 3px 4px #999;
|
93
|
+
background-color: #fdfbec;
|
94
|
+
color: #000;
|
95
|
+
z-index: 500;
|
96
|
+
}
|
97
|
+
.social_share_privacy_area li.gplus.help_info .info {
|
98
|
+
left: -60px;
|
99
|
+
}
|
100
|
+
.social_share_privacy_area li .help_info.icon .info {
|
101
|
+
left: -243px;
|
102
|
+
width: 350px;
|
103
|
+
}
|
104
|
+
.social_share_privacy_area li.help_info.display .info,
|
105
|
+
.social_share_privacy_area li .help_info.icon.display .info {
|
106
|
+
display: block;
|
107
|
+
}
|
108
|
+
.social_share_privacy_area li.help_info.info_off.display .info {
|
109
|
+
display: none;
|
110
|
+
}
|
111
|
+
.social_share_privacy_area li .help_info.icon {
|
112
|
+
background: #fff url(images/socialshareprivacy_info.png) no-repeat center center scroll;
|
113
|
+
width: 25px;
|
114
|
+
height: 20px;
|
115
|
+
position: relative;
|
116
|
+
display: inline-block;
|
117
|
+
vertical-align: top;
|
118
|
+
border: 2px solid #e7e3e3;
|
119
|
+
border-right-width: 0;
|
120
|
+
-moz-border-radius: 5px 0 0 5px;
|
121
|
+
-webkit-border-radius: 5px 0 0 5px;
|
122
|
+
border-radius: 5px 0 0 5px;
|
123
|
+
margin: 0;
|
124
|
+
padding: 0;
|
125
|
+
}
|
126
|
+
.social_share_privacy_area li.settings_info .settings_info_menu.on .help_info.icon {
|
127
|
+
border-top-width: 0;
|
128
|
+
border-left-width: 0;
|
129
|
+
}
|
130
|
+
.social_share_privacy_area li.settings_info .settings_info_menu.perma_option_off .help_info.icon {
|
131
|
+
border-right-width: 2px;
|
132
|
+
-moz-border-radius: 5px;
|
133
|
+
-webkit-border-radius: 5px;
|
134
|
+
border-radius: 5px;
|
135
|
+
}
|
136
|
+
/* Tooltips end */
|
137
|
+
/* Settings/Info begin */
|
138
|
+
.social_share_privacy_area li.settings_info {
|
139
|
+
position: relative;
|
140
|
+
top: -2px;
|
141
|
+
}
|
142
|
+
.social_share_privacy_area li.settings_info a {
|
143
|
+
text-decoration: none;
|
144
|
+
margin: 0 !important;
|
145
|
+
}
|
146
|
+
.social_share_privacy_area li.settings_info .settings_info_menu {
|
147
|
+
background-color: #f3f4f5;
|
148
|
+
border: 2px solid #e7e3e3;
|
149
|
+
-moz-border-radius: 5px;
|
150
|
+
-webkit-border-radius: 5px;
|
151
|
+
border-radius: 5px;
|
152
|
+
-moz-box-shadow: 2px 2px 3px #c1c1c1;
|
153
|
+
-webkit-box-shadow: 2px 2px 3px #c1c1c1;
|
154
|
+
box-shadow: 3px 3px 3px #c1c1c1;
|
155
|
+
left: 0;
|
156
|
+
position: absolute;
|
157
|
+
top: 0;
|
158
|
+
width: 135px;
|
159
|
+
z-index: 1000;
|
160
|
+
margin: 0;
|
161
|
+
padding: 0;
|
162
|
+
}
|
163
|
+
.social_share_privacy_area li.settings_info .settings_info_menu.off {
|
164
|
+
border-width: 0;
|
165
|
+
-moz-box-shadow: none;
|
166
|
+
-webkit-box-shadow: none;
|
167
|
+
box-shadow: none;
|
168
|
+
background-color: transparent;
|
169
|
+
}
|
170
|
+
.social_share_privacy_area li.settings_info .settings_info_menu.off form {
|
171
|
+
display: none;
|
172
|
+
margin: 0;
|
173
|
+
padding: 0;
|
174
|
+
}
|
175
|
+
.social_share_privacy_area li.settings_info .settings_info_menu .settings {
|
176
|
+
text-indent: -9999em;
|
177
|
+
display: inline-block;
|
178
|
+
background: #fff url(images/settings.png) no-repeat center center scroll;
|
179
|
+
width: 25px;
|
180
|
+
height: 20px;
|
181
|
+
border: 2px solid #e7e3e3;
|
182
|
+
-moz-border-radius: 0 5px 5px 0;
|
183
|
+
-webkit-border-radius: 0 5px 5px 0;
|
184
|
+
border-radius: 0 5px 5px 0;
|
185
|
+
border-left: 1px solid #ddd;
|
186
|
+
margin: 0;
|
187
|
+
padding: 0;
|
188
|
+
}
|
189
|
+
.social_share_privacy_area li.settings_info .settings_info_menu.on .settings {
|
190
|
+
border-top-width: 0;
|
191
|
+
}
|
192
|
+
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset {
|
193
|
+
border-width: 0;
|
194
|
+
margin: 0;
|
195
|
+
padding: 0 10px 10px;
|
196
|
+
}
|
197
|
+
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset legend {
|
198
|
+
font-size: 11px;
|
199
|
+
font-weight: bold;
|
200
|
+
line-height: 14px;
|
201
|
+
margin: 0;
|
202
|
+
padding: 10px 0;
|
203
|
+
width: 115px;
|
204
|
+
}
|
205
|
+
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset input {
|
206
|
+
clear: both;
|
207
|
+
float: left;
|
208
|
+
margin: 4px 10px 4px 0;
|
209
|
+
padding: 0;
|
210
|
+
}
|
211
|
+
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset label {
|
212
|
+
display: inline-block;
|
213
|
+
float: left;
|
214
|
+
font-size: 12px;
|
215
|
+
font-weight: bold;
|
216
|
+
line-height: 24px;
|
217
|
+
-moz-transition: color .5s ease-in;
|
218
|
+
-webkit-transition: color .5s ease-in;
|
219
|
+
transition: color .5s ease-in;
|
220
|
+
margin: 0;
|
221
|
+
padding: 0;
|
222
|
+
}
|
223
|
+
.social_share_privacy_area li.settings_info .settings_info_menu form fieldset label.checked {
|
224
|
+
color: #090;
|
225
|
+
}
|
226
|
+
/* Settings/Info end */
|
metadata
ADDED
@@ -0,0 +1,155 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: social_share_privacy
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Joakim Reinert
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-03-29 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: rails
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '3.1'
|
22
|
+
type: :runtime
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '3.1'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: sqlite3
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
description: Provides the heise socialshareprivacy plugin for the rails asset pipeline.
|
47
|
+
This lets you add the so-called Heise two click social buttons to your app for more
|
48
|
+
privacy
|
49
|
+
email:
|
50
|
+
- mail@jreinert.com
|
51
|
+
executables: []
|
52
|
+
extensions: []
|
53
|
+
extra_rdoc_files: []
|
54
|
+
files:
|
55
|
+
- lib/tasks/social_share_privacy_tasks.rake
|
56
|
+
- lib/social_share_privacy.rb
|
57
|
+
- lib/social_share_privacy/version.rb
|
58
|
+
- vendor/assets/images/dummy_facebook_en.png
|
59
|
+
- vendor/assets/images/settings.png
|
60
|
+
- vendor/assets/images/dummy_twitter.png
|
61
|
+
- vendor/assets/images/socialshareprivacy_on_off.png
|
62
|
+
- vendor/assets/images/socialshareprivacy_info.png
|
63
|
+
- vendor/assets/images/dummy_gplus.png
|
64
|
+
- vendor/assets/images/dummy_gplus_alt.png
|
65
|
+
- vendor/assets/images/dummy_facebook.png
|
66
|
+
- vendor/assets/stylesheets/socialshareprivacy.css
|
67
|
+
- vendor/assets/javascripts/jquery.socialshareprivacy.js
|
68
|
+
- MIT-LICENSE
|
69
|
+
- Rakefile
|
70
|
+
- README.rdoc
|
71
|
+
- test/test_helper.rb
|
72
|
+
- test/social_share_privacy_test.rb
|
73
|
+
- test/dummy/app/views/layouts/application.html.erb
|
74
|
+
- test/dummy/app/assets/stylesheets/application.css
|
75
|
+
- test/dummy/app/assets/javascripts/application.js
|
76
|
+
- test/dummy/app/helpers/application_helper.rb
|
77
|
+
- test/dummy/app/controllers/application_controller.rb
|
78
|
+
- test/dummy/public/favicon.ico
|
79
|
+
- test/dummy/public/422.html
|
80
|
+
- test/dummy/public/500.html
|
81
|
+
- test/dummy/public/404.html
|
82
|
+
- test/dummy/Rakefile
|
83
|
+
- test/dummy/config/routes.rb
|
84
|
+
- test/dummy/config/initializers/secret_token.rb
|
85
|
+
- test/dummy/config/initializers/mime_types.rb
|
86
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
87
|
+
- test/dummy/config/initializers/session_store.rb
|
88
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
89
|
+
- test/dummy/config/initializers/inflections.rb
|
90
|
+
- test/dummy/config/environments/production.rb
|
91
|
+
- test/dummy/config/environments/development.rb
|
92
|
+
- test/dummy/config/environments/test.rb
|
93
|
+
- test/dummy/config/database.yml
|
94
|
+
- test/dummy/config/boot.rb
|
95
|
+
- test/dummy/config/environment.rb
|
96
|
+
- test/dummy/config/application.rb
|
97
|
+
- test/dummy/config/locales/en.yml
|
98
|
+
- test/dummy/script/rails
|
99
|
+
- test/dummy/README.rdoc
|
100
|
+
- test/dummy/config.ru
|
101
|
+
homepage: https://github.com/supasnashbuhl/social-share-privacy
|
102
|
+
licenses: []
|
103
|
+
post_install_message:
|
104
|
+
rdoc_options: []
|
105
|
+
require_paths:
|
106
|
+
- lib
|
107
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
108
|
+
none: false
|
109
|
+
requirements:
|
110
|
+
- - ! '>='
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: '0'
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
114
|
+
none: false
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
requirements: []
|
120
|
+
rubyforge_project:
|
121
|
+
rubygems_version: 1.8.25
|
122
|
+
signing_key:
|
123
|
+
specification_version: 3
|
124
|
+
summary: Adds the heise social share privacy plugin to the asset pipeline
|
125
|
+
test_files:
|
126
|
+
- test/test_helper.rb
|
127
|
+
- test/social_share_privacy_test.rb
|
128
|
+
- test/dummy/app/views/layouts/application.html.erb
|
129
|
+
- test/dummy/app/assets/stylesheets/application.css
|
130
|
+
- test/dummy/app/assets/javascripts/application.js
|
131
|
+
- test/dummy/app/helpers/application_helper.rb
|
132
|
+
- test/dummy/app/controllers/application_controller.rb
|
133
|
+
- test/dummy/public/favicon.ico
|
134
|
+
- test/dummy/public/422.html
|
135
|
+
- test/dummy/public/500.html
|
136
|
+
- test/dummy/public/404.html
|
137
|
+
- test/dummy/Rakefile
|
138
|
+
- test/dummy/config/routes.rb
|
139
|
+
- test/dummy/config/initializers/secret_token.rb
|
140
|
+
- test/dummy/config/initializers/mime_types.rb
|
141
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
142
|
+
- test/dummy/config/initializers/session_store.rb
|
143
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
144
|
+
- test/dummy/config/initializers/inflections.rb
|
145
|
+
- test/dummy/config/environments/production.rb
|
146
|
+
- test/dummy/config/environments/development.rb
|
147
|
+
- test/dummy/config/environments/test.rb
|
148
|
+
- test/dummy/config/database.yml
|
149
|
+
- test/dummy/config/boot.rb
|
150
|
+
- test/dummy/config/environment.rb
|
151
|
+
- test/dummy/config/application.rb
|
152
|
+
- test/dummy/config/locales/en.yml
|
153
|
+
- test/dummy/script/rails
|
154
|
+
- test/dummy/README.rdoc
|
155
|
+
- test/dummy/config.ru
|