Skip to content

Commit

Permalink
support: try on stockfish
Browse files Browse the repository at this point in the history
  • Loading branch information
ArneVogel committed May 12, 2024
1 parent b44e2be commit b2646a5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/listudy_web/templates/layout/_head.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -66,3 +66,5 @@
<meta name="theme-color" content="#ffffff">
<%# Favicon end %>

<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6706752364351336" crossorigin="anonymous"></script>
<script <%= raw ListudyWeb.Plugs.CSP.put_nonce(@conn) %>>(adsbygoogle=window.adsbygoogle||[]).pauseAdRequests=1;</script>
9 changes: 8 additions & 1 deletion lib/listudy_web/templates/page/play_stockfish.html.eex
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,14 @@
<link rel="stylesheet" href="<%= Routes.static_path(@conn, "/css/chessground.css") %>"/>
<script defer type="text/javascript" src="<%= Routes.static_path(@conn, "/js/play_stockfish.js") %>"></script>

<%= render ListudyWeb.BookView, "thumb.html", Map.put(assigns, :book, @book) %>
<!-- listudy-test -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-6706752364351336"
data-ad-slot="7962822632"
data-ad-format="auto"
data-full-width-responsive="true"></ins>

<p>
<b><%= dgettext "play_stockfish", "Play against Stockfish:" %></b>
<%= dgettext "play_stockfish", "learn with the best chess engine." %>
Expand Down

0 comments on commit b2646a5

Please sign in to comment.