mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fix waypoint speed issue
This commit is contained in:
@@ -442,7 +442,7 @@ pre {
|
||||
}
|
||||
|
||||
.logo {
|
||||
width: 90%;
|
||||
width: 180px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
<h1>
|
||||
<a href="{{topLink}}">
|
||||
<img src="/logo.png" class="logo" alt="Meteor" />
|
||||
1.0 Documentation
|
||||
<div>1.0 Documentation</div>
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
|
||||
@@ -28,16 +28,19 @@ Meteor.startup(function () {
|
||||
var docsType = Session.get("fullApi") ? "full" : "basic";
|
||||
Tracker.afterFlush(function () {
|
||||
$.waypoints('destroy');
|
||||
$('.main-content [id]').each(function (i, el) {
|
||||
if (! $("#nav [href='#/" + docsType + '/' + el.id + "']").get(0)) {
|
||||
// only add waypoints to things that have sidebar links
|
||||
return;
|
||||
}
|
||||
|
||||
$(el).waypoint(function() {
|
||||
updateUrlFromWaypoint(this);
|
||||
}, { context: $('.main-content') });
|
||||
});
|
||||
setTimeout(function () {
|
||||
$('.main-content [id]').each(function (i, el) {
|
||||
if (! $("#nav [href='#/" + docsType + '/' + el.id + "']").get(0)) {
|
||||
// only add waypoints to things that have sidebar links
|
||||
return;
|
||||
}
|
||||
|
||||
$(el).waypoint(function() {
|
||||
updateUrlFromWaypoint(this);
|
||||
}, { context: $('.main-content') });
|
||||
});
|
||||
}, 0);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user