-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtrump.html
More file actions
84 lines (76 loc) · 2.69 KB
/
trump.html
File metadata and controls
84 lines (76 loc) · 2.69 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<head>
<title>Battle Donald</title>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script type = "text/javascript" src = "./js/PlayerClass.js"></script>
<script type = "text/javascript" src = "./js/EnemyClass.js"></script>
<script type = "text/javascript" src = "./js/main.js"></script>
<link rel = "stylesheet" type = "text/css" href = "./css/battle.css" />
<link rel = "stylesheet" type = "text/css" href = "./css/game.css" />
<script>
var player = new Player(getCookie("name"), getCookie("atkPow"), getCookie("def"), getCookie("evade"), getCookie("luck"), getCookie("health"));
var enemy = new Enemy("Trump", 4, 6, 6, 3, 7, 1, [["Build Wall", 9, 9], ["Attack of the Hair", 7, 11], ["Money Bath", -11, 10], ["Can't stump the trump", 15, 3]]);
</script>
</head>
<body>
<div class="game" style="background:url(./images/backgrounds/trumpbg.png);background-size: cover;background-repeat: no-repeat;">
<div class="screen">
<div class="opponent">
<div class="stats">
<div class="top">
<div id = "opHp" class="hp-count"></div>
</div>
<span class="name oname">
</span>
<span class="level olevel">
</span>
</div>
<img class="oimage pokemon" src="./images/Trump/sprite.gif" />
</div>
<div class="player">
<div class="stats">
<div class="top">
<div id = "myHp" class="hp-count"></div>
</div>
<span class="name pname">
</span>
<span class="level plevel">
</span>
</div>
<img class="pimage pokemon" src="" />
</div>
</div>
</div>
<div class="box">
<div id = "message" class="message">
What should <span class="pname"></span> do?
</div>
<div class="actions">
<button onclick = "player.attack(0, enemy)">Give Speech</button>
<button onclick = "player.attack(1, enemy)">Shady Tweet</button>
<button onclick = "player.attack(2, enemy)">Riot</button>
<button onclick = "player.attack(3, enemy)">TV Commercial</button>
</div>
</div>
</div>
<script>
$("#opHp").text(Math.round(enemy.hp));
$("#myHp").text(Math.round(player.hp));
</script>
<script>
$("body").on("domChanged", function () {
location.replace("./obama.html");
});
</script>
<script>
$( document ).ready(function() {
$( ".oname" ).text("Trump");
$( ".olevel" ).text(6);
$( ".oimage").attr('src',"./images/Trump/sprite.gif");
$( ".pname" ).text(player.name);
$( ".plevel" ).text(6);
$( ".pimage").attr('src',"./images/Player/guybattle.gif");
});
</script>
</body>
<audio src="sexy.mp3" autoplay="autoplay" />