Lettonia Riga, Lettonia, Guida ufficiale di Riga con informazioni inerenti l'ambasciata italiana a Riga, clima, meteo, ragazze, hotel, appartamenti, viaggi, turismo, voli, museiLettonia

Danimarca, sfida tra Germania e Lettonia per Mondiali Hockey

//HTML page title var pageTitle = document.title; //Location of the page var pageUrl = window.location.href; get_short_url(pageUrl, 'marraraa', 'R_447dbcc829b5face618184a23d5aa759', function(short_url) { pageUrl = short_url; }); //user clicks on a share button $('.button-wrap').click(function(event) { var shareName = $(this).attr('class').split(' ')[0]; //get the first class name of clicked element switch (shareName)//switch to different links based on different social name { case 'facebook': var openLink = 'https://www.facebook.com/sharer/sharer.php?u=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle); break; case 'twitter': var openLink = 'http://twitter.com/home?status=' + encodeURIComponent(pageTitle + ' ' + pageUrl); break; case 'digg': var openLink = 'http://www.digg.com/submit?phase=2&url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle); break; case 'stumbleupon': var openLink = 'http://www.stumbleupon.com/submit?url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle); break; case 'delicious': var openLink = 'http://del.icio.us/post?url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle); break; case 'google': var openLink = 'https://plus.google.com/share?url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle); break; case 'email': var openLink = 'mailto:?subject=' + pageTitle + '&body=Found this useful link for you : ' + pageUrl; break; case 'linkedin': var openLink = 'http://www.linkedin.com/shareArticle?mini=true&url=' + encodeURIComponent(pageUrl) + '&title=' + encodeURIComponent(pageTitle) + '&summary=&source=ansa.it'; break; case 'pinterest': var openLink = 'http://pinterest.com/pin/create/button/?url=' + encodeURIComponent(pageUrl) + '&description=' + encodeURIComponent(pageTitle); break; } //Parameters for the Popup window winWidth = 650; winHeight = 450; winLeft = ($(window).width() - winWidth) / 2, winTop = ($(window).height() - winHeight) / 2, winOptions = 'width=' + winWidth + ',height=' + winHeight + ',top=' + winTop + ',left=' + winLeft; //open Popup window and redirect user to share website. window.open(openLink, 'Condividi questo link', winOptions); $('#share-div').hide(); return false; });