This file contains hidden or 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
/* | |
import { labelStrings, getCurrentLangCode } from './localization.js'; | |
const langCode = getCurrentLangCode(); | |
*/ | |
/* Global variables */ | |
const closeWindowTime = 1500; | |
let closeTimeout; | |
/* Rendering */ |
This file contains hidden or 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
mkdir -p $(echo "en, ar, it, id, uk, nl, ca, el, hr, sv, es, es-mx, sk, th, cs, da, de, tr, nb, hu, hi, fi, fr, fr-ca, vi, he, pl, pt-br, pt-pt, ms, ro, ru, en-gb, en-au, en-ca, ko-kr, zh-cn, zh-tw, ja" | tr ',' ' ') |
This file contains hidden or 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
javascript:(() => { | |
const url = window.location.href; | |
const asinMatch = url.match(/\/dp\/([A-Z0-9]{10})/); | |
if (asinMatch) { | |
const asin = asinMatch[1]; | |
const baseUrl = url.match(/^(https?:\/\/[^\/]+)/)[1]; | |
const newUrl = baseUrl + '/dp/' + asin; | |
window.location.href = newUrl; | |
} else { | |
alert('ASIN MISSING'); |
This file contains hidden or 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
(()=>{ | |
'use strict' | |
// need: <section id="screen-1"></section> | |
// CSV | |
const csvData = `,CUE,HH,MM,SS,FF,NEXT,Event Description,PF,ADDR,CGHZ,PDS,ANGLE,QTY,CAL,TYPE,DUR,Effect Description,REF,MFG,MAGAZINE,PRICE1,PRICE2,PRICE3,CUSTOM1,CUSTOM2 | |
,0,00,00,00,00,00 05 00,<Start>,00,000,00,,,0,0,,00 00,,,,,,,,, | |
,2,00,00,05,00,00 15 00,,00,200,00,,,15,75,ザラ,00 00,キラキラ,1s,,,,,,, | |
,3,00,00,20,00,00 10 00,,00,320,00,,,4,120,ザラ,00 00,キラキラ,0s,,,,,,, | |
,4,00,00,30,00,00 05 00,,00,100,00,,,1,91,ザラ,00 00,単発,,,,,,,, | |
,5,00,00,35,00,00 05 00,,00,101,00,,,1,91,ザラ,00 00,単発,,,,0 00,0 00,0 00,, |
This file contains hidden or 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
// キャンバスの取得 | |
const canvas = document.getElementById('canvas'); | |
const ctx = canvas.getContext('2d'); | |
// キャンバスを全画面に設定 | |
canvas.width = window.innerWidth; | |
canvas.height = window.innerHeight; | |
// SVGオブジェクトを保持する配列 | |
const svgObjects = []; |
This file contains hidden or 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
// | |
// ContentView.swift | |
// audioRecorder | |
// | |
// Created by Hiroyuki KITAGO and ChatGPT July 20 Version on 2023/07/26. | |
// | |
import SwiftUI | |
import AVFoundation |
This file contains hidden or 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
const swipeNodes = document.querySelectorAll('.swipe') | |
let isTouched = false | |
const basePoint = {'x': 0, 'y': 0, } | |
Array.from(swipeNodes).map((x) => { | |
x.addEventListener('touchstart', (e) => { | |
e.preventDefault() | |
isTouched = true | |
basePoint['x'] = e.touches[0].clientX | |
basePoint['y'] = e.touches[0].clientY | |
}) |
This file contains hidden or 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
const createSlide = (imgId) => { | |
const divE = document.createElement('div') | |
divE.innerHTML = '<div></div>' | |
divE.id = 'slide' | |
screenE.appendChild(divE) | |
const slideE = document.querySelector('#slide > div') | |
const slideUL = document.createElement('ul') | |
for(let i = 0; i < 4; i++) { | |
const liE = document.createElement('li') |
This file contains hidden or 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
const displaySomePropertyOnRightTopCorner = (SomeProperty) => { | |
if (!SomeProperty) { return false } | |
const divE = document.createElement('div') | |
divE.textContent = SomeProperty | |
divE.style.width = '5vw' | |
divE.style.height = '5vh' | |
divE.style.backgroundColor = 'rgb(255 255 255/.5)' | |
divE.style.zIndex = [...document.querySelectorAll`*`].reduce((a,e,i,t,z=+window.getComputedStyle(e).zIndex||0) => z>a ? z:a ,0) + 1 | |
divE.style.position = 'fixed' | |
divE.style.right = '0' |
This file contains hidden or 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
javascript:(()=%3E%7Bd=document,w=window,Qr=(w.getSelection?w.getSelection():d.getSelection?d.getSelection():d.selection.createRange().text);if(!Qr%7C%7CQr==%27%27)%7Bvoid(Qr=prompt(%27DuckDuckGo%20search%20word:%27,%27%27));%7Dif(Qr)w.open(%27https://duckduckgo.com/?q=%27+encodeURI(Qr))%7D)() |
NewerOlder