画像ファイルをドロップすると、img
要素で表示するWYSIWYGエディタもどき。
送信用コードも書いてあるものの、送信先を外部ドメインにすることで、
送信中に必ずエラーが出るようにしている。
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
<!DOCTYPE html> | |
<meta charset=utf-8> | |
<meta name=viewport content="width=device-width,initial-scale=1"> | |
<meta name=format-detection content="telephone=no,email=no,address=no"> | |
<title>The DOM input event run test</title> | |
<h1>The DOM input event run test</h1> | |
<!--<p><label><input type=hidden>: <input type=hidden></label>--> | |
<p><label><input type=text>: <input type=text></label> | |
<p><label><input type=search>: <input type=search></label> |
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
raspivid -? > raspivid-help.txt |
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
/** | |
* 数値を整数・少数表記に変換する。 | |
* 内部的には、指数表記の文字列をパースし、小数表記に変換している。 | |
* | |
* @param {number|string} number 変換したい数値、または数値形式の文字列。 | |
* 数値型であればNaNやInfinityも指定できるが、そのまま文字列化して返される。 | |
* @return {string} 小数表記の数値文字列 | |
* @throws 適切な形式の数値、または文字列が与えられなかった場合に発生する。 | |
* | |
* Note: この関数は、JavaScriptで正確な数値演算を行うために使う**べきではない**。 |
JavaScriptのinput
イベントのイベントオブジェクトに存在するプロパティの状態検査をするためのコード。
- Input Events Level 2 #5.1 Interface InputEvent 2017年9月5日版
- UI Events #4.5.1. Interface InputEvent 2017年11月28日版
押下しているキーの状態を、KeyboardEvent.code
プロパティなどから取得し、表示する。
入力した変数名のオブジェクトのプロトタイプを全て表示する