Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove UI hints

  • Loading branch information...
commit 3e0c56b7c1f5950d33581655436ed96023c34c51 1 parent 3b137d1
@ornicar authored
View
3  TODO
@@ -1,4 +1,3 @@
-* world geolocation
* show best players in terms of number of games, show first players to register (http://en.lichess.org/forum/lichess-feedback/suggestion)
* don't use AI games in win/loss ratios
* show table of games per opponent (http://en.lichess.org/forum/lichess-feedback/suggestions-for-improving?page=1#2)
@@ -21,10 +20,8 @@
* analysis anchor (http://lichess.org/forum/lichess-feedback/4cd1967630c3534159000000)
* propose to cancel a move
* show game in forum
-* install issues https://github.com/ornicar/lichess/issues/37
* css https://github.com/ornicar/lichess/issues/38
* rematch link in replay & analyze http://en.lichess.org/forum/lichess-feedback/suggestion-rematch-link-in-replay-analyze?page=1#1
* stats win white/black
* show spectator names
* favorite games http://en.lichess.org/forum/lichess-feedback/what-wold-you-think-about-a-favorite-games-feature?page=1#2
-* investigate clearing production cache using --no-warmup
View
2  src/Application/ForumBundle/Resources/views/Search/form.html.twig
@@ -1,4 +1,4 @@
<form class="forum_search" action="{{ path("lichess_forum_search") }}" method="get">
- <input class="query hint_me" data-hint="Search in forum" name="q" value="{{ app.request.query.get("q") }}" />
+ <input class="query" name="q" value="{{ app.request.query.get("q") }}" />
<input class="submit" type="submit" value="&rarr;" />
</form>
View
9 src/Application/ForumBundle/Resources/views/layout.html.twig
@@ -22,12 +22,3 @@
<link href="{{ asset_url }}" type="text/css" rel="stylesheet" />
{% endstylesheets %}
{% endblock %}
-
-{% block javascripts %}
-{{ parent() }}
-{% javascripts
- '@LichessBundle/Resources/public/vendor/jquery.hint.js'
- filter="?yui_js" %}
- <script src="{{ asset_url }}"></script>
-{% endjavascripts %}
-{% endblock %}
View
7 src/Bundle/LichessBundle/Resources/public/css/common.css
@@ -443,7 +443,7 @@ div.lichess_social div.addtochrome {
display: none;
margin-bottom: 15px;
}
-.lichess_facebook iframe {
+div.lichess_facebook iframe {
border:none;
width: 110px;
height: 22px;
@@ -452,11 +452,6 @@ div.lichess_social div.addtochrome {
background: transparent;
}
-div.lichess_server {
- margin: 20px 0;
- text-align: center;
-}
-
/* soft inactive gradient */
#top, div.lichess_chat_top, div.undertable_top, .button, .button:visited, .ui-state-default, div.content_box_top, div.hooks tr {
color: #666;
View
2  src/Bundle/LichessBundle/Resources/public/js/ctrl.js
@@ -180,8 +180,6 @@ $(function() {
return confirm('Confirm this action?');
});
- $.fn.hints && $('input.hint_me').hints();
-
var elem = document.createElement('audio');
var canPlayAudio = !! elem.canPlayType && elem.canPlayType('audio/ogg; codecs="vorbis"');
View
25 src/Bundle/LichessBundle/Resources/public/vendor/jquery.hint.js
@@ -1,25 +0,0 @@
-(function($) {
- $.fn.hints = function(options) {
- var opts = $.extend({}, $.fn.hints.defaults, options);
-
- return this.each(function() {
-
- var input = $(this);
- var initial = input.data('hint');
-
- input.blur(function() {
- if (input.val() == '' || input.val() == initial) { input.addClass(opts['className']).val(initial); }
- }).focus(function() {
- if (input.val() == initial) { input.removeClass(opts['className']).val(''); }
- }).blur();
-
- input.closest('form').submit(function() {
- input.focus();
- });
- });
- };
-
- $.fn.hints.defaults = {
- className: "hinted",
- }
-})(jQuery);
Please sign in to comment.
Something went wrong with that request. Please try again.