-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrefrences.html
158 lines (140 loc) · 5.95 KB
/
refrences.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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<html>
<head>
<title>Matrix Calculator</title>
<link href="dependencies/headerfont" rel="stylesheet">
<script src="dist/dep.min.js" type="text/javascript"></script>
<script>
var $stylesheet = $('<link id="theme" rel="stylesheet" href="dist/light/purple/refrences.css">');
if (typeof(Storage) !== "undefined" && localStorage.hasOwnProperty("themeAndColour")) {
var href = localStorage.getItem('themeAndColour').split('/');
href[href.length - 1] = 'refrences.css';
$stylesheet.attr('href', href.join('/'));
}
$('head').append($stylesheet);
</script>
<link rel="icon" href="img/icon.png">
</head>
<body>
<div id="header" class="noSelect">
<div class="middleTitle center noSelect" onclick="window.location.href='index.html'">
<div class="headerBracket icon-left-bracket"></div>
<div id="headerText">
Mαtrix
<br>Cαlculator
</div>
<div class="headerBracket icon-right-bracket"></div>
</div>
</div>
<div class="mainBody matDefinitions">
<br>
<div class="matInput draggable addPad">
<p>interact.js module - <a target="parent" href="http://interactjs.io/">Drag Stuff!</a></p>
<div class="dragHandle icon-drag-handle"></div>
</div>
<div class="matInput draggable addPad">
<img src="img/mathjax.png" class="noSelect"></img>
<p>Maths rendering - <a target="parent" href="http://www.mathjax.org/">Pretty equations!!</a></p>
<div class="dragHandle icon-drag-handle"></div>
</div>
<div class="matInput draggable addPad">
<p>Super accurate maths with <a target="parent" href="http://mikemcl.github.io/big.js/">big.js!</a></p>
<div class="dragHandle icon-drag-handle"></div>
</div>
<div class="matInput draggable addPad">
<div class="noSelect icon-bin"></div>
<p>
Icons by <a target="parent" href="http://www.flaticon.com/authors/catalin-fertu">Catalin Fertu</a> from
<a target="parent" href="http://www.flaticon.com">www.flaticon.com</a>
</p>
<div class="icon-left-arrow noSelect"></div>
<div class="dragHandle noSelect icon-drag-handle"></div>
</div>
<div class="matInput draggable addPad">
<img src="img/github.png" class="noSelect"></img>
<p> GitHub Repository <a target="parent" href="https://github.com/SamCosta1/MatrixC">here!</a></p>
<div class="dragHandle icon-drag-handle"></div>
</div>
<div class="matInput draggable addPad">
<div class="form">
<form name="feedback" action="thanks.html" netlify>
<div class="frmInputContainer title">
Any feedback is great!!
</div>
<div class="frmInputContainer">
<label class="frmLbl">Your Name: </label>
<input class="frmInput textInput" type="text" name="name">
</div>
<div class="frmInputContainer">
<label class="frmLbl">Your Email: </label>
<input class="frmInput textInput" type="email" name="email"></input>
</div>
<div class="frmInputContainer">
<label class="frmLbl msgLbl">Message: </label>
<textarea class="frmInput msgInput" name="message"></textarea>
</div><br>
<div class="frmInputContainer btnContainer">
<button id="submit">Send</button>
</div>
</form>
</div>
<div class="dragHandle icon-drag-handle"></div>
</div>
<div class="matInput draggable">
<img src="img/trello.png" class="noSelect"></img>
<p> My attempt at organization <a target="parent" href="https://trello.com/b/535Ywpo0/matrixc">here!</a></p>
<div class="dragHandle icon-drag-handle"></div>
</div>
</div>
</body>
<script>
// target elements with the "draggable" class
interact('.draggable')
.draggable({
snap: {
targets: [
interact.createSnapGrid({
x: 20,
y: 20
})
],
range: Infinity,
relativePoints: [{
x: 0,
y: 0
}]
},
// enable inertial throwing
inertia: true,
// keep the element within the area of it's parent
restrict: {
restriction: ".mainBody",
endOnly: false,
elementRect: {
top: 0,
left: 0,
bottom: 0,
right: 1
}
},
// enable autoScroll
autoScroll: true,
// call this function on every dragmove event
onmove: dragMoveListener,
}).allowFrom('.dragHandle');
// this is used later in the resizing and gesture demos
window.dragMoveListener = dragMoveListener;
function dragMoveListener(event) {
var target = event.target,
// keep the dragged position in the data-x/data-y attributes
x = (parseFloat(target.getAttribute('data-x')) || 0) + event.dx,
y = (parseFloat(target.getAttribute('data-y')) || 0) + event.dy;
// translate the element
target.style.webkitTransform =
target.style.transform =
'translate(' + x + 'px, ' + y + 'px)';
// update the posiion attributes
target.setAttribute('data-x', x);
target.setAttribute('data-y', y);
}
</script>
</html>