Shadow DOM

Custom element, Shadow DOM で作るジッパー

SVG埋め込みで持ち運ぶファイルはJavaScript1個のみ。カプセル化で記述すっきり。

JavaScriptコードは2種類用意しました。
SVGをcreateElementで構築する方式と、
SVGをテンプレートリテラルで記述する方式です。

機能をカプセル化していますのでHTML内に意識して書くのは以下の2行のみ。

<ce-zipper></ce-zipper>

<script defer src="./js/ce_zipper.js"></script>

現時点のコードは以下の通り:
/**
 * ジッパー
 *
 * <ce-zipper></ce-zipper>
 *
 * @author ao-system, Inc.
 * @date 2024-06-15
 */
(() => {
	'use strict';
	class Zipper {
		#svgHandleLeft = `
			<path d="M86.56,6.8l-14.03-.4c-5.57-3-9.09-4.22-12.24-4.92-5.53-1.23-6.77-.96-8.76.62-4.12,3.26-6.33,10.8-6.32,13.54v.76c0,2.74,2.19,10.65,6.32,13.54,2.08,1.45,3.24,1.85,8.76.62,3.15-.7,6.67-1.92,12.24-4.62l14.03-.4V6.8Z"/>
			<path d="M59.54,6.01L3.6,2.83S.44,4.9.44,16.26s3.15,12.91,3.15,12.91l55.65-2.61h0l5.29.57V5.5s-4.99.51-4.99.51ZM15.68,16.13v6.98l-9.78,1.65s-2.59-.61-2.29-8.63c-.3-8.02,2.29-8.63,2.29-8.63l9.78,1.65v6.98ZM61.59,23.22h-16.38v-13.97h16.38s0,13.97,0,13.97Z"/>
			<rect x="48.3" y="11.36" width="25.63" height="9.27"/>
		`;
		#svgHandleRight = `
			<path d="M41.96,6.8l-14.03-.4c-5.57-3-9.09-4.22-12.24-4.92-5.53-1.23-6.77-.96-8.76.62C2.81,5.36.6,12.9.61,15.64v.76c0,2.74,2.19,10.65,6.32,13.54,2.08,1.45,3.24,1.85,8.76.62,3.15-.7,6.67-1.92,12.24-4.62l14.03-.4V6.8Z"/>
			<path d="M13.3,5.5v21.63s5.29-.57,5.29-.57h0l55.65,2.61s3.15-1.55,3.15-12.91-3.16-13.43-3.16-13.43l-55.94,3.18s-4.99-.51-4.99-.51ZM62.15,9.15l9.78-1.65s2.59.61,2.29,8.63c.3,8.02-2.29,8.63-2.29,8.63l-9.78-1.65v-6.98s0-6.98,0-6.98ZM16.24,9.25h16.38v13.97h-16.38s0-13.97,0-13.97Z"/>
			<rect x="3.7" y="11.36" width="25.63" height="9.27"/>
		`;
		#svgButtLeft = `
			<rect x="12" y="1" width="7" height="8"/>
			<rect x="12" y="12" width="7" height="8"/>
		`;
		#svgButtRight = `
			<rect x="8" y="0" width="10" height="20"/>
			<rect x="0" y="10" width="7" height="6"/>
			<rect x="0" y="3" width="7" height="6"/>
		`;
		#gradation1 = `
			<linearGradient id="gradation1" x1="0" y1="0" x2="0" y2="100%" gradientUnits="userSpaceOnUse">
				<stop offset="0" stop-color="#cb0"/>
				<stop offset="0.2" stop-color="#dd7"/>
				<stop offset="0.4" stop-color="#dd4"/>
				<stop offset="0.5" stop-color="#cb2"/>
				<stop offset="0.6" stop-color="#db3"/>
				<stop offset="0.8" stop-color="#dc5"/>
				<stop offset="0.9" stop-color="#cb5"/>
				<stop offset="1" stop-color="#ddb"/>
			</linearGradient>
		`;
		#nicolascage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMBQTFRFIhUQrndm5beryZWG27Gmuoh3lGZVc1ZLxot4uJKI+/r6Ri8lp25b05qJaEY318/Ni1pKlnNm6sCz3Kud1aOTx4uEuIFszaOWy5uSu66u6+bo152TroV226SUmIyN1qud4trY1aCO1aWZqn9swnh23aWbzJ+NgU09vJB9lnx91aqVmIJ43KuWn1tWuaGd8e3u37Kh4K6h0o6Gyb691JGT5uHjp5yd6eLcfTs0sWRjzoqPVD849fL0f3h3hoOC////y4A5DgAALj9JREFUeNrsXQtb2li0NYYkBEIgJS8kyCMQIgKiKKMG5f//q7vWPgGxrTP1MZ3e+91I0VrbZrH2Y+199jmc7P6PXCf/D+SnV622veJ1N2g2O50Nr+dzPJ2fnz89P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gBQwV/IokYtk2HcRtWWJcy9ruTwICncL6iFVJDBeRm+9HCoX6HY+gAx80LRqWK0ejWZf/Dh2fALKzLRHznPSJEKTk7iPCKXfi90WaQGEll5fEwXPBvOZu98cB2ZqKk0z2iUR9dQagOgxQDgSMVClFPkw5n8ba1HZ/IJBd05WyRGYC1CK6UNIfRSqfR5kcG4TA23IL1sd/7XZ/JJDdxpXQlSO8yqgJpzYUIKLgEjbjVeqpYyY7td2fCqSGWGqiSjI4Cii0QPxmavYks0s6PMFheWe73R8LZDdwVXM+kSrclmkNOZMxi2yVzgVH8e/T8Ukgu467P2c2ldML2XazZY0x57wzErmclXl5tdv92UBY9Vrluf4cI7M54Zgz5LJ4EhxFYa53uz8eyK52LudHyzmtXEJMVIdEqVyeJns52O3+NwABKU/0FHm/BU+dO0sq5BxG87yz3e3+twABlHMJTBwmtyx5IojN+mz3O6+TL/lXrtad8yfv6Ym9KvPyfLm+2v3u62T3f+T6fyB/2vU/AgwAruuHZHYE8DwAAAAASUVORK5CYII=';
		#style = `
			:host > main {
				user-select: none;
				padding: 20px;
				background-color: #0f3083;
				max-height: 32px;
				display: grid;
				> svg {
					grid-area: 1/1/2/2;
					display: block;
					cursor: pointer;
					width: 460px;
					height: 32px;
					viewBox: '0 0 460 32';
					path,rect {
						stroke: #ff7;
						stroke-width: 0.5px;
						fill: url(#gradation1);
					}
					rect.inner {
						stroke: none;
						fill: #36a;
						width: 300px;
						height: 6px;
						transform: translate(80px,13px);
					}
					rect.toothA {
						y: 8px;
						width: 3px;
						height: 10px;
					}
					rect.toothB {
						y: 14px;
						width: 3px;
						height: 10px;
					}
					g.stopperLeft {
						transform: translate(61px,6px);
					}
					g.stopperRight {
						transform: translate(381px,7px);
					}
				}
				> img {
					grid-area: 1/1/2/2;
					display: block;
					transform: translate(120px,-184px);
					clip-path: xywh(0 200px 200px 0px);
				}
			}
		`;
		#sliderLeft;
		#sliderRight;
		#teeth = [];
		#img;
		#openFlag = false;
		#busy = false;
		constructor() {
		}
		render(elm) {
			//style
			const style = document.createElement('style');
			style.innerHTML = this.#style;
			//main
			const main = document.createElement('main');
			const svg = document.createElementNS('http://www.w3.org/2000/svg','svg');
			svg.innerHTML = this.#gradation1;
			svg.addEventListener('click',() => {this.#toggle();});
			const inner = document.createElementNS('http://www.w3.org/2000/svg','rect');
			inner.setAttribute('class','inner');
			svg.appendChild(inner);
			for (let i = 0; i < 50; i++) {
				const tooth1 = document.createElementNS('http://www.w3.org/2000/svg','rect');
				tooth1.setAttribute('class','toothA');
				tooth1.setAttribute('x',i * 6 + 80);
				const tooth2 = document.createElementNS('http://www.w3.org/2000/svg','rect');
				tooth2.setAttribute('class','toothB');
				tooth2.setAttribute('x',i * 6 + 3 + 80);
				this.#teeth.push({'tooth1':tooth1,'tooth2':tooth2});
				svg.appendChild(tooth1);
				svg.appendChild(tooth2);
			}
			const stopperLeft = document.createElementNS('http://www.w3.org/2000/svg','g');
			stopperLeft.innerHTML = this.#svgButtLeft;
			stopperLeft.setAttribute('class','stopperLeft');
			svg.appendChild(stopperLeft);
			const stopperRight = document.createElementNS('http://www.w3.org/2000/svg','g');
			stopperRight.innerHTML = this.#svgButtRight;
			stopperRight.setAttribute('class','stopperRight');
			svg.appendChild(stopperRight);
			this.#sliderLeft = document.createElementNS('http://www.w3.org/2000/svg','g');
			this.#sliderLeft.innerHTML = this.#svgHandleLeft;
			svg.appendChild(this.#sliderLeft);
			this.#sliderRight = document.createElementNS('http://www.w3.org/2000/svg','g');
			this.#sliderRight.style.opacity = 0;
			this.#sliderRight.innerHTML = this.#svgHandleRight;
			svg.appendChild(this.#sliderRight);
			main.appendChild(svg);
			this.#img = document.createElement('img');
			this.#img.src = this.#nicolascage;
			main.appendChild(this.#img);
			//attachShadow
			const shadowRoot = elm.attachShadow({mode:'closed'});
			shadowRoot.appendChild(style);
			shadowRoot.appendChild(main);
		}
		#toggle() {
			if (this.#busy) {
				return;
			}
			this.#busy = true;
			if (this.#openFlag == false) {
				for (let i = 0; i < this.#teeth.length; i++) {
					this.#teeth[i].tooth1.animate([
						{transform: 'translateY(0px)'},
						{transform: 'translateY(-4px)'},
					],{delay: i * 20, duration: 200, fill: 'forwards'});
					this.#teeth[i].tooth2.animate([
						{transform: 'translateY(0px)'},
						{transform: 'translateY(4px)'},
					],{delay: i * 20, duration: 200, fill: 'forwards'});
				}
				this.#sliderLeft.animate([
					{opacity: 1},
					{opacity: 0},
				],{delay: 0, duration: 0, fill: 'forwards'});
				this.#sliderRight.animate([
					{opacity: 0},
					{opacity: 1},
				],{delay: 0, duration: 0, fill: 'forwards'});
				this.#sliderRight.animate([
					{transform: 'translate(50px,0px)'},
					{transform: 'translate(375px,0px)'},
				],{delay: 0, duration: 1100, fill: 'forwards'}).onfinish = () => {
					this.#img.animate([
						{transform: 'translate(120px,-184px)',clipPath: 'xywh(0 200px 200px 0px)'},
						{transform: 'translate(120px,16px)',clipPath: 'xywh(0 0 200px 200px)'},
					],{delay: 0, duration: 1000, fill: 'forwards'}).onfinish = () => {
						this.#openFlag = true;
						this.#busy = false;
					}
				}
			} else {
				this.#img.animate([
					{transform: 'translate(120px,16px)',clipPath: 'xywh(0 0 200px 200px)'},
					{transform: 'translate(120px,-184px)',clipPath: 'xywh(0 200px 200px 0px)'},
				],{delay: 0, duration: 1000, fill: 'forwards'}).onfinish = () => {
					for (let i = 0; i < this.#teeth.length; i++) {
						this.#teeth[i].tooth1.animate([
							{transform: 'translateY(-4px)'},
							{transform: 'translateY(0px)'},
						],{delay: (49 - i) * 20, duration: 200, fill: 'forwards'});
						this.#teeth[i].tooth2.animate([
							{transform: 'translateY(4px)'},
							{transform: 'translateY(0px)'},
						],{delay: (49 - i) * 20, duration: 200, fill: 'forwards'});
					}
					this.#sliderRight.animate([
						{opacity: 1},
						{opacity: 0},
					],{delay: 0, duration: 0, fill: 'forwards'});
					this.#sliderLeft.animate([
						{opacity: 0},
						{opacity: 1},
					],{delay: 0, duration: 0, fill: 'forwards'});
					this.#sliderLeft.animate([
						{transform: 'translate(335px,0px)'},
						{transform: 'translate(0px,0px)'},
					],{delay: 0, duration: 1100, fill: 'forwards'}).onfinish = () => {
						this.#openFlag = false;
						this.#busy = false;
					}
				}
			}
		}
	}
	(() => {
		const zipper = new Zipper();
		customElements.define('ce-zipper1',
			class extends HTMLElement {
				constructor() {
					super();
					zipper.render(this);
				}
			}
		);
	})();
})();
現時点のコードは以下の通り:
/**
 * ジッパー
 * テンプレートリテラルで組み立てた例
 *
 * <ce-zipper></ce-zipper>
 *
 * @author ao-system, Inc.
 * @date 2024-06-15
 */
(() => {
	'use strict';
	class Zipper {
		#nicolascage = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAMAAACahl6sAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAMBQTFRFIhUQrndm5beryZWG27Gmuoh3lGZVc1ZLxot4uJKI+/r6Ri8lp25b05qJaEY318/Ni1pKlnNm6sCz3Kud1aOTx4uEuIFszaOWy5uSu66u6+bo152TroV226SUmIyN1qud4trY1aCO1aWZqn9swnh23aWbzJ+NgU09vJB9lnx91aqVmIJ43KuWn1tWuaGd8e3u37Kh4K6h0o6Gyb691JGT5uHjp5yd6eLcfTs0sWRjzoqPVD849fL0f3h3hoOC////y4A5DgAALj9JREFUeNrsXQtb2li0NYYkBEIgJS8kyCMQIgKiKKMG5f//q7vWPgGxrTP1MZ3e+91I0VrbZrH2Y+199jmc7P6PXCf/D+SnV622veJ1N2g2O50Nr+dzPJ2fnz89PVlPz5vOurled5b4dLat7XZb/OBgcHd1ta3V/iggwHB212yuce9P50/W81NRr5/gsb/q9aKwCl5Pz8AyWHc6607z7u7s7OpPAlLbbq8GzcGd4Di6/R8v/Fndej7nBSjrdROkfIqTk6/FURtcDc4Gnc25dbjfv0NjWRZ422zWsC+w8hkkJ19rVzWYPLzCOvnFq34CQ3PPOxdPG1jY2Scc5eQr+TiDTT0XRf3kXZcFYgqEgqflYPBxKCdfycfg/Om9KF5CQOE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I4Cii0QPxmavYks0s6PMFheWe73R8LZDdwVXM+kSrclmkNOZMxi2yVzgVH8e/T8Ukgu467P2c2ldML2XazZY0x57wzErmclXl5tdv92UBY9Vrluf4cI7M54Zgz5LJ4EhxFYa53uz8eyK52LudHyzmtXEJMVIdEqVyeJns52O3+NwABKU/0FHm/BU+dO0sq5BxG87yz3e3+twABlHMJTBwmtyx5IojN+mz3O6+TL/lXrtad8yfv6Ym9KvPyfLm+2v3u62T3f+T6fyB/2vU/AgwAruuHZHYE8DwAAAAASUVORK5CYII=';
		#sliderLeft;
		#sliderRight;
		#teeth = [];
		#img;
		#openFlag = false;
		#busy = false;
		constructor() {
		}
		render(elm) {
			//template literal
			const html = `
				<style>
				:host > main {
					user-select: none;
					padding: 20px;
					background-color: #5f0f83;
					max-height: 32px;
					display: grid;
					> svg {
						grid-area: 1/1/2/2;
						display: block;
						cursor: pointer;
						path,rect {
							stroke: #ff7;
							stroke-width: 0.5px;
							fill: url(#gradation1);
						}
						rect.inner {
							stroke: none;
							fill: #85b;
						}
						g#sliderLeft {
						}
						g#sliderRight {
							opacity: 0;
						}
					}
					> img {
						grid-area: 1/1/2/2;
						display: block;
						transform: translate(120px,-184px);
						clip-path: xywh(0 200px 200px 0px);
					}
				}
				</style>
				<main>
					<svg xmlns="http://www.w3.org/2000/svg" width="460" height="32" viewbox="0 0 460 32">
						<linearGradient id="gradation1" x1="0" y1="0" x2="0" y2="100%" gradientUnits="userSpaceOnUse">
							<stop offset="0" stop-color="#cb0"/>
							<stop offset="0.2" stop-color="#dd7"/>
							<stop offset="0.4" stop-color="#dd4"/>
							<stop offset="0.5" stop-color="#cb2"/>
							<stop offset="0.6" stop-color="#db3"/>
							<stop offset="0.8" stop-color="#dc5"/>
							<stop offset="0.9" stop-color="#cb5"/>
							<stop offset="1" stop-color="#ddb"/>
						</linearGradient>
						<g transform="translate(80,13)">
							<rect class="inner" width="300" height="6"/>
						</g>
						${
							Array.from({length:50}, (_, i) => `
								<rect id="toothA${i}" x="${i * 6 + 80}" y="8" width="3" height="10"/>
								<rect id="toothB${i}" x="${i * 6 + 3 + 80}" y="14" width="3" height="10"/>
							`).join('')
						}
						<g transform="translate(61,6)">
							<rect x="12" y="1" width="7" height="8"/>
							<rect x="12" y="12" width="7" height="8"/>
						</g>
						<g transform="translate(381,7)">
							<rect x="8" y="0" width="10" height="20"/>
							<rect x="0" y="10" width="7" height="6"/>
							<rect x="0" y="3" width="7" height="6"/>
						</g>
						<g id="sliderLeft">
							<path d="M86.56,6.8l-14.03-.4c-5.57-3-9.09-4.22-12.24-4.92-5.53-1.23-6.77-.96-8.76.62-4.12,3.26-6.33,10.8-6.32,13.54v.76c0,2.74,2.19,10.65,6.32,13.54,2.08,1.45,3.24,1.85,8.76.62,3.15-.7,6.67-1.92,12.24-4.62l14.03-.4V6.8Z"/>
							<path d="M59.54,6.01L3.6,2.83S.44,4.9.44,16.26s3.15,12.91,3.15,12.91l55.65-2.61h0l5.29.57V5.5s-4.99.51-4.99.51ZM15.68,16.13v6.98l-9.78,1.65s-2.59-.61-2.29-8.63c-.3-8.02,2.29-8.63,2.29-8.63l9.78,1.65v6.98ZM61.59,23.22h-16.38v-13.97h16.38s0,13.97,0,13.97Z"/>
							<rect x="48.3" y="11.36" width="25.63" height="9.27"/>
						</g>
						<g id="sliderRight">
							<path d="M41.96,6.8l-14.03-.4c-5.57-3-9.09-4.22-12.24-4.92-5.53-1.23-6.77-.96-8.76.62C2.81,5.36.6,12.9.61,15.64v.76c0,2.74,2.19,10.65,6.32,13.54,2.08,1.45,3.24,1.85,8.76.62,3.15-.7,6.67-1.92,12.24-4.62l14.03-.4V6.8Z"/>
							<path d="M13.3,5.5v21.63s5.29-.57,5.29-.57h0l55.65,2.61s3.15-1.55,3.15-12.91-3.16-13.43-3.16-13.43l-55.94,3.18s-4.99-.51-4.99-.51ZM62.15,9.15l9.78-1.65s2.59.61,2.29,8.63c.3,8.02-2.29,8.63-2.29,8.63l-9.78-1.65v-6.98s0-6.98,0-6.98ZM16.24,9.25h16.38v13.97h-16.38s0-13.97,0-13.97Z"/>
							<rect x="3.7" y="11.36" width="25.63" height="9.27"/>
						</g>
					</svg>
					<img src="${this.#nicolascage}">
				</main>
			`;
			//attachShadow
			const shadowRoot = elm.attachShadow({mode:'closed'});
			const tmpElement = document.createElement('div');
			tmpElement.innerHTML = html;
			while (tmpElement.firstChild) {
				shadowRoot.appendChild(tmpElement.firstChild);
			}
			//initial
			this.#sliderLeft = shadowRoot.querySelector('#sliderLeft');
			this.#sliderRight = shadowRoot.querySelector('#sliderRight');
			for (let i = 0; i < 50; i++) {
				this.#teeth.push({'tooth1':shadowRoot.querySelector(`#toothA${i}`),'tooth2':shadowRoot.querySelector(`#toothB${i}`)});
			}
			this.#img = shadowRoot.querySelector('img');
			shadowRoot.querySelector('svg').addEventListener('click',() => {this.#toggle();});
		}
		#toggle() {
			if (this.#busy) {
				return;
			}
			this.#busy = true;
			if (this.#openFlag == false) {
				for (let i = 0; i < this.#teeth.length; i++) {
					this.#teeth[i].tooth1.animate([
						{transform: 'translateY(0px)'},
						{transform: 'translateY(-4px)'},
					],{delay: i * 20, duration: 200, fill: 'forwards'});
					this.#teeth[i].tooth2.animate([
						{transform: 'translateY(0px)'},
						{transform: 'translateY(4px)'},
					],{delay: i * 20, duration: 200, fill: 'forwards'});
				}
				this.#sliderLeft.animate([
					{opacity: 1},
					{opacity: 0},
				],{delay: 0, duration: 0, fill: 'forwards'});
				this.#sliderRight.animate([
					{opacity: 0},
					{opacity: 1},
				],{delay: 0, duration: 0, fill: 'forwards'});
				this.#sliderRight.animate([
					{transform: 'translate(50px,0px)'},
					{transform: 'translate(375px,0px)'},
				],{delay: 0, duration: 1100, fill: 'forwards'}).onfinish = () => {
					this.#img.animate([
						{transform: 'translate(120px,-184px)',clipPath: 'xywh(0 200px 200px 0px)'},
						{transform: 'translate(120px,16px)',clipPath: 'xywh(0 0 200px 200px)'},
					],{delay: 0, duration: 1000, fill: 'forwards'}).onfinish = () => {
						this.#openFlag = true;
						this.#busy = false;
					}
				}
			} else {
				this.#img.animate([
					{transform: 'translate(120px,16px)',clipPath: 'xywh(0 0 200px 200px)'},
					{transform: 'translate(120px,-184px)',clipPath: 'xywh(0 200px 200px 0px)'},
				],{delay: 0, duration: 1000, fill: 'forwards'}).onfinish = () => {
					for (let i = 0; i < this.#teeth.length; i++) {
						this.#teeth[i].tooth1.animate([
							{transform: 'translateY(-4px)'},
							{transform: 'translateY(0px)'},
						],{delay: (49 - i) * 20, duration: 200, fill: 'forwards'});
						this.#teeth[i].tooth2.animate([
							{transform: 'translateY(4px)'},
							{transform: 'translateY(0px)'},
						],{delay: (49 - i) * 20, duration: 200, fill: 'forwards'});
					}
					this.#sliderRight.animate([
						{opacity: 1},
						{opacity: 0},
					],{delay: 0, duration: 0, fill: 'forwards'});
					this.#sliderLeft.animate([
						{opacity: 0},
						{opacity: 1},
					],{delay: 0, duration: 0, fill: 'forwards'});
					this.#sliderLeft.animate([
						{transform: 'translate(335px,0px)'},
						{transform: 'translate(0px,0px)'},
					],{delay: 0, duration: 1100, fill: 'forwards'}).onfinish = () => {
						this.#openFlag = false;
						this.#busy = false;
					}
				}
			}
		}
	}
	(() => {
		const zipper = new Zipper();
		customElements.define('ce-zipper2',
			class extends HTMLElement {
				constructor() {
					super();
					zipper.render(this);
				}
			}
		);
	})();
})();

/* JSX の書き方 */
const name = 'taro';
const element = (
	<div>
		<h1>Hello, {name}!</h1>
		<p>This is a JSX example.</p>
	</div>
);

/* JavaScriptネイティブ。テンプレートリテラルの書き方 */
const name = 'taro';
const element = `
	<div>
		<h1>Hello, ${name}!</h1>
		<p>This is a template literal example.</p>
	</div>
`;
		
テンプレートリテラルはPHPなどのヒアドキュメントに似ていますが、より柔軟性が有ります。
JavaScriptには「タグ付きテンプレートリテラル」というテンプレートリテラルにタグ付けをしてカスタム処理を行う記法も有ります。
2024年6月初版
このサイトについてのお問い合わせはエーオーシステムまでお願いいたします。
ご使用上の過失の有無を問わず、本プログラムの運用において発生した損害に対するいかなる請求があったとしても、その責任を負うものではありません。