diff --git a/VERSION b/VERSION index 01dc8426..0dfa3d54 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -Version 2.4.2-stable+timestamp.2013.03.10.17.04.10 +Version 2.4.2-stable+timestamp.2013.03.10.17.08.00 diff --git a/applications/examples/static/images/facebook.png b/applications/examples/static/images/facebook.png new file mode 100644 index 00000000..be55dedd Binary files /dev/null and b/applications/examples/static/images/facebook.png differ diff --git a/applications/examples/static/images/gplus-32.png b/applications/examples/static/images/gplus-32.png new file mode 100644 index 00000000..c42eab78 Binary files /dev/null and b/applications/examples/static/images/gplus-32.png differ diff --git a/applications/examples/static/images/twitter.png b/applications/examples/static/images/twitter.png new file mode 100644 index 00000000..d94419a4 Binary files /dev/null and b/applications/examples/static/images/twitter.png differ diff --git a/applications/examples/static/js/share.js b/applications/examples/static/js/share.js new file mode 100644 index 00000000..cb149880 --- /dev/null +++ b/applications/examples/static/js/share.js @@ -0,0 +1,44 @@ +/** + + Created and copyrighted by Massimo Di Pierro + (MIT license) + + Example: + + + +**/ + +jQuery(function(){ + var script_source = jQuery('script[src*="share.js"]').attr('src'); + var params = function(name,default_value) { + var match = RegExp('[?&]' + name + '=([^&]*)').exec(script_source); + return match && decodeURIComponent(match[1].replace(/\+/g, ' '))||default_value; + } + var path = params('static','social'); + var url = encodeURIComponent(window.location.href); + var host = window.location.hostname; + var title = escape(jQuery('title').text()); + var twit = 'http://twitter.com/home?status='+title+'%20'+url; + var facebook = 'http://www.facebook.com/sharer.php?u='+url; + var gplus = 'https://plus.google.com/share?url='+url; + var tbar = '
Share
Share on TwitterShare on facebookShare on Google Plus
'; + // Add the share tool bar. + jQuery('body').append(tbar); + var st = jQuery('#socialdrawer'); + st.css({'opacity':'.7','z-index':'3000','background':'#FFF','border':'solid 1px #666','border-width':' 1px 0 0 1px','height':'20px','width':'40px','position':'fixed','bottom':'0','right':'0','padding':'2px 5px','overflow':'hidden','-webkit-border-top-left-radius':' 12px','-moz-border-radius-topleft':' 12px','border-top-left-radius':' 12px','-moz-box-shadow':' -3px -3px 3px rgba(0,0,0,0.5)','-webkit-box-shadow':' -3px -3px 3px rgba(0,0,0,0.5)','box-shadow':' -3px -3px 3px rgba(0,0,0,0.5)'}); + jQuery('#socialdrawer a').css({'float':'left','width':'32px','margin':'3px 2px 2px 2px','padding':'0','cursor':'pointer'}); + jQuery('#socialdrawer span').css({'float':'left','margin':'2px 3px','text-shadow':' 1px 1px 1px #FFF','color':'#444','font-size':'12px','line-height':'1em'}); + jQuery('#socialdrawer img').hide(); + // hover + st.click(function(){ + jQuery(this).animate({height:'40px', width:'160px', opacity: 0.95}, 300); + jQuery('#socialdrawer img').show(); + }); + //leave + st.mouseleave(function(){ + st.animate({height:'20px', width: '40px', opacity: .7}, 300); + jQuery('#socialdrawer img').hide(); + return false; + } ); + }); diff --git a/applications/examples/views/layout.html b/applications/examples/views/layout.html index ec7c96b1..1b9deac6 100644 --- a/applications/examples/views/layout.html +++ b/applications/examples/views/layout.html @@ -138,5 +138,6 @@ +