-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update test and add new view with_jquery_animation
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
|
||
<html> | ||
<head> | ||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/> | ||
<title>with_jquery_animation</title> | ||
<style> | ||
body { | ||
height: 2000px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body id="with_animation"> | ||
<a href="#" id='scroll'>scroll top 500</a> | ||
|
||
<script src="/jquery.js" type="text/javascript" charset="utf-8"></script> | ||
<script type='text/javascript'> | ||
$('#scroll').click(function(e){ | ||
e.preventDefault(); | ||
$('html, body').animate({ scrollTop: 500 }, 'slow'); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters