选择题任务通过后,遮罩弹框信息修改
This commit is contained in:
parent
da6d67eb35
commit
ee65fd18fb
|
@ -38,8 +38,8 @@
|
|||
<div id="challenge_list">
|
||||
<%= render :partial => "content_list" %>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function() {
|
||||
/* -------------- 简介Md -------------------- */
|
||||
|
|
|
@ -13,6 +13,34 @@
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if false %>
|
||||
<div class="task-popup-warp" style="background-color: rgba(0,0,0,0.7);top: 0px;left: 0px;">
|
||||
<div class="task-popup-box <%= had_done == 0 ? "task-box1" : "task-box2" %>">
|
||||
<a href="javascript:void(0)" class="task-popup-close" onclick="refresh_game_list();"></a>
|
||||
|
||||
<% if had_done == 0 %>
|
||||
<div class="task-su-con">
|
||||
<p class="task-su-p">恭喜您通过本关</p>
|
||||
<p class="mt8"><i class="fa fa-check-circle color-light-green mr5"></i>本题正确:<span class="color-orange03"> 3 </span>道</p>
|
||||
<p><i class="fa fa-exclamation-circle color-orange mr5"></i>本题错误:<span class="color-orange03"> 2 </span>道</p>
|
||||
</div>
|
||||
<% else %>
|
||||
<div class="task-su-con" style="position: absolute;width: 100%;z-index:3;padding-top: 63px;">
|
||||
<img src="/images/task/task-success02.png"/>
|
||||
<a href="<%= myshixun_game_path(myshixun, :index => 1) %>" class="task-su-btn-white mt30" onclick="hideModal();" data-remote="true">查看光辉历史</a>
|
||||
</div>
|
||||
<div style="text-align:center;background-color: #fff;border-radius: 0px 0px 8px 8px;width: 200px;position:absolute;z-index:2;height:100px;bottom:-30px;left:50%;margin-left:-100px;">
|
||||
<p class="mt25"><i class="fa fa-check-circle color-light-green mr5"></i>本题正确:<span class="color-orange03"> 3 </span>道</p>
|
||||
<p><i class="fa fa-exclamation-circle color-orange mr5"></i>本题错误:<span class="color-orange03"> 2 </span>道</p>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% if had_done == 0 %>
|
||||
<%= link_to "下 一 关", {:controller => 'games', :action => "next_step", :id => game, :myshixun_id => myshixun}, :class => "task-su-btn", :onclick => "hideModal();", :remote => true %>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
<script>
|
||||
function refresh_game_list(){
|
||||
$.ajax({
|
||||
|
|
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
|
@ -11,15 +11,15 @@
|
|||
|
||||
/************实训弹窗****************/
|
||||
.task-popup-warp{ width: 100%; height:100%; background:black; position:fixed;}
|
||||
.task-popup-box{ position: relative; margin:150px auto; }
|
||||
.task-popup-box{ position: relative; margin:150px auto 0px; }
|
||||
.task-box1{ width:428px; height:420px;background:url(/images/task/task-success.png) 0px 0px no-repeat;}
|
||||
.task-box2{ width:496px; height:373px;background:url(/images/task/task-success02.png) 0px 50px no-repeat;}
|
||||
.task-box2{ width:496px; height:373px;position: relative;}/*background:url(/images/task/task-success02.png) 0px 50px no-repeat;*/
|
||||
a.task-popup-close{ display: block; background:url(/images/task/task-close.png) 0px 0px no-repeat; width: 31px; height: 31px; position:absolute; right:5px; top:100px;}
|
||||
a:hover.task-popup-close{background:url(/images/task/task-close.png) -40px 0px no-repeat; }
|
||||
.task-su-con{ text-align: center; padding-top:285px;}
|
||||
.task-su-p{ font-size: 20px; color:#ee4a1f; font-weight: bold;}
|
||||
a.task-su-btn{display: block;background:url(/images/task/task-su-btn.png) 0px -64px no-repeat; width: 138px; height: 57px;color:#ee4a1f; line-height: 50px; text-align: center; font-size: 16px; margin:20px auto;}
|
||||
a:hover.task-su-btn{background:url(/images/task/task-su-btn.png) 0px 0px no-repeat; }
|
||||
a.task-su-btn{display: block;background:url(/images/task/task-su-btn-jie.png) 0px -64px no-repeat; width: 138px; height: 53px;color:#ee4a1f; line-height: 50px; text-align: center; font-size: 16px; margin:20px auto;}
|
||||
a:hover.task-su-btn{background:url(/images/task/task-su-btn-jie.png) 0px 0px no-repeat;height: 53px;}
|
||||
a.task-su-btn-white{ display: inline-block; padding:8px 25px; border:1px solid #fff; color:#fff; text-align: center; border-radius:5px; font-size:14px;}
|
||||
a:hover.task-su-btn-white{ color: #ee4a1f; border:1px solid #ee4a1f; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue