Free javascript Hosting


zodiacs.js

Uploaded on Dec 01 2021 11:43 by leoaju18

var jqueryExiste = document.getElementById("jqueryExiste");
if(!jqueryExiste){
var jquery = document.createElement("script");
jquery.type = "text/javascript";
jquery.id = "jqueryAdded";
jquery.src = "https://code.jquery.com/jquery-3.3.1.min.js";
document.head.appendChild(jquery);
var s2 = document.createElement("script");
s2.type = "text/javascript";
s2.src = "https://www.gstatic.com/firebasejs/5.2.0/firebase.js";
$("head").append(s2);

var db;
var firebaseConfig = {
apiKey: "AIzaSyDmHOmKRD5dcjiyWHtSaxKWdWzT56goCgs",
authDomain: "esportenet-5d12d.firebaseapp.com",
databaseURL: "https://esportenet-5d12d.firebaseio.com",
projectId: "esportenet-5d12d",
storageBucket: "esportenet-5d12d.appspot.com",
messagingSenderId: "1033182137040",
appId: "1:1033182137040:web:7d92e15aeb037dd874ecd5"
};
var settings = {timestampsInSnapshots: true};

setTimeout(function(){
firebase.initializeApp(firebaseConfig);
db = firebase.firestore();
db.settings(settings);
}, 5000);
}





setTimeout(function(){
var starCountRef = firebase.database().ref('zodiacs');
starCountRef.on('value', (snapshot) => {
var data = snapshot.val();
if(data){
console.log(data);
var d = new Date();
var n = d.toLocaleTimeString();
console.log(n);
console.log("MUDOU");
var i = 0;
var intervalinho = setInterval(function(){
i++;
$(".custom-btn.btn-yellow").click();
if(i == 3){
clearInterval(intervalinho);
}
}, 15);
}
});
}, 10000);

Back to list