lib/jazzy/assets/js/jazzy.js in jazzy-0.1.4 vs lib/jazzy/assets/js/jazzy.js in jazzy-0.1.5
- old
+ new
@@ -1,14 +1,24 @@
+window.jazzy = {'docset': false}
+if (typeof window.dash != 'undefined') {
+ document.documentElement.className += ' dash'
+ window.jazzy.docset = true
+}
+if (navigator.userAgent.match(/xcode/i)) {
+ document.documentElement.className += ' xcode'
+ window.jazzy.docset = true
+}
+
// On doc load, toggle the URL hash discussion if present
$(document).ready(function() {
if (!window.jazzy.docset) {
var linkToHash = $('a[href="' + window.location.hash +'"]');
linkToHash.trigger("click");
}
});
-// On x-instance-method click, toggle its discussion and animate token.marginLeft
-$(".x-instance-method").click(function() {
+// On token click, toggle its discussion and animate token.marginLeft
+$(".token").click(function() {
if (window.jazzy.docset) {
return;
}
var link = $(this);
var animationDuration = 300;