var Readline = {};
Readline.i = 1;
Readline.parse = function(text) {
var iarr = [];
iarr = text.split(" ");
return iarr;
};
window.onload = function() {
var cont = document.body;
var str = Readline.parse(cont.innerHTML);
cont.innerHTML = cont.innerHTML + '<div class="Readline"><div id="str">'+ str[0] + '</div><br>\n\
<div id="controls"></div>\n\
</div>';
var pic = new Image();
pic.src = "img/play.png";
var newPic = new Image();
newPic.src = "img/pause.png";
pic.id = "play";
var line = document.getElementById("str");
var control = document.getElementById("controls");
control.appendChild(pic);
var button = document.getElementById("play");
button.onclick = function() {
if (pic.src === button.src) {
pic.src = "img/pause.png";
Readline.i = 0;
line.innerHTML = str[Readline.i];
} else {
pic.src = "img/play.png";
}
};
};
ReferenceError: новокузнецк is not defined reader.js:48
ReferenceError: команды is not defined reader.js:48
ReferenceError: не is not defined reader.js:48