This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var query_values = getUrlParam("as_q"); | |
var searchInterface = setup(window, document, "script", "sajari", "https://cdn.sajari.net/js/integrations/website-search-1.3.0.js"); | |
searchInterface("inline", { | |
project: "xxxx", // Set this to your project. | |
collection: sajaridomain, // Set this to your collection. | |
pipeline: "website", // Set the search pipeline. | |
instantPipeline: "autocomplete", // Set the instant pipeline. | |
attachSearchBox: document.getElementById("results-search-box"), // DOM element to render search box. | |
attachSearchResponse: document.getElementById("results-search-response"), // DOM element to render search results. | |
inputPlaceholder: "Enter Your Keywords", // Placeholder text for the search box. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var response_result = document.getElementsByClassName("sj-search-bar-input-common")[1].value; | |
$('#nav-search-sajari .sj-search-bar-input-common').val(response_result); | |
history.pushState({ | |
id: 'search_result_page' | |
}, 'Search Results', '/search-results?as_q=' + response_result); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id='nav-search-sajari' class='nav-search-sajari'> | |
<div data-reactroot='' class='sj-search-holder-outer'> | |
<div class='sj-search-holder-inner'> | |
<span class='sj-search-input-wrapper'> | |
<input type='text' class='sj-search-bar-input-common' placeholder='Enter Your Keywords' value=''> | |
</span> | |
</div> | |
</div> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class A | |
{ | |
public function printItem($string) | |
{ | |
echo ' Hi : ' . $string; | |
} | |
public function printPHP() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aaaa |