-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
111 lines (108 loc) · 5.81 KB
/
index.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
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html class="no-js" 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">
<title>Proclivitas WoW</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,600" rel="stylesheet" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/css/foundation.min.css" integrity="sha256-itWEYdFWzZPBG78bJOOiQIn06QCgN/F0wMDcC4nOhxY=" crossorigin="anonymous" />
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous" />
<link rel="stylesheet" type="text/css" href="css/event.css" />
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="icon" type="image/png" href="images/favicon-192x192.png" sizes="192x192" />
<link rel="apple-touch-icon" href="images/apple-touch-icon-180x180.png" sizes="180x180" />
</head>
<body>
<div class="top-bar">
<div class="top-bar-left">
<ul class="menu show-for-small-only">
<li class="menu-text"><img src="./images/favicon.png"> Proclivitas WoW Event</li>
</ul>
<ul class="menu show-for-medium">
<li class="menu-text"><img src="./images/favicon.png"> Proclivitas WoW Event</li>
</ul>
</div>
<div class="top-bar-right show-for-medium">
<ul class="menu">
<li><a id="switch-desktop"><i class="far fa-sun"></i> Light Mode</a></li>
</ul>
</div>
</div><br />
<div class="column row" id="content">
<label for="title-field">Title</label>
<p class="help-text" id="title-help">Event/Group/Raid</p>
<select name="title-description" style="width: 220px" id="title-field" name="title">
<option disabled="true">--- Select a dungeon ---</option>
<option value="Blackwing Lair">Blackwing Lair (40)</option>
<option value="Molten Core">Molten Core (40)</option>
<option value="Naxxramas">Naxxramas (40)</option>
<option value="Ruins of Ahn'Qiraj">Ruins of Ahn'Qiraj (20)</option>
<option value="Temple of Ahn'Qiraj">Temple of Ahn'Qiraj (40)</option>
<option value="Zul'Gurub">Zul'Gurub (20)</option>
<option value="Scholomance">Scholomance (5)</option>
<option value="Stratholme">Stratholme (5)</option>
<option value="Lower Blackrock Spire">Lower Blackrock Spire (5-10)</option>
<option value="Upper Blackrock Spire">Upper Blackrock Spire (5-10)</option>
<option value="Blackrock Depths">Blackrock Depths (5)</option>
<option value="Other">Other</option>
</select>
<div class="hidden" id="Other">
<input type="text" style="width: 255px" id="other-field" aria-describedby="other-help" required>
</div>
<label for="desc-field">Description</label>
<p class="help-text" id="desc-help">Specific details and general information about the event. Stay under 1000 characeters.</p>
<textarea name="desc-description" id="desc-field" aria-describedby="desc-help" required></textarea>
<div class="callout warn hidden" id="lrg-rep">
<p>Your description is too long. Shorten it down and stay under 1000 characters, then try and copy again.</p>
</div>
<div class="datetime-help">
<label for="time-field">Time</label>
<p class="help-text" id="time-help">Event time in CET (server time)</p>
<input type="time" style="width: 200px" id="time-field" aria-describedby="time-help" val="00:00" required>
</div>
<div class="datetime-help">
<label for="date-field">Date</label>
<p class="help-text" id="date-help">Date for the event MM.DD.YYYY </p>
<input type="date" style="width: 200px" id="date-field" aria-describedby="date-help" val="24-12-2000" required>
</div>
<div class="clear"><label for="dura-field">Duration</label></div>
<p class="help-text" id="dura-help">How long is the event expected to take? (Example: 3~ hours)</p>
<input type="text" style="width: 150px" id="dura-field" aria-describedby="dura-help" required>
<label>Copy paste form</label>
<p class="help-text" id="syntax-help">Copy the text below and paste it into the appropriate channel. Note: This field will be empty until all required fields are filled in</p>
<div class="callout syntaxbox">
<pre class="bug-syntax" id="syntax"></pre>
<button type="button" class="button cb-btn" id="copy-btn" title="Click to copy text">Copy</button>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/6.3.1/js/foundation.min.js" integrity="sha256-Nd2xznOkrE9HkrAMi4xWy/hXkQraXioBg9iYsBrcFrs=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.1/clipboard.min.js"></script>
<script src="js/event.js"></script>
<script >
$(document).foundation();
$(document).ready(pageLoad('create'));
//Hide~display 'Other' box
$(function() {
$('#title-field').change(function(){
$('.hidden').hide();
$('#' + $(this).val()).css('display', 'inline-block')();
});
});
//Formatted dating
var today = new Date();
var dd = today.getDate();
var mm = today.getMonth()+1; //January is 0!
var yyyy = today.getFullYear();
if(dd<10){
dd='0'+dd
}
if(mm<10){
mm='0'+mm
}
today = yyyy+'-'+mm+'-'+dd;
document.getElementById("date-field").setAttribute("min", today);
</script>
</body>
</html>