chenjunkai 5 rokov pred
rodič
commit
24e8afe7e1
59 zmenil súbory, kde vykonal 2889 pridanie a 0 odobranie
  1. 37 0
      web/answer/.project
  2. 545 0
      web/answer/chapter.html
  3. BIN
      web/answer/images/0f.png
  4. BIN
      web/answer/images/100f.png
  5. BIN
      web/answer/images/10f.png
  6. BIN
      web/answer/images/20f.png
  7. BIN
      web/answer/images/30f.png
  8. BIN
      web/answer/images/40f.png
  9. BIN
      web/answer/images/50f.png
  10. BIN
      web/answer/images/60f.png
  11. BIN
      web/answer/images/70f.png
  12. BIN
      web/answer/images/80f.png
  13. BIN
      web/answer/images/90f.png
  14. BIN
      web/answer/images/back_ico.gif
  15. BIN
      web/answer/images/btn_bg.png
  16. BIN
      web/answer/images/but01.gif
  17. BIN
      web/answer/images/cover.jpg
  18. BIN
      web/answer/images/cover1.jpg
  19. BIN
      web/answer/images/dx01.jpg
  20. BIN
      web/answer/images/dx02.jpg
  21. BIN
      web/answer/images/dx03.jpg
  22. BIN
      web/answer/images/dx04.jpg
  23. BIN
      web/answer/images/dxt01.jpg
  24. BIN
      web/answer/images/dxt02.jpg
  25. BIN
      web/answer/images/dxt03.jpg
  26. BIN
      web/answer/images/home_icon.png
  27. BIN
      web/answer/images/index_bg.png
  28. BIN
      web/answer/images/login_title.png
  29. BIN
      web/answer/images/pd01.jpg
  30. BIN
      web/answer/images/pd02.jpg
  31. BIN
      web/answer/images/pd03.jpg
  32. BIN
      web/answer/images/right.png
  33. BIN
      web/answer/images/t_b.png
  34. BIN
      web/answer/images/t_w.png
  35. BIN
      web/answer/images/text01.png
  36. BIN
      web/answer/images/text02.png
  37. BIN
      web/answer/images/title_text.png
  38. BIN
      web/answer/images/tj_btn_bg.png
  39. BIN
      web/answer/images/wrong.png
  40. 78 0
      web/answer/index.html
  41. 1 0
      web/answer/js/jquery.min.js
  42. 15 0
      web/answer/js/status.js
  43. 156 0
      web/answer/lottery/css/demo.css
  44. 46 0
      web/answer/lottery/css/style.css
  45. BIN
      web/answer/lottery/images/3.png
  46. BIN
      web/answer/lottery/images/bj.jpg
  47. BIN
      web/answer/lottery/images/index_bg.png
  48. BIN
      web/answer/lottery/images/paoma1.gif
  49. BIN
      web/answer/lottery/images/pointer.png
  50. BIN
      web/answer/lottery/images/turntable.png
  51. BIN
      web/answer/lottery/images/turntable_1.png
  52. 595 0
      web/answer/lottery/index.html
  53. 302 0
      web/answer/lottery/js/awardRotate.js
  54. 86 0
      web/answer/lottery/js/jqhttpsdk.js
  55. 1 0
      web/answer/lottery/js/jquery.min.js
  56. 2 0
      web/answer/lottery/js/jquery_cookie_min.js
  57. 51 0
      web/answer/lottery/js/scroll.js
  58. 268 0
      web/answer/style/css.css
  59. 706 0
      web/answer/subject.html

+ 37 - 0
web/answer/.project

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>ansjer_answer</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>com.aptana.ide.core.unifiedBuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>com.aptana.projects.webnature</nature>
+	</natures>
+	<filteredResources>
+		<filter>
+			<id>0</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+		<filter>
+			<id>1569547464810</id>
+			<name></name>
+			<type>26</type>
+			<matcher>
+				<id>org.eclipse.ui.ide.multiFilter</id>
+				<arguments>1.0-name-matches-false-false-node_modules</arguments>
+			</matcher>
+		</filter>
+	</filteredResources>
+</projectDescription>

+ 545 - 0
web/answer/chapter.html

@@ -0,0 +1,545 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>jQuery微信手机端答题表单特效</title>
+<meta name="Keywords" content="" />
+<meta name="Description" content="" />
+<meta name="author" content="" />
+<meta name="renderer" content="webkit">
+<meta content='target-densitydpi=device-dpi, width=640' name='viewport'>
+<meta name="apple-mobile-web-app-capable" content="yes">
+<meta name="apple-mobile-web-app-status-bar-style" content="white">
+<meta name="format-detection" content="telephone=no">
+<link href="style/css.css" rel="stylesheet" type="text/css" />
+<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
+<style type="text/css">
+	.ys {
+		color: #d30101;
+	}
+</style>
+<script>
+	/*不同分辨率手机加载*/
+	var userScalable = "no";
+	var ins = "";
+	(function () {
+		if (window.devicePixelRatio === 1.5) {
+			userScalable = "yes";
+			ins = "initial-scale=0.5"
+		}
+		var text = "<meta content='" + ins + ", target-densitydpi=device-dpi, width=640,user-scalable=" + userScalable + "' name='viewport'>";
+		document.write(text);
+	})();
+</script>
+</head>
+<body>
+<div id="answer" class="w640">
+	<header>
+		<div class="hm_icon"><a href="index.html"><img src="images/home_icon.png" alt=""></a></div>
+		<div class="title">
+			<img src="images/title_text.png"  alt="">
+		</div>
+	</header>
+	<div id="q1">
+		<div class="content">
+			<p class="subject_t">1、十八大修改党章遵循的原则____。</p>
+			<p><span><input id="rd1_1" name="rd1" type="radio" value="false"></span><label for="rd1_1">A.坚持以马克思列宁主义、毛泽东思想、邓小平理论、“三个代表”重要思想和科学发展观为指导</label></p>
+			<p><span><input id="rd1_2" name="rd1" type="radio" value="false"></span><label for="rd1_2">B.坚持发扬党内民主,集中全党智慧</label></p>
+			<p><span><input id="rd1_3" name="rd1" type="radio" value="false"></span><label for="rd1_3">C.保持党章总体稳定,只修改那些必须改的,在党内已经形成共识的内容</label></p>
+			<p><span><input id="rd1_4" name="rd1" type="radio" value="true"></span><label for="rd1_4">D.以上都是</label></p>
+		</div>
+		<div id="msg1" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b1" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a1" style="display:none;">
+		<div class="content_jd">
+			<p>正确解答:十八大修改党章遵循的原则:</p>
+			<p>一是<font class="ys">坚持以马克思列宁主义、毛泽东思想、邓小平理论、“三个代表”重要思想和科学发展观为指导,把党的十八大报告确立的重大理论观点和重大战略思想写入党章。</font></p>
+			<p>二是<font class="ys">坚持发扬党内民主,集中全党智慧。</font></p>
+			<p>
+			   三是<font class="ys">保持党章总体稳定,只修改那些必须改的,在党内已经形成共识的内容。</font>
+			</p>
+			<span id="r1" class="right" style="display:none;"></span>
+			<span id="w1" class="wrong" style="display:none;"></span>
+		</div>
+		<div class="enter_btn"><a id="next1" href="#">下一题</a></div>
+	</div>
+
+	<div id="q2" style="display:none;">
+		<div class="content">
+			<p class="subject_t">2、十八大提出要建设学习型、服务型、____马克思主义执政党等新内容。</p>
+			<p><span><input id="rd2_1" name="rd2" type="radio" value="false"></span><label for="rd2_1">A.活力型的</label></p>
+			<p><span><input id="rd2_2" name="rd2" type="radio" value="false"></span><label for="rd2_2">B.和谐型的</label></p>
+			<p><span><input id="rd2_3" name="rd2" type="radio" value="false"></span><label for="rd2_3">C.小康型的</label></p>
+			<p><span><input id="rd2_4" name="rd2" type="radio" value="true"></span><label for="rd2_4">D.创新型的</label></p>
+		</div>
+		<div id="msg2" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b2" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a2" style="display:none;">
+		<div class="content_jd">
+			<p>正确解答:十八大报告提出,要建设学习型、服务型、<font class="ys">创新型的</font>马克思主义执政党,必须全面加强党的思想建设、组织建设、作风建设、制度建设和反腐倡廉建设。</p>
+			<span id="r2" class="right" style="display:none;"></span>
+			<span id="w2" class="wrong" style="display:none;"></span>
+		</div>
+		<div class="enter_btn"><a id="next2" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q3" style="display:none;">
+		<div class="content">
+			<p class="subject_t">3、____是党的根本大法?</p>
+			<p><span><input id="rd3_1" name="rd3" type="radio" value="false"></span><label for="rd3_1">A.宪法</label></p>
+			<p><span><input id="rd3_2" name="rd3" type="radio" value="true"></span><label for="rd3_2">B.党章</label></p>
+			<p><span><input id="rd3_3" name="rd3" type="radio" value="false"></span><label for="rd3_3">C.行政法</label></p>
+			<p><span><input id="rd3_4" name="rd3" type="radio" value="false"></span><label for="rd3_4">D.中国共产党纪律处分条例</label></p>
+		</div>
+		<div id="msg3" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b3" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a3" style="display:none;">
+		<div class="content_jd">
+			<span id="r3" style="display:none;" class="right"></span>
+			<span id="w3" style="display:none;" class="wrong"></span>
+			<p>正确解答:<font class="ys">中国共产党章程</font>是中国共产党的根本大法,在党内生活中具有至高无上的地位和最高权威。</p>
+		</div>
+		<div class="enter_btn"><a id="next3" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q4" style="display:none;">
+		<div class="content">
+			<p class="subject_t">4、本次增写了党的各级领导干部必须具备的基本条件的内容,强调党的各级领导干部要____。</p>
+			<p><span><input id="rd4_1" name="rd4" type="radio" value="true"></span><label for="rd4_1">A.坚持原则,讲党性、重品行、做表率</label></p>
+			<p><span><input id="rd4_2" name="rd4" type="radio" value="false"></span><label for="rd4_2">B.照镜子、正衣冠、洗洗澡、治治病</label></p>
+			<p><span><input id="rd4_3" name="rd4" type="radio" value="false"></span><label for="rd4_3">C.严以修身、严以律己、严以用权</label></p>
+			<p><span><input id="rd4_4" name="rd4" type="radio" value="false"></span><label for="rd4_4">D.以上都不是</label></p>
+		</div>
+		<div id="msg4" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b4" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a4" style="display:none;">
+		<div class="content_jd">
+			<p>正确解答:本次增写了党的各级领导干部必须具备的基本条件的内容,强调党的各级领导干部要<font class="ys">坚持原则,讲党性、重品行、做表率</font>。</p>
+			<span id="r4" style="display:none;" class="right"></span>
+			<span id="w4" style="display:none;" class="wrong"></span>
+		</div>
+		<div class="enter_btn"><a id="next4" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q5" style="display:none;">
+		<div class="content">
+			<p class="subject_t">5、党章修正案最总纲部分关于党的建设的总体要求做了适当修改。增写了加强党的____建设,整体推进党的思想建设、组织建设、作风建设、反腐倡建设、制度建设,全面提高党的建设科学化水平。</p>
+			<p><span><input id="rd5_1" name="rd5" type="radio" value="false"></span><label for="rd5_1">A.队伍</label></p>
+			<p><span><input id="rd5_2" name="rd5" type="radio" value="true"></span><label for="rd5_2">B.纯洁性</label></p>
+			<p><span><input id="rd5_3" name="rd5" type="radio" value="false"></span><label for="rd5_3">C.纪律性</label></p>
+			<p><span><input id="rd5_4" name="rd5" type="radio" value="false"></span><label for="rd5_4">D.纯洁度</label></p>
+		</div>
+		<div id="msg5" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b5" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a5" style="display:none;">
+		<div class="content_jd">
+			<span id="r5" style="display:none;" class="right"></span>
+			<span id="w5" style="display:none;" class="wrong"></span>
+			<p>正确解答:党章修正案最总纲部分关于党的建设的总体要求做了适当修改。增写了加强党的<font class="ys">纯洁性</font>建设,整体推进党的思想建设、组织建设、作风建设、反腐倡建设、制度建设,全面提高党的建设科学化水平。</p>
+		</div>
+		<div class="enter_btn"><a id="next5" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q6" style="display:none;">
+		<div class="content">
+			<p class="subject_t">6、十八大将____同经济建设、政治建设、文化建设、社会建设一道纳入中国特色社会主义事业总体布局。</p>
+			<p><span><input id="rd6_1" name="rd6" type="radio" value="false"></span><label for="rd6_1">A.党性建设</label></p>
+			<p><span><input id="rd6_2" name="rd6" type="radio" value="false"></span><label for="rd6_2">B.生态建设</label></p>
+			<p><span><input id="rd6_3" name="rd6" type="radio" value="true"></span><label for="rd6_3">C.生态文明建设</label></p>
+			<p><span><input id="rd6_4" name="rd6" type="radio" value="false"></span><label for="rd6_4">D.理论建设</label></p>
+		</div>
+		<div id="msg6" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b6" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a6" style="display:none;">
+		<div class="content_jd">
+			<span id="r6" style="display:none;" class="right"></span>
+			<span id="w6" style="display:none;" class="wrong"></span>
+			<p>正确解答:十八大将<font class="ys">生态文明建设</font>同经济建设、政治建设、文化建设、社会建设一道纳入中国特色社会主义事业总体布局。</p>
+		</div>
+		<div class="enter_btn"><a id="next6" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q7" style="display:none;">
+		<div class="content">
+			<p class="subject_t">7、第三十三条增写了干部选拔监督的内容,第一款强调选拔干部要坚持____原则,坚持五湖四海、任人唯贤。</p>
+			<p><span><input id="rd7_1" name="rd7" type="radio" value="false"></span><label for="rd7_1">A.政绩突出</label></p>
+			<p><span><input id="rd7_2" name="rd7" type="radio" value="false"></span><label for="rd7_2">B.政治性强</label></p>
+			<p><span><input id="rd7_3" name="rd7" type="radio" value="true"></span><label for="rd7_3">C.德才兼备、以德为先得</label></p>
+			<p><span><input id="rd7_4" name="rd7" type="radio" value="false"></span><label for="rd7_4">D.内部推荐</label></p>
+		</div>
+		<div id="msg7" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b7" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a7" style="display:none;">
+		<div class="content_jd">
+			<span id="r7" style="display:none;" class="right"></span>
+			<span id="w7" style="display:none;" class="wrong"></span>
+			<p>正确解答:第三十三条增写了干部选拔监督的内容,第一款强调选拔干部要坚持<font class="ys">德才兼备、以德为先得</font>原则,坚持五湖四海、任人唯贤。</p>
+		</div>
+		<div class="enter_btn"><a id="next7" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q8" style="display:none;">
+		<div class="content">
+			<p class="subject_t">8、____是这次党章修改的最大亮点和最突出的历史贡献。</p>
+			<p><span><input id="rd8_1" name="rd8" type="radio" value="true"></span><label for="rd8_1">A.对科学发展做出新的定位和阐述。把科学发展观写在我们党的旗帜上</label></p>
+			<p><span><input id="rd8_2" name="rd8" type="radio" value="false"></span><label for="rd8_2">B.对生态文明做出新的定位和阐述。把生态文明写在我们党的旗帜上</label></p>
+			<p><span><input id="rd8_3" name="rd8" type="radio" value="false"></span><label for="rd8_3">C.对党的建设做出新的定位和阐述。把党的建设写在我们党的旗帜上</label></p>
+			<p><span><input id="rd8_4" name="rd8" type="radio" value="false"></span><label for="rd8_4">D.对反腐倡廉做出新的定位和阐述。把反腐倡廉写在我们党的旗帜上</label></p>
+		</div>
+		<div id="msg8" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b8" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a8" style="display:none;">
+		<div class="content_jd">
+			<span id="r8" style="display:none;" class="right"></span>
+			<span id="w8" style="display:none;" class="wrong"></span>
+			<p>正确解答:<font class="ys">对科学发展做出新的定位和阐述。把科学发展观写在我们党的旗帜上</font>是这次党章修改的最大亮点和最突出的历史贡献。</p>
+		</div>
+		<div class="enter_btn"><a id="next8" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q9" style="display:none;">
+		<div class="content">
+			<p class="subject_t">9.为什么需要多次修改党章?</p>
+			<p><span><input id="rd9_1" type="radio" value="false" name="rd9" /></span><label for="rd9_1">A.党的理论的与时俱进和不断创新</label></p>
+			<p><span><input id="rd9_2" type="radio" value="false" name="rd9" /></span><label for="rd9_2">B.党和国家事业发展的新要求</label></p>
+			<p><span><input id="rd9_3" type="radio" value="false" name="rd9" /></span><label for="rd9_3">C.党的建设伟大工程不断有新的创造和新的经验</label></p>
+			<p><span><input id="rd9_4" type="radio" value="true" name="rd9" /></span><label for="rd9_4">D.以上都是</label></p>
+		</div>
+		<div id="msg9" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b9" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a9" style="display:none;">
+		<div class="content_jd">
+			<span id="r9" style="display:none;" class="right"></span>
+			<span id="w9" style="display:none;" class="wrong"></span>
+			<p>
+				正确解答:党章是党的根本大法,它集中体现党的理论和路线方针政策,体现党的重要主张,规定了党的重要制度和体制机制。因此,党章的基本内容要保持连续性和稳定性。同时,也要根据形势和任务的发展变化对党章进行必要修改。</p>
+			<p>
+			   所谓形势和任务的变化,主要是三个方面:一是<font class="ys">党的理论的与时俱进和不断创新</font>;二是<font class="ys">党和国家事业发展的新要求</font>;三是<font class="ys">党的建设伟大工程不断有新的创造和新的经验</font>。
+			</p>
+		</div>
+		<div class="enter_btn"><a id="next9" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q10" style="display:none;">
+		<div class="content">
+			<p class="subject_t">10、(多选)党章第16次修改增写了以下哪些内容?</p>
+			<p><span><input id="cb10_1" type="checkbox" value="true" name="cb10" /></span><label for="cb10_1">A.确立了“中国特色社会主义制度”内容</label></p>
+			<p><span><input id="cb10_2" type="checkbox" value="true" name="cb10" /></span><label for="cb10_2">B.增写了只有改革开放,才能发展中国、发展社会主义、发展马克思主义的内容</label></p>
+			<p><span><input id="cb10_3" type="checkbox" value="true" name="cb10" /></span><label for="cb10_3">C.增写了加强党的纯洁性建设</label></p>
+			<p><span><input id="cb10_4" type="checkbox" value="false" name="cb10" /></span><label for="cb10_4">D.增写了民主集中制是党的组织原则</label></p>
+		</div>
+		<div id="msg10" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b10" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a10" style="display:none;">
+		<div class="content_jd">
+			<span id="r10" style="display:none;" class="right"></span>
+			<span id="w10" style="display:none;" class="wrong"></span>
+			<p>
+				正确解答: 党章第16次修改增写了以下几点内容:
+			</p>
+				<p>一是<font class="ys">确立了“中国特色社会主义制度”内容,将中国特色社会主义道路、理论体系、制度作为一个整体在党章中进行完整表述;</font></p>
+				<p>二是<font class="ys">增写了只有改革开放,才能发展中国、发展社会主义、发展马克思主义的内容;</font></p>
+				<p>三是<font class="ys">增写了加强党的纯洁性建设。</font></p>                
+		</div>
+		<div class="enter_btn"><a id="next10" href="javascript:void(0);">查看结果</a></div>
+	</div>
+
+</div>
+<div id="score" class="w640" style="display:none;">
+	<header>
+		<div id="fs"></div>
+	</header>
+	<div class="hm_text02"><img src="images/text02.png" alt=""></div>
+	<div class="hm_btn">
+		<div class="btn_bg"><a href="chapter.html">中国共产党章程</a></div>
+		<div class="btn_bg"><a href="subject.html">中国共产党纪律处分条例</a></div>
+		<div class="btn_bg"  style="display:none;"><a href="#">中国共产党廉洁自律准则</a></div>
+	</div>
+</div>
+<script type="text/javascript">
+	$(function () {
+		a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = a10 = 0;
+		$("#b1").click(function () {
+			var rl1 = $('#q1 input:radio[name="rd1"]:checked').val();
+			if (rl1 == null) {
+				$("#msg1").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q1").fadeOut(100);', 1);
+				setTimeout('$("#a1").fadeIn(1000);', 100);
+				if (rl1 == "true") {
+					a1 = 1;
+					setTimeout('$("#r1").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w1").slideDown()', 500);
+				}
+			}
+		});
+		$("#next1").click(function () {
+			setTimeout('$("#a1").fadeOut(100);', 1);
+			setTimeout('$("#q2").fadeIn(1000);', 100);
+		});
+
+		$("#b2").click(function () {
+			var rl2 = $('#q2 input:radio[name="rd2"]:checked').val();
+			if (rl2 == null) {
+				$("#msg2").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q2").fadeOut(100);', 1);
+				setTimeout('$("#a2").fadeIn(1000);', 100);
+				if (rl2 == "true") {
+					a2 = 1;
+					setTimeout('$("#r2").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w2").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next2").click(function () {
+			setTimeout('$("#a2").fadeOut(100);', 1);
+			setTimeout('$("#q3").fadeIn(1000);', 100);
+		});
+
+		$("#b3").click(function () {
+			var rl3 = $('#q3 input:radio[name="rd3"]:checked').val();
+			if (rl3 == null) {
+				$("#msg3").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q3").fadeOut(100);', 1);
+				setTimeout('$("#a3").fadeIn(1000);', 100);
+				if (rl3 == "true") {
+					a3 = 1;
+					setTimeout('$("#r3").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w3").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next3").click(function () {
+			setTimeout('$("#a3").fadeOut(100);', 1);
+			setTimeout('$("#q4").fadeIn(1000);', 100);
+		});
+
+		$("#b4").click(function () {
+			var rl4 = $('#q4 input:radio[name="rd4"]:checked').val();
+			if (rl4 == null) {
+				$("#msg4").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q4").fadeOut(100);', 1);
+				setTimeout('$("#a4").fadeIn(1000);', 100);
+				if (rl4 == "true") {
+					a4 = 1;
+					setTimeout('$("#r4").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w4").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next4").click(function () {
+			setTimeout('$("#a4").fadeOut(100);', 1);
+			setTimeout('$("#q5").fadeIn(1000);', 100);
+		});
+
+		$("#b5").click(function () {
+			var rl5 = $('#q5 input:radio[name="rd5"]:checked').val();
+			if (rl5 == null) {
+				$("#msg5").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q5").fadeOut(100);', 1);
+				setTimeout('$("#a5").fadeIn(1000);', 100);
+				if (rl5 == "true") {
+					a5 = 1;
+					setTimeout('$("#r5").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w5").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next5").click(function () {
+			setTimeout('$("#a5").fadeOut(100);', 1);
+			setTimeout('$("#q6").fadeIn(1000);', 100);
+		});
+
+		$("#b6").click(function () {
+			var rl6 = $('#q6 input:radio[name="rd6"]:checked').val();
+			if (rl6 == null) {
+				$("#msg6").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q6").fadeOut(100);', 1);
+				setTimeout('$("#a6").fadeIn(1000);', 100);
+				if (rl6 == "true") {
+					a6 = 1;
+					setTimeout('$("#r6").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w6").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next6").click(function () {
+			setTimeout('$("#a6").fadeOut(100);', 1);
+			setTimeout('$("#q7").fadeIn(1000);', 100);
+		});
+
+
+		$("#b7").click(function () {
+			var rl7 = $('#q7 input:radio[name="rd7"]:checked').val();
+			if (rl7 == null) {
+				$("#msg7").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q7").fadeOut(100);', 1);
+				setTimeout('$("#a7").fadeIn(1000);', 100);
+				if (rl7 == "true") {
+					a7 = 1;
+					setTimeout('$("#r7").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w7").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next7").click(function () {
+			setTimeout('$("#a7").fadeOut(100);', 1);
+			setTimeout('$("#q8").fadeIn(1000);', 100);
+		});
+
+
+		$("#b8").click(function () {
+			var rl8 = $('#q8 input:radio[name="rd8"]:checked').val();
+			
+			if (rl8 == null) {
+				$("#msg8").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q8").fadeOut(100);', 1);
+				setTimeout('$("#a8").fadeIn(1000);', 100);
+				if (rl8 == "true") {
+					a8 = 1;
+					setTimeout('$("#r8").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w8").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next8").click(function () {
+			setTimeout('$("#a8").fadeOut(100);', 1);
+			setTimeout('$("#q9").fadeIn(1000);', 100);
+		});
+
+		$("#b9").click(function () {
+			var rl9 = $('#q9 input:radio[name="rd9"]:checked').val();
+			if (rl9 == null) {
+				$("#msg9").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q9").fadeOut(100);', 1);
+				setTimeout('$("#a9").fadeIn(1000);', 100);
+				if (rl9 == "true") {
+					a9 = 1;
+					setTimeout('$("#r9").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w9").slideDown()()', 500);
+				}
+			}
+		});
+		$("#next9").click(function () {
+			setTimeout('$("#a9").fadeOut(100);', 1);
+			setTimeout('$("#q10").fadeIn(1000);', 100);
+		});
+
+
+		$("#b10").click(function () {
+			var cbl10 = $('#q10 input:checkbox[name=cb10]:checked');
+			if (cbl10.length == 0) {
+				$("#msg10").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q10").fadeOut(100);', 1);
+				setTimeout('$("#a10").fadeIn(1000);', 100);
+				var checkList = new Array();
+				var rightList = new Array("cb10_1","cb10_2", "cb10_3");
+				var rightFlag = false;
+				if (cbl10.length == rightList.length) {
+					cbl10.each(function () {
+						checkList.push($(this).attr("id"));
+					});
+				}
+				if (checkList.sort().toString() == rightList.sort().toString()) {
+					rightFlag = true;
+				}
+				if (rightFlag) {
+					a10 = 1;
+					setTimeout('$("#r10").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w10").slideDown()', 500);
+				}
+			}
+		});
+		$("#next10").click(function () {
+			setTimeout('$("#answer").fadeOut(100);', 1);
+			setTimeout('$("#score").fadeIn(1000);', 100);
+
+			sc = a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10;
+			if (sc == 0) {
+				$('#fs').addClass("f0");
+			} else if (sc == 1) {
+				$('#fs').addClass("f10");
+			} else if (sc == 2) {
+				$('#fs').addClass("f20");
+			} else if (sc == 3) {
+				$('#fs').addClass("f30");
+			} else if (sc == 4) {
+				$('#fs').addClass("f40");
+			} else if (sc == 5) {
+				$('#fs').addClass("f50");
+			} else if (sc == 6) {
+				$('#fs').addClass("f60");
+			} else if (sc == 7) {
+				$('#fs').addClass("f70");
+			} else if (sc == 8) {
+				$('#fs').addClass("f80");
+			} else if (sc == 9) {
+				$('#fs').addClass("f90");
+			} else if (sc == 10) {
+				$('#fs').addClass("f100");
+			}
+		});
+	});
+</script>
+
+<!--<script type="text/javascript">
+    var ua = navigator.userAgent.toLowerCase();
+    var isWeixin = ua.indexOf('micromessenger') != -1;
+//  var isAndroid = ua.indexOf('android') != -1;
+//  var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
+    if (!isWeixin) {
+        document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="weua.css">';
+        document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
+    }
+</script>-->
+</body>
+</html>

BIN
web/answer/images/0f.png


BIN
web/answer/images/100f.png


BIN
web/answer/images/10f.png


BIN
web/answer/images/20f.png


BIN
web/answer/images/30f.png


BIN
web/answer/images/40f.png


BIN
web/answer/images/50f.png


BIN
web/answer/images/60f.png


BIN
web/answer/images/70f.png


BIN
web/answer/images/80f.png


BIN
web/answer/images/90f.png


BIN
web/answer/images/back_ico.gif


BIN
web/answer/images/btn_bg.png


BIN
web/answer/images/but01.gif


BIN
web/answer/images/cover.jpg


BIN
web/answer/images/cover1.jpg


BIN
web/answer/images/dx01.jpg


BIN
web/answer/images/dx02.jpg


BIN
web/answer/images/dx03.jpg


BIN
web/answer/images/dx04.jpg


BIN
web/answer/images/dxt01.jpg


BIN
web/answer/images/dxt02.jpg


BIN
web/answer/images/dxt03.jpg


BIN
web/answer/images/home_icon.png


BIN
web/answer/images/index_bg.png


BIN
web/answer/images/login_title.png


BIN
web/answer/images/pd01.jpg


BIN
web/answer/images/pd02.jpg


BIN
web/answer/images/pd03.jpg


BIN
web/answer/images/right.png


BIN
web/answer/images/t_b.png


BIN
web/answer/images/t_w.png


BIN
web/answer/images/text01.png


BIN
web/answer/images/text02.png


BIN
web/answer/images/title_text.png


BIN
web/answer/images/tj_btn_bg.png


BIN
web/answer/images/wrong.png


+ 78 - 0
web/answer/index.html

@@ -0,0 +1,78 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>安士佳庆国庆,送大礼问答抽奖</title>
+<meta content='target-densitydpi=device-dpi, width=640' name='viewport'>
+<meta name="apple-mobile-web-app-capable" content="yes">
+<meta name="apple-mobile-web-app-status-bar-style" content="white">
+<meta name="format-detection" content="telephone=no">   
+<link href="style/css.css" rel="stylesheet" type="text/css" />
+<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
+<script src="lottery/js/jquery_cookie_min.js"></script>   
+<style>
+
+</style>
+<script>
+	/*不同分辨率手机加载*/
+	var userScalable = "no";
+	var ins = "";
+	(function () {
+		if (window.devicePixelRatio === 1.5) {
+			userScalable = "yes";
+			ins = "initial-scale=0.5"
+		}
+		var text = "<meta content='" + ins + ", target-densitydpi=device-dpi, width=640,user-scalable=" + userScalable + "' name='viewport'>";
+		document.write(text);
+	})();
+</script>
+</head>
+<body id="body">
+<div class="w6401">  
+	<div style="height: 850px;">
+	</div>
+	<div class="hm_btn" style="font-size: 25px; color: white; display:none; text-align: center;">
+		<!--<div class="btn_bg"><a href="chapter.html">中国共产党章程</a></div>-->
+		<div class="btn_bg1" id="index_num"><a  href="subject.html">开始答题</a></div>
+		<!--<div class="btn_bg" style="display:none;"><a href="#">中国共产党廉洁自律准则</a></div>-->
+		<br>
+		<p style="margin-bottom: 8px;">答题超过70分,即可参与抽奖,
+		</p>
+		<p>每位用户均可有一次抽奖机会
+		</p>
+	</div>
+</div>
+<script type="text/javascript" src="js/status.js" ></script>
+<script type="text/javascript">
+	$(function () {
+		setTimeout('$(".hm_btn").fadeIn(1500);', 10);
+		if($.cookie("rmbUser") == "true") {
+			$.cookie("index_num", 0, {expires: 7}); //7天
+			let index_num_cookie = $.cookie('index_num');
+			console.log(index_num_cookie) 
+			if(index_num_cookie==0){
+	        	$.cookie("index_num", 1, {expires: 7}); //7天
+	        	let index_num_cookie = $.cookie('index_num');
+	        	console.log(index_num_cookie);
+			}else{
+				window.location.href="index.html";
+			}
+		}else{
+		    window.location.href="index.html";
+		}
+	});
+	
+	
+</script>
+<script type="text/javascript">
+    var ua = navigator.userAgent.toLowerCase();
+    var isWeixin = ua.indexOf('micromessenger') != -1;
+    var isAndroid = ua.indexOf('android') != -1;
+    var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
+    if (!isWeixin) {
+        document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="weua.css">';
+        document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
+    }
+</script>
+</body>
+</html>

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 0
web/answer/js/jquery.min.js


+ 15 - 0
web/answer/js/status.js

@@ -0,0 +1,15 @@
+
+$.cookie("rmbUser", "true", {expires: 7}); //存储一个带7天期限的cookie
+
+function dq(){
+	var danqian=new Date()/1000;
+	if((new Date("2019-10-1"))/1000<danqian && (new Date("2019-10-8"))/1000>danqian){
+	}else if((new Date("2019-10-1"))/1000>danqian){
+		alert("活动时间是10月1日到7日的");
+		//window.location.href="../index.html"
+	}else{
+		//window.location.href="../index.html"
+		alert("活动时间已经结束");
+	}
+}
+

+ 156 - 0
web/answer/lottery/css/demo.css

@@ -0,0 +1,156 @@
+html, body, div, span, applet, object, iframe,
+h1, h2, h3, h4, h5, h6, p, blockquote, pre,
+a, abbr, acronym, address, big, cite, code,
+del, dfn, em, img, ins, kbd, q, s, samp,
+small, strike, strong, sub, sup, tt, var,
+b, u, i, center,
+dl, dt, dd, ol, ul, li,
+fieldset, form, label, legend,
+table, caption, tbody, tfoot, thead, tr, th, td,
+article, aside, canvas, details, embed,
+figure, figcaption, footer, header, hgroup,
+menu, nav, output, ruby, section, summary,
+time, mark, audio, video {
+  margin: 0;
+  padding: 0;
+  border: 0;
+  font: inherit;
+  font-size: 100%;
+  vertical-align: baseline;
+}
+
+html {
+  line-height: 1;
+}
+
+
+ol, ul {
+  list-style: none;
+}
+
+table {
+  border-collapse: collapse;
+  border-spacing: 0;
+}
+
+caption, th, td {
+  text-align: left;
+  font-weight: normal;
+  vertical-align: middle;
+}
+
+q, blockquote {
+  quotes: none;
+}
+q:before, q:after, blockquote:before, blockquote:after {
+  content: "";
+  content: none;
+}
+
+a img {
+  border: none;
+}
+
+article, aside, details, figcaption, figure, footer, header, hgroup, main, menu, nav, section, summary {
+  display: block;
+}
+@media screen and (min-width:801px){
+html{
+	font-size:14.75px;
+}
+body{
+  width: 100%;
+  height: 947px;
+  background: url(../images/index_bg.png);
+  background-size:100% 100%; 
+}
+.turntable-bg {
+  width: 650px;
+  height: 600px;
+  margin: 0 auto;
+  position: relative;
+  top:200px;
+  background: url("../images/3.png");
+}
+.turntable-bg .mask {
+  width: 454px;
+  height: 451px;
+  position: absolute;
+  left: 116px;
+  top: 60px;
+}
+.turntable-bg .pointer {
+  width: 174px;
+  height: 228px;
+  position: absolute;
+  left: 50%;
+  top: 50%;
+  margin-left: -67px;
+  margin-top: -144px;
+  z-index: 8;
+}
+.turntable-bg .rotate {
+  width: 450px;
+  height: 450px;
+  position: absolute;
+  left: 116px;
+  top: 60px;
+}
+}
+@media screen and (max-width:800px){
+html{
+	font-size:14.75px;
+}	
+body{
+  background: url(../images/index_bg.png);
+}
+.turntable-bg {
+  width: 350px;
+  height: 325px;
+  margin: 0 auto;
+  position: relative;
+  top:20px;
+  background: url("../images/3.png");
+  background-size:100% 100%; 
+}
+.turntable-bg .mask {
+  width: 54px;
+  height: 51px;
+  position: absolute;
+  left: 116px;
+  top: 60px;
+  /*z-index:9;*/
+}
+.turntable-bg .pointer {
+  width: 74px;
+  height: 100px;
+  position: absolute;
+  /*border:1px solid red;*/
+  left: 180px;
+  top: 150px;
+  margin-left: -39px;
+  margin-top: -50px;
+  z-index: 8;
+}
+.turntable-bg .rotate {
+  width: 250px;
+  height: 250px;
+  position: absolute;
+  left: 60px;
+  top: 30px;
+}
+.jjc{
+		width: 500px;
+		height: 500px;
+		background: url(images/paoma1.gif);
+		background-size: 100%100%;
+		position: absolute;
+		top: -250px;
+		left: 500%;
+		font-size: 35px;
+		line-height: 700px;
+		text-align: center;
+		color: #fff;
+    display: none;
+	}
+}

+ 46 - 0
web/answer/lottery/css/style.css

@@ -0,0 +1,46 @@
+/* CSS Document */
+*{margin:0;padding:0;font-size:12px;}
+@media screen and (min-width:801px){
+input,button,select,textarea{outline:none;}
+ul,li,dl,ol{list-style:none;}
+a{color:#666; text-decoration:none;}
+
+.box{ width:100%; margin:0 auto; }
+.bcon{ width:220px; border:30px solid #00b7ee;position: absolute;top:300px;left:200px;border-radius: 20px;}
+.bcon h1{ border-bottom:1px solid #eee; padding:0 10px;background: #00b7ee;}
+.bcon h1 b{ font:bold 14px/40px '宋体'; padding:0 20px; margin-top:-1px; display:inline-block;color: #fff;font-size: 30px;}
+
+.list_lh{ height:400px; overflow:hidden;}
+.list_lh li{ padding:10px;background: #e5e5e5;border-bottom:1px solid #fff;  }
+.list_lh li p{ height:24px; line-height:24px;margin-left:15px; }
+.list_lh li p a{ float:left;}
+.list_lh li p em{ width:80px; font:normal 12px/24px Arial; color:#FF3300; float:right; display:inline-block;}
+.list_lh li p span{ color:#999; float:right;}
+.list_lh li p a.btn_lh{ background:#28BD19; height:17px; line-height:17px; color:#fff; padding:0 5px; margin-top:4px; display:inline-block; float:right;}
+.btn_lh:hover{ color:#fff; text-decoration:none;}
+
+.btm p{ font:normal 12px/24px 'Microsoft YaHei'; text-align:center;}
+
+}
+
+@media screen and (max-width:800px){
+input,button,select,textarea{outline:none;}
+ul,li,dl,ol{list-style:none;}
+a{color:#666; text-decoration:none;}
+
+.box{ width:100%; margin:0 auto; }
+.bcon{ width:220px;height: 300px; border:20px solid #00b7ee;position: absolute;top:400px;left:10%;border-radius: 20px;overflow: hidden;}
+.bcon h1{ border-bottom:1px solid #eee; padding:0 10px;background: #00b7ee;}
+.bcon h1 b{ font:bold 14px/40px '宋体'; padding:0 20px; margin-top:-1px; display:inline-block;color: #fff;font-size: 30px;}
+
+.list_lh{ height:400px; overflow:hidden;}
+.list_lh li{ padding:10px;background: #e5e5e5;border-bottom:1px solid #fff;  }
+.list_lh li p{ height:24px; line-height:24px;margin-left:15px; }
+.list_lh li p a{ float:left;}
+.list_lh li p em{ width:80px; font:normal 12px/24px Arial; color:#FF3300; float:right; display:inline-block;}
+.list_lh li p span{ color:#999; float:right;}
+.list_lh li p a.btn_lh{ background:#28BD19; height:17px; line-height:17px; color:#fff; padding:0 5px; margin-top:4px; display:inline-block; float:right;}
+.btn_lh:hover{ color:#fff; text-decoration:none;}
+
+.btm p{ font:normal 12px/24px 'Microsoft YaHei'; text-align:center;}
+}

BIN
web/answer/lottery/images/3.png


BIN
web/answer/lottery/images/bj.jpg


BIN
web/answer/lottery/images/index_bg.png


BIN
web/answer/lottery/images/paoma1.gif


BIN
web/answer/lottery/images/pointer.png


BIN
web/answer/lottery/images/turntable.png


BIN
web/answer/lottery/images/turntable_1.png


+ 595 - 0
web/answer/lottery/index.html

@@ -0,0 +1,595 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
+    <!-- viewport的<meta>标签,这个标签可以修改在大部分的移动设备上面的显示,为了确保适当的绘制和触屏缩放。-->
+    <meta name="viewport" content="width=device-width, initial-scale=1.0">
+    <title>安士佳庆国庆,送大礼问答抽奖</title>
+    <link rel="stylesheet" href="css/demo.css" type="text/css"/>
+    <link rel="stylesheet" type="text/css" href="css/style.css">
+
+    <script type="text/javascript" src="js/jquery.min.js"></script>
+    <script type="text/javascript" src="js/awardRotate.js"></script>
+    <script type="text/javascript" src="js/scroll.js"></script>
+    <script type="text/javascript" src="./js/jqhttpsdk.js"></script>
+    <script type="text/javascript" src="./js/jquery_cookie_min.js"></script>
+    <script type="text/javascript" src="../js/status.js"></script>
+    <style type="text/css">
+        .quan {
+            width: 100%;
+            height: 100%;
+            background: rgba(0, 0, 0, 0.5);
+            position: absolute;
+            top: 0px;
+            z-index: 99;
+            display: none;
+        }
+
+        .quan1 {
+            width: 300px;
+            height: 200px;
+            background: #fff;
+            margin: 0 auto;
+            margin-top: 300px;
+            border-radius: 10px;
+            border: 4px solid #666;
+        }
+
+        .qian2 {
+            float: left;
+            height: 50px;
+            width: 196px;
+            line-height: 50px;
+            text-align: center;
+            font-size: 18px;
+            margin-top: 50px;
+            background: #fff;
+            border: 2px solid #fff100;
+            margin-left: 50px;
+        }
+
+        .queding {
+            float: left;
+            width: 70px;
+            height: 24px;
+            background: #fff;
+            border: 2px solid #ccc;
+            border-radius: 5px;
+            margin-top: 50px;
+            margin-left: 115px;
+            text-align: center;
+            line-height: 24px;
+            cursor: pointer;
+        }
+
+        .dis {
+            color: #000;
+            font-size: 100px;
+            font-weight: bold;
+            position: absolute;
+            left: 50%;
+            margin-left: -90px;
+            top: 100px;
+            line-height: 30px;
+        }
+
+        .xianjin {
+            width: 280px;
+            height: 50px;
+            background: #fff;
+            position: absolute;
+            border-radius: 10px;
+            top: 248px;
+            left: 200px;
+            line-height: 50px;
+            text-align: center;
+        }
+
+        .jjc {
+            width: 500px;
+            height: 500px;
+            background: url(images/paoma1.gif);
+            background-size: 100% 100%;
+            position: absolute;
+            top: -250px;
+            left: 500%;
+            font-size: 35px;
+            line-height: 700px;
+            text-align: center;
+            color: #fff;
+        }
+    </style>
+</head>
+<body>
+
+<div style="display:none; text-align:center;margin:10px 0; font:normal 14px/24px 'MicroSoft YaHei';">
+    <p>适用浏览器:360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
+</div>
+
+<div style="height: 30px; line-height: 30px; background: #28BD19; display: none;  text-align: center; color: white;"
+     id="error">错误提示
+</div>
+<!--进来抽奖的界面-->
+<div style="display: none;" id="drawTab">
+    <div class="turntable-bg">
+        <div class="pointer"><img src="images/pointer.png" alt="pointer" style="width:100%;height:100%;"></div>
+        <div class="rotate"><img id="rotate" src="images/turntable.png" alt="turntable" style="width:100%;height:100%;">
+        </div>
+    </div>
+
+    <div style="display: none;" id="to_drawTab">
+        <div style='padding-top: 30px;text-align: center;color: white;'>用户名:<span id="username"></span>
+            <a onclick='DetailsTab()'>中奖记录</a>
+        </div>
+    </div>
+
+    <div id="loginFormID" style="display: block;text-align: center;     color: #90807b;">
+        <div style="margin-top: 40px;"><input type="text" id="phone" maxlength="11" placeholder="输入手机号码"
+                                              value="" style="height: 30px; width: 250px;"><span
+                id="get_code" style="position: absolute;right: 85px;line-height: 30px;">获取验证码</span></div>
+        <div style="margin-top: 10px;"><input type="text" id="code" maxlength="6" placeholder="验证码"
+                                              style="height: 30px; width: 250px;"></div>
+        <div style="margin-top: 10px; margin-bottom: 15px;" id="go_ok">
+            <div id="loginId"
+                 style="margin: 0 auto; color:white; line-height: 30px; background: #f39c4c; height: 30px; width: 120px; border-radius: 5px;">
+                绑定抽奖
+            </div>
+        </div>
+        <div style=" font-size: 15px; color: white;">
+            <p style="margin-bottom: 5px;">—————— 活动细则 ———————</p>
+            <div id="" style="text-align: left; margin-left: 30px;">
+                <p style="margin-bottom: 5px;">每个手机用户可有抽奖机会一次</p>
+                <p>中奖用户需填写联系信息(姓名、电话、收货地址),以方便邮寄给您。</p>
+            </div>
+        </div>
+    </div>
+</div>
+<!--中奖的界面-->
+<div style="display: none;" id="detailsTab">
+    <div style="color: white; font-size: 30px; margin-top: 30px; text-align: center; margin-bottom: 50px;">恭喜您! 您中奖了
+    </div>
+    <div style="text-align: center;">
+        <div style="margin-top: 10px;">
+            <input type="text" id="rec_name" placeholder="输入收货人姓名" style="height: 30px; width: 250px;">
+        </div>
+        <div style="margin-top: 10px;">
+            <input type="text" id="rec_phone" placeholder="输入收货人手机" style="height: 30px; width: 250px;">
+        </div>
+        <div style="margin-top: 10px;">
+            <input type="text" id="rec_addr" placeholder="输入收货人地址" style="height: 30px; width: 250px;">
+        </div>
+        <div style="margin-top: 20px; margin-bottom: 50px;" id="go_site">
+            <div style="margin: 0 auto; color:white; line-height: 30px; background: #f39c4c; height: 30px; width: 70px; border-radius: 5px;">
+                提交
+            </div>
+        </div>
+        <div style=" font-size: 15px; color: white;">
+            <p style="margin-bottom: 5px;">—————— 活动细则 ———————</p>
+            <div id="" style="text-align: left; margin-left: 30px;">
+                <p style="margin-bottom: 5px;">每个手机用户可有抽奖机会一次</p>
+                <p>中奖用户需填写联系信息(姓名、电话、收货地址),以方便邮寄给您。</p>
+            </div>
+        </div>
+    </div>
+</div>
+
+<script type="text/javascript">
+    $(document).ready(function () {
+        $('.list_lh li:even').addClass('lieven');
+    });
+
+</script>
+<script type="text/javascript">
+	dq();
+    setTimeout('$("#drawTab").fadeIn(1500);', 10);
+    let draw_status = 0; //中奖状态
+
+    function setCookie(key, val, seconds) {
+        var date = new Date();
+        date.setTime(date.getTime() + seconds * 1000);//只能这么写,10表示10秒钟
+        console.log(key);
+        console.log(val);
+        $.cookie(key, val, {expires: date});
+    }
+
+    function reset_login() {
+        $.cookie("access_token", "", {expires: -1});
+        $.cookie("refresh_token", "", {expires: -1});
+        window.location.reload()
+    }
+    function InitIndex() {
+        let cookie = $.cookie('access_token');
+        if (cookie) {
+            let post_data = {'token': cookie}
+            // 初始化目录
+
+            $.postJSON(
+                http_ip_prot + 'lottery/index', JSON.stringify(post_data),
+                function (data) {
+                    if (data['code'] == 0) {
+                        console.log('初始化成功')
+                        console.log(data['res'])
+                        draw_status = data['res']['status']; //中奖状态
+                        let phone_list = data['res']['phone_list']; //已经中奖的手机号码
+                        let user = data['res']['user']; // 当前用户名
+                        let addr = data['res']['addr']; // 当前收货地址
+                        if(user==''||!user){
+                            reset_login()
+                        }
+                        //$('#loginFormID').hide()
+                        $("#username").html(user);
+                        $("#loginFormID").hide();
+                        $('#to_drawTab').show();
+                        DetailsTab();
+                        let addrJson = JSON.parse(addr)
+                        console.log(addrJson)
+                        if (addrJson) {
+                            $("#rec_name").val(addrJson['rec_name'])
+                            $("#rec_phone").val(addrJson['rec_phone'])
+                            $("#rec_addr").val(addrJson['rec_addr'])
+                        }
+                    } else {
+                        reset_login()
+                        console.log(data['msg'])
+                    }
+                }
+            );
+        } else {
+            //没有token唤醒登录界面
+        }
+    }
+
+    function DetailsTab() {
+        if (draw_status == 0) {
+            alert('你还未抽奖');
+            return;
+        }
+        if (draw_status == 1) {
+            alert('恭喜你中奖 获得一台c611');
+            $('#drawTab').hide();
+            $('#detailsTab').show();
+            return
+        }
+        if (draw_status == 2) {
+            alert('恭喜你中奖 获得一台c612');
+            $('#drawTab').hide();
+            $('#detailsTab').show();
+            return;
+        }
+        if (draw_status == 3) {
+            alert('很遗憾,你没有中奖');
+            return;
+        }
+    }
+
+    var phone_countdown = 60;
+
+    function phone_settime() {
+        if (phone_countdown == 0) {
+            $("#get_code").html("获取验证码");
+            phone_countdown = 60;
+            return;
+        } else {
+            $("#get_code").html("重新发送(" + phone_countdown + ")");
+            phone_countdown--;
+        }
+        setTimeout(function () {
+            phone_settime()
+        }, 1000)
+    }
+
+    //获取验证码方法
+    function authCode() {
+        let phone = $('#phone').val();
+        if (phone == "") {
+            alert("手机不可以为空!");
+            $('#phone').focus();
+            return;
+        } else if (!/^1[0-9]{10}$/.test(phone)) {
+            alert("手机不正确!");
+            $('#phone').focus();
+            return;
+        }
+        let post_data = {'phone': phone}
+        // 初始化目录
+        $.postJSON(
+            http_ip_prot + 'lottery/authcode', JSON.stringify(post_data),
+            function (data) {
+                if (data['code'] == 0) {
+                    phone_settime();
+                } else {
+                    alert(data['msg'])
+                }
+            }
+        );
+    }
+
+    // 登录
+    function doAuthLogin() {
+        let phone = $('#phone').val();
+        let authcode = $('#code').val();
+
+        if (phone == "") {
+            alert("手机不可以为空!");
+            $('#phone').focus();
+            return;
+        } else if (!/^1[0-9]{10}$/.test(phone)) {
+            alert("手机不正确!");
+            $('#phone').focus();
+            return;
+        }
+        if (authcode == "") {
+            alert("验证码不可以为空!");
+            $('#code').focus();
+            return;
+        }
+
+        let post_data = {
+            'phone': phone,
+            'authcode': authcode
+        }
+        $.postJSON(
+            http_ip_prot + 'lottery/login', JSON.stringify(post_data),
+            function (data) {
+                if (data['code'] == 0) {
+                    //登录成功
+                    setCookie('access_token', data['res']['access_token'], data['res']['access_expire'])
+                    setCookie('refresh_token', data['res']['refresh_token'], data['res']['refresh_expire'])
+//                  InitIndex()
+                    $("#username").html(phone);
+                    $("#loginFormID").hide();
+                    $('#to_drawTab').show();
+                } else {
+                    alert(data['msg'])
+                }
+            }
+        );
+    }
+
+    //抽奖
+    function doDraw() {
+        let token = $.cookie('access_token')
+        let post_data = {
+            'token': token
+        }
+        $.postJSON(
+            http_ip_prot + 'lottery/draw', JSON.stringify(post_data),
+            function (data) {
+                if (data['code'] == 0) {
+                    //抽奖请求成功
+                    //中奖状态 1:c611,2:c612 ,3:不中奖
+                    let status = data['res']['status']
+                    if (status == 1) {
+                        console.log('中奖c611');
+                    } else if (status == 2) {
+                        console.log('中奖c612');
+                    } else if (status == 3) {
+                        console.log('很遗憾没有中奖');
+                    }
+                    draw_status = status
+                    doDrawRollAction(status);
+                } else if (data['code'] == 309) {
+                    alert('请绑定手机再来抽奖吧!');
+                } else {
+                    alert(data['msg']);
+                }
+            },
+            false,//异步
+        );
+    }
+
+    //设置收货地址
+    function setAddr() {
+        let token = $.cookie('access_token')
+        let rec_name = $('#rec_name').val()
+        let rec_phone = $('#rec_phone').val()
+        let rec_addr = $('#rec_addr').val()
+        if (rec_addr && rec_phone && rec_addr) {
+            let addr = JSON.stringify({
+                'rec_name': rec_name,
+                'rec_phone': rec_phone,
+                'rec_addr': rec_addr,
+            });
+            let post_data = {
+                'token': token,
+                'addr': addr
+            };
+            $.postJSON(
+                http_ip_prot + 'lottery/setAddr', JSON.stringify(post_data),
+                function (data) {
+                    if (data['code'] == 0) {
+                        //设置请求成功
+                        alert(data['msg'])
+                    } else {
+                        alert(data['msg'])
+                    }
+                }
+            );
+        }
+    }
+
+    //获取验证码
+    $('#get_code').click(function () {
+        if (phone_countdown == 60) {
+            authCode();
+        } else {
+            confirm("不要频繁点击获取验证码!");
+        }
+
+    });
+    //# 登录
+    $('#loginId').click(function () {
+        doAuthLogin()
+    });
+    //# 登录
+    $('#go_site').click(function () {
+        setAddr()
+    });
+
+
+    InitIndex()
+
+    var bRotate = false;
+
+    var rotateFn = function (awards, angles, txt) {
+        bRotate = !bRotate;
+        $('#rotate').stopRotate();
+        $('#rotate').rotate({
+            angle: 0,
+            animateTo: angles + 1800,
+            duration: 8000,
+            callback: function () {
+                //alert("¥" + txt);
+                alert(txt)
+                if (draw_status == 1 || draw_status == 2) {
+                    $('#drawTab').hide();
+                    $('#detailsTab').show();
+                }
+                bRotate = !bRotate;
+            }
+        })
+    };
+    // 0 2 5 不中奖
+    // 1 3 c612
+    // 4 6 c611
+    $('.pointer').click(function () {
+        //var a = [0, 1, 2, 3, 4, 5, 6];
+        doDraw()
+    });
+
+    if ($.cookie("rmbUser") == "true") {
+        let index_num_cookie = $.cookie('index_num');
+        console.log(index_num_cookie)
+        if (index_num_cookie == 2) {
+            $.cookie("index_num", 3, {expires: 7}); //7天
+            let index_num_cookie = $.cookie('index_num');
+            console.log(index_num_cookie)
+        } else if (index_num_cookie == 1) {
+            window.location.href = "../subject.html";
+        } else if (index_num_cookie == 3) {
+//			window.location.href="index.html";
+        } else {
+            window.location.href = "../index.html";
+        }
+    }
+
+    function doDrawRollAction(status) {
+        //抽奖值
+        //var item = 0
+        let rotate_data = {
+            '1': [4, 6],
+            '2': [1, 3],
+            '3': [0, 2, 5],
+        };
+
+        let rotate = rotate_data[status]
+        let item = rotate[Math.floor((Math.random() * rotate.length))];
+
+        var a = [
+            '很遗憾没中奖',
+            '恭喜中奖c612',
+            '很遗憾没中奖',
+            '恭喜中奖c612',
+            '恭喜中奖c611',
+            '很遗憾没中奖',
+            '恭喜中奖c611',
+        ]
+        //if (bRotate) return;
+        switch (item) {
+            case 0:
+                //var angle = [26, 88, 137, 185, 235, 287, 337];
+                rotateFn(0, 332, a[0]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[0];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+
+                break;
+            case 1:
+                //var angle = [88, 137, 185, 235, 287];
+
+                rotateFn(1, 24, a[1]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[1];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+                break;
+            case 2:
+                //var angle = [137, 185, 235, 287];
+                rotateFn(2, 77, a[2]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[2];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+
+                $(".qian2").html(cc);
+                break;
+            case 3:
+                //var angle = [137, 185, 235, 287];
+                rotateFn(3, 129, a[3]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[3];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+                break;
+            case 4:
+                //var angle = [185, 235, 287];
+                rotateFn(4, 180, a[4]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[4];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+                break;
+            case 5:
+
+                //var angle = [185, 235, 287];
+                rotateFn(5, 231, a[5]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[5];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+                break;
+            case 6:
+                //var angle = [235, 287];
+                rotateFn(6, 280, a[6]);
+                var ss = Number($("#xianjin").val());
+                var cc = ss + a[6];
+                $("#xianjin").val(cc);
+                setTimeout(function () {
+                    $(".xianjin").html(cc);
+                }, 8000);
+                $(".qian2").html(cc);
+                break;
+        }
+    }
+
+</script>
+<script type="text/javascript">
+    var ua = navigator.userAgent.toLowerCase();
+    var isWeixin = ua.indexOf('micromessenger') != -1;
+    var isAndroid = ua.indexOf('android') != -1;
+    var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
+    if (!isWeixin) {
+        document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="weua.css">';
+        document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
+    }
+</script>
+</body>
+</html>

+ 302 - 0
web/answer/lottery/js/awardRotate.js

@@ -0,0 +1,302 @@
+(function($) {
+var supportedCSS,styles=document.getElementsByTagName("head")[0].style,toCheck="transformProperty WebkitTransform OTransform msTransform MozTransform".split(" ");
+for (var a=0;a<toCheck.length;a++) if (styles[toCheck[a]] !== undefined) supportedCSS = toCheck[a];
+// Bad eval to preven google closure to remove it from code o_O
+// After compresion replace it back to var IE = 'v' == '\v'
+var IE = eval('"v"=="\v"');
+
+jQuery.fn.extend({
+    rotate:function(parameters)
+    {
+        if (this.length===0||typeof parameters=="undefined") return;
+            if (typeof parameters=="number") parameters={angle:parameters};
+        var returned=[];
+        for (var i=0,i0=this.length;i<i0;i++)
+            {
+                var element=this.get(i);	
+                if (!element.Wilq32 || !element.Wilq32.PhotoEffect) {
+
+                    var paramClone = $.extend(true, {}, parameters); 
+                    var newRotObject = new Wilq32.PhotoEffect(element,paramClone)._rootObj;
+
+                    returned.push($(newRotObject));
+                }
+                else {
+                    element.Wilq32.PhotoEffect._handleRotation(parameters);
+                }
+            }
+            return returned;
+    },
+    getRotateAngle: function(){
+        var ret = [];
+        for (var i=0,i0=this.length;i<i0;i++)
+            {
+                var element=this.get(i);	
+                if (element.Wilq32 && element.Wilq32.PhotoEffect) {
+                    ret[i] = element.Wilq32.PhotoEffect._angle;
+                }
+            }
+            return ret;
+    },
+    stopRotate: function(){
+        for (var i=0,i0=this.length;i<i0;i++)
+            {
+                var element=this.get(i);	
+                if (element.Wilq32 && element.Wilq32.PhotoEffect) {
+                    clearTimeout(element.Wilq32.PhotoEffect._timer);
+                }
+            }
+    }
+});
+
+// Library agnostic interface
+
+Wilq32=window.Wilq32||{};
+Wilq32.PhotoEffect=(function(){
+
+	if (supportedCSS) {
+		return function(img,parameters){
+			img.Wilq32 = {
+				PhotoEffect: this
+			};
+            
+            this._img = this._rootObj = this._eventObj = img;
+            this._handleRotation(parameters);
+		}
+	} else {
+		return function(img,parameters) {
+			// Make sure that class and id are also copied - just in case you would like to refeer to an newly created object
+            this._img = img;
+
+			this._rootObj=document.createElement('span');
+			this._rootObj.style.display="inline-block";
+			this._rootObj.Wilq32 = 
+				{
+					PhotoEffect: this
+				};
+			img.parentNode.insertBefore(this._rootObj,img);
+			
+			if (img.complete) {
+				this._Loader(parameters);
+			} else {
+				var self=this;
+				// TODO: Remove jQuery dependency
+				jQuery(this._img).bind("load", function()
+				{
+					self._Loader(parameters);
+				});
+			}
+		}
+	}
+})();
+
+Wilq32.PhotoEffect.prototype={
+    _setupParameters : function (parameters){
+		this._parameters = this._parameters || {};
+        if (typeof this._angle !== "number") this._angle = 0 ;
+        if (typeof parameters.angle==="number") this._angle = parameters.angle;
+        this._parameters.animateTo = (typeof parameters.animateTo==="number") ? (parameters.animateTo) : (this._angle); 
+
+        this._parameters.step = parameters.step || this._parameters.step || null;
+		this._parameters.easing = parameters.easing || this._parameters.easing || function (x, t, b, c, d) { return -c * ((t=t/d-1)*t*t*t - 1) + b; }
+		this._parameters.duration = parameters.duration || this._parameters.duration || 1000;
+        this._parameters.callback = parameters.callback || this._parameters.callback || function(){};
+        if (parameters.bind && parameters.bind != this._parameters.bind) this._BindEvents(parameters.bind); 
+	},
+	_handleRotation : function(parameters){
+          this._setupParameters(parameters);
+          if (this._angle==this._parameters.animateTo) {
+              this._rotate(this._angle);
+          }
+          else { 
+              this._animateStart();          
+          }
+	},
+
+	_BindEvents:function(events){
+		if (events && this._eventObj) 
+		{
+            // Unbinding previous Events
+            if (this._parameters.bind){
+                var oldEvents = this._parameters.bind;
+                for (var a in oldEvents) if (oldEvents.hasOwnProperty(a)) 
+                        // TODO: Remove jQuery dependency
+                        jQuery(this._eventObj).unbind(a,oldEvents[a]);
+            }
+
+            this._parameters.bind = events;
+			for (var a in events) if (events.hasOwnProperty(a)) 
+				// TODO: Remove jQuery dependency
+					jQuery(this._eventObj).bind(a,events[a]);
+		}
+	},
+
+	_Loader:(function()
+	{
+		if (IE)
+		return function(parameters)
+		{
+			var width=this._img.width;
+			var height=this._img.height;
+			this._img.parentNode.removeChild(this._img);
+							
+			this._vimage = this.createVMLNode('image');
+			this._vimage.src=this._img.src;
+			this._vimage.style.height=height+"px";
+			this._vimage.style.width=width+"px";
+			this._vimage.style.position="absolute"; // FIXES IE PROBLEM - its only rendered if its on absolute position!
+			this._vimage.style.top = "0px";
+			this._vimage.style.left = "0px";
+
+			/* Group minifying a small 1px precision problem when rotating object */
+			this._container =  this.createVMLNode('group');
+			this._container.style.width=width;
+			this._container.style.height=height;
+			this._container.style.position="absolute";
+			this._container.setAttribute('coordsize',width-1+','+(height-1)); // This -1, -1 trying to fix ugly problem with small displacement on IE
+			this._container.appendChild(this._vimage);
+			
+			this._rootObj.appendChild(this._container);
+			this._rootObj.style.position="relative"; // FIXES IE PROBLEM
+			this._rootObj.style.width=width+"px";
+			this._rootObj.style.height=height+"px";
+			this._rootObj.setAttribute('id',this._img.getAttribute('id'));
+			this._rootObj.className=this._img.className;			
+		    this._eventObj = this._rootObj;	
+		    this._handleRotation(parameters);	
+		}
+		else
+		return function (parameters)
+		{
+			this._rootObj.setAttribute('id',this._img.getAttribute('id'));
+			this._rootObj.className=this._img.className;
+			
+			this._width=this._img.width;
+			this._height=this._img.height;
+			this._widthHalf=this._width/2; // used for optimisation
+			this._heightHalf=this._height/2;// used for optimisation
+			
+			var _widthMax=Math.sqrt((this._height)*(this._height) + (this._width) * (this._width));
+
+			this._widthAdd = _widthMax - this._width;
+			this._heightAdd = _widthMax - this._height;	// widthMax because maxWidth=maxHeight
+			this._widthAddHalf=this._widthAdd/2; // used for optimisation
+			this._heightAddHalf=this._heightAdd/2;// used for optimisation
+			
+			this._img.parentNode.removeChild(this._img);	
+			
+			this._aspectW = ((parseInt(this._img.style.width,10)) || this._width)/this._img.width;
+			this._aspectH = ((parseInt(this._img.style.height,10)) || this._height)/this._img.height;
+			
+			this._canvas=document.createElement('canvas');
+			this._canvas.setAttribute('width',this._width);
+			this._canvas.style.position="relative";
+			this._canvas.style.left = -this._widthAddHalf + "px";
+			this._canvas.style.top = -this._heightAddHalf + "px";
+			this._canvas.Wilq32 = this._rootObj.Wilq32;
+			
+			this._rootObj.appendChild(this._canvas);
+			this._rootObj.style.width=this._width+"px";
+			this._rootObj.style.height=this._height+"px";
+            this._eventObj = this._canvas;
+			
+			this._cnv=this._canvas.getContext('2d');
+            this._handleRotation(parameters);
+		}
+	})(),
+
+	_animateStart:function()
+	{	
+		if (this._timer) {
+			clearTimeout(this._timer);
+		}
+		this._animateStartTime = +new Date;
+		this._animateStartAngle = this._angle;
+		this._animate();
+	},
+    _animate:function()
+    {
+         var actualTime = +new Date;
+         var checkEnd = actualTime - this._animateStartTime > this._parameters.duration;
+
+         // TODO: Bug for animatedGif for static rotation ? (to test)
+         if (checkEnd && !this._parameters.animatedGif) 
+         {
+             clearTimeout(this._timer);
+         }
+         else 
+         {
+             if (this._canvas||this._vimage||this._img) {
+                 var angle = this._parameters.easing(0, actualTime - this._animateStartTime, this._animateStartAngle, this._parameters.animateTo - this._animateStartAngle, this._parameters.duration);
+                 this._rotate((~~(angle*10))/10);
+             }
+             if (this._parameters.step) {
+                this._parameters.step(this._angle);
+             }
+             var self = this;
+             this._timer = setTimeout(function()
+                     {
+                     self._animate.call(self);
+                     }, 10);
+         }
+
+         // To fix Bug that prevents using recursive function in callback I moved this function to back
+         if (this._parameters.callback && checkEnd){
+             this._angle = this._parameters.animateTo;
+             this._rotate(this._angle);
+             this._parameters.callback.call(this._rootObj);
+         }
+     },
+
+	_rotate : (function()
+	{
+		var rad = Math.PI/180;
+		if (IE)
+		return function(angle)
+		{
+            this._angle = angle;
+			this._container.style.rotation=(angle%360)+"deg";
+		}
+		else if (supportedCSS)
+		return function(angle){
+            this._angle = angle;
+			this._img.style[supportedCSS]="rotate("+(angle%360)+"deg)";
+		}
+		else 
+		return function(angle)
+		{
+            this._angle = angle;
+			angle=(angle%360)* rad;
+			// clear canvas	
+			this._canvas.width = this._width+this._widthAdd;
+			this._canvas.height = this._height+this._heightAdd;
+						
+			// REMEMBER: all drawings are read from backwards.. so first function is translate, then rotate, then translate, translate..
+			this._cnv.translate(this._widthAddHalf,this._heightAddHalf);	// at least center image on screen
+			this._cnv.translate(this._widthHalf,this._heightHalf);			// we move image back to its orginal 
+			this._cnv.rotate(angle);										// rotate image
+			this._cnv.translate(-this._widthHalf,-this._heightHalf);		// move image to its center, so we can rotate around its center
+			this._cnv.scale(this._aspectW,this._aspectH); // SCALE - if needed ;)
+			this._cnv.drawImage(this._img, 0, 0);							// First - we draw image
+		}
+
+	})()
+}
+
+if (IE)
+{
+Wilq32.PhotoEffect.prototype.createVMLNode=(function(){
+document.createStyleSheet().addRule(".rvml", "behavior:url(#default#VML)");
+		try {
+			!document.namespaces.rvml && document.namespaces.add("rvml", "urn:schemas-microsoft-com:vml");
+			return function (tagName) {
+				return document.createElement('<rvml:' + tagName + ' class="rvml">');
+			};
+		} catch (e) {
+			return function (tagName) {
+				return document.createElement('<' + tagName + ' xmlns="urn:schemas-microsoft.com:vml" class="rvml">');
+			};
+		}		
+})();
+}
+})(jQuery);

+ 86 - 0
web/answer/lottery/js/jqhttpsdk.js

@@ -0,0 +1,86 @@
+/**
+ * 获取数据ajax-get请求
+ * @author chanjunkai
+ */
+// var http_ip_prot = 'http://192.168.136.40:4696/'
+let domain = document.domain;
+
+//let http_ip_prot = 'http://192.168.136.40:7724/';
+//生产环境
+let http_ip_prot = 'http://www.zositech.xyz:7724/';
+
+$.GetJSON = function (url, data, callback) {
+    $.ajax({
+        url: url,
+        type: "get",
+        contentType: "application/json",
+        dataType: "json",
+        timeout: 10000,
+        data: data,
+        success: function (data) {
+            callback(data);
+        }
+    });
+};
+
+/**
+ * 提交json数据的post请求
+ * @author laixm
+ */
+$.postJSON = function (url, data, callback) {
+    $.ajax({
+        url: url,
+        type: "post",
+        contentType: "application/json",
+        dataType: "json",
+        data: data,
+        timeout: 60000,
+        success: function (msg) {
+            callback(msg);
+        },
+        error: function (xhr, textstatus, thrown) {
+			alert(xhr)
+			console.log(xhr)
+        }
+    });
+};
+
+/**
+ * 修改数据的ajax-put请求
+ * @author laixm
+ */
+$.putJSON = function (url, data, callback) {
+    $.ajax({
+        url: url,
+        type: "put",
+        contentType: "application/json",
+        dataType: "json",
+        data: data,
+        timeout: 20000,
+        success: function (msg) {
+            callback(msg);
+        },
+        error: function (xhr, textstatus, thrown) {
+
+        }
+    });
+};
+/**
+ * 删除数据的ajax-delete请求
+ * @author laixm
+ */
+$.deleteJSON = function (url, data, callback) {
+    $.ajax({
+        url: url,
+        type: "delete",
+        contentType: "application/json",
+        dataType: "json",
+        data: data,
+        success: function (msg) {
+            callback(msg);
+        },
+        error: function (xhr, textstatus, thrown) {
+
+        }
+    });
+};

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 1 - 0
web/answer/lottery/js/jquery.min.js


+ 2 - 0
web/answer/lottery/js/jquery_cookie_min.js

@@ -0,0 +1,2 @@
+/*! jquery.cookie v1.4.1 | MIT */
+!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?a(require("jquery")):a(jQuery)}(function(a){function b(a){return h.raw?a:encodeURIComponent(a)}function c(a){return h.raw?a:decodeURIComponent(a)}function d(a){return b(h.json?JSON.stringify(a):String(a))}function e(a){0===a.indexOf('"')&&(a=a.slice(1,-1).replace(/\\"/g,'"').replace(/\\\\/g,"\\"));try{return a=decodeURIComponent(a.replace(g," ")),h.json?JSON.parse(a):a}catch(b){}}function f(b,c){var d=h.raw?b:e(b);return a.isFunction(c)?c(d):d}var g=/\+/g,h=a.cookie=function(e,g,i){if(void 0!==g&&!a.isFunction(g)){if(i=a.extend({},h.defaults,i),"number"==typeof i.expires){var j=i.expires,k=i.expires=new Date;k.setTime(+k+864e5*j)}return document.cookie=[b(e),"=",d(g),i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}for(var l=e?void 0:{},m=document.cookie?document.cookie.split("; "):[],n=0,o=m.length;o>n;n++){var p=m[n].split("="),q=c(p.shift()),r=p.join("=");if(e&&e===q){l=f(r,g);break}e||void 0===(r=f(r))||(l[q]=r)}return l};h.defaults={},a.removeCookie=function(b,c){return void 0===a.cookie(b)?!1:(a.cookie(b,"",a.extend({},c,{expires:-1})),!a.cookie(b))}});

+ 51 - 0
web/answer/lottery/js/scroll.js

@@ -0,0 +1,51 @@
+// JavaScript Document
+(function($){
+	$.fn.myScroll = function(options){
+	//默认配置
+	var defaults = {
+		speed:40,  //滚动速度,值越大速度越慢
+		rowHeight:24 //每行的高度
+	};
+	
+	var opts = $.extend({}, defaults, options),intId = [];
+	
+	function marquee(obj, step){
+	
+		obj.find("ul").animate({
+			marginTop: '-=1'
+		},0,function(){
+				var s = Math.abs(parseInt($(this).css("margin-top")));
+				if(s >= step){
+					$(this).find("li").slice(0, 1).appendTo($(this));
+					$(this).css("margin-top", 0);
+				}
+			});
+		}
+		
+		this.each(function(i){
+			var sh = opts["rowHeight"],speed = opts["speed"],_this = $(this);
+			intId[i] = setInterval(function(){
+				if(_this.find("ul").height()<=_this.height()){
+					clearInterval(intId[i]);
+				}else{
+					marquee(_this, sh);
+				}
+			}, speed);
+
+			_this.hover(function(){
+				clearInterval(intId[i]);
+			},function(){
+				intId[i] = setInterval(function(){
+					if(_this.find("ul").height()<=_this.height()){
+						clearInterval(intId[i]);
+					}else{
+						marquee(_this, sh);
+					}
+				}, speed);
+			});
+		
+		});
+
+	}
+
+})(jQuery);

+ 268 - 0
web/answer/style/css.css

@@ -0,0 +1,268 @@
+@charset "utf-8";
+/*globe*/
+/***************** reset *****************/
+body, ul, ol, h1, h2, h3, h4, h5, h6, form, ul, li, p, input, select, legend, textarea, dl, dd, dt, fieldset, table, th, td {
+	margin:0;
+	padding:0;
+	word-break:break-all;
+}
+
+#body {
+	 background-attachment: fixed;
+    	background: url(../images/cover.jpg);
+	}
+	
+#body1 {
+ background-attachment: fixed;
+	background: url(../images/index_bg.png)
+}
+	
+body {
+	font:16px/1 "\5FAE\8F6F\96C5\9ED1", "\5B8B\4F53";
+	-webkit-text-size-adjust:none;
+	margin:0 auto;
+}
+div {
+	margin:0 auto;
+	word-break:break-all;
+}
+html {
+	margin:0;
+	padding:0;
+}
+ul, li {
+	list-style:none;
+}
+a {/*color:#5b5a5a;*/
+	text-decoration:none;
+blr:expression(this.onFocus=this.blur());
+	outline:none;
+	cursor:pointer;
+}
+a:hover { /*color:#0064ab; */
+	text-decoration:none;
+}
+
+.clear{ clear:both;}
+/*main*/
+/*.w640{width:640px; margin: 0 auto; background:url("../images/index_bg.png")/*tpa=images/index_bg.png*/ no-repeat; height:1200px; position:relative; background-attachment: fixed;}*/
+.w6401{margin: 0 auto; position:relative;}
+
+
+header .title{ padding-top:164px;}
+.hm_icon a img { position:absolute; right:30px; top:30px; border:0px;}
+header .f100{ padding-top:164px; margin:0 auto;  background:url("../images/100f.png")/*tpa=images/100f.png*/ no-repeat 0 168px; height:217px; }
+header .f90{ padding-top:164px; margin:0 auto;  background:url("../images/90f.png")/*tpa=images/90f.png*/ no-repeat 0 168px; height:217px; }
+header .f80{ padding-top:164px; margin:0 auto;  background:url("../images/80f.png")/*tpa=images/80f.png*/ no-repeat 0 168px; height:217px; }
+header .f70{ padding-top:164px; margin:0 auto;  background:url("../images/70f.png")/*tpa=images/70f.png*/ no-repeat 0 168px; height:217px; }
+header .f60{ padding-top:164px; margin:0 auto;  background:url("../images/60f.png")/*tpa=images/60f.png*/ no-repeat 0 168px; height:217px; }
+header .f50{ padding-top:164px; margin:0 auto;  background:url("../images/50f.png")/*tpa=images/50f.png*/ no-repeat 0 168px; height:217px; }
+header .f40{ padding-top:164px; margin:0 auto;  background:url("../images/40f.png")/*tpa=images/40f.png*/ no-repeat 0 168px; height:217px; }
+header .f30{ padding-top:164px; margin:0 auto;  background:url("../images/30f.png")/*tpa=images/30f.png*/ no-repeat 0 168px; height:217px; }
+header .f20{ padding-top:164px; margin:0 auto;  background:url("../images/20f.png")/*tpa=images/20f.png*/ no-repeat 0 168px; height:217px; }
+header .f10{ padding-top:164px; margin:0 auto;  background:url("../images/10f.png")/*tpa=images/10f.png*/ no-repeat 0 168px; height:217px; }
+header .f0{ padding-top:164px; margin:0 auto;  background:url("../images/0f.png")/*tpa=images/0f.png*/ no-repeat 0 168px; height:217px; }
+
+.hm_text { padding-top:36px; line-height:36px; font-size:28px; color:#540506; width:548px; margin:0 auto;}
+.hm_text01 { padding-top:60px;}
+.hm_text02 { padding-top:80px;}
+.btn_bg a { background:url("../images/btn_bg.png")/*tpa=images/btn_bg.png*/ no-repeat; height:106px; margin-bottom:8px; line-height:96px; text-align: center; font-size:30px; color:#fff; display:block;}
+.btn_bg1 a {margin: 0 auto; background: #f39c4c; width:300px;  border-radius: 10px; height:75px; text-align: center; margin-bottom:8px; line-height:75px; font-size:30px; color:#fff; display:block;}
+
+.hm_btn { width:493px; height:106px; margin:0 auto; margin-top:50px;  }
+
+.content { background:url("../images/t_w.png")/*tpa=images/t_w.png*/; border-radius:6px; width:560px; margin:0 auto; padding:20px; margin-top:30px; line-height:36px; min-height:280px; color:#FFF; font-size:30px;}
+.content_img { width:480px; height:300px; margin:0 auto; position:relative;}
+.subject_t { line-height:36px; padding-bottom:10px; font-weight:bold;}
+.content p { margin-bottom:12px;}
+.content p input { margin-right:10px; width:22px; height:22px;}
+.no_choice { text-align:center; font-size:30px; height:36px; line-height:36px; color:#FFF; margin-top:30px;}
+.enter_btn a{ /*background:url("../images/tj_btn_bg.png")*//*tpa=images/tj_btn_bg.png*/ background: #ef6500; no-repeat; border-radius: 50%; width:180px; margin:0 auto; margin-top:20px; height:180px; line-height:180px; color:white; font-size:40px; text-align:center; display:block;}
+
+
+.content_tl { /*background:url("../images/t_w.png")*//*tpa=images/t_w.png*/; border-radius:6px; width:560px; margin:0 auto; padding:20px; margin-top:-10px; line-height:36px; min-height:280px; color:#FFF; font-size:30px;}
+.content_tl p { margin-bottom:5px;}
+.content_tl .p_left{ float:left;width:50%;}
+.content_tl p input { margin-right:10px; width:22px; height:22px;}
+.content_tl_img img { width:548px; height:360px; border-radius:8px; border:6px #FFF solid; margin:0 auto; }
+.content_tl_t { line-height:36px; padding-bottom:50px; font-size: 35px;}
+
+.subject_img { width:367px; margin:0 auto; margin-top:20px; position:relative;}
+.subject_img span { position:absolute; bottom:12px; right:12px;}
+.right { background:url("../images/right.png")/*tpa=images/right.png*/ no-repeat; width:179px; height:177px;}
+.wrong { background:url("../images/wrong.png")/*tpa=images/wrong.png*/ no-repeat; width:179px; height:177px;}
+
+.content_jd { background:url("../images/t_b.png")/*tpa=images/t_b.png*/; position:relative; border-radius:6px; width:560px; margin:0 auto; padding:20px; margin-top:30px; line-height:36px; min-height:420px; color:#450b0c; font-size:26px;}
+.content_jd p { margin-bottom:12px;}
+.content_jd span { position:absolute; bottom:12px; right:12px;}
+.content_jd .ys {color: #d30101;}
+
+.content_tljd { background:url("../images/t_b.png")/*tpa=images/t_b.png*/; position:relative; border-radius:20px; width:560px; margin:0 auto; padding:20px;     margin-top: 50px;line-height:36px; min-height:450px; color:#450b0c; font-size:28px;}
+.content_tljd p { margin-bottom:12px;}
+.content_tljd span { position:absolute; bottom:12px; right:12px;}
+.content_tljd .ys {color: #d30101;}
+
+.m_w640{width:640px; margin: 0 auto; background:url("../images/index_bg.png")/*tpa=images/index_bg.png*/ no-repeat; height:836px; padding-top:164px; position:relative;}
+
+
+/* 滑动焦点图 */
+.swiper-container {
+	height:auto;
+	width:90%;
+	text-align:center;
+	margin:0 auto;
+	position:relative;
+	overflow:hidden;
+	z-index:5;
+	background:none;
+}
+/*.swiper-wrapper {position: relative;z-index:10;}
+.swiper-slide {position:relative;text-align:center; float:left;}
+.swiper-slide a{ position:relative; width:367px; height:480px; display:block; overflow:hidden;}
+.swiper-slide img{ width:367px; height:450px; max-height:100%;vertical-align:middle; position:relative;}
+.pagination{ position:absolute; height:20px; width:100%;bottom:8px;z-index:100; text-align:right; text-align:center;}
+.pagination .swiper-pagination-switch{ display:inline-block; height:10px; width:10px; line-height:10px; background:#999; border-radius:50%; _display:inline; margin-right:6px;}
+.pagination .swiper-active-switch{ background:#0090ff;}*/
+
+.swiper-wrapper {position: relative;z-index:10;}
+.swiper-slide {position:relative;text-align:center; float:left;}
+.swiper-slide a{ position:relative; width:100%; height:100%; display:block; overflow:hidden;}
+.swiper-slide img{ max-height:100%;vertical-align:middle; position:relative;}
+.pagination{ position:absolute; height:20px; width:100%;bottom:10%;z-index:100; text-align:right; text-align:center;}
+.pagination .swiper-pagination-switch{ display:inline-block; height:10px; width:10px; line-height:10px; background:#fff; border-radius:50%; _display:inline; margin-right:6px;}
+.pagination .swiper-active-switch{ background:#fee972;}
+
+.user_head{width:100%; background:#d10200; text-align:center; color:#fff; font-size:20px; position:relative; padding:17px 0; height:1%; overflow:hidden}
+.user_head span{float:left;width:10%; position:absolute; height:auto; left:10px; top:15px}
+.user_head span img{width:45%; vertical-align:middle}
+
+
+.login_con{height:1%; overflow:hidden; padding:0 0 20% 0;}
+
+/* 登录 */
+.l640{width:640px; margin: 0 auto; background:url("../images/login_bg.png")/*tpa=images/index_bg.png*/ no-repeat; height:1000px; position:relative;}
+header .ltitle{ padding-top:64px; padding-left:80px;}
+.hm_text01 { padding-top:60px;}
+
+
+/*会员登录*/
+
+.login_con1{}
+.login_con1 li{padding:10px; height:34px; line-height:34px; font-size:18px; border-bottom:1px solid #e4e4e4; height:1%; overflow:hidden}
+.login_con1 li .con1_ti{float:left; width:25%; color:#000; margin-left:2%}
+.login_con1 li .con1_to{float:left; width:70%;}
+.login_con1 li .con1_to .input1{height:34px; width:100%; color:#999; font-size:18px; line-height:34px; background:#fff; border:none;}
+
+.login_con1_for{height:40px; line-height:40px; padding:10px; color:#959595; text-align:right; font-size:18px;}
+.login_con1_zc{height:40px; line-height:40px; font-size:18px; text-align:center; color:#959595}
+.login_con1_zc img{width:20%; vertical-align:middle;}
+
+.login_con_but{width:95%; margin:0 auto; padding-top:20px;}
+.login_con_but img{width:100%;}
+
+.login_other{margin-top:30px;}
+.login_other_br{width:100%;}
+.login_other_br img{width:100%;}
+.login_other_con{width:70%; margin:0 auto;}
+.login_other_con img{width:25%;}
+
+/*忘记密码*/
+.login_for{border-top:1px solid #e4e4e4; margin-top:10px;}
+.login_for li{padding:10px; height:34px; line-height:34px; font-size:18px; border-bottom:1px solid #e4e4e4; height:1%; overflow:hidden}
+.login_for li .forset{color:#666; font-size:18px; margin-left:5%;}
+.login_for li .for_ti{float:left; width:20%; color:#000; margin-left:5%}
+.login_for li .for_to{float:left; width:75%;}
+.login_for li .for_to .input1{height:34px; width:100%; color:#999; font-size:18px; line-height:34px; background:#fff; border:none;}
+.login_for li .for_tt{width:40%; float:left}
+.login_for li .for_tt .input2{height:34px; width:100%; color:#999; font-size:18px; line-height:34px; background:#fff; border:none;}
+.login_for li .for_te{width:30%; float:right; height:34px; line-height:34px; background:#ececec; color:#000; padding:0 10px; font-size:15px;}
+
+
+/*手机注册*/
+.login_mob_br{line-height:34px; padding:10px; font-size:18px; background:#eeeeee; color:#000;}
+.login_mob_br span{margin-left:5%}
+.login_mob{border-top:1px solid #e4e4e4;}
+.login_mob li{padding:10px 0; height:34px; line-height:34px; font-size:18px; border-bottom:1px solid #e4e4e4; height:1%; overflow:hidden}
+.login_mob li .mobset{color:#666; font-size:18px; margin-left:5%;}
+.login_mob li .mob_ti{float:left; width:25%; color:#000; margin-left:5%}
+.login_mob li .mob_to{float:left; width:70%;}
+.login_mob li .mob_to .input1{height:34px; width:100%; color:#999; font-size:18px; line-height:34px; background:#fff; border:none;}
+.login_mob li .mob_tt{width:30%; float:left}
+.login_mob li .mob_tt .input2{height:34px; width:100%; color:#999; font-size:18px; line-height:34px; background:#fff; border:none;}
+.login_mob li .mob_te{width:28%; float:right; height:34px; line-height:34px; background:#ececec; color:#000; padding:0 10px; font-size:14px;}
+
+.login_mob_zc{margin-top:30px; height:40px; line-height:40px; font-size:18px; text-align:center; color:#959595}
+.login_mob_zc img{width:20%; vertical-align:middle;}
+
+/*用户中心列表*/
+.us_left02{width:90%; margin:0 auto; height:1%; overflow:hidden;}
+.us_left02 li{padding:5px 0; font-size:16px; text-align:center; color:#cc0001; margin-top:10px; border:1px solid #e3e3e3; background:#fcfcfc;}
+.us_left02 li img{width:13%; vertical-align:middle; margin-right:10px;}
+
+/*个人修改*/
+.us_right_con02{}
+.us_right_con02 li{line-height:40px; background:#f6f6f6; border-bottom:1px solid #fff;}
+.us_right_con02 li .con02br{float:left; width:30%; text-align:right; padding-right:20px; background:#ededed; margin-right:15px;}
+.us_right_con02 li .con02ron{color:#737373;}
+.us_right_con02 li .con02ron01{color:#F00;}
+.us_right_con02 li .input02{line-height:36px; margin:2px 0; border:1px solid #efefef; width:50%;}
+.us_right_con02 li .input03{line-height:36px; margin:2px 0; border:1px solid #efefef; width:50%;}
+
+.us_right_con02 li .bu{padding:5px 0px;}
+
+
+
+/*我的评论*/
+.comment{width:100%;}
+.comment li{ width:100%;line-height:28px; margin-top:10px; border-bottom:1px solid #EFEFEF;}
+.comment li span{display:block; margin-top:5px; color:#999; line-height:30px; text-align:right;}
+.comment li span font{float:left; width:60%; text-align:left}
+
+/*底部*/
+#bottom{width:100%; margin:0 auto; }
+#bottom ul{width:100%;list-style:none; float:left; text-align:center;}
+#bottom ul li{ width:33.3%; float:left;}
+#bottom ul li a{ background:#063370;display:block;}
+#bottom ul li img{width:80%;}
+
+.The_correct_answer{
+	position: relative;
+    border-radius: 20px;
+    width: 174px;
+    height: 67px;
+    line-height: 67px;
+    margin-left: 20px;
+    text-align: center;
+    color: #450b0c;
+    background: #d96d63;
+    font-size: 30px;
+}
+  	.choose_div{
+	  	text-align: center;
+	  	padding: 35px;
+  	}
+  	.choose_p{ 
+		text-align: center;
+		background: #d96d63;
+		height: 70px;
+		width: 480px;
+		line-height: 70px;
+		border-radius: 50px;
+		box-shadow: 0 5px 5px 0 #000000;
+  	}
+  	
+.progress_bar{
+	margin-top: 40px;
+	height: 20px;
+	border-radius: 50px;
+	margin-bottom: 50px;
+	border: 1px solid #580000;
+	width: 450px;
+}
+.progress_bar2{
+	background: #ef6500;
+	height: 20px;
+	float: left;
+	border-radius: 50px;
+	margin-bottom: 50px;
+}

+ 706 - 0
web/answer/subject.html

@@ -0,0 +1,706 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>安士佳庆国庆,送大礼问答抽奖</title>
+<meta name="Keywords" content="" />
+<meta name="Description" content="" />
+<meta name="author" content="" />
+<meta name="renderer" content="webkit">
+<meta content='target-densitydpi=device-dpi, width=640' name='viewport'>
+<meta name="apple-mobile-web-app-capable" content="yes">
+<meta name="apple-mobile-web-app-status-bar-style" content="white">
+<meta name="format-detection" content="telephone=no">  
+<link href="style/css.css"rel="stylesheet" type="text/css" />
+<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
+<script type="text/javascript" src="lottery/js/jquery_cookie_min.js" ></script>
+<script>
+	/*不同分辨率手机加载*/
+	var userScalable = "no";
+	var ins = "";
+	(function () {
+		if (window.devicePixelRatio === 1.5) {
+			userScalable = "yes";
+			ins = "initial-scale=0.5"
+		}
+		var text = "<meta content='" + ins + ", target-densitydpi=device-dpi, width=640,user-scalable=" + userScalable + "' name='viewport'>";
+		document.write(text);
+	})();
+</script>
+</head>
+<body id="body1">
+<div id="answer" class="w640">
+	<!--<header>
+		<div class="hm_icon"><a href="index.html"><img src="images/home_icon.png" alt=""></a></div>
+		<div class="title">               
+		</div>
+	</header>-->
+	<div id="q1">           
+		<div class="content_tl"> 
+			<div style="text-align: center; font-size: 40px;">第一题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 10%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">1.中华人民共和国国歌是哪首?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd1_1" name="rd1" type="radio" value="A"></span><label for="rd1_1">A.《爱我中华》</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd1_2" name="rd1" type="radio" value="B"></span><label for="rd1_2">B.《没有共产党就没有新中国》</label></p>                
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd1_3" name="rd1" type="radio" value="C"></span><label for="rd1_3">C.《义勇军进行曲》</label></p> 
+			</div>
+			<div class="clear"></div>
+		 </div>
+		<div id="msg1" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b1" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a1" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer"> 正确解答</div>
+		<div class="content_tljd">
+			<span id="r1" class="right" style="display:none;"></span>
+			<span id="w1" class="wrong" style="display:none;"></span>
+			<p>《义勇军进行曲》是由田汉作词,聂耳作曲的歌曲。自1935年在民族危亡的关头诞生以来,对激励中国人民的爱国主义精神起了巨大的作用,后成为中华人民共和国国歌 。 </p>
+		</div>
+		<div class="enter_btn"><a id="next1" href="#">下一题</a></div>
+	</div>
+
+	<div id="q2" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第二题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 20%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">2.中华人民共和国国旗叫什么?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd2_1" name="rd2" type="radio" value="A"></span><label for="rd2_1">A.五星红旗</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd2_2" name="rd2" type="radio" value="B"></span><label for="rd2_2">B.红旗</label></p>               
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd2_3" name="rd2" type="radio" value="C"></span><label for="rd2_3">C.五颗星星</label></p>  
+			</div>
+			<div class="clear"></div>
+		</div>
+		<div id="msg2" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b2" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a2" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r2" class="right" style="display:none;"></span>
+			<span id="w2" class="wrong" style="display:none;"></span>
+			<p>中华人民共和国国旗是五星红旗,旗面为红色,长宽比例为3:2。左上方缀黄色五角星五颗,四颗小星环拱在一颗大星的右面,并各有一个角尖正对大星的中心点。</p>
+		</div>
+		<div class="enter_btn"><a id="next2" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q3" style="display:none;">
+		<div class="content_tl">   
+			<div style="text-align: center; font-size: 40px;">第三题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 30%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">3.国庆节是每年的几月几号?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd3_1" name="rd3" type="radio" value="A"></span><label for="rd3_1">A.1月10日</label></pclass>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd3_2" name="rd3" type="radio" value="B"></span><label for="rd3_2">B.10月1日</label></p>               
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd3_3" name="rd3" type="radio" value="C"></span><label for="rd3_3">C.10月7日</label></p>    
+			</div><div class="clear"></div>
+		</div>
+		<div id="msg3" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b3" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a3" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r3" style="display:none;" class="right"></span>
+			<span id="w3" style="display:none;" class="wrong"></span>
+			<p>国庆节是由一个国家制定的用来纪念国家本身的法定假日。中国国庆节特指中华人民共和国正式成立的纪念日10月1日。</p>
+		</div>
+		<div class="enter_btn"><a id="next3" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q4" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第四题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 40%;">
+					</div>
+				</div>
+			</div>
+			<p class="subject_t">4.1949年中华人民共和国开国大典在哪里举行?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd4_1" name="rd4" type="radio" value="A"></span><label for="rd4_1">A.长城</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd4_2" name="rd4" type="radio" value="B"></span><label for="rd4_2">B.天安门城楼</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd4_3" name="rd4" type="radio" value="C"></span><label for="rd4_3">C.故宫</label></p>
+			</div><div class="clear"></div>
+		 </div>
+		<div id="msg4" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b4" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a4" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r4" style="display:none;" class="right"></span>
+			<span id="w4" style="display:none;" class="wrong"></span>
+			<p>1949年10月1日下午3时,中华人民共和国举行开国大典,毛泽东在北京天安门城楼上宣告中华人民共和国、中央人民政府成立了。</p>
+		</div>
+		<div class="enter_btn"><a id="next4" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q5" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第五题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 50%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">5.开国大典上鸣了多少次炮?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd5_1" name="rd5" type="radio" value="A"></span><label for="rd5_1">A.54响</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd5_2" name="rd5" type="radio" value="B"></span><label for="rd5_2">B.21响</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd5_3" name="rd5" type="radio" value="C"></span><label for="rd5_3">C.28响</label></p>
+			</div><div class="clear"></div>
+		</div>
+		<div id="msg5" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b5" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a5" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r5" style="display:none;" class="right"></span>
+			<span id="w5" style="display:none;" class="wrong"></span>
+			<p>28响礼炮表示中国共产党从1921年成立起,领导全国人民,经历了28年的奋斗,才使国家独立,人民翻身当家做主,才迎来了1949年10月1日下午的开国大典。</p>
+		</div>
+		<div class="enter_btn"><a id="next5" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q6" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第六题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 60%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">6.开国大典仪式开始的时间?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd6_1" name="rd6" type="radio" value="A"></span><label for="rd6_1">A.09:00</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd6_2" name="rd6" type="radio" value="B"></span><label for="rd6_2">B.12:00</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd6_3" name="rd6" type="radio" value="C"></span><label for="rd6_3">C.15:00</label></p>
+			</div><div class="clear"></div>
+		</div>
+		<div id="msg6" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b6" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a6" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r6" style="display:none;" class="right"></span>
+			<span id="w6" style="display:none;" class="wrong"></span>
+			<p>1949年10月1日下午15:00,在北京天安门广场举行开国大典。</p>
+		</div>
+		<div class="enter_btn"><a id="next6" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q7" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第七题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 70%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">7.中华人民共和国国徽上的麦穗代表什么?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd7_1" name="rd7" type="radio" value="A"></span><label for="rd7_1">A.工人阶级</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="rd7_2" name="rd7" type="radio" value="B"></span><label for="rd7_2">B.农民阶级</label></p>
+			</div><div class="choose_div">
+				<p class="choose_p"><span><input id="rd7_3" name="rd7" type="radio" value="C"></span><label for="rd7_3">C.资产阶级</label></p>
+			</div><div class="clear"></div>
+		</div>
+		<div id="msg7" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b7" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a7" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r7" style="display:none;" class="right"></span>
+			<span id="w7" style="display:none;" class="wrong"></span>
+			<p>中华人民共和国国徽的内容为国旗、天安门、齿轮和谷穗(国旗和天安门象征国家,齿轮象征工人阶级,谷穗象征农民阶级)。</p>
+		</div>
+		<div class="enter_btn"><a id="next7" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q8" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第八题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 80%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">8.2019年是中华人民共和国成立的第几周年?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb8_1" name="rd8" type="radio" value="A"></span><label for="cb8_1">A.60周年</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb8_2" name="rd8" type="radio" value="B"></span><label for="cb8_2">B.70周年</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb8_3" name="rd8" type="radio" value="C"></span><label for="cb8_3">C.80周年</label></p>
+			</div>
+			<div class="clear"></div>
+		</div>
+		<div id="msg8" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b8" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a8" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r8" style="display:none;" class="right"></span>
+			<span id="w8" style="display:none;" class="wrong"></span>
+			<p>1949年10月1日中华人民共和国、中央人民政府成立了。因此,2019年是中华人民共和国成立第70周年。</p>
+			
+		</div>
+		<div class="enter_btn"><a id="next8" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q9" style="display:none;">
+		<div class="content_tl">     
+			<div style="text-align: center; font-size: 40px;">第九题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 90%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">9.1949年开国大典阅兵是谁检阅的?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb9_1" type="radio" value="A" name="rd9" /></span><label for="cb9_1">A.毛泽东</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb9_2" type="radio" value="B" name="rd9" /></span><label for="cb9_2">B.朱德</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb9_3" type="radio" value="C" name="rd9" /></span><label for="cb9_3">C.聂荣臻</label></p>
+			</div>
+			<div class="clear"></div>
+		</div>
+		<div id="msg9" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b9" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a9" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r9" style="display:none;" class="right"></span>
+			<span id="w9" style="display:none;" class="wrong"></span>
+			<p>毛主席宣读完公告后,阅兵开始。检阅司令员是中国人民解放军总司令朱德(兼阅兵总司令),阅兵总指挥是聂荣臻。</p>
+		</div>
+		<div class="enter_btn"><a id="next9" href="javascript:void(0);">下一题</a></div>
+	</div>
+
+	<div id="q10" style="display:none;">
+		<div class="content_tl">
+			<div style="text-align: center; font-size: 40px;">第十题</div>
+			<div> 
+				<div class="progress_bar">
+					<div class="progress_bar2" style="width: 100%;">
+					</div>
+				</div>
+			</div>
+			<p class="content_tl_t">10.国庆假有多少天?</p>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb10_1" type="radio" value="A" name="rd10" /></span><label for="cb10_1">A.3天</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb10_2" type="radio" value="B" name="rd10" /></span><label for="cb10_2">B.5天</label></p>
+			</div>
+			<div class="choose_div">
+				<p class="choose_p"><span><input id="cb10_3" type="radio" value="C" name="rd10" /></span><label for="cb10_3">C.7天</label></p>
+			</div>
+			<div class="clear"></div>
+		</div>
+		<div id="msg10" class="no_choice" style="display:none;">您还没选择!</div>
+		<div class="enter_btn"><a id="b10" href="javascript:void(0);">确定</a></div>
+	</div>
+	<div id="a10" style="display:none;">
+		<br><br><br>
+		<div class="The_correct_answer">正确解答</div>
+		<div class="content_tljd">
+			<span id="r10" style="display:none;" class="right"></span>
+			<span id="w10" style="display:none;" class="wrong"></span>
+			<p>国庆假期为7天,10月1日-10月7日。</p>
+		</div>
+		<div class="enter_btn"><a id="next10" href="javascript:void(0);">查看结果</a></div>
+	</div>
+
+</div>
+<div id="score" class="w640" style="display:none;">
+	<header>
+		<div class="fs"></div>
+	</header>
+
+	<div class="hm_text02"><img src="images/text02.png"  alt=""></div>
+	<div class="hm_btn">
+		<div class="btn_bg"><a href="index.html" >回到首页</a></div>
+		<div class="btn_bg"><a href="subject.html" >再测一次</a></div>
+		<!--<div class="btn_bg" style="display:none;"><a href="#">中国共产党廉洁自律准则</a></div>-->
+	</div>
+</div>
+<div id="score2" class="w640" style="display:none;">
+	<header>
+		<div class="fs"></div>
+	</header>
+	<div class="hm_text02"><img src="images/text02.png"  alt=""></div>
+	<div class="hm_btn">
+	<div class="btn_bg" id="index_num"><a href="lottery/index.html">马上去抽奖</a></div>
+	<div class="btn_bg"><a href="subject.html" >再测一次</a></div>
+	 </div>
+</div>
+
+<script type="text/javascript">
+	$(function () {
+//		用户选择样式
+		$(".choose_p").click(function () {
+			$(".choose_p").css("background","");
+			$(this).css("background","#2bc98e");
+			$(this)[0].childNodes[0].children[0].checked=true;
+		});
+		
+		a1 = a2 = a3 = a4 = a5 = a6 = a7 = a8 = a9 = a10 = 0;
+		$("#b1").click(function () {              
+			var rl1 = $('#q1 input:radio[name="rd1"]:checked').val();
+			if (rl1 == null) {
+				$("#msg1").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q1").fadeOut(100);', 1);
+				setTimeout('$("#a1").fadeIn(1000);', 100);
+				if (rl1 == "C") {
+					a1 = 1;
+					setTimeout('$("#r1").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w1").slideDown()', 500);
+				}
+			}
+		});
+		$("#next1").click(function () {
+			setTimeout('$("#a1").fadeOut(100);', 1);
+			setTimeout('$("#q2").fadeIn(1000);', 100);
+		});
+
+		$("#b2").click(function () {
+			var rl2 = $('#q2 input:radio[name="rd2"]:checked').val();
+			if (rl2 == null) {
+				$("#msg2").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q2").fadeOut(100);', 1);
+				setTimeout('$("#a2").fadeIn(1000);', 100);
+				if (rl2 == "A") {
+					a2 = 1;
+					setTimeout('$("#r2").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w2").slideDown()', 500);
+				}
+			}
+		});
+		$("#next2").click(function () {
+			setTimeout('$("#a2").fadeOut(100);', 1);
+			setTimeout('$("#q3").fadeIn(1000);', 100);
+		});
+
+		$("#b3").click(function () {
+			var rl3 = $('#q3 input:radio[name="rd3"]:checked').val();
+			if (rl3 == null) {
+				$("#msg3").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q3").fadeOut(100);', 1);
+				setTimeout('$("#a3").fadeIn(1000);', 100);
+				if (rl3 == "B") {
+					a3 = 1;
+					setTimeout('$("#r3").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w3").slideDown()', 500);
+				}
+			}
+		});
+		$("#next3").click(function () {
+			setTimeout('$("#a3").fadeOut(100);', 1);
+			setTimeout('$("#q4").fadeIn(1000);', 100);
+		});
+
+		$("#b4").click(function () {
+			var rl4 = $('#q4 input:radio[name="rd4"]:checked').val();
+			if (rl4 == null) {
+				$("#msg4").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q4").fadeOut(100);', 1);
+				setTimeout('$("#a4").fadeIn(1000);', 100);
+				if (rl4 == "B") {
+					a4 = 1;
+					setTimeout('$("#r4").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w4").slideDown()', 500);
+				}
+			}
+		});
+		$("#next4").click(function () {
+			setTimeout('$("#a4").fadeOut(100);', 1);
+			setTimeout('$("#q5").fadeIn(1000);', 100);
+		});
+
+		$("#b5").click(function () {
+			var rl5 = $('#q5 input:radio[name="rd5"]:checked').val();
+			if (rl5 == null) {
+				$("#msg5").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q5").fadeOut(100);', 1);
+				setTimeout('$("#a5").fadeIn(1000);', 100);
+				if (rl5 == "C") {
+					a5 = 1;
+					setTimeout('$("#r5").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w5").slideDown()', 500);
+				}
+			}
+		});
+		$("#next5").click(function () {
+			setTimeout('$("#a5").fadeOut(100);', 1);
+			setTimeout('$("#q6").fadeIn(1000);', 100);
+		});
+
+		$("#b6").click(function () {
+			var rl6 = $('#q6 input:radio[name="rd6"]:checked').val();
+			if (rl6 == null) {
+				$("#msg6").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q6").fadeOut(100);', 1);
+				setTimeout('$("#a6").fadeIn(1000);', 100);
+				if (rl6 == "C") {
+					a6 = 1;
+					setTimeout('$("#r6").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w6").slideDown()', 500);
+				}
+			}
+		});
+		$("#next6").click(function () {
+			setTimeout('$("#a6").fadeOut(100);', 1);
+			setTimeout('$("#q7").fadeIn(1000);', 100);
+		});
+
+
+		$("#b7").click(function () {
+			var rl7 = $('#q7 input:radio[name="rd7"]:checked').val();
+			if (rl7 == null) {
+				$("#msg7").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q7").fadeOut(100);', 1);
+				setTimeout('$("#a7").fadeIn(1000);', 100);
+				if (rl7 == "B") {
+					a7 = 1;
+					setTimeout('$("#r7").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w7").slideDown()', 500);
+				}
+			}
+		});
+		$("#next7").click(function () {
+			setTimeout('$("#a7").fadeOut(100);', 1);
+			setTimeout('$("#q8").fadeIn(1000);', 100);
+		});
+
+
+		$("#b8").click(function () {
+			var cbl8 = $('#q8 input:radio[name="rd8"]:checked').val();
+//			console.log(cbl8)
+			if (cbl8 == null) {
+				$("#msg8").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q8").fadeOut(100);', 1);
+				setTimeout('$("#a8").fadeIn(1000);', 100);
+				if (cbl8=='B') {
+					a8 = 1;
+					setTimeout('$("#r8").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w8").slideDown()', 500);
+				}
+			}
+		});
+		$("#next8").click(function () {
+			setTimeout('$("#a8").fadeOut(100);', 1);
+			setTimeout('$("#q9").fadeIn(1000);', 100);
+		});
+
+		$("#b9").click(function () {
+			var cbl9 = $('#q9 input:radio[name="rd9"]:checked').val();
+			if (cbl9 == null) {
+				$("#msg9").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q9").fadeOut(100);', 1);
+				setTimeout('$("#a9").fadeIn(1000);', 100);
+				if (cbl9=="B") {
+					a9 = 1;
+					setTimeout('$("#r9").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w9").slideDown()', 500);
+				}
+			}
+		});
+		$("#next9").click(function () {
+			setTimeout('$("#a9").fadeOut(100);', 1);
+			setTimeout('$("#q10").fadeIn(1000);', 100);
+		});
+
+		$("#b10").click(function () {
+			var cbl10 = $('#q10 input:radio[name="rd10"]:checked').val();
+			if (cbl10 == null) {
+				$("#msg10").fadeIn(500);
+			}
+			else {
+				setTimeout('$("#q10").fadeOut(100);', 1);
+				setTimeout('$("#a10").fadeIn(1000);', 100);
+				if (cbl10 =="C") {
+					a10 = 1;
+					setTimeout('$("#r10").slideDown()', 500);
+				}
+				else {
+					setTimeout('$("#w10").slideDown()', 500);
+				}
+			}
+		});
+		$("#next10").click(function () {
+			setTimeout('$("#answer").fadeOut(100);', 1);
+			sc = a1 + a2 + a3 + a4 + a5 + a6 + a7 + a8 + a9 + a10;
+			if (sc == 0) {
+				$('.fs').addClass("f0");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+			} else if (sc == 1) {
+				$('.fs').addClass("f10");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 2) {
+				$('.fs').addClass("f20");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 3) {
+				$('.fs').addClass("f30");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 4) {
+				$('#fs').addClass("f40");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 5) {
+				$('.fs').addClass("f50");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 6) {
+				$('.fs').addClass("f60");
+				setTimeout('$("#score").fadeIn(1000);', 100);
+
+			} else if (sc == 7) {
+				$('.fs').addClass("f70");
+				setTimeout('$("#score2").fadeIn(1000);', 100);
+
+			} else if (sc == 8) {
+				$('.fs').addClass("f80");
+				setTimeout('$("#score2").fadeIn(1000);', 100);
+
+			} else if (sc == 9) {
+				$('.fs').addClass("f90");
+				setTimeout('$("#score2").fadeIn(1000);', 100);
+			} else if (sc == 10) {
+				$('.fs').addClass("f100");
+				setTimeout('$("#score2").fadeIn(1000);', 100);
+			}
+		});
+	});
+	
+	if($.cookie("rmbUser") == "true") {
+		let index_num_cookie = $.cookie('index_num');
+		console.log(index_num_cookie) 
+		if(index_num_cookie==1){
+        	let index_num_cookie = $.cookie('index_num');
+        	console.log(index_num_cookie);
+		}else if(index_num_cookie==3){
+			console.log(index_num_cookie);
+			window.location.href="subject.html";
+		}else{
+			window.location.href="index.html";
+		}
+	}else{
+		window.location.href="index.html";
+	}
+	$("#index_num").click(function () {
+		$.cookie("index_num", 2, {expires: 7}); //7天
+	});
+	
+</script>
+<script type="text/javascript">
+    var ua = navigator.userAgent.toLowerCase();
+    var isWeixin = ua.indexOf('micromessenger') != -1;
+//  var isAndroid = ua.indexOf('android') != -1;
+//  var isIos = (ua.indexOf('iphone') != -1) || (ua.indexOf('ipad') != -1);
+    if (!isWeixin) {
+        document.head.innerHTML = '<title>抱歉,出错了</title><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"><link rel="stylesheet" type="text/css" href="weua.css">';
+        document.body.innerHTML = '<div class="weui_msg"><div class="weui_icon_area"><i class="weui_icon_info weui_icon_msg"></i></div><div class="weui_text_area"><h4 class="weui_msg_title">请在微信客户端打开链接</h4></div></div>';
+    }
+</script>
+</body>
+</html>

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov