-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. 完成个人中心页--我的历程 2. 数据库结构变动很多,回去先清下数据库
- Loading branch information
DiKang Li
committed
Nov 6, 2017
1 parent
7bd8d56
commit 20ec9c6
Showing
15 changed files
with
442 additions
and
113 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
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
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
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
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
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
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
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,27 @@ | ||
$(document).ready(function () { | ||
var $timeline_block = $('.content section') | ||
//hide timeline blocks which are outside the viewport | ||
$timeline_block.each(function () { | ||
if ($(this).offset().top > $(window).scrollTop() + $(window).height() * 0.75) { | ||
$(this).addClass('is-hidden') | ||
} | ||
}) | ||
//on scolling, show/animate timeline blocks when enter the viewport | ||
$(window).on('scroll', function () { | ||
$timeline_block.each(function () { | ||
if ($(this).offset().top <= $(window).scrollTop() + $(window).height() * 0.75 && $(this).hasClass('is-hidden')) { | ||
$(this).removeClass('is-hidden').addClass('bounce-in') | ||
} | ||
}) | ||
}) | ||
|
||
$('.content article > h3').on('click', function () { | ||
if ($(this).hasClass('hide-more')) { | ||
$(this).removeClass('hide-more') | ||
$(this).parent().find('section').fadeIn() | ||
} else { | ||
$(this).addClass('hide-more') | ||
$(this).parent().find('section').fadeOut() | ||
} | ||
}) | ||
}) |
Oops, something went wrong.