changeset 617:53132bb22dfc

Added and updated
author MURAKAMI Masaki <c112124@h.koeki-u.ac.jp>
date Sat, 02 Aug 2014 18:48:45 +0900
parents b6a3f3e69870
children 07543d2d92a0
files 2014OC/Bingo.css 2014OC/Bingo.rb 2014OC/account.html 2014OC/accountcheck.rb 2014OC/admin/.htaccess 2014OC/design.css 2014OC/png/bottom.png 2014OC/png/bottom.xcf 2014OC/png/kamo.png 2014OC/png/kamo.xcf 2014OC/png/kamo1.png 2014OC/png/kamo2.png 2014OC/png/kamo3.png 2014OC/png/kamo4.png 2014OC/png/kamo5.png 2014OC/png/kamo6.png 2014OC/png/kamo7.png 2014OC/png/kamo8.png 2014OC/png/kamo9.png 2014OC/png/top.png 2014OC/png/top.xcf 2014OC/png/top1.xcf 2014OC/rain.png
diffstat 23 files changed, 18 insertions(+), 17 deletions(-) [+]
line wrap: on
line diff
--- a/2014OC/Bingo.css	Fri Aug 01 17:45:05 2014 +0900
+++ b/2014OC/Bingo.css	Sat Aug 02 18:48:45 2014 +0900
@@ -11,10 +11,10 @@
 	}
 
 div.top{
-	background: #136cf9;
+	background: #214e4d;
 	background-image: url("png/top.png");
 	background-repeat: no-repeat;
-	border: thin solid #136cf9;
+	border: thin solid #214e4d;
 	width: 100%;
 	height: 180px;
 	margin-top:0 auto;
@@ -30,12 +30,12 @@
 	font-weight: 900;
 	height: 5%;
 	width: 95%;
-	border: thin solid #136cf9;
+	border: thin solid #214e4d;
 }
 
 div.center{
-	border: thin solid #1d38ff;
-	background: #1d38ff;
+	border: thin solid #214e4d;
+	background: #214e4d;
 	width: 100%;
 	height: 45%;
 	margin-left: auto;
@@ -51,11 +51,11 @@
 }
 
 div.bottom{
-	background: #45e2fe;
+	background: #214e4d;
 	background-image: url("png/bottom.png");
 	background-repeat: no-repeat;
 	background-position: center bottom;
-	border:thin solid #45e2fe;
+	border:thin solid #214e4d;
 	width: 100%;
 	height: 150px;
 	margin-left: auto;
--- a/2014OC/Bingo.rb	Fri Aug 01 17:45:05 2014 +0900
+++ b/2014OC/Bingo.rb	Sat Aug 02 18:48:45 2014 +0900
@@ -8,7 +8,7 @@
 require 'net/http'
 
 c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8")
-db = SQLite3::Database.new("sql/test.sq3")
+db = SQLite3::Database.new("sql/stamp.sq3")
 
 id = c.cookies["id"][0].to_i
 magic = c.cookies["magic"][0].to_i
@@ -89,9 +89,9 @@
 ### Making randam number ###
 
 def taiou(sidesize)
-  srand(123456789)
+  srand(987654321)
   stamp = Hash.new("n")
-  stamp_name = ["kamo", "ko", "eki", "bun", "ka", "dai", "gaku", "to", "hoku"]
+  stamp_name = ["kamo1", "kamo2", "kamo3", "kamo4", "kamo5", "kamo6", "kamo7", "kamo8", "kamo9"]
   (sidesize**2).times do |n|
     stamp[rand(10000000)] = stamp_name[n]
   end
@@ -340,7 +340,7 @@
 if rank > 0
   printf("<p style=\"background:red; color:white;\">%sおめでとうございます!☆ %d等 ☆が当選しました!!</p>", message, rank)
 else
-  printf("<p style=\"background:#136cf9;\">%s</p>", message)
+  printf("<p style=\"background:#214e4d; color:white;\">%s</p>", message)
 end
 
 ##
--- a/2014OC/account.html	Fri Aug 01 17:45:05 2014 +0900
+++ b/2014OC/account.html	Sat Aug 02 18:48:45 2014 +0900
@@ -2,12 +2,12 @@
 	"http://www.w3.org/TR/html4/strict.dtd">
 <html>
 <head>
-<title>ゆるスタ登録ページ</title>
+<title>ハムスタ登録ページ</title>
 <link rel="stylesheet" type="text/css" href="design.css">
 </head>
 
 <body>
-<h1>ゆるスタ登録ページ</h1>
+<h1>ハムスタ登録ページ</h1>
 <p>入力してね</p>
 <form method="POST" action="./accountcheck.rb">
 <p>名前:<input name="name" type="text">(ニックネーム)</p>
@@ -16,7 +16,7 @@
 	 <option value="G">女
 	 </select></p>
 <p>年代:<select name="age">
-	 <option>10代
+	 <option>10代以下
 	 <option>20代
 	 <option>30代
 	 <option>40代
--- a/2014OC/accountcheck.rb	Fri Aug 01 17:45:05 2014 +0900
+++ b/2014OC/accountcheck.rb	Sat Aug 02 18:48:45 2014 +0900
@@ -6,7 +6,7 @@
 require './magic.rb'
 
 c = CGI.new(:tag_maker => "html5", :accept_charest => "UTF-8")
-db = SQLite3::Database.new("sql/test.sq3")
+db = SQLite3::Database.new("sql/stamp.sq3")
 
 begin
   result = db.execute("select * from main;")
@@ -45,7 +45,7 @@
 db.execute(sql,name,sex,age,aria,job,'000010000','n,n,n,n,kamo,n,n,n,n',0,0,mg); #初期値
 end
 
-expires = "Mon, 28 Jul 2014 23:00:00 GMT"
+expires = "SUN, 3 Aug 2014 24:00:00 GMT"
 
 printf("Content-type: text/html; charset=UTF-8
 Set-Cookie:id=%s ;expires=%s
--- a/2014OC/admin/.htaccess	Fri Aug 01 17:45:05 2014 +0900
+++ b/2014OC/admin/.htaccess	Sat Aug 02 18:48:45 2014 +0900
@@ -2,7 +2,7 @@
 AddType	"text/html; charset=utf-8" .rb
 AddType	"text/html; charset=utf-8" .html
 Options +ExecCGI
-AuthUserFile /home/www/skip/minato2014/admin/.htpasswd
+AuthUserFile /home/www/skip/2014OC/admin/.htpasswd
 AuthGroupFile /dev/null
 AuthName "ǧڥ"
 AuthType Basic
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/2014OC/design.css	Sat Aug 02 18:48:45 2014 +0900
@@ -0,0 +1,1 @@
+body{background-color:  #E0FFFF;}
Binary file 2014OC/png/bottom.png has changed
Binary file 2014OC/png/bottom.xcf has changed
Binary file 2014OC/png/kamo.png has changed
Binary file 2014OC/png/kamo.xcf has changed
Binary file 2014OC/png/kamo1.png has changed
Binary file 2014OC/png/kamo2.png has changed
Binary file 2014OC/png/kamo3.png has changed
Binary file 2014OC/png/kamo4.png has changed
Binary file 2014OC/png/kamo5.png has changed
Binary file 2014OC/png/kamo6.png has changed
Binary file 2014OC/png/kamo7.png has changed
Binary file 2014OC/png/kamo8.png has changed
Binary file 2014OC/png/kamo9.png has changed
Binary file 2014OC/png/top.png has changed
Binary file 2014OC/png/top.xcf has changed
Binary file 2014OC/png/top1.xcf has changed
Binary file 2014OC/rain.png has changed

yatex.org