[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文字動畫網站

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

[torrent]代抓torrent

參考網站:[筆記]一些BT代抓網站&離線下載
https://www.furk.net/  用facebook直接登入即可,如果用google登入會需要邀請碼
免費使用者限制為單檔2GB,一次能代抓2~3個種子,同IP流量限制為每日1GB或每週5GB,
下載速度不一定,快可到數Mbps…..慢則可到數Kbps.

https://www.multcloud.com/ 也可以代抓,直接存到mega,如果抓太久仍無回應,會自動終止代抓。

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

[css]How To Create a Cool Blog Post Date Icon with CSS

參考網址:https://line25.com/tutorials/how-to-create-a-cool-blog-post-date-icon-with-css

 

https://css-tricks.com/date-badges-and-comment-bubbles-for-your-blog/

 

https://www.c-sharpcorner.com/UploadFile/370e35/creating-reusable-and-scalable-calendar-icon-in-html5-and-cs/

 

https://wpmudev.com/blog/how-to-use-date-icons-to-spice-up-your-wordpress-theme-make-it-unique/

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

[mobirise]註腳

V5.4.1
原本只要動到註腳的超連結「https://mobirise.site/m」網頁就會亂掉。
找到網頁原始碼最後

<!-- <script src="/{{ $theme.web_name }}/class/assets/theme/js/script.js"></script>  -->

<!-- 
<section style="background-color: #fff; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; color:#aaa; font-size:12px; padding: 0; align-items: center; display: flex;" id="footer-mobirise"><a href="https://mobirise.site/m" style="flex: 1 1; height: 3rem; padding-left: 1rem;"></a>
</section>
 -->

 

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

[bootstrap]範本

參考網址:https://bootstrapmade.com/free-website-templates/

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