Skip to content

Instantly share code, notes, and snippets.

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.
<?php
class A
{
public function printItem($string)
{
echo ' Hi : ' . $string;
}
public function printPHP()
{