夥伴傳來一個連結,打開後,裡面的多張黑白(灰階)圖片,按一下圖片後,就會慢慢轉成彩色,所以覺得很療癒。
不過,我想了一下,想試著把它的動作還原,整理以下思路:
- 一開始把頁面中的圖片都設成灰階
- 設定每個圖片監聽 click 事件
- 圖片被點擊後,取消灰階
- (opt)取消灰階後,用 fadeIn 讓圖片浮現
試了一下,果然可行,其中的關鍵字:
- css
- filter
- grayscale
以下是我簡單做的範例程式,提供參考囉!
夥伴傳來一個連結,打開後,裡面的多張黑白(灰階)圖片,按一下圖片後,就會慢慢轉成彩色,所以覺得很療癒。
不過,我想了一下,想試著把它的動作還原,整理以下思路:
使用
diskpart /s來執行腳本,以自動執行磁片相關工作,例如建立磁片區或將磁片轉換成動態磁碟。 如果您正使用自動安裝或 Sysprep 工具 (這不支援建立非開機磁碟區的磁碟區) 來部署 Windows,那麼以指令執行這些工作非常有用。若要建立 diskpart 腳本,請建立一個文字檔,其中包含您想要執行的 Diskpart 命令,每行一個命令,而不是空白行。 您可以從開始一行,
rem讓這一行成為批註。 例如,以下腳本會抹除磁片,然後為 Windows 修復環境建立 300 MB 磁碟分割:``` select disk 0 clean convert gpt create partition primary size=300 format quick fs=ntfs label=Windows RE tools assign letter=T ```範例
若要執行 diskpart 腳本,請在命令提示字元中輸入下列命令,其中scriptname是包含腳本的文字檔名稱:
diskpart /s scriptname.txt若要將 diskpart 的腳本輸出重新導向至檔案,請輸入下列命令,其中logfile是 diskpart 寫入其輸出的文字檔名稱:
diskpart /s scriptname.txt > logfile.txt
| Data type | Description | Size (bytes) | Range |
|---|---|---|---|
| Character | Any text | 1 to 254 | Any characters |
| Any text | 1 to 254 | Any characters | |
| Binary data | 1 to 254 | Binary data | |
| Date | Chronological data consisting of month, year, and day | 8 | When using strict date formats, {^0001-01-01}, January 1st, 1 A.D to {^9999-12-31}, December 31st, 9999 A.D. |
| Date Time | Chronological data consisting of month, year, day, and time | 8 | {^0001-01-01}, January 1st, 1 A.D to {^9999-12-31}, December 31st, 9999 A.D., plus 00:00:00 a.m. to 11:59:59 p.m. |
| Numeric | Integers or fractions | 1 to 20 | - .9999999999E+19 to .9999999999E+20 |
| Float | Integers or fractions | 1 to 20 | - .9999999999E+19 to .9999999999E+20 |
| Integer | Integers | 4 | -2,147,483,647 to 2,147,483,647 |
| Double | 1 to 20 | - .9999999999E+19 to .9999999999E+20 | |
| Currency | Monetary amounts | 8 bytes | - 922337203685477.5807 to 922337203685477.5807 |
| Logical | Boolean value of true or false | 1 byte | True (.T.) or False (.F.) |
| Memo | Any text | In the DBF 4 bytes/memo In the FPT allocated in chuncks based on SET BLOCKSIZE | Any characters |
| General | data and host program | In the DBF 4 bytes/memo In the FPT allocated in chuncks based on SET BLOCKSIZE | OLE Documents |
| Blob | Binary data | In the DBF 4 bytes/memo In the FPT allocated in chuncks based on SET BLOCKSIZE | Binary data |
net use {磁碟代號:} \\sshfs\REMOTE_USER@HOST[\PATH]
net use X: \\sshfs\username@myhost.local
net use X: \\sshfs\username@myhost.local\..\..\var\www\html
Copyright © 2010 Learning in free | Blogger Templates by Splashy Templates
Css Designed by Hot Website Templates