ユーザ用ツール

サイト用ツール


start

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
start [2026/08/31 01:25] mokuhazushi53start [2026/08/31 01:40] (現在) mokuhazushi53
行 1: 行 1:
-~~NOCACHE~~+====== モクハズシ専用サイトにようこそ ======
  
-<HTML> 
-<div id="wgo_board" style="width: 100%; max-width: 500px; min-height: 300px; margin: 20px auto; border: 1px solid #ccc; display: flex; align-items: center; justify-content: center; background-color: #f9f9f9;"> 
-    <span style="color: #666;">盤面を読み込み中...</span> 
-</div> 
  
-<script> 
-(function() { 
-    // 1. WGo.jsがまだ読み込まれていない場合のみ、外部から取得する 
-    if (!window.WGo) { 
-        // CSSを読み込み 
-        var css = document.createElement('link'); 
-        css.rel = 'stylesheet'; 
-        css.href = 'https://cdnjs.cloudflare.com/ajax/libs/wgo.js/2.3.1/wgo.player.css'; 
-        document.head.appendChild(css); 
- 
-        // 本体(wgo.min.js)を読み込み 
-        var script1 = document.createElement('script'); 
-        script1.src = 'https://cdnjs.cloudflare.com/ajax/libs/wgo.js/2.3.1/wgo.min.js'; 
-         
-        // 本体が読み込み終わったら、次にPlayer(wgo.player.min.js)を読み込む 
-        script1.onload = function() { 
-            var script2 = document.createElement('script'); 
-            script2.src = 'https://cdnjs.cloudflare.com/ajax/libs/wgo.js/2.3.1/wgo.player.min.js'; 
-            // Playerも読み込み終わったら、盤面を描画する 
-            script2.onload = initWGoBoard; 
-            document.head.appendChild(script2); 
-        }; 
-        document.head.appendChild(script1); 
-    } else { 
-        // すでに読み込まれている場合はすぐ描画 
-        initWGoBoard(); 
-    } 
- 
-    // 2. 盤面を描画する関数 
-    function initWGoBoard() { 
-        var elem = document.getElementById("wgo_board"); 
-        if (elem) { 
-            elem.innerHTML = ""; // 「読み込み中...」の文字を消す 
-             
-            // 碁盤を生成 
-            new WGo.BasicPlayer(elem, { 
-                sgf: "(;GM[1]FF[4]CA[UTF-8]AP[WGo.js]SZ[19]PW[白]PB[黒];B[qd];W[dp];B[pq];W[dd];B[oc];W[qj];B[ql];W[qf])", 
-                enableWheel: false // マウスホイールでの不要なスクロール操作を防ぐ 
-            }); 
-        } 
-    } 
-})(); 
-</script> 
-</HTML> 
start.1788107130.txt.gz · 最終更新: by mokuhazushi53

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki