Opacity: zIndex: Get 1400000 0FP0EXP Token to input your own list (json format) or insert json link:

Get 1200000 0FP0EXP Token to input your own list (json format) or insert json link:

My Playlist:

JSON Ready: Not Ready

Ready State:

Network State:

Name:

Album:

Reference:

Background Color

General HTML background color:

Header background color:

Menu background color:

Content background color:

Widget background color:

Footer background color:

Font Size

Get 1900000 0FP0EXP Token to unlock this feature.

Heading 1 font size:

Heading 2 font size:

Heading 3 font size:

Heading 4 font size:

Heading 5 font size:

Heading 6 font size:

Header font size:

Header Widget font size:

Menu font size:

Widget font size:

Footer font size:

Content font size:

Font Color

Get 2400000 0FP0EXP Token to unlock this feature.

Heading 1 font color:

Heading 2 font color:

Heading 3 font color:

Heading 4 font color:

Heading 5 font color:

Heading 6 font color:

Header font color:

Header Widget font color:

Menu font color:

Widget font color:

Footer font color:

Content font color:

Font Shadow

Get 2800000 0FP0EXP Token to unlock this feature.

Heading 1 font shadow:

Heading 2 font shadow:

Heading 3 font shadow:

Heading 4 font shadow:

Heading 5 font shadow:

Heading 6 font shadow:

Header font shadow:

Header Widget font shadow:

Menu font shadow:

Widget font shadow:

Footer font shadow:

Content font shadow:

Other Styles Coming Soon



Source Code

Click the above image for basic sourced and click following button for processing token source code.

Ethereum Virtual Machine

Ethereum and EVM (ETC, BSC, AVAX-C-Chain, Polygon, etc).

Telegram Open Network

Telegram Open Network (TON) decentralized application.

Solana

Solana decentralized application.

Tron

Tron decentralized application.

Near

Near decentralized application.

Wax

Wax decentralized application.

Myalgo

Myalgo wallet for Algorand decentralized application.

Sync2

Sync2 wallet for Vechain decentralized application.

Scatter

Scatter wallet for EOS decentralized application.

Ontology

Ontology decentralized application.

Rabbet

Rabbet wallet for Stellar Lumen decentralized application.

Freighter

Freighter wallet for Stellar Lumen decentralized application.

Hivesigner

Hive Signer for Hive decentralized application.

Hivekeychain

Hive Key Chain for Hive decentralized application.

Zilpay

Zilpay wallet for Zilliqa decentralized application.

Neoline N2

Neoline wallet for Neo N2 decentralized application.

Neoline N3

Neoline wallet for Neo N3 decentralized application.

Keplr

Keplr wallet for Cosmos and other decentralized application.

Keeper

Keeper wallet for Waves decentralized application.

IWallet

IWallet for IOST decentralized application.

Chess Board Tree Explorer HTML CSS JavaScript

Get 1000000 0FP0EXP Token to remove widget entirely!

source code



source code
old source code

get any 0FP0EXP Token to automatically turn off or 100000 0FP0EXP Token to remove this JavaScript Mining.

Get 500000 0FP0EXP Token to remove my NFTS advertisements!

Get 400000 0FP0EXP Token to remove this donation notification!

get 300000 0FP0EXP Token to remove this paypal donation.

View My Stats

Need referral links?

get 200000 0FP0EXP Token to remove my personal ADS.

word number: 2466

Time: 2025-12-12 05:18:39 +0000

♟️ Opening Tree Explorer

Reference

Source Code

<!DOCTYPE html>
<html>
<head>
  <title>Chess Tree Study</title>
  <link rel="stylesheet" href="chessboard-1.0.0.min.css">
  <style>
    body { font-family: sans-serif; display: flex; flex-direction: column; align-items: center; background: #f4f4f4; padding: 20px; }
    #main-container { display: flex; gap: 20px; }
    #myBoard { width: 400px; }
    #sidebar { width: 300px; display: flex; flex-direction: column; gap: 10px; }
    
    /* Move Buttons */
    .move-btn {
      padding: 10px; text-align: left; background: white; border: 1px solid #ccc; cursor: pointer; border-radius: 4px; transition: 0.2s;
    }
    .move-btn:hover { background: #e0e0e0; border-color: #aaa; }
    .move-btn strong { color: #333; font-size: 1.1em; }
    .move-name { display: block; color: #666; font-size: 0.9em; margin-top: 2px; }
    
    /* Notation & Comments */
    #history { font-family: monospace; font-size: 1.1em; color: #333; padding: 10px; background: #fff; border: 1px solid #ccc; }
    #comment-box { background: #e8f5e9; padding: 10px; border-left: 5px solid #4caf50; font-style: italic; min-height: 40px; }
    
    /* Controls */
    #controls { display: flex; gap: 5px; }
    button { padding: 8px 12px; cursor: pointer; }
  </style>
</head>
<body>

  <h1>♟️ Opening Tree Explorer</h1>

  <div id="main-container">
    <div id="myBoard"></div>

    <div id="sidebar">
      <div id="history">Start</div>
      
      <div id="comment-box">Select a move to begin study.</div>

      <h4>Available Moves:</h4>
      <div id="move-options">Loading...</div>

      <div id="controls">
        <button id="resetBtn">↩️ Reset to Start</button>
        <button id="undoBtn">⬅️ Undo Last</button>
      </div>
    </div>
  </div>

  <script src="jquery-3.7.1.min.js"></script>
  <script src="chess-0.12.1.min.js"></script>
  <script src="chessboard-1.0.0.min.js"></script>

  <script>
    // --- 1. SETUP ---
    var board = null;
    var game = new Chess();
    var rootData = [];        // The full JSON loaded from file
    var currentNode = null;   // The specific object in the JSON tree we are currently on
    var nodeStack = [];       // Keeps track of path to allow "Undo"

    var config = {
        position: 'start',
        draggable: false, 
        // Use local images if you have them, otherwise use the raw GitHub link
        pieceTheme: 'img/chesspieces/wikipedia/{piece}.png' 
    };
    board = Chessboard('myBoard', config);

    // --- 2. LOGIC ---

    async function init() {
        try {
            const response = await fetch('chessopenings-tree.json');
            rootData = await response.json();
            
            // "rootData" is an array of moves (e4, d4). 
            // We create a fake "root" node to hold them as children.
            currentNode = { children: rootData };
            
            renderMoveOptions();
        } catch (e) {
            document.getElementById('move-options').innerHTML = "Error loading openings.json";
            console.error(e);
            rootData = local_tree_openings;
            currentNode = { children: rootData };
            renderMoveOptions();
        }
    }

    function onMoveClick(childNode) {
        // 1. Make the move in the engine
        game.move(childNode.move);
        board.position(game.fen());

        // 2. Speak the move (Voice Notation)
        speak(childNode.move);

        // 3. Update State
        nodeStack.push(currentNode); // Save previous parent
        currentNode = childNode;     // Set new current node

        // 4. Update UI
        updateUI();
    }

    function undo() {
        if (nodeStack.length === 0) return; // Can't undo past start

        game.undo();
        board.position(game.fen());
        currentNode = nodeStack.pop(); // Go back to parent node
        updateUI();
    }

    function reset() {
        game.reset();
        board.start();
        currentNode = { children: rootData };
        nodeStack = [];
        updateUI();
    }

    // --- 3. UI RENDERING ---

    function updateUI() {
        // Update History Text
        const history = game.pgn();
        document.getElementById('history').innerText = history || "Start Position";

        // Update Comment
        const comment = currentNode.comment ? currentNode.comment : "No comment for this position.";
        document.getElementById('comment-box').innerText = comment;

        // Render Next Options
        renderMoveOptions();
    }

    function renderMoveOptions() {
        const container = document.getElementById('move-options');
        container.innerHTML = "";

        if (!currentNode.children || currentNode.children.length === 0) {
            container.innerHTML = "<em>End of line. Go back to study other variations.</em>";
            return;
        }

        // Loop through available children (next moves) and create buttons
        currentNode.children.forEach(child => {
            const btn = document.createElement('div');
            btn.className = 'move-btn';
            
            // Show Move (e.g., "e5") and Name (e.g., "Open Game")
            let html = `<strong>${child.move}</strong>`;
            if (child.name) {
                html += ` <span class="move-name">${child.name}</span>`;
            }
            btn.innerHTML = html;

            btn.onclick = () => onMoveClick(child);
            container.appendChild(btn);
        });
    }

    function speak(text) {
        if ('speechSynthesis' in window) {
            let ut = new SpeechSynthesisUtterance(text);
            ut.rate = 1.0;
            window.speechSynthesis.speak(ut);
        }
    }

    // --- 4. BUTTONS ---
    document.getElementById('undoBtn').onclick = undo;
    document.getElementById('resetBtn').onclick = reset;

    // Start
    init();

    local_tree_openings = [
        {
            "move": "e4",
            "name": "King's Pawn Opening",
            "comment": "Best move for beginners. Controls the center immediately.",
            "children": [
            {
                "move": "e5",
                "name": "Open Game",
                "children": [
                {
                    "move": "Nf3",
                    "name": "King's Knight Opening",
                    "children": [
                    {
                        "move": "Nc6",
                        "children": [
                        {
                            "move": "Bb5",
                            "name": "Ruy Lopez",
                            "comment": "Attacks the defender of the e5 pawn."
                        },
                        {
                            "move": "Bc4",
                            "name": "Italian Game",
                            "children": [
                                {
                                    "move": "Bc5",
                                    "name": "Giuoco Piano"
                                }
                            ]
                        }
                        ]
                    }
                    ]
                }
                ]
            },
            {
                "move": "c5",
                "name": "Sicilian Defense",
                "comment": "A sharp, counter-attacking response.",
                "children": []
            }
            ]
        },
        {
            "move": "d4",
            "name": "Queen's Pawn Opening",
            "children": []
        }
    ]
  </script>
</body>
</html>