Remove social crap

pull/1/merge
Thibault Duplessis 2012-05-31 12:16:18 +02:00
parent 925a583f6a
commit 91941296b4
4 changed files with 3 additions and 57 deletions

View File

@ -3,11 +3,6 @@
@defining("http://lichess.org" + routes.Round.watcher(game.id, "white")) { url =>
<div class="game_share">
<div class="game_share_top">
<div class="game_share_widgets clearfix">
<div class="facebook_placeholder"></div>
<div class="twitter_placeholder"><a href="http://twitter.com/share" class="twitter-share-button" data-text="I like this Chess game! @url" data-count="none" data-url="http://lichess.org">Tweet this game</a></div>
<div class="plusone_placeholder"></div>
</div>
<a title="@trans.shareThisUrlToLetSpectatorsSeeTheGame()" class="game_permalink blank_if_play" href="@url">@url</a>
</div>
</div>

View File

@ -193,23 +193,6 @@ $(function() {
$soundToggle.addClass('unavailable');
}
if (true || lichess.onProduction) {
var homeUrl = $('#site_title').attr('href');
setTimeout(function() {
if ($gameSharing = $('div.game_share_widgets').orNot()) {
$gameSharing.find('div.plusone_placeholder').replaceWith('<div class="lichess_plusone"><g:plusone size="medium" href="'+homeUrl+'"></g:plusone></div>');
$gameSharing.find('div.facebook_placeholder').replaceWith('<div class="lichess_facebook"><iframe src="http://www.facebook.com/plugins/like.php?href=' + encodeURIComponent(homeUrl) + '&amp;layout=button_count&amp;show_faces=false&amp;width=110&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=22"></iframe></div>');
$.getScript('http://platform.twitter.com/widgets.js', function() {
$gameSharing.addClass('loaded')
});
} else {
$('div.lichess_social').append('<div class="lichess_facebook"><iframe src="http://www.facebook.com/plugins/like.php?href='+encodeURIComponent(homeUrl)+'%2F&amp;layout=button_count&amp;show_faces=false&amp;width=110&amp;action=like&amp;font=lucida+grande&amp;colorscheme=light&amp;height=22"></iframe></div><div><g:plusone size="medium" href="'+homeUrl+'"></g:plusone></div>');
}
$.getScript('https://apis.google.com/js/plusone.js');
},
2000);
}
if(Boolean(window.chrome)) {
$("div.addtochrome").show();
}

View File

@ -434,20 +434,10 @@ div.lichess_social {
height: 25px;
text-align: center;
}
div.lichess_social > div {
display: inline;
}
div.lichess_social div.addtochrome {
display: none;
margin-bottom: 15px;
}
div.lichess_facebook iframe {
border:none;
height: 22px;
margin-left: 5px;
overflow: hidden;
background: transparent;
}
/* soft inactive gradient */
#top, div.lichess_chat_top, div.undertable_top, .button, .button:visited, .ui-state-default, div.content_box_top, div.hooks tr {
@ -516,27 +506,3 @@ div.game_share_top a.game_permalink {
display: block;
margin-top: 3px;
}
div.game_share_widgets {
float: right;
opacity: 0.7;
width: 270px;
}
div.game_share_widgets:hover {
opacity: 1;
}
div.game_share_widgets > div {
float: right;
display: none;
margin-left: 10px;
}
div.game_share_widgets iframe, div.game_share_widgets div.lichess_plusone > div {
max-width: 70px;
}
div.lichess_facebook iframe {
max-width: 92px;
}
div.game_share_widgets.loaded > div {
display: block;
}

4
todo
View File

@ -22,7 +22,6 @@ make the wiki static html pages managed by git?
compensate lag http://fr.lichess.org/forum/lichess-feedback/the-clock-display-should-account-for-lag?page=1#4
show lobby room logs
refactor preload
anonymous rated!! http://db.tt/gJF0xNaT
0 0 game http://en.lichess.org/kxoprksf
lobby sync
chat scroll in game
@ -32,6 +31,9 @@ morozov can't chatban anymore http://en.lichess.org/inbox/mrfsbwou#bottom
monitor + nb slow mongo requests
restore previous elo graph
pie elo chart
guess friend list
remove social shit
highlight last move
new translations:
-rematchOfferCanceled=Rematch offer canceled