標題:
練習終、大家都是兩光占卜法師
[打印本頁]
作者:
游東祥
時間:
2014-7-19 10:43
標題:
練習終、大家都是兩光占卜法師
本帖最後由 游東祥 於 2014-7-19 12:08 編輯
大家的作品連結:
http://app.kitaspace.net/yoho/
http://app.kitaspace.net/fufu/
http://app.kitaspace.net/elmer/
原始未完成程式碼:
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1></h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon"></span>
<input class="form-control" />
<span class="input-group-addon"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon"></span>
<input class="form-control" />
<span class="input-group-addon"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon"></span>
<input class="form-control" />
<span class="input-group-addon"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button type="button" class="btn btn-primary btn-lg btn-block"></button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3" style="margin-top:50px;">
<span style="font-size:50pt" class="label label-success"></span>
<span style="font-size:50pt" class="label label-info"></span>
<span style="font-size:50pt" class="label label-danger"></span>
</div>
</div>
</div>
<script type="text/javascript">
</script>
</body>
</html>
複製代碼
作者:
陳威臣
時間:
2014-7-19 11:52
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1>占卜術x</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生年</span>
<input id="iyear" class="form-control" />
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生月</span>
<input id="imath" class="form-control" />
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生日</span>
<input id="day" class="form-control" />
<span class="input-group-addon">日</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id="btn" type="button" class="btn btn-primary btn-lg btn-block">開始</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 test-center" style="margin-top:50px;">
<span id="r0" style="font-size:50pt" class="label label-success">吉</span>
<span id="r1" style="font-size:50pt" class="label label-info">普</span>
<span id="r2" style="font-size:50pt" class="label label-danger">凶</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc)
function calc ()
{
var y=parseInt($("#iyear").val());
var m=parseInt($("#imath").val());
var d=parseInt($("#day").val());
var r=((m+d)*m)%3;
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
劉泳鱔
時間:
2014-7-19 12:01
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1>ㄞㄞ占卜術</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生年</span>
<input id="year" class="form-control" />
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生月</span>
<input id="month" class="form-control" />
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生日</span>
<input id="day" class="form-control" />
<span class="input-group-addon">日</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id="btn" type="button" class="btn btn-primary btn-lg btn-block">開始占卜</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 -text-center" style="margin-top:50px;">
<span id="r0" style="font-size:50pt" class="label label-success">吉</span>
<span id="r1" style="font-size:50pt" class="label label-info">普</span>
<span id="r2" style="font-size:50pt" class="label label-danger">凶</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc)
function calc()
{
var y=parseInt($("#year").val());
var m=parseInt($("#month").val());
var d=parseInt($("#day").val());
var r=(y*m*d)%3
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
陳品諨
時間:
2014-7-19 12:01
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id="btn" type="button" class="btn btn-primary btn-lg btn-block">開始占卜</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 test-center" style="margin-top:50px;">
<span id="r0" style="font-size:50pt" class="label label-success">吉</span>
<span id="r1" style="font-size:50pt" class="label label-info">普</span>
<span id="r2" style="font-size:50pt" class="label label-danger">凶</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc)
function calc () {
var y =parseInt($("#year").val());
var m =parseInt($("#mouth").val());
var d =parseInt($("#day").val());
var r=((d+y)*m)%3
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
陳品諨
時間:
2014-7-19 12:11
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1>我的占卜術</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生年</span>
<input id="year" class="form-control" />
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生月</span>
<input id="mouth" class="form-control" />
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生日</span>
<input id="day" class="form-control" />
<span class="input-group-addon">日</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id="btn" type="button" class="btn btn-primary btn-lg btn-block">開始占卜</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3 test-center" style="margin-top:50px;">
<span id="r0" style="font-size:50pt" class="label label-success">吉</span>
<span id="r1" style="font-size:50pt" class="label label-info">普</span>
<span id="r2" style="font-size:50pt" class="label label-danger">凶</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc)
function calc () {
var y =parseInt($("#year").val());
var m =parseInt($("#mouth").val());
var d =parseInt($("#day").val());
var r=((d+y)*m)%3
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
李允軒
時間:
2014-7-21 15:40
本帖最後由 李允軒 於 2014-7-23 07:08 編輯
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>占卜程式</title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1>占卜程式</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生年</span>
<input class="form-control" id ="year" />
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生月</span>
<input class="form-control" id ="month" />
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div class="input-group">
<span class="input-group-addon">出生日</span>
<input class="form-control" / id ="day">
<span class="input-group-addon">日</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id ="btn" type="button" class="btn btn-primary btn-lg btn-block">開始占卜</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3" style="margin-top:50px;">
<span id ="r0" style="font-size:50pt" class="label label-success">吉</span>
<span id ="r1" style="font-size:50pt" class="label label-info">普</span>
<span id ="r2" style="font-size:50pt" class="label label-danger">兇</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc)
function calc()
{
var y=parseInt($("#year").val());
var m=parseInt($("#month").val());
var d=parseInt($("#day").val());
var r=((y+m)*d)%3
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
張彥承
時間:
2014-7-21 15:52
本帖最後由 張彥承 於 2014-7-21 16:00 編輯
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Legend is a genious</title>
<!-- 引用 Bootstrap 素材與jQuery -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<h1>Legion's Legend</h1>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div id="year" class="input-group">
<span class="input-group-addon">出生年</span>
<input id="year" class="form-control" />
<span class="input-group-addon">年</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div id="month" class="input-group">
<span class="input-group-addon">出生月</span>
<input class="form-control" />
<span class="input-group-addon">月</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<div id="day" class="input-group">
<span class="input-group-addon">出生日</span>
<input class="form-control" />
<span class="input-group-addon">日</span>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3">
<button id="btn" type="button" class="btn btn-primary btn-lg btn-block">開始占卜
</button>
</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-6 col-sm-offset-3" style="margin-top:50px;">
<span style="font-size:50pt" class="label label-success">吉</span>
<span style="font-size:50pt" class="label label-info">普</span>
<span style="font-size:50pt" class="label label-danger">凶</span>
</div>
</div>
</div>
<script type="text/javascript">
$("#btn").click(calc);
function calc()
{
var y=parseInt($("#year").val());
var m=parseInt($("#month").val());
var d=parseInt($("#day").val());
var r=(y*m*d)%3
$("#r0").hide();
$("#r1").hide();
$("#r2").hide();
$("#r"+r).fadeIn();
}
</script>
</body>
</html>
複製代碼
作者:
tonyh
時間:
2014-7-21 15:52
允軒作品
http://app.kitaspace.net/jerry/
彥承作品
http://app.kitaspace.net/yan/
歡迎光臨 種子論壇 | 高雄市資訊培育協會學員討論區 (http://seed.istak.org.tw/)
Powered by Discuz! 7.2