Günün bulmacası


Günün bulmacası

Günün sorusunu kendi web sitende yayınla

Günün bulmacasını kendi web sitenizde ya da blogunuzda kodu kullanarak gösterebilirsiniz:


    <div>
    <p>
        <span id="puzzlePlayers"></span><br />
        <span id="puzzleSite"></span>
    </p>
    <a id="puzzleLink" href="https://chesspuzzle.net/tr/Daily">
        <img id="puzzleImage" alt="Günün bulmacası" />
    </a><br />
    <h3><span id="puzzleText" /></h3>
    </div>

    <script type="text/javascript">
        var request = new XMLHttpRequest();
        request.open('GET', 'https://chesspuzzle.net/tr/Daily/Api', true);
        request.onload = function () {
            if (request.status >= 200 && request.status < 400) {
                var result = JSON.parse(request.responseText);
                document.getElementById("puzzleText").textContent = result.Text;
                document.getElementById("puzzleLink").href = result.Link;
                document.getElementById("puzzleImage").src = result.Image;
                document.getElementById("puzzlePlayers").textContent = result.Players;
                document.getElementById("puzzleSite").innerHTML = result.Site;
            }
        };
        request.send();
    </script>

Sizin turnuvanızdan satranç bulmacaları

Please contact me, if you'd like the daily chess puzzle to feature puzzles from your tournament.