Youtube Simulator Alpha Pre-release 1.0
In this youtube simulator you get to experience q
by nukeboy212
HTML
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<div class="col-xs-6">
<h1>
YouTuber
</h1>
<button id="RV">
Record Video
</button>
<button id="vlog">
Vlog
</button>
<button id="game">
Game
</button>
<button id="review">
Review Of Product
</button>
<button id="gtp">
GTP V
</button>
<button id="deepio">
Deep.io
</button>
<button id="digcraft">
Digcraft
</button>
<button id="cimCity">
Cim City
</button>
<button id="rublox">
Rublox
</button>
<button id="friends">
Ask Friends To Watch! (Head Start!)
</button>
<button id ="phoneProductReview">
Phone Product $700
</button>
</div>
<div class="col-xs-6">
<h2 id="subs">
Subscribers
</h2>
<h3 id="views">
Views
</h3>
<h3 id="videos">
Videos
</h3>
<h3 id="money">
Money:
</h3>
</div>
CSS
body {
background-color: Red;
}
h1 {
color: white;
font-family: arial, sans-serif;
}
h2 {
float: right;
}
h3 {
float: right;
clear: right;
color: white;
}
button {
display: block;
width: 80%;
margin-top: 10px;
}
#money {
margin-top: 450px;
}
JavaScript
var views = 0;
var subs = 0;
var moneyz = 50;
var videos = 0;
var food = 10;
var time = 0;
var gtpsubs = 0;
var gtpviews = Math.floor(Math.random() * 3);
var deepsubs = 0;
var deepviews = Math.floor(Math.random() + 0.5);
var deepViewsCurrent = 2;
var deepNumViews = 0;
var cheat = false;
var gtpViewsCurrent = 3;
var gtpNumViews = 0;
var viewStreak = 0;
var fifteenNum = 15;
var hundredNum = 100;
var subStreak = 0;
$("#money").text("Money: " + "$" + moneyz);
$("#views").text("Views: " + views)
$("#subs").text("Subscribers: " + subs)
$("#videos").text("Videos: " + videos)
$("#vlog").hide();
$("#game").hide();
$("#digcraft").hide();
$("#gtp").hide();
$("#deepio").hide();
$("#rublox").hide();
$("#cimCity").hide();
$("#review").hide();
$("#phoneProductReview").hide();
setInterval(function() {
randomgtpthings();
if (views == fifteenNum && views > viewStreak) {
viewStreak += 15;
fifteenNum += 15;
gtpViewsCurrent += 2;
gtpNumViews += 1;
deepViewsCurrent += 1;
deepNumViews += 1;
console.log("This never happens")
}
if (views == hundredNum && views > subStreak) {
subStreak += 100;
hundredNum += 100;
gtpsubs += 1;
deepsubs += 1;
}
$("#subs").text("Subscribers: " + subs)
gtpviews = Math.floor(Math.random() * gtpViewsCurrent) + gtpNumViews;
deepviews = Math.floor(Math.random() * deepViewsCurrent) + deepNumViews;
}, 50)
function randomgtpthings() {
if (views > 100 || views == 100) {
gtpsubs = Math.floor(Math.random() + 0.5);
}
if (subs > 99) {
moneypv = Math.floor(Math.random() + 0.5);
}
}
var answer = prompt("Who are you going to call yourself in this magical adventure?");
$("h1").text("YouTuber: " + answer)
function show() {
$("#RV").show();
$("#friends").show();
$("#digcraft").hide();
$("#gtp").hide();
$("#deepio").hide();
$("#rublox").hide();
$("#cimCity").hide();
$("#review").hide();
$("#phoneProductReview").hide();
}
$("#RV").click(function() {
...