-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HTML reader supports text and background color from inline CSS, for `…
…td` and `th` element Closes #180
- Loading branch information
Showing
5 changed files
with
206 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
// Turn off error reporting | ||
error_reporting(0); | ||
|
||
use PhpOffice\PhpSpreadsheet\IOFactory; | ||
|
||
require __DIR__ . '/Header.php'; | ||
|
||
$html = __DIR__ . '/templates/46readHtml.html'; | ||
$callStartTime = microtime(true); | ||
|
||
$objReader = IOFactory::createReader('Html'); | ||
$objPHPExcel = $objReader->load($html); | ||
|
||
$helper->logRead('Html', $html, $callStartTime); | ||
|
||
// Save | ||
$helper->write($objPHPExcel, __FILE__); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,130 @@ | ||
|
||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Competency List</title> | ||
</head> | ||
<body> | ||
<table class="w3-table-all notranslate"> | ||
<tr> | ||
<th style="background-color: #0000FF;color:#FFFFFF">Color Name</th> | ||
<th style="background-color: #FF0000">HEX</th> | ||
<th style="background-color: #008000">Color</th> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#000000">Black</td> | ||
<td>#000000</td> | ||
<td style="background-color:#000000"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#0000FF">Blue</td> | ||
<td>#0000FF</td> | ||
<td style="background-color:#0000FF"> </td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td style="color:#008000">Green</td> | ||
<td>#008000</td> | ||
<td style="background-color:#008000"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#00FFFF">Cyan</td> | ||
<td>#00FFFF</td> | ||
<td style="background-color:#00FFFF"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#800080">Purple</td> | ||
<td>#800080</td> | ||
<td style="background-color:#800080"> </td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td style="color:#800080">Grey</td> | ||
<td>#808080</td> | ||
<td style="background-color:#808080"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#87CEEB">SkyBlue</td> | ||
<td>#87CEEB</td> | ||
<td style="background-color:#87CEEB"> </td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td style="color:#A52A2A">Brown</td> | ||
<td>#A52A2A</td> | ||
<td style="background-color:#A52A2A"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#C0C0C0;background-color: #000000">Silver</td> | ||
<td>#C0C0C0</td> | ||
<td style="background-color:#C0C0C0"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#D2691E">Chocolate</td> | ||
<td>#D2691E</td> | ||
<td style="background-color:#D2691E"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#D2B48C;background-color: #000000">Tan</td> | ||
<td>#D2B48C</td> | ||
<td style="background-color:#D2B48C"> </td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td style="color:#EE82EE;background-color: #000000">Violet</td> | ||
<td>#EE82EE</td> | ||
<td style="background-color:#EE82EE"> </td> | ||
</tr> | ||
|
||
|
||
<tr> | ||
<td style="color:#FF0000;background-color: #000000">Red</td> | ||
<td>#FF0000</td> | ||
<td style="background-color:#FF0000"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#FFC0CB;background-color: #000000">Pink</td> | ||
<td>#FFC0CB</td> | ||
<td style="background-color:#FFC0CB"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#FFD700;background-color: #000000">Gold</td> | ||
<td>#FFD700</td> | ||
<td style="background-color:#FFD700"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#FFFF00;background-color: #000000">Yellow</td> | ||
<td>#FFFF00</td> | ||
<td style="background-color:#FFFF00"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#FFFFE0;background-color: #000000">LightYellow</td> | ||
<td>#FFFFE0</td> | ||
<td style="background-color:#FFFFE0"> </td> | ||
</tr> | ||
|
||
<tr> | ||
<td style="color:#FFFFFF;background-color: #000000">White</td> | ||
<td>#FFFFFF</td> | ||
<td style="background-color:#FFFFFF"> </td> | ||
</tr> | ||
</table> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters