Input

An input that encodes the value and does something with it on enter.

<input data-target="_self" is="chemical-input">

The data-action attribute runs a custom function on enter. This example logs the encoded url in the console.

<input data-action="logURL" is="chemical-input">
<script>
    function logURL(url) {
        console.log(url)
    }
</script>

Options

PropertyValueDescription
data-target_self | _blankSelf opens in current tab, blank in new tab.
data-actionstringFunction name that is called on enter.
data-serviceuv | scramjet | meteor | rammerheadThe proxy service to use.
data-auto-httpadd with to value for trueAutomatically add https://.
data-search-enginestringURL with %s for query.