Úvod > Fórum > Internet > JavaScript

JavaScript

20.08.2013 14:05
příspěvků:2

Dobrý deň, hrám sa s týmto kódom už pár dní a vždy mi to vyhodí nejakú chybu. Vedel by mi ho niekto opraviť?

(function() {
var handleNewSong
settings.prototype.currentwoots = 0;
settings.prototype.currentmehs = 0;
settings.prototype.currentcurates = 0;
settings.prototype.totalVotingData = {
woots: 0}
mehs: 0;
curates: 0;
}

)settings.prototype.newSong = (function); {

this.totalVotingData.woots += this.currentwoots;

this.totalVotingData.mehs += this.currentmehs;

this.totalVotingData.curates += this.currentcurates;

this.setInternalWaitlist();
this.currentsong = API.getMedia();
if (this.currentsong !== null) {
return this.currentsong;
} else {
return false;
}
}
handleNewSong = function(obj) {
var songId;
data.intervalMessages();
if (data.currentsong === null) {
data.newSong();
} else {

API.sendChat("/em: Práve hralo: " + data.currentsong.title + " od " + data.currentsong.author + ". Woots: " + data.currentwoots + "-- Mehs: " + data.currentmehs + "-- Pridania: " + data.currentcurates + ".");

data.newSong();

document.getElementById("button-vote-positive").click();

}
if (data.forceSkip) {
songId = obj.media.id;
return setTimeout(function() {
var cMedia;
cMedia = API.getMedia();
if (cMedia.id === songId) {
return API.moderateForceSkip();
}
}, obj.media.duration * 1000);
}
}

20.08.2013 14:48
moderátorověřen
příspěvků:537

Pokud nejaku tak je to asi k nicemu, ze. Chtelo by to vice popsat problem.

správce PCforum.cz, provozovatel http://rychlost.cz , http://www.netstranky.cz - vše co píšu je bez záruk :) to jak si s tím naložíte je zcela na vás
20.08.2013 17:00
příspěvků:2

Ďakujem, je to vyriešené.

© 2007-2024 PCforum.cz, všechna práva vyhrazena, veškeré informace zde uvedené jsou bez záruk, podmínky užití, kontaktní informace