Skip to content

Commit

Permalink
Work on web-fc-solve-ui integration.
Browse files Browse the repository at this point in the history
Disable/hide the animated/graphic solution display if the game-variant rules do not match 8cols+4reserves freecell
  • Loading branch information
shlomif committed Apr 9, 2024
1 parent d1313d8 commit b2ca9c6
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
7 changes: 7 additions & 0 deletions fc-solve/site/wml/lib/sass/jqui-override.scss
Expand Up @@ -31,6 +31,13 @@
}
}

#output_tabs {
.disabled_wrapper {
clear: left;
margin-top: 5em;
}
}

#output_tabs.disable_animated_output {
#output_tabs__animated__selector {
&,
Expand Down
10 changes: 10 additions & 0 deletions fc-solve/site/wml/src/js-fc-solve/text/index.html.tt2
Expand Up @@ -153,6 +153,16 @@ Input a card patience/solitaire layout in the <a href="[% base_path %]docs/distr
<div id="output_tabs__animated" class="tab">

<div class="disabled_wrapper">

<p>
<b>Note:</b> The animated and graphical display is not
currently available for the variants of Solitaire which
do not match the default 8-columns and 4-freecells Freecell
variant ( <a href="[% base_path %]faq.html#is_freecell_the_ms_game">Reference</a>)
with limited sequence move-length, tableau built by alternate colours,
and empty columns that can be filled by any card.
</p>

</div>

[%- BLOCK upper_button -%]
Expand Down

0 comments on commit b2ca9c6

Please sign in to comment.