about summary refs log tree commit diff stats
path: root/superstack.php
diff options
context:
space:
mode:
authorCase Duckworth2023-01-14 23:26:40 -0600
committerCase Duckworth2023-01-14 23:26:40 -0600
commit4878a26aea0593f1bd66e23bb240da50a1409528 (patch)
treebd983337ae2e6868a3a7c63c223979327d172500 /superstack.php
parentadd installation instructions (diff)
downloadsuperstack-4878a26aea0593f1bd66e23bb240da50a1409528.tar.gz
superstack-4878a26aea0593f1bd66e23bb240da50a1409528.zip
Whitespace
Diffstat (limited to 'superstack.php')
-rw-r--r--superstack.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/superstack.php b/superstack.php index 84d0a04..8eccd56 100644 --- a/superstack.php +++ b/superstack.php
@@ -12,9 +12,10 @@ $title = $doc->getElementsByTagName('title')[0]->textContent;
12?> 12?>
13 <!DOCTYPE html> 13 <!DOCTYPE html>
14 <html> 14 <html>
15 <head><title><?= $title ?> -- Superstack</title> 15 <head><title><?php echo $title ?> -- Superstack</title>
16 <style> 16 <style>
17 body{max-width:42em;padding:1em;margin:auto;font:18px/1.4 sans-serif;} 17 body{max-width:42em;padding:1em;margin:auto;font:18px/1.4 sans-serif;}
18img{max-width:100%;}
18</style> 19</style>
19 <body> 20 <body>
20 21
@@ -33,7 +34,7 @@ foreach ($content as $el) {
33 $node = $ret->importNode($el, true); 34 $node = $ret->importNode($el, true);
34 $ret->appendChild($node); 35 $ret->appendChild($node);
35 echo $ret->saveHTML(); 36 echo $ret->saveHTML();
36 37
37 // echo $el->nodeValue; 38 // echo $el->nodeValue;
38 // echo '<tr>'; 39 // echo '<tr>';
39 // echo '<td>' . $el->getAttribute('class') . '</td>'; 40 // echo '<td>' . $el->getAttribute('class') . '</td>';
@@ -43,6 +44,6 @@ foreach ($content as $el) {
43} 44}
44 45
45?> 46?>
46 47
47 </body> 48 </body>
48 </html> 49 </html>