2020.1

Table Of Contents
This script sets the text color of the results to a hexadecimal color code.
results.css('color' , '#669900');
This script loads a snippet into a variable. Then it finds/replaces text in the snippet and applies
a css property to the replacing text.
var mysnippet = loadhtml('snippets/snippet vars.html');
mysnippet.find('@var@').text('OL Connect').css('text-
decoration','underline');
results.replaceWith(mysnippet);
css(properties)
Function to set one or multiple CSS properties of one or more HTML elements, which can be:
l The elements that match the selector of a script (see "results" on page909).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page834 and "Setting the scope of a script" on page383).
l The elements returned by a query in the template (see "query()" on page792).
properties
Array; map of property-value pairs to set.
Examples
This script colors the text of the results (the set of HTML elements that match the selector of
the script) red and makes it bold.
results.css({'color' : 'red', 'font-weight' : 'bold'});
empty()
Removes the contents (child elements and inner HTML) from one or more HTML elements,
which can be:
l The elements that match the selector of a script (see "results" on page909).
l One element that matches the selector of a script that runs for "Each matched element"
(see "this" on page834 and "Setting the scope of a script" on page383).
l The elements returned by a query in the template (see "query()" on page792).
Page 854