changeset 3470:e886afc5c654

プログラムを改良しました
author houtin <c115080@g.koeki-u.ac.jp>
date Fri, 28 Jul 2017 21:59:52 +0900
parents 65d114a8f44a
children 96129f1a1cb8
files event/oasis2017/quiz/maru_mini.jpg event/oasis2017/quiz/quiz.rb event/oasis2017/quiz/quizpg.css
diffstat 3 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
Binary file event/oasis2017/quiz/maru_mini.jpg has changed
--- a/event/oasis2017/quiz/quiz.rb	Fri Jul 28 21:10:57 2017 +0900
+++ b/event/oasis2017/quiz/quiz.rb	Fri Jul 28 21:59:52 2017 +0900
@@ -167,7 +167,7 @@
   db.execute("REPLACE INTO point VALUES(?, ?)",
              id, "quiz-" + quiz_mode + "-" + form_qn)	# ex. quiz-kantan-1
   printf(<<-EOF, movie, quiz_mode, 1+form_qn.to_i)
-        <video controls autoplay width="320" height="240">
+        <video controls autoplay width="300" height="225">
 	 <source src="%s">
 	</video>
 	<p><input type="hidden" name="mode" value="%s">
@@ -185,7 +185,7 @@
          <p>%d鋇 <a class="name">%d</a>罩hВ障</p></div>
 	EOF
     if n_question == n_right.to_i
-      puts("<p>∫!")
+      puts("<div class=\"clear\">∫!</div>")
     end
   end
 else
--- a/event/oasis2017/quiz/quizpg.css	Fri Jul 28 21:10:57 2017 +0900
+++ b/event/oasis2017/quiz/quizpg.css	Fri Jul 28 21:59:52 2017 +0900
@@ -13,6 +13,18 @@
 border: double 5px #4ec4d3
 }
 
+.clear {
+  color: #ff0042;
+  font-family: "Harucraft", sans-serif;
+  font-size: 35px;
+  line-height: 1.1;
+  padding: 10px 0;
+  text-align: center;
+  text-shadow: 0px 0px 0 rgb(235,235,235),1px 1px 0 rgb(228,228,228),2px 2px 0 rgb(222,222,222),3px 3px 0 rgb(215,215,215),4px 4px 0 rgb(209,209,209), 5px 5px 0 rgb(203,203,203),6px 6px 5px rgba(0,0,0,0.25),6px 6px 1px rgba(0,0,0,0.5);
+  width: 280px;
+}
+
+
 h1{
 font-size: 25px;
 color: 

yatex.org