Datasheet: Assured Mainframe Services - Bmc Software
Search Bmc '), noSectionsList = $(''); $(". resultHeading"). Show(). insertBefore(". Search-Wrap"); $. Each(Withsections, Function(Idx, Item) { Ctx...
'),
noSectionsList = $('');
$(".resultHeading").show().insertBefore(".search-wrap");
$.each(withSections, function(idx, item) {
ctx.registerResult($('' +item['title'].replace(' - BMC Software','') + '').appendTo(withSectionsList), item);
});
$.each(noSections, function(idx, item) {
ctx.registerResult($('' +item['title'].replace(' - BMC Software','') + '').appendTo(withSectionsList), item);
});
if (withSections.length > 0) {
withSectionsList.appendTo(ctx.list);
}
if (noSections.length > 0) {
withSectionsList.appendTo(ctx.list);
}
$(".viewResults").show().insertAfter(".search-wrap");
};
$('#st-search-input').swiftype({
engineKey: 'jo6eDbCYeVxBqtSpSeiH',
resultRenderFunction: customResultRenderFunction,
resultLimit: 10,
suggestionListType: 'div class="search-wrap"',
resultListSelector: '.result',
filters: {'page': {'source':'en',"category":"!blogs"}}
});
function queryString(){
var value = localStorage.getItem("searchText");
if (value != null){
if (history.pushState) {
var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?label=all#stq='+value;
window.history.pushState({path:newurl},'',newurl);
}
localStorage.removeItem("searchText");
}
}
});
$(window).load(function() {
$(".autocomplete").insertAfter(".overlay_keywords");
$(".navigation-search a").removeAttr("target");
});
$(".search_click").click(function(){
var searchText = $("#st-search-input").val();
localStorage.setItem("searchText", searchText);
});
$("#viewAll").click(function(){
var searchText = $("#st-search-input").val();
localStorage.setItem("searchText", searchText);
});
}
deferSearch(autoCompleteSearchTopNav)