Skip to content

Commit

Permalink
添加sj
Browse files Browse the repository at this point in the history
  • Loading branch information
heyunpeng committed Jul 18, 2015
1 parent 1baadd6 commit 17b55f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
19 changes: 3 additions & 16 deletions app/views/flashview/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
</li>
<% end %>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="//cdn.bootcss.com/jquery/1.11.3/jquery.js"></script>
<script language="javascript" type="text/javascript" src="/timer.jquery.js"> </script>
<% content_for :script do %>
<script type="text/javascript">
function thisMovie(movieName) {
if (window.document[movieName]) {
Expand Down Expand Up @@ -52,11 +50,6 @@ function thisMovie(movieName) {
thisMovie('luck').hisNum(2015071602,"2,2,2,4,5,6,7,8,8",1);
thisMovie('luck').hisNum(2015071601,"1,1,1,4,5,6,7,8,8",2);
}
</script>


<script type="text/javascript">


$(document).ready(function(){
$("#refresh").click(function(){
Expand Down Expand Up @@ -99,9 +92,6 @@ function onGotJson(data, status)
//alert(obj.servertime);
}




$('#refresh').timer({
seconds: 3,
duration: '3s',
Expand All @@ -110,13 +100,10 @@ function onGotJson(data, status)
},
repeat:true
});


</script>
<% end %>

</head>


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<body>
<div id="div-id"></div>
Expand Down
3 changes: 2 additions & 1 deletion app/views/layouts/main.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,7 @@ $(document).ready(
second.innerHTML = newSeconds;
}
}
</script>>
</script>
<%= yield :script %>
</body>
</html>

0 comments on commit 17b55f1

Please sign in to comment.