Mercurial > hgrepos > hgweb.cgi > skipweb
diff opencampus2015/prof.rb @ 2596:11e291bdd90a
hoge
author | ARAKI Tsuyohito <c113007@e.koeki-u.ac.jp> |
---|---|
date | Thu, 22 Oct 2015 18:40:12 +0900 |
parents | b852990ac567 |
children | 5a7fdc570aa9 |
line wrap: on
line diff
--- a/opencampus2015/prof.rb Tue Oct 20 19:29:53 2015 +0900 +++ b/opencampus2015/prof.rb Thu Oct 22 18:40:12 2015 +0900 @@ -47,7 +47,7 @@ <link media="screen and (min-device-width:481px)" href="profeel.css" type="text/css" rel="stylesheet" /> <link rel="shortcut icon" href="./img/cabage.png"/> -<title>ほげほげ</title> +<title>Miyazac Quest</title> <style type="text/css"> <!-- --> @@ -96,7 +96,7 @@ ##################ptを獲得した際の反応。#################### #########前の人が書き込んだ時間と比べて60秒以内なら追加ポイント#### kpt = 0 -bom = c["bom"] ####<form ~~ name="bom">より + begin jikan2 = db.execute(jikan1, "j") @@ -114,22 +114,6 @@ db.execute(ins4, "j") end -if bom == "please skip here" - jikan2 = db.execute(jikan1, "j") - now1 = jikan2[0][1] - nowper = jikan2[0][2] - now2 = Time.now.to_i - db.execute(timeupd, now2, person, "j") - if person == nowper - elsif now1 == nil - elsif now2-now1 < 2 ####2秒以内なら~ - pt += 50 - kpt += 50 - end - pt += 1 - kpt += 1 - # db.execute(bomd, pt, person) -end qrAC = qrc ###生成したハッシュには、"乱数"=>"記号"が入っている getAC = ARGV[0].to_i ###URL?以降の文字(特定の乱数)を取得してgetACに代入 @@ -216,64 +200,16 @@ db.execute(queupd, q1, q2, q3, q4, q5, person) kkget = "" -if kpt > 0 - kkget = "#{kpt}ポイントゲット!!" -end - - ########################~ここまでpt処理~################### ####################################################### -if cal == "inu" - image = "./img/inu#{lv}.png" - alt = "inu#{lv}" - m1 = "ドッグフード" + m1 = "馬小屋" mimg1 = "./img/food.png" - m2 = "にく" + m2 = "客室" mimg2 = "./img/niku.png" -elsif cal == "sisip" - image = "./img/sisip#{lv}.png" - alt = "sisip#{lv}" - m1 = "ぱん" - mimg1 = "./img/pan.png" - m2 = "きゃべつ" - mimg2 = "./img/kyabetsu.png" -elsif cal == "kamon" - image = "./img/kamon#{lv}.png" - alt = "kamon#{lv}" - m1 = "かい" - mimg1 = "./img/kai.png" - m2 = "とびうお" - mimg2 = "./img/fish.png" -elsif cal == "boy" - image = "./img/boy#{lv}.png" - alt = "boy#{lv}" - m1 = "いか" - mimg1 = "./img/ship.png" - m2 = "つやひめ" - mimg2 = "./img/tsuya.png" -elsif cal == "girl" - image = "./img/girl#{lv}.png" - alt = "girl#{lv}" - m1 = "さくらんぼ" - mimg1 = "./img/room.png" - m2 = "つやひめ" - mimg2 = "./img/tsuya.png" -elsif cal == "snake" - image = "./img/snake#{lv}.png" - alt = "snake#{lv}" - m1 = "かえる" - mimg1 = "./img/exp.png" - m2 = "ねずみ" - mimg2 = "./img/exp.png" -else - image = "./img/snail.png" - m1 = "たまごのから" - mimg1 = "./img/tamago.png" - m2 = "きゃべつ" - mimg2 = "./img/cabage.png" -end +image = "./img/#{cal}#{lv}.png" +alt = "#{cal}.png" @@ -315,78 +251,7 @@ ######################## ###lv==5のとき画像を変える### comm = "" -if ARGV[0] == "commandbomd" -comm += '<form method="POST" action="prof.rb?commandbomd"> -<input type="text" name="bom" size="8"> -<input type="submit"> -</form>' -elsif lv == 5 -comm += '<form method="POST" action="prof.rb"> -<input type="text" name="bom" size="8"> -<input type="submit"> -</form>' -end -if bom == "inu1" -image = "./img/inu1.png" -elsif bom == "inu2" -image = "./img/inu2.png" -elsif bom == "inu3" -image = "./img/inu3.png" -elsif bom == "inu4" -image = "./img/inu4.png" -elsif bom == "inu5" -image = "./img/inu5.png" - -elsif bom == "sisip1" -image = "./img/sisip1.png" -elsif bom == "sisip2" -image = "./img/sisip2.png" -elsif bom == "sisip3" -image = "./img/sisip3.png" -elsif bom == "sisip4" -image = "./img/sisip4.png" -elsif bom == "sisip5" -image = "./img/sisip5.png" - -elsif bom == "kamon1" -image = "./img/kamon1.png" -elsif bom == "kamon2" -image = "./img/kamon2.png" -elsif bom == "kamon3" -image = "./img/kamon3.png" -elsif bom == "kamon4" -image = "./img/kamon4.png" -elsif bom == "kamon5" -image = "./img/kamon5.png" - -elsif bom == "boy1" -image = "./img/boy1.png" -elsif bom == "boy2" -image = "./img/boy2.png" -elsif bom == "boy3" -image = "./img/boy3.png" -elsif bom == "boy4" -image = "./img/boy4.png" -elsif bom == "boy5" -image = "./img/boy5.png" - -elsif bom == "girl1" -image = "./img/girl1.png" -elsif bom == "girl2" -image = "./img/girl2.png" -elsif bom == "girl3" -image = "./img/girl3.png" -elsif bom == "girl4" -image = "./img/girl4.png" -elsif bom == "girl5" -image = "./img/girl5.png" -end - -if bom == "" -else - image = "./img/#{bom}.png" -end kakunin = "" ######################### #########################