gitbook-plugin-bugtagszh
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -81,3 +81,2 @@ require([ 'gitbook', 'jquery'],function( gitbook, $ ){ | ||
} | ||
$searchInput.on("keyup",function( e ){ | ||
@@ -126,167 +125,2 @@ var q = $(this).val() | ||
var fakeRes = { | ||
list:[ | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
}, | ||
{ | ||
atime:'2016-07-07 10:07:07', | ||
ctime:'2016-07-07 10:07:07', | ||
mtime:'2016-07-07 10:07:07', | ||
content:'DK↵↵通过 CocoaPods 集成手动集成下载 SDK评论', | ||
title:'iOS 集成 SDK', | ||
url:'/start/integrate/ios/index.html', | ||
highlight:{ | ||
content:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>通过 CocoaPods' | ||
], | ||
title:[ | ||
'iOS 集成 <em class="btg_highlight">SDK</em>' | ||
] | ||
} | ||
} | ||
], | ||
page:1, | ||
page_num:2, | ||
per_page:10 | ||
} | ||
@@ -305,6 +139,20 @@ | ||
function getParaFromUrl( name ){ | ||
var url = window.location.href; | ||
name = name.replace(/[\[\]]/g, '\\$&'); | ||
var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)', 'i'), | ||
results = regex.exec(url); | ||
if (!results) return null; | ||
if (!results[2]) return ''; | ||
return decodeURIComponent(results[2].replace(/\+/g, ' ')); | ||
} | ||
function possibleURLSearch(){ | ||
var q = getParaFromUrl( 'q' ) | ||
if( q ){ | ||
if( !$searchInput ){ | ||
$searchInput = $('#book-search-input input'); | ||
} | ||
$searchInput.val( q ) | ||
launchSearch( q ) | ||
}else{ | ||
@@ -311,0 +159,0 @@ // do nothing |
{ | ||
"name": "gitbook-plugin-bugtagszh", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"engines": { | ||
@@ -5,0 +5,0 @@ "gitbook": ">=3.0.0" |
Sorry, the diff of this file is not supported yet
22941
400