Skip to content

Commit

Permalink
ensure JQCloud has loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
RocketMan committed Dec 11, 2024
1 parent 259e648 commit 621160c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
5 changes: 5 additions & 0 deletions css/zoostyle.css
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,11 @@ th.sec {
font-weight: bold;
color: #cc0000;
}
.quiet-notice {
font-size: 20px;
color: #ccc;
}

.input { }
.sel:link { color: #ff0000; }
.sel:visited { color: #ff0000; }
Expand Down
7 changes: 7 additions & 0 deletions js/trending.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ function loadCloud() {
}

$().ready(function() {
if(!$.fn.jQCloud) {
$("#cloud").append($("<p>", {
class: 'quiet-notice'
}).html('The trending cloud is unavailable.'));
return;
}

$.ajax({
dataType: 'json',
type: 'GET',
Expand Down

0 comments on commit 621160c

Please sign in to comment.