start
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| start [2026/08/31 01:25] – mokuhazushi53 | start [2026/08/31 01:40] (現在) – mokuhazushi53 | ||
|---|---|---|---|
| 行 1: | 行 1: | ||
| - | ~~NOCACHE~~ | + | ====== モクハズシ専用サイトにようこそ ====== |
| - | < | ||
| - | <div id=" | ||
| - | <span style=" | ||
| - | </ | ||
| - | < | ||
| - | (function() { | ||
| - | // 1. WGo.jsがまだ読み込まれていない場合のみ、外部から取得する | ||
| - | if (!window.WGo) { | ||
| - | // CSSを読み込み | ||
| - | var css = document.createElement(' | ||
| - | css.rel = ' | ||
| - | css.href = ' | ||
| - | document.head.appendChild(css); | ||
| - | |||
| - | // 本体(wgo.min.js)を読み込み | ||
| - | var script1 = document.createElement(' | ||
| - | script1.src = ' | ||
| - | | ||
| - | // 本体が読み込み終わったら、次にPlayer(wgo.player.min.js)を読み込む | ||
| - | script1.onload = function() { | ||
| - | var script2 = document.createElement(' | ||
| - | script2.src = ' | ||
| - | // Playerも読み込み終わったら、盤面を描画する | ||
| - | script2.onload = initWGoBoard; | ||
| - | document.head.appendChild(script2); | ||
| - | }; | ||
| - | document.head.appendChild(script1); | ||
| - | } else { | ||
| - | // すでに読み込まれている場合はすぐ描画 | ||
| - | initWGoBoard(); | ||
| - | } | ||
| - | |||
| - | // 2. 盤面を描画する関数 | ||
| - | function initWGoBoard() { | ||
| - | var elem = document.getElementById(" | ||
| - | if (elem) { | ||
| - | elem.innerHTML = ""; | ||
| - | | ||
| - | // 碁盤を生成 | ||
| - | new WGo.BasicPlayer(elem, | ||
| - | sgf: " | ||
| - | enableWheel: | ||
| - | }); | ||
| - | } | ||
| - | } | ||
| - | })(); | ||
| - | </ | ||
| - | </ | ||
start.1788107130.txt.gz · 最終更新: by mokuhazushi53
