Skip to content

Commit

Permalink
Merge pull request #24 from uw935/feature/thoughts
Browse files Browse the repository at this point in the history
New thoughts and API
  • Loading branch information
uw935 authored Jul 31, 2024
2 parents b288402 + 9a87510 commit 4084bb9
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 10 deletions.
25 changes: 15 additions & 10 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,6 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta content="yes" name="apple-touch-fullscreen" />
<meta name="format-detection" content="telephone=no">

<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F84TNME1LD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());

gtag("config", "G-F84TNME1LD");
</script>
</head>
<body>
<div style="margin-bottom: 50px; margin-top: 50px;" id="information">
Expand All @@ -46,6 +36,10 @@
</div>
<br>
<br>
<span class="preview" id="thoughts_block">
<img width="25" height="25" src="./static/images/emojicons/thoughts@2x.png" alt="💭">
<span id="thoughts_text"></span>
</span>
<span class="preview">
<img width="25" height="25" src="./static/images/emojicons/cowboy-hat-face@2x.png" alt="🤠">
15 y.o.
Expand Down Expand Up @@ -113,5 +107,16 @@
<br>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.7.1.slim.js" integrity="sha256-UgvvN8vBkgO0luPSUl2s8TIlOSYRoGFAX4jlCIm9Adc=" crossorigin="anonymous"></script>
<script src="./static/script.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-F84TNME1LD"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag("js", new Date());

gtag("config", "G-F84TNME1LD");
</script>
</body>
</html>
4 changes: 4 additions & 0 deletions static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,10 @@ body {
color: #0A66C2;
}

#thoughts_block {
display: none;
}

#youtube {
color: #FF0000;
}
Expand Down
Binary file added static/images/emojicons/thoughts@2x.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions static/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
fetch("https://api.npoint.io/662ddff4e44b520c878f", {}).then(
response => response.json()
).then(
result => {
if (!result)
return;

let lang = document.documentElement.lang.toUpperCase();

if (result[lang]["thoughts"]) {
$("#thoughts_block").show()
$("#thoughts_text").text(result[lang]["thoughts"]["text"]);
}
}
);

0 comments on commit 4084bb9

Please sign in to comment.