Skip to content

Commit

Permalink
update for realm/jazzy#352
Browse files Browse the repository at this point in the history
  • Loading branch information
jpsim committed Nov 16, 2015
1 parent 7d52a9d commit 09233ad
Show file tree
Hide file tree
Showing 12 changed files with 120 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion document_alamofire/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion document_alamofire1.2/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion document_moya_podspec/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion document_realm_objc/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion document_realm_swift/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});
11 changes: 10 additions & 1 deletion misc_jazzy_features/after/docs/js/jazzy.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(document).ready(function() {
});

// On token click, toggle its discussion and animate token.marginLeft
$(".token").click(function() {
$(".token").click(function(event) {
if (window.jazzy.docset) {
return;
}
Expand All @@ -28,4 +28,13 @@ $(".token").click(function() {
link.animate({'margin-left':original ? "0px" : tokenOffset}, animationDuration);
$content = link.parent().parent().next();
$content.slideToggle(animationDuration);

// Keeps the document from jumping to the hash.
var href = $(this).attr('href');
if (history.pushState) {
history.pushState({}, '', href);
} else {
location.hash = href;
}
event.preventDefault();
});

0 comments on commit 09233ad

Please sign in to comment.