DOM API互換の Interface で仮想DOMオブジェクトを生成する。
p要素ノードを生成し、id属性値を付与する。
/** | |
* deep-copy-object.js | |
* | |
* Deep copy objects. | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/96e8fc064b917287cadb1dfacc39695c | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ |
/** | |
* es6-object-assign.js | |
* | |
* Object.assign( target, ...sources ) | |
* The assign function is used to copy the values of all of the enumerable own properties from one or more source objects to a target object. When the assign function is called, the following steps are taken. (ECMA-262 6th Edition / ECMAScript 2015) | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/a615978e85f44cb0ef5c7cbdd3cca942 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) |
/** | |
* multidimensional-map.js | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/00326b750d48f5f9c48a042f1b19a1c2 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
function createMultidimensionalMap (mapData) { |
<!DOCTYPE html> | |
<html id="root"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>出題フォームを生成する</title> | |
<body> | |
<h1>出題フォームを生成する</h1> | |
<h2>実装</h2> |
/** | |
* find-corresponding-from-string.js | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/53b4a2cedfcff3c1a1ea40390a7ff3d8 | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
'use strict'; |
/** | |
* array-findwordall.js | |
* | |
* @version 1.0.0 | |
* @author think49 | |
* @url https://gist.github.com/think49/811ac93dae801a4cec2e58a70a9b961a | |
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License) | |
*/ | |
var findWordAll = (function (RegExp, call, test, replace) { |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>calculation-sample.js</title> | |
<script> | |
/** | |
* calculation-sample.js | |
* evaluate calculation formula. | |
* |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8" /> | |
<title>eval-calculation-map-sample.js</title> | |
<script> | |
/** | |
* eval-calculation-map-sample.js | |
* evaluate calculation formula. | |
* |