Created
October 10, 2016 03:05
-
-
Save brianyang/cf2512c087318ccac436f3bb1d7513a5 to your computer and use it in GitHub Desktop.
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
function d() { | |
if (j.length >= 1) { | |
var b = j.offset().top + j.height() | |
, c = g.scrollTop() + g.height() | |
, d = 100 - (b - c) / (b - g.height()) * 100; | |
a(".progress-bar").css("width", d + "%"), | |
d > 100 ? a(".progress-container").addClass("ready") : a(".progress-container").removeClass("ready") | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment