Skip to content

Commit

Permalink
Hacky support for static css, js files
Browse files Browse the repository at this point in the history
  • Loading branch information
DenverCoder1 committed Dec 25, 2022
1 parent d3355f0 commit 117c0e7
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
2 changes: 2 additions & 0 deletions api/demo/css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php header("Content-type: text/css"); ?>

html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
Expand Down
2 changes: 2 additions & 0 deletions api/demo/css/toggle-dark.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
<?php header("Content-type: text/css"); ?>

a.darkmode {
position: fixed;
top: 2em;
Expand Down
12 changes: 6 additions & 6 deletions api/demo/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,19 +47,19 @@ function gtag() {
</script>
<title>GitHub Readme Streak Stats Demo</title>
<link href="https://css.gg/css?=|moon|sun" rel="stylesheet">
<link rel="stylesheet" href="https://streak-stats.demolab.com/demo/css/style.css">
<link rel="stylesheet" href="https://streak-stats.demolab.com/demo/css/toggle-dark.css">
<link rel="stylesheet" href="./css/style.css">
<link rel="stylesheet" href="./css/toggle-dark.css">

<!-- Favicons -->
<link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="mask-icon" href="icon.svg" color="#fb8c00">

<script type="text/javascript" src="https://streak-stats.demolab.com/demo/js/script.js" defer></script>
<script type="text/javascript" src="https://streak-stats.demolab.com/demo/js/accordion.js" defer></script>
<script type="text/javascript" src="https://streak-stats.demolab.com/demo/js/toggle-dark.js" defer></script>
<script type="text/javascript" src="https://streak-stats.demolab.com/demo/js/jscolor.min.js" defer></script>
<script type="text/javascript" src="./js/script.js" defer></script>
<script type="text/javascript" src="./js/accordion.js" defer></script>
<script type="text/javascript" src="./js/toggle-dark.js" defer></script>
<script type="text/javascript" src="./js/jscolor.min.js" defer></script>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>

Expand Down
2 changes: 1 addition & 1 deletion vercel.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{ "src": "/", "dest": "/api/index.php" }
],
"functions": {
"api/**/*.php": {
"api/**/*": {
"runtime": "[email protected]"
}
}
Expand Down

0 comments on commit 117c0e7

Please sign in to comment.