Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update static assets url #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gobang/css/gobang.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gobang/css/gobang.less
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ canvas,
background-color: #F0F0F0;
}
.startpnl {
background: url("http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/main.jpg") no-repeat;
background: url("/img/main.jpg") no-repeat;
}
.winer {
display: none; // opacity: .4;
Expand Down
22 changes: 11 additions & 11 deletions gobang/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ <h1>比分</h1>
</canvas>
<div class="pnl startpnl">
<div class="inputinfo">
<img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/logo.png" width="100%" height="140" />
<img src="/img/logo.png" width="100%" height="140" />
<div class="box">
<h3>选手</h3>
<label>玩家A:</label> <input type="text" id="plname1Input" value="玩家一" />
Expand All @@ -48,7 +48,7 @@ <h3>选手</h3>
</div>
<div class="box">
<h3>棋子类型</h3>
<label for="ct2">仿真棋子 <img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/playA.png" width="20" height="20"/><img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/playB.png" width="20" height="20"/></label> <input type="radio" checked="checked" name="chesstype" value="2" id="ct2" />
<label for="ct2">仿真棋子 <img src="/img/playA.png" width="20" height="20"/><img src="/img/playB.png" width="20" height="20"/></label> <input type="radio" checked="checked" name="chesstype" value="2" id="ct2" />
<label for="ct1">颜色棋子 <span style="background-color: red; width: 20px; height: 20px;"></span> <span style="background-color: blue;width: 20px; height: 20px;"></span> </label> <input type="radio" value="1" name="chesstype" id="ct1" />

</div>
Expand All @@ -57,12 +57,12 @@ <h3>棋盘背景</h3>

<label for="cbg1">默认</label>
<input type="radio" name="chessbg" checked="checked" value="default" id="cbg1" />
<label for="cbg2"><img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg1.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg1.jpg" id="cbg2" />
<label for="cbg2"><img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg2.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg2.jpg" id="cbg2" />
<label for="cbg3"><img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg3.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/bg3.jpg" id="cbg3" />
<label for="cbg2"><img src="/img/bg1.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="/img/bg1.jpg" id="cbg2" />
<label for="cbg2"><img src="/img/bg2.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="/img/bg2.jpg" id="cbg2" />
<label for="cbg3"><img src="/img/bg3.jpg" width="100" height="50"/></label>
<input type="radio" name="chessbg" value="/img/bg3.jpg" id="cbg3" />

<h3>线条颜色</h3>
<label for="cc1">默认(绿色)</label> <input type="radio" checked="checked" name="chesscolor" value="green" id="cc1" />
Expand All @@ -76,7 +76,7 @@ <h3>线条颜色</h3>
<input type="button" id="startgame" value="开始游戏" />
</div>
<div id="winer" class="pnl winer">
<img src="http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/winer.jpeg" width="600" height="600" />
<img src="/img/winer.jpeg" width="600" height="600" />
<h1 id="winerName">恭喜!xxx赢了</h1>
<input type="button" value="再来一把" tabindex="0" autofocus="autofocus" onclick="restartgui()" />
</div>
Expand Down Expand Up @@ -131,8 +131,8 @@ <h1 id="winerName">恭喜!xxx赢了</h1>
playAName: plname1Input.value,
playBName: plname2Input.value,
backColorORImg: bcorimgvalue,
playAImg: "http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/playA.png",
playBImg: "http://sandbox.runjs.cn/uploads/rs/62/nbqodq5i/playB.png",
playAImg: "/img/playA.png",
playBImg: "/img/playB.png",
playerBIsComputer:openComputer.checked
};
}
Expand Down