-
Notifications
You must be signed in to change notification settings - Fork 0
/
generator.php
78 lines (62 loc) · 2.24 KB
/
generator.php
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- ICO -->
<link rel="shortcut icon" type="image/x-icon" href="./img/favicon.ico">
<!-- CSS LINK -->
<link rel="stylesheet" href="css/main.css">
<!-- JAVASCRIPT LINKS -->
<script src="js/character_traits.js"></script>
<script src="js/sample_names.js"></script>
<link rel="stylesheet" href="css/style.css" type="text/css">
<title>Document</title>
</head>
<body>
<nav class="header">
<div class="header-content-site">
<a href="index.html"><img class="header-icon" src="img/icon_dark.png"></a>
<div class="header-name centered">Character Generator</div>
</div>
<div class="header-content-menu">
<img class="header-menu" src="img/white_menu.png" onclick="openNav()">
</div>
</nav>
<div id="mySidenav" class="sidenav">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<a href="#">About</a>
<a href="#">Services</a>
<a href="#">Clients</a>
<a href="#">Contact</a>
</div>
<div class="main" id = "generated">
<div class="main-lore justified">
<p>
<?php
include 'php/connect.php';
include 'php/character.php';
$conn = CreateConnection();
//GetTraits($conn, 1);
$character = new Character($conn);
$character->Generate();
?>
<div class="first">
<div>
<p>Generate the Ability Scores</p>
<button onclick="alert('not working for now')">Generate With Determed</button>
<button onclick="alert('not working for now')">Generate With 4d6</button>
</div>
</div>
<div class="first">
<div>
<p>Generate the traits</p>
<button onclick="TRAITS.Generate()">Generate</button>
</div>
</div>
</p>
</div>
</div>
</body>
</html>