beautify html

This commit is contained in:
Ilya Kantor 2015-03-09 19:02:13 +03:00
parent ecf1478e7e
commit 5342f628da
354 changed files with 13965 additions and 9486 deletions

View file

@ -1,48 +1,51 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
function Machine(power) {
this._enabled = false;
this.enable = function() {
this._enabled = true;
};
<script>
function Machine(power) {
this._enabled = false;
this.disable = function() {
this._enabled = false;
};
}
this.enable = function() {
this._enabled = true;
};
function CoffeeMachine(power) {
Machine.apply(this, arguments);
var waterAmount = 0;
this.setWaterAmount = function(amount) {
waterAmount = amount;
};
function onReady() {
alert('Кофе готов!');
}
this.run = function() {
if (!this._enabled) {
throw new Error("Кофеварка выключена");
this.disable = function() {
this._enabled = false;
};
}
setTimeout(onReady, 1000);
};
}
function CoffeeMachine(power) {
Machine.apply(this, arguments);
var coffeeMachine = new CoffeeMachine(10000);
coffeeMachine.run();
</script>
var waterAmount = 0;
this.setWaterAmount = function(amount) {
waterAmount = amount;
};
function onReady() {
alert('Кофе готов!');
}
this.run = function() {
if (!this._enabled) {
throw new Error("Кофеварка выключена");
}
setTimeout(onReady, 1000);
};
}
var coffeeMachine = new CoffeeMachine(10000);
coffeeMachine.run();
</script>
</body>
</html>

View file

@ -1,42 +1,45 @@
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<script>
function Machine(power) {
this._enabled = false;
this.enable = function() {
this._enabled = true;
};
<script>
function Machine(power) {
this._enabled = false;
this.disable = function() {
this._enabled = false;
};
}
this.enable = function() {
this._enabled = true;
};
function CoffeeMachine(power) {
Machine.apply(this, arguments);
this.disable = function() {
this._enabled = false;
};
}
var waterAmount = 0;
function CoffeeMachine(power) {
Machine.apply(this, arguments);
this.setWaterAmount = function(amount) {
waterAmount = amount;
};
var waterAmount = 0;
function onReady() {
alert('Кофе готово!');
}
this.setWaterAmount = function(amount) {
waterAmount = amount;
};
this.run = function() {
setTimeout(onReady, 1000);
};
function onReady() {
alert('Кофе готово!');
}
}
</script>
this.run = function() {
setTimeout(onReady, 1000);
};
}
</script>
</body>
</html>