Warning: Invalid argument supplied for foreach() in /home/jihswbiz/public_html/t6.gwilt.org/refDox.php on line 212
Docs-colorShowFormat

 

ReLoad

Keys


Functions

arraybrowsercolorcookiedatetimeDBdebugdeviceDSTequiverrorflagsfontformatgeo
holidayhtmlisjsonmathparsePHPprintsearchsortstringtabletexttracetype
VOTDweatherxml

Function  colorShowFormat   Lines 638-655 (17 lines)Added: 2021-02-19 file  utils.php   Last mod: Fri 2021-05-14 21:45:07

function colorShowFormat $col$cc=-)
        {
#-k     color   format
#-      Takes this hex color and builds a <td> to show it and its contrast color.
#-p     $col    - req   - Hex RGB color (Must be in the form #hhhhhh)
#-p     $cc     - opt   - Contrast color to apply. Default -1
#-p                     - -1    use colorContrast
#-p                     - -2    use colorContrastBW
#-d     2/19/21 - Added
        
        
if ($cc == -1$cc colorContrast($col);
        if (
$cc == -2$cc colorContrastBW($col);
        
$sout '<td class="code" style="vertical-align: middle; font-size:2em; text-align:center; height: 5vh; width: 10vw; 
                color:' 
$cc '; background-color:' $col ';"><b>' $col '</b></td>';
        return 
$sout;

        }

?>