-
Notifications
You must be signed in to change notification settings - Fork 0
/
code.html
executable file
·100 lines (77 loc) · 4.29 KB
/
code.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
<!DOCTYPE html>
<html>
<head>
<title>McHacks Code of Conduct</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:title" content="McHacks 2017" />
<meta property="og:url" content="https://2017.mchacks.ca" />
<meta property="og:description" content="Canada's most exciting hackathon brought to you by McGill University! " />
<!-- <meta property="og:description" content="Canada's most exciting hackathon brought to you by McGill University! Registration is now open, hurry up and secure your> spot!" /> -->
<meta property="og:image" content="images/red_bird.png" />
<link rel="shortcut icon" href="images/favicon.ico" />
<link rel="stylesheet" type="text/css" href="stylesheets/style.css" />
<!-- <link href="css/bootstrap.min.css" rel="stylesheet"> -->
</head>
<body>
<a href="index.html">
<div class="bird-reg" id="birdbox">
<img id="bird_logo" src="images/logo__grey__720.png" alt="Imagine a bird here">
</div>
</a>
<div id="code_conduct">
<h3>McHacks Code of Conduct</h3>
<p>
Our hackathon is dedicated to providing a harassment-free space for everyone, regardless of gender, age, sexual orientation, ability, physical appearance, race, or religion.
</p>
<p>
We do not tolerate harassment in any form from participants. Sexual language and inappropriate imagery is not appropriate for submitted projects or at any time or place during the event, including talks, workshops, receptions, and online media. Participants violating these rules may be sanctioned or expelled from the event without travel reimbursement at the discretion of the event organisers.
</p>
<p>These rules are inspired by the following codes of conduct:</p>
<div id="hackathon_conduct">
<ul>
<li>Major League Hacking Code of Conduct</li>
<li>Hack Code of Conduct</li>
<li>Hack@Brown Code of Conduct</li>
<li>JustHack Code of Conduct</li>
</ul>
</div>
<p>If you have any questions, please send an email to <a href="mailto:[email protected]">[email protected]</a>.</p>
</div>
</div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="js/jquery.fittext.js"></script>
<script src="js/main.js"></script>
<script src="js/embed.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/trianglify/1.0.1/trianglify.min.js"></script>
<script>
//var dimensions = target.getClientRects()[0];
var pattern = Trianglify({
x_colors: ['#58445C', '#8B013D', '#972E4C', '#DA7E6F', '#FAE4E4', '#FAE4E4', '#DB7871', '#85013A', '#844556', '#423843'],
y_colors: 'match_x',
cell_size: 130,
variance: 1,
width: window.innerWidth,
height: window.innerHeight
});
document.body.style['background-image'] = 'url(' + pattern.png() + ')';
// var page1 = document.getElementById('page1');
// var dimensions = page1.getClientRects()[0];
// var pattern = Trianglify({
// x_colors: ['#58445C', '#8B013D', '#972E4C', '#DA7E6F', '#E87879', '#DB7871', '#85013A', '#844556', '#423843'],
// y_colors: 'match_x',
// cell_size: 130,
// variance: 1,
// width: dimensions.width,
// height: dimensions.height,
// });
// page1.appendChild(pattern.canvas());
// var t = new Trianglify({
// x_colors: ['#58445C', '#8B013D', '#972E4C', '#DA7E6F', '#E87879', '#DB7871', '#85013A', '#844556', '#423843'],
// y_colors: 'match_x',
// noiseIntensity: 0,
// cellsize: 130});
// var pattern = t.generate(document.getElementById("page1").clientWidth, document.getElementById("page1").clientHeight);
// document.getElementById("page1").appendChild(pattern.canvas());
// document.getElementById("page1").setAttribute('style', 'background-image: '+pattern.dataUrl);
</script>
</html>