<input type="color">

Reference :
Web Dev Simplified (2021), https://www.youtube.com/watch?v=iX_QyjdctsQ&t=240s
My Notebook
<input type="color">
Reference :
Web Dev Simplified (2021), https://www.youtube.com/watch?v=iX_QyjdctsQ&t=240s
<form action="">
<fieldset>
<legend>Title</legend>
<div><label for="">Name</label></div>
<div>
<input list="name-list" type="text">
<datalist id="name-list">
<option value="Andrew"></option>
<option value="May"></option>
<option value="Peter"></option>
<option value="John"></option>
</datalist>
</div>
</fieldset>
</form>
Reference :
Web Dev Simplified (2021), https://www.youtube.com/watch?v=iX_QyjdctsQ&t=240s
We got some data form AJAX and the valuable is “topBGColor”.
<input data-jscolor=""> add ref="topBGColor" <input data-jscolor="" ref="topBGColor">
let topBGColor = "#ff0000"; this.$refs.topBGColor.style = 'background-image: linear-gradient(to right, '+topBGColor+' 0%, '+topBGColor+' 30px, rgba(0, 0, 0, 0) 31px, rgba(0, 0, 0, 0) 100%) !important; background-position: left top, left top !important; background-size: auto, 32px 16px !important; background-repeat: repeat-y, repeat-y !important; background-origin: padding-box, padding-box !important; padding-left: 40px !important;';
PHP_EOL = cross-platform-compatible newline character
PHP_EOL
is ostensibly used to find the newline character in a cross-platform-compatible way, so it handles DOS/Unix issues.
Note that PHP_EOL represents the endline character for the current system. For instance, it will not find a Windows endline when executed on a unix-like system.
Example (Save the $DataArray to $filename): file_put_contents($filename, implode(PHP_EOL, $DataArray), LOCK_EX);
Reference: Adam Bellaire (2008), https://stackoverflow.com/questions/128560/when-do-i-use-the-php-constant-php-eol
// PHP 7.4 and later
print_r(array_filter($linksArray, fn($value) => !is_null($value) && $value !== ''));
// PHP 5.3 and later
print_r(array_filter($linksArray, function($value) { return !is_null($value) && $value !== ''; }));
// PHP < 5.3
print_r(array_filter($linksArray, create_function('$value', 'return $value !== "";')));
Reference: BoltClock (2020), https://stackoverflow.com/questions/3654295/remove-empty-array-elements
https://assets.nexperia.com/documents/data-sheet/74AHC1G4215.pdf
Bester for 32.768KHz get 1Hz
Redirect to Another web site after 5 second:
<meta http-equiv="refresh" content="5; URL=https://andrew.innonext.hk/" />
Redirect to index.htm immediately:
<meta http-equiv="refresh" content="0; URL=/index.htm" />
Change your configuration to this (add a slash):
RewriteCond %{HTTP_HOST} ^example.com$ [NC]
RewriteRule (.*) http://www.example.com/$1 [R=301,L]
Or the solution outlined below will work for any domain:
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
If you need to support http and https and preserve the protocol choice try the following:
RewriteRule ^login\$ https://www.%{HTTP_HOST}/login [R=301,L]
Source :
Randall Hunt(2021), https://stackoverflow.com/questions/12050590/redirect-non-www-to-www-in-htaccess/36807965
寅月雨水後不需要調侯