搜索找到 4045 个匹配
- 2025年 11月 14日 13:22
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
- 2025年 11月 14日 00:18
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
好像bug修好了,當前代碼:
- 2025年 11月 13日 21:47
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
做三角七分之一動畫:
M 0,-181.867 L 70,-60.623 L 140,60.621 L 210,181.867 L 70,181.867 L -70,181.867 L -210,181.867 L -140,60.623 L -70,-60.621 Z
第一組交點:
-60, 129.904
90, 77.942
-30, -25.98
第二組交點:
0,181.867
105, 0
-105, 0
M 0,-181.867 L 70,-60.623 L 140,60.621 L 210,181.867 L 70,181.867 L -70,181.867 L -210,181.867 L -140,60.623 L -70,-60.621 Z
第一組交點:
-60, 129.904
90, 77.942
-30, -25.98
第二組交點:
0,181.867
105, 0
-105, 0
- 2025年 11月 13日 20:43
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
然後又修複了轉回ejtile刪動畫刪不乾淨的問題。
當前代碼:
當前代碼:
- 2025年 11月 13日 20:39
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
修好一個bug,set 不再被加入兩次。
當前代碼:
當前代碼:
- 2025年 11月 13日 19:41
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
修bug:
- 2025年 11月 13日 19:19
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
兩直線交點計算器(進階版)
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兩直線交點計算器(進階版)</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 30px auto;
padding: 20px ...
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兩直線交點計算器(進階版)</title>
<style>
body {
font-family: Arial, sans-serif;
max-width: 800px;
margin: 30px auto;
padding: 20px ...
- 2025年 11月 13日 19:09
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
做一個js+html頁面,計算兩條直線的交點坐標。每條直線由所經過的兩個點的坐標定義,或者由y=ax+b的a和b定義。
結果默認保留三位小數,可自定義保留n位小數。
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兩直線交點計算器</title>
<style>
body {
font-family: Arial, sans-serif ...
結果默認保留三位小數,可自定義保留n位小數。
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>兩直線交點計算器</title>
<style>
body {
font-family: Arial, sans-serif ...
- 2025年 11月 13日 18:53
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
出現bug:當repeat/freeze切換時,set會壞掉。
- 2025年 11月 13日 16:56
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
大功告成?
當前代碼:
當前代碼:
- 2025年 11月 13日 16:26
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
/**
* Handles the click event on an .etaniItem image.
* Manages item selection and reorders corresponding SVG <use> elements.
* Assumes 'etani' is a defined element variable in the accessible scope.
* * @param {Event} event - The click event (this function is intended to be used as an event ...
* Handles the click event on an .etaniItem image.
* Manages item selection and reorders corresponding SVG <use> elements.
* Assumes 'etani' is a defined element variable in the accessible scope.
* * @param {Event} event - The click event (this function is intended to be used as an event ...
- 2025年 11月 13日 16:24
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
寫一個js函式etaniItemImageClick():
寫一個js函式etaniItemImageClick():
設
etaniCol = this.closest('.etaniCol');
thisItem = this.closest('.etaniItem');
selectedItem = etaniCol.querySelector('.etaniItem.selected');
thisItemType = thisItem.dataset.type;
thisItemId = thisItem.dataset.id;
selectedItemId ...
寫一個js函式etaniItemImageClick():
設
etaniCol = this.closest('.etaniCol');
thisItem = this.closest('.etaniItem');
selectedItem = etaniCol.querySelector('.etaniItem.selected');
thisItemType = thisItem.dataset.type;
thisItemId = thisItem.dataset.id;
selectedItemId ...
- 2025年 11月 13日 15:54
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
// ... (緊接在 'const cloneUsesMap = ...' 之後)
// Create a Set of original tile IDs for efficient lookup during deletion check
const originalTileIds = new Set(Array.from(originalTiles).map(g => g.id));
// ... (您原有的 'originalTiles.forEach(...){ ... }' 迴圈保持不變)
originalTiles.forEach(originalTileG ...
// Create a Set of original tile IDs for efficient lookup during deletion check
const originalTileIds = new Set(Array.from(originalTiles).map(g => g.id));
// ... (您原有的 'originalTiles.forEach(...){ ... }' 迴圈保持不變)
originalTiles.forEach(originalTileG ...
- 2025年 11月 13日 15:44
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
在下面的代碼中,當原來的defs中的g[id]比clone多時,會在clone加上,但是如果少時則不會。現在希望加上,當少時就刪除,包括刪除defs中的g[id]以及.etdrop中的use。
只需要提供更改之處,用繁體中文回答。所有注釋都要是英文。
// Handle click event for the update button
function etaniUpdateTilesClick() {
const originalSvg = document.getElementById('etmain');
if (!originalSvg) return;
const ...
只需要提供更改之處,用繁體中文回答。所有注釋都要是英文。
// Handle click event for the update button
function etaniUpdateTilesClick() {
const originalSvg = document.getElementById('etmain');
if (!originalSvg) return;
const ...
- 2025年 11月 13日 09:33
- 版面: Javascript
- 主题: 正在做etani,ejtile的動畫套件
- 回复总数: 250
- 阅读次数: 11363
Re: 正在做etani,ejtile的動畫套件
chmod +x make_archive.sh # 給執行權限(只需一次)
./make_archive.sh
#!/bin/bash
# 設定要執行的目錄(請替換成你的實際路徑)
TARGET_DIR="/path/to/your/directory"
# 產生檔名中的時間戳:YYYYMMDDHHMM(24小時制)
TIMESTAMP=$(date '+%Y%m%d%H%M')
# 完整的 7z 壓縮檔名
ARCHIVE_NAME="ejtileanimate${TIMESTAMP}"
# 切換到目標目錄並執行 7z 壓縮
cd "$TARGET_DIR" && 7z a ...
./make_archive.sh
#!/bin/bash
# 設定要執行的目錄(請替換成你的實際路徑)
TARGET_DIR="/path/to/your/directory"
# 產生檔名中的時間戳:YYYYMMDDHHMM(24小時制)
TIMESTAMP=$(date '+%Y%m%d%H%M')
# 完整的 7z 壓縮檔名
ARCHIVE_NAME="ejtileanimate${TIMESTAMP}"
# 切換到目標目錄並執行 7z 壓縮
cd "$TARGET_DIR" && 7z a ...