.
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
/** 언어 판별 - "쿼리스트링": "내부 언어코드" */ | |
const LANGS = { | |
en: 'en-us', | |
us: 'en-us', | |
ko: 'ko-kr', | |
kr: 'ko-kr', | |
ja: 'ja-jp', | |
jp: 'ja-jp', | |
cn: 'zh-cn', | |
'cn-tw': 'zh-tw', // 대만 클라이언트용 |
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
javascript: (function() { | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'https://cdn.jsdelivr.net/npm/[email protected]'); | |
document.body.appendChild(s); | |
s.onload = () => { | |
var GUI = lil.GUI; | |
var itemname = location.href.match(/items\/([^/]+)/); | |
var data = { | |
'%': 100, | |
'assess': () => { |
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
// Question from | |
// https://twitter.com/RplusTW/status/1498288300934971401 | |
// inspired from @esp10mm | |
// want to get all order => [a, c, b, d] | |
genOrder([ | |
['c', 'b'], | |
['a', 'b', 'd'], | |
['a', 'c'], | |
]); |
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
<script> | |
import logo from './assets/svelte.png'; | |
import data from './data.json'; | |
let kwd = '變異'; | |
let tier = 10; | |
let filled = false; | |
let pastedImgDataUrl; | |
// let imgFilter = 'w'; |
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
/* | |
Orna RPG view distance formula: | |
1. base view distance: 180m | |
2. base factor per item: x1.2 | |
3. base factor per adornment: x1.02 | |
*/ | |
// There are two methods to calculate with factor(1.2): | |
// Method 1: 180 * Math.pow(1.2, N) | |
// Method 2: 1.2 * D(N - 1) |
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
// https://stackoverflow.com/a/11172083 | |
function toJSONLocal (date = new Date()) { | |
var local = new Date(date); | |
local.setMinutes(date.getMinutes() - date.getTimezoneOffset()); | |
return local.toJSON().slice(0, 10); | |
} |
在動畫瘋的頁面可針對影片(不含彈幕)擷圖。
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> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>+ position</title> | |
<script src="main.js" defer></script> | |
<style> | |
body { |
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
@keyframes waiting { | |
0%, 100% { content: '⠇'; } | |
16% { content: '⠋'; } | |
32% { content: '⠙'; } | |
48% { content: '⠸'; } | |
64% { content: '⠴'; } | |
80% { content: '⠦'; } | |
} |
NewerOlder