index.html 3.18 KB
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>绍兴市教育局教育满意度调查</title>

<link href="../assets/reset.css" rel="stylesheet"/>
<link href="../assets/style.css" rel="stylesheet"/>
<script src="../assets/jquery-1.8.3.min.js"></script>

<style>
	html,body{ height:100%;}
	body{ background:#50b19d;}
	.footer{ position:absolute; bottom:0; z-index:10;  padding:5px 0; width:100%; left:0; text-align:center;line-height:18px; color:#005b48;}
	.footer a{ color:#005b48}
	

</style>
</head>

<body>
    <section class="index-wrap">
      
       <a href="school.html">下一步</a>
    </section>
    <span class="index-rule-open"></span>
    <section class="index-rule show" id="rule">
    	<span class="rule-close"><i class="fa fa-remove"></i></span>
    	<h3>规则说明</h3>
        <article>
        	<p>1、调查起始日期:<br/><span>2018.06.11 12:00</span> 至 <span>2018.06.13 24:00</span></p>
        	<p>2、调查前需填写真实个人信息</p>
            <p>3、全部题目填写完后方能提交问卷</p>
            <p>4、如提交<span>问卷失败</span>,可能是网络不畅等原因,请稍等片刻后再次提交</p>
            <p>5、每人<span>只能参与一次</span>,提交后不能修改。</p>
            <span class="tips">点击 右上角X 或 阴影处 关闭本窗口</span>
        </article>
        
    </section>
    <div class="cover-bg"></div>
    
    <section class="indexbg">
    	
    </section>
    <section class="footer">
    	<img src="../images/copyright.gif"/> 杭州顺治科技股份有限公司
        <br/>客服热线:<a>400-826-2468</a>
    </section>
<script>
	var winHeight = $(window).height();
	var winWidth = $(window).width();
	
	$(function () {
		var bodyWidth = $('body').width();
		var $indexWrap=$('.index-wrap');
		if (winHeight > winWidth * 1.778) {
			$('body').css('height', winHeight);
			$indexWrap.css('top', bodyWidth*1.473);
		} else {
			if (winHeight <= 480||winHeight<=winWidth* 1.5) {
				$('body').css('height', bodyWidth * 1.778);
			}else{
				$('body').css('height', winHeight);
			}
			$indexWrap.css('bottom', bodyWidth*0.2);
		}
		

		//规则说明
		var $rule = $('#rule');
		var $coverBg = $('.cover-bg');
		var $ruleOpen = $('.index-rule-open');
		$rule.on('singleTap touchend click', '.rule-close', function (e) {
			e.preventDefault();
			$coverBg.fadeOut(300);
			$rule.removeClass('show').addClass('hide');
			setTimeout(function(){
				$rule.hide();
			},200);
			$ruleOpen.css('top', '20px');
		});
		$coverBg.on('touchend', function () {
			$coverBg.fadeOut(300);
			$rule.removeClass('show').addClass('hide');
			setTimeout(function(){
				$rule.hide();
			},200);
			$ruleOpen.css('top', '20px');
		});
		$ruleOpen.on('touchend', function () {
			$coverBg.fadeIn(300);
			$rule.removeClass('hide').addClass('show');
			$rule.show();
			$ruleOpen.css('top', '40px');
		})
	})
</script>
</body>
</html>