From 2770c244bdc070faba343d81458cb32f9a0ebb59 Mon Sep 17 00:00:00 2001 From: Cameron Ball Date: Tue, 15 Jan 2019 16:30:14 +0800 Subject: [PATCH] WIP --- src/bootstrap.php | 24 +++++++++++ src/report.html | 103 --------------------------------------------- src/report.php | 122 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 146 insertions(+), 103 deletions(-) create mode 100644 src/bootstrap.php delete mode 100644 src/report.html create mode 100644 src/report.php diff --git a/src/bootstrap.php b/src/bootstrap.php new file mode 100644 index 0000000..3f79d78 --- /dev/null +++ b/src/bootstrap.php @@ -0,0 +1,24 @@ + '', + 'content' => '
' . $content . '
' + ]; + }, $headings, $contents); + + $smushenated = array_reduce($headingAndContent, function($c, $v) { + return [ + 'headings' => $c['headings'] . $v['heading'], + 'contents' => $c['contents'] . $v['content'] + ]; + }, ['headings' => '', 'contents' => '']); + + return '
' . $smushenated['contents'] . '
'; +} diff --git a/src/report.html b/src/report.html deleted file mode 100644 index 4bb1100..0000000 --- a/src/report.html +++ /dev/null @@ -1,103 +0,0 @@ - - - - - The Onion Report - - - - - - - - - - -
-
-
- -
-
- -
-
- - - - - - - - - - - - - -
Tree leaves MOFO!✔cammyboi
Done some dustin hoffmna❌
-
-
- - - - - - - - - - - - - -
DDDD!✔cammyboi
AAAAA❌
-
-
-
-
-
-
- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. -
-
-
-
- -
-
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. -
-
-
-
-
- - - diff --git a/src/report.php b/src/report.php new file mode 100644 index 0000000..04ee18c --- /dev/null +++ b/src/report.php @@ -0,0 +1,122 @@ + + + + + + + The Onion Report + + + + + + + + + +
+ +
+ + + + -- 2.11.0