[sport]手動更換跑道加入拖曳功能

參考網址:https://github.com/vcxiaohan/jquery-plugins/tree/master/dragMove

可以用滑鼠拖曳選手,進行更換跑道的動作了。

發表於 程式設計 | 發表迴響

[js]fancyBox更改loading圖示

fancyBox是個很好用的小工具,如果想要更改loading的圖示,可以將fancyBox\source\fancybox_loading.gif置換掉,
並更改jquery.fancybox.css(v2.1.5)大約96行附近,將width及height改成gif的大小。
 

#fancybox-loading div {
	/* source 44*44  */
	width: 200px;
	height: 200px;
	background: url(fancybox_loading.gif) center center no-repeat;
}


然後再把loading進來的php檔加入sleep(5),讓loading的時間變長,以便觀賞loading動畫。

至於loading的動畫,可以至https://loading.io/製作並下載。

發表於 程式設計, 軟體使用 | 發表迴響

[firefox]瀏覽器預設字型

參考網址:都2021年了,火狐Firefox esr預設中文字型還在用XP時代的新細明體

1. 首先,在Firefox網址列輸入 about:config。然後按下接受風險並繼續之按鈕。

 

2. 在上方搜尋框輸入 font.name-list.*.zh,這時會跑出所有中文字型設定選項。

 

3. 除了monospace(等寬字體)這個不修正外,其他的我們都修正。排第一個的會優先用。原則上簡體字用優先採用Microsoft YaHei,繁體字優先採用Microsoft JhengHei。

 

font.name-list.sans-serif.zh-TW Arial, PMingLiU, MingLiU, MingLiU-ExtB, Microsoft JhengHei

 

調整順序,改成
 

font.name-list.sans-serif.zh-TW Microsoft JhengHei, Arial, PMingLiU, MingLiU, MingLiU-ExtB

 

也就是將Microsoft JhengHei調至最前面就可以了

發表於 軟體使用 | 發表迴響

[WSL]系統檔案放哪兒

C:\Users\your user name\AppData\Local\Packages

如果安裝的是Ubuntu,所以請找到 “CanonicalGroupLimited.Ubuntu”

在LocalState資料夾下有個ext4.vhdx

發表於 Linux系統, Windows系統 | 發表迴響

[sport]window.opener is null 錯誤

110/11/19辦理sport11011a市長盃田徑賽的第三天,突然傳來讀取電子計時檔無法順利匯入的問題
出現的是〞window.opener is null〞的錯誤,研判應是瀏覽器更新後造成的。

參考https://www.w3schools.com/jsref/prop_win_opener.asp的範例檔,同樣的瀏覽器卻可以正常執行
所以就把原本的程式改成用window.open的方式開啟,程式就正常運作了。
 

<?php
$url="ele.php?race_id=$race_id&race_group_id=$race_group_id";
//直接開啟ele會出現window.opener is null 的錯誤,改成用window.open開啟
//echo "<a href=$url target='_blank'>ele</a>";
$open_win_str="na_open_window('win','$url',10,50,760,450,0,0,0,1,0)";
echo "&nbsp;&nbsp;&nbsp;<a href=\"javascript:$open_win_str;\">ele2</a>"; 
?>
<script language="JavaScript1.2">
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
  toolbar_str = toolbar ? 'yes' : 'no';
  menubar_str = menubar ? 'yes' : 'yes';
  statusbar_str = statusbar ? 'yes' : 'no';
  scrollbar_str = scrollbar ? 'yes' : 'no';
  resizable_str = resizable ? 'yes' : 'no';
  window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}

</script>

發表於 程式設計 | 發表迴響

[acer]ACER A715-74G 拆機開箱

參考網址:https://blog.xuite.net/wscc7475/twblog/589045024

和我使用的筆電差不多的型號,我的是A715-74G-52MV,參考看看囉!

發表於 硬體維修 | 發表迴響

[wsa]Windows 11 Dev Channel 安裝Windows Subsystem for Android

參考網址:https://forum.gamer.com.tw/C.php?bsn=60030&snA=588889

 

首先打開 https://store.rg-adguard.net/

選擇Url(Link)

輸入 https://www.microsoft.com/store/productId/9P3395VX91NR

Channel選擇Slow

按下勾勾 等待讀出列表 (如圖)

 

找到 MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_neutral_~_8wekyb3d8bbwe.msixbundle 2021-10-21

右鍵點擊 選擇 另存連結為 (約2.1GB) 下載的時候可能會被系統攔截 選擇保留檔案即可

然後打開Windows Terminal 以管理員身分執行 (路徑根據你的文件所在位置修改)

輸入 Add-AppxPackage -Path C:\Users\Ming\Downloads\MicrosoftCorporationII.WindowsSubsystemForAndroid_1.7.32815.0_neutral___8wekyb3d8bbwe.Msixbundle   

跑完安裝之後叫出開始功能表就能找到Windows Subsystem for Android和Amazon AppStore兩個應用

打開Windows Subsystem for Android勾選開發人員模式之後 後面會顯示可以在127.0.0.1:58526 上連線ADB

 

下載 SDK Platform-Tools for Windows

解壓縮到 C:\Program Files (x86)\platform-tools

在文件路徑上輸入cmd就會自動停在當前目錄開啟命令列

輸入 adb.exe connect 127.0.0.1:58526

然後從apkpure下載好要測試的apk文件

輸入 adb.exe install C:\Users\Ming\Downloads\LINE.apk

出現提示

Performing Streamed Install

Success

就是APP安裝成功了 打開開始功能就可以找到裝好的應用

要移除APP的話對應用圖標右鍵解除安裝即可

發表於 Windows系統 | 發表迴響

[sandbox]windows 沙盒

[win11]參考網址:https://www.youtube.com/watch?v=ysk2fuSrVNo

設定>應用程式>選用功能>相關設定>更多windows功能

 

[win10]
https://www.koc.com.tw/archives/267581

於 Windows 10 搜尋功能輸入 Windows 功能後,會找到 “開啟或關閉 Windows 功能”

發表於 Windows系統 | 發表迴響

[windows11]調校

參考網址:
如何將 Windows 11 控制台 釘選至工作列與開始視窗上

發表於 Windows系統 | 發表迴響

[css]字型特效

參考網址:免費CSS文字動畫網站,酷炫的文字特效,直接複製HTML+CSS+JS使用。

freefrontend免費CSS文字動畫網站

發表於 程式設計 | 發表迴響