-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathZoki1.html
47 lines (46 loc) · 1.33 KB
/
Zoki1.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<html>
<head>
<title>Zoki i Bada</title>
<body>
<style>
.i{color:red; background-color:silver;}
</style>
<h1>Zoki</h1>
<h3>gde oni?</h3>
<p class="i">Mi tut</p>
<h5 class="i">- "Zabodaiu"</h5>
<button id="ctrlZ">vernite poshalusta.</button>
<button id="me">Bada</button>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
var crocodilize = function() {
$("h1").text("Bada attack!");
$("<h2>")
.text("Koshmar!")
.appendTo("body");
$("<h2>")
.text("zbeshali!!!")
.appendTo("body");
$("p").hide();
$("h3").text("Zoki, gde vi?").appendTo("body");
$("#me").appendTo("body");
$("#ctrlZ").appendTo("body");
};
var vernut = function() {
$("h2").hide();
$("h1").addClass("i").text("Zoki Nashlis!");
$("h3").addClass("i").text("yra");
$("h5").hide();
$("<h3>").text("zdravstvuite Zoki.").addClass("i").appendTo("body");
$("#me").appendTo("body");
$("#ctrlZ").appendTo("body");
};
$("#me").on("click", function() {
crocodilize();
});
$("#ctrlZ").on("click", function() {
vernut();
});
</script>
</body>
</html>