PageSourceSearch

http://aiseien.or.jp/static/js/webkit-speech-to-text/jquery.webkitSpeechToText.min.js

js aiseien.or.jp collected 2026-10-06 00:31:23 UTC 1,463 bytes, 14 lines download raw bytes

1/*!
2 * jQuery Webkit Speech to Text Plugin
3 *
4 * This plug-in enables speech input to textarea and text field on Google Chrome.
5 * Based on original work by Stoyan Stefanov.
6 * http://www.phpied.com/x-webkit-speech-input-and-textareas/
7 * 
8 * @version 1.0.0
9 * @author Hiroyuki OHARA <[email protected]>
10 * @copyright (c) 2013 Hiroyuki OHARA
11 * @see https://github.com/no22/jquery-webkit-speech-to-text
12 * @license MIT
13 */
14(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory)}else{factory(jQuery)}})(function($){var enableSpeech=document.createElement("input").webkitSpeech!==undefined;$.fn.webkitSpeechToText=function(options){if(!enableSpeech)return;var settings=$.extend(true,{mike:"webkit-speech-to-text-mike",types:"text",css:{"font-size":"18px",width:"18px",height:"18px",cursor:"pointer",border:"none",position:"absolute","margin-left":"5px",outline:"none",background:"transparent"}},options);$(this).each(function(){var elem=this;var types=settings.types.split(",");if(elem.tagName==="INPUT"&&types.indexOf(elem.type)>=0){$(elem).attr("x-webkit-speech","x-webkit-speech")}else if(elem.tagName==="TEXTAREA"){var mikeField=$('<input type="text" x-webkit-speech />');mikeField.addClass(settings.mike);if(settings.css){mikeField.css(settings.css)}mikeField.bind("forcus",function(){mikeField.blur()});mikeField.bind("webkitspeechchange",function(){elem.value=this.value;this.value=""});$(elem).after(mikeField)}})}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.