jekyll-theme-scrawl 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/js/script.js +4 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 765b1c91c43dbbd5df919eada8e9e6b796d183a1
|
4
|
+
data.tar.gz: bd6d27ca9ffd74dc2880dd9f6f6326a7e549d44f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 83003366b4caf1312806f475d18853e0af84563027da6b7b7b086224a9a1229e1b3d4a6156c3f308f636d06a7bb81cb0e5711701d22c33d77e59802c3fcc4b09
|
7
|
+
data.tar.gz: 6051abc9e294057c1ca2785d0818386d58c892d4be233599455afb5a06ff5a1810f767013e41039634d14388147168014adc7280e489bac4c1c77ff72930d9b2
|
data/_includes/js/script.js
CHANGED
@@ -66,6 +66,7 @@ $(document).ready(function () {
|
|
66
66
|
});
|
67
67
|
|
68
68
|
var qs = lstrQuickSwitcher({
|
69
|
+
searchDelay: 100,
|
69
70
|
searchCallback: function(searchText, resultHandler) {
|
70
71
|
var options = [];
|
71
72
|
$('header nav .nav-category').each(function () {
|
@@ -75,14 +76,15 @@ $(document).ready(function () {
|
|
75
76
|
options.push({
|
76
77
|
text: $a.text(),
|
77
78
|
description: category,
|
78
|
-
url: $a.attr('href')
|
79
|
+
url: $a.attr('href'),
|
80
|
+
search: ($a.text() + ' ' + category).toLowerCase()
|
79
81
|
});
|
80
82
|
});
|
81
83
|
})
|
82
84
|
var filteredOptions = options.filter(function(item) {
|
83
85
|
return resultHandler.filters.isMatch(
|
84
86
|
searchText.toLowerCase(),
|
85
|
-
item.
|
87
|
+
item.search
|
86
88
|
);
|
87
89
|
});
|
88
90
|
|