Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
RandomPerson3465 committed Aug 12, 2024
1 parent 8e03e3c commit 09c5044
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
6 changes: 3 additions & 3 deletions socialblade/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ <h3>Disclaimer</h3>
<meta name="viewport" content="width=device-width, initial-scale=0.4" />
<div class="page-title">
<div class="containment">
<h2>Real Time YouTube Subscriber Count</h2>
<h2 id="realtime-title">Real Time YouTube Subscriber Count</h2>
<h4>This page updates every second.</h4>
<i class="fa fa-cogs" id="openSettings" onclick="openmenu()"></i>
<i class="fa fa-users"></i>
Expand All @@ -192,12 +192,12 @@ <h4>This page updates every second.</h4>
<a href="/" target="_blank"><span>Subscribe</span><span id="platform-plus-sign">+</span></a>
</div>
<span><h3 id="userName" class="realtime-username-youtube">User</h3><sup><img src="youtube-icon.png"
alt="YouTube Icon" class="platform-icon"></sup></span>
alt="Icon" class="platform-icon"></sup></span>

</div>
<p id="rawCount" style="display: none;">0</p>
<h5 id="counter" class="odometer">0</h5>
<p class="realtime-watermark"><span style="color: #a6270e;">YouTube Live Subscriber Count</span> - Powered
<p class="realtime-watermark"><span style="color: #a6270e;" id="live-count-watermark">YouTube Live Subscriber Count</span> - Powered
by SocialBlade.com</p>
</div>
<div class="page-realtime-chart">
Expand Down
13 changes: 12 additions & 1 deletion socialblade/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class LivecountseditInterface {
}
this.setTitle = function () {
document.getElementById("userName").innerHTML = document.getElementById("options.counter.title").value
document.title = document.getElementById("options.counter.title").value + "'s Real-Time Subscriber Count - Social Blade YouTube Stats | YouTube Statistics"
}
this.setValue = function () {
document.getElementById("counter").innerHTML = parseFloat(document.getElementById("options.counter.value").value)
Expand Down Expand Up @@ -133,23 +132,35 @@ document.getElementById("options-icon").addEventListener("change", () => {
case "youtube":
document.querySelector(".platform-icon").style.display = "inline";
document.querySelector(".platform-icon").src = "youtube-icon.png";
document.getElementById("SearchInput").placeholder = "Enter YouTube Username";
document.getElementById("realtime-title").innerText = "Real Time YouTube Subscriber Count";
document.getElementById("live-count-watermark").innerText = "YouTube Live Subscriber Count";
document.getElementById("platform-plus-sign").style.backgroundColor = "#e62117";
document.getElementById("userimg").style.border = "1px solid #e62117";
break;
case "twitch":
document.querySelector(".platform-icon").style.display = "inline";
document.querySelector(".platform-icon").src = "twitch-icon.png";
document.getElementById("SearchInput").placeholder = "Enter Twitch Username";
document.getElementById("realtime-title").innerText = "Real Time Twitch Follower Count";
document.getElementById("live-count-watermark").innerText = "Twitch Live Follower Count";
document.getElementById("platform-plus-sign").style.backgroundColor = "#7a31b3";
document.getElementById("userimg").style.border = "1px solid #7a31b3";
break;
case "twitter":
document.querySelector(".platform-icon").style.display = "inline";
document.querySelector(".platform-icon").src = "twitter-icon.png";
document.getElementById("SearchInput").placeholder = "Enter Twitter Username";
document.getElementById("realtime-title").innerText = "Real Time Twitter Follower Count";
document.getElementById("live-count-watermark").innerText = "Twitter Live Follower Count";
document.getElementById("platform-plus-sign").style.backgroundColor = "#317db3";
document.getElementById("userimg").style.border = "1px solid #317db3";
break;
default:
document.querySelector(".platform-icon").style.display = "none";
document.getElementById("SearchInput").placeholder = "Enter Username";
document.getElementById("realtime-title").innerText = "Real Time Count";
document.getElementById("live-count-watermark").innerText = "Live Count";
document.getElementById("platform-plus-sign").style.backgroundColor = "#333333";
document.getElementById("userimg").style.border = "1px solid #333333";
}
Expand Down

0 comments on commit 09c5044

Please sign in to comment.