File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 88 < style >
99
1010 body , html {
11+ overflow : hidden;
1112 height : 100% ;
1213 margin : 0 ;
1314 }
Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments