diff --git a/README.md b/README.md index 243558a..62ae8a7 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ Minify JS, CSS, HTML string or file. # Usage ```php - use marko9827/minify; + use marko9827\minify; $content = file_get_contents("$path/file.example"); // .example = .js/.css/.html // or diff --git a/src/test.php b/src/test.php new file mode 100644 index 0000000..c47451a --- /dev/null +++ b/src/test.php @@ -0,0 +1,17 @@ +

Html Example

..."; // html example + + $minify = new Minify($content); + echo $minify; + + +?> \ No newline at end of file diff --git a/src/test/test.css b/src/test/test.css new file mode 100644 index 0000000..b3ad06c --- /dev/null +++ b/src/test/test.css @@ -0,0 +1,20 @@ +* { + margin: 0px; + padding: 0px; +} + +body { + display: flex; + height: 100%; + width: 100%; +} + +div { + display: block; + margin: auto; + padding: 40px; + font-size: xxx-large; + font-family: arial; + color: #333; + text-align: center; +} \ No newline at end of file diff --git a/src/test/test.html b/src/test/test.html new file mode 100644 index 0000000..02a0ca1 --- /dev/null +++ b/src/test/test.html @@ -0,0 +1,18 @@ + + + + + Test + + + + + + + + + + + \ No newline at end of file diff --git a/src/test/test.js b/src/test/test.js new file mode 100644 index 0000000..5eee38d --- /dev/null +++ b/src/test/test.js @@ -0,0 +1,8 @@ +var clock = document.createElement("div"), + date = new Date(); + +function Clock() { + clock.innerHTML = `- DIGITAL CLOCK -
${date.getHours()}:${date.getMinutes()}:${new Date().getSeconds()}`; +} +document.body.appendChild(clock); +setInterval(Clock, 1000); \ No newline at end of file