Skip to content

Commit 6bbbcb7

Browse files
Bug fixes
* Changed font size and weight * Timeout for quote * Overflow hidden
1 parent 899ff30 commit 6bbbcb7

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
<style>
99

1010
body, html {
11+
overflow: hidden;
1112
height: 100%;
1213
margin: 0;
1314
}

index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,10 @@ function getQuote() {
6464
$.ajax({
6565
url: "https://api.quotable.io/random",
6666
dataType: "json",
67+
timeout: 1000,
6768
success: function (data) {
6869
let template =
69-
'<span style="font-size: 2vh;padding: 8px;;text-shadow: 2px 2px 4px #000000;"><strong style="font-style: italic;font-size: 2vh;text-shadow: 0 0 2px gray;">"QUOTE"</strong><a target="_blank" rel="noopenner" style="color:white;text-decoration: none;">- AUTHOR</a><span></span></span>';
70+
'<span style="font-size: 3vh;padding: 8px;;text-shadow: 2px 2px 4px #000000; font-weight: normal"><strong style="font-style: italic;font-size: 3vh; font-weight: normal ;text-shadow: 0 0 2px gray;">"QUOTE"</strong><a target="_blank" rel="noopenner" style="color:white;text-decoration: none;">- AUTHOR</a><span></span></span>';
7071
const quote = `${data.content}`;
7172
const author = `${data.author}`;
7273
template = template.replace("QUOTE", quote);

0 commit comments

Comments
 (0)