-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinitialMapping.html
More file actions
163 lines (153 loc) · 6.45 KB
/
initialMapping.html
File metadata and controls
163 lines (153 loc) · 6.45 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
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
159
160
161
162
163
<html>
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script type="text/javascript" src="paper.js"></script>
</head>
<script type="text/paperscript" src="layering.js" canvas="c"></script>
<script>
var save = function(){
var tLayer = paper.project.getItem({data: {layerName: "text"}});
localStorage["saved"] = paper.project.exportJSON();
localStorage["one"] = tLayer.getItem({data: {textId: 1}}).content;
localStorage["two"] = tLayer.getItem({data: {textId: 2}}).content;
localStorage["three"] = tLayer.getItem({data: {textId: 3}}).content;
localStorage["four"] = tLayer.getItem({data: {textId: 4}}).content;
localStorage["five"] = tLayer.getItem({data: {textId: 5}}).content;
localStorage["extended"] = true;
var num = 1;
for( i in paper.project.layers[1].children){
if(paper.project.layers[1].children[i].closed){
num++;
}
}
var arr = new Array(num);
var k = 0;
for(j in paper.project.layers[1].children){
if(paper.project.layers[1].children[j].closed){
arr[k] = paper.project.layers[1].children[j].data.id;
console.log(arr[k]);
k++;
}
}
localStorage["numIntersections"] = num;
localStorage["intersections"] = arr;
}
var reset = function(){
var cLayer = paper.project.getItem({data: {layerName: "circles"}});
var iLayer = paper.project.getItem({data: {layerName: "intersections"}});
var tLayer = paper.project.getItem({data: {layerName: "text"}});
cLayer.removeChildren();
iLayer.removeChildren();
tLayer.removeChildren();
}
</script>
<style>
canvas[resize] {
border-style: solid;
width: 750px;
height: 750px;
}
p.ex1 {
display: none;
}
#html, body{
font-family: "Times New Roman", Times, serif;
font-size: 20px;
}
</style>
<body>
<div class="progress">
<div class="progress-bar" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 40%;">
<span class="sr-only">40% Complete</span>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-sm">
<h1><p text-center>Map your Identities</p> </h1>
<div class="text text-right">
</div>
<div id="StartMapping" class="tabcontent">
This is the section where you choose the five social identities that are closest to you and map them onto the canvas where you see fit.
To add social identities, simply type each one into the corresponding text box then click add circle. Once a circle has been added you can move them on the screen
to be placed where you think they fit best.
</div>
<div class="container">
<div class="row">
<div class="col-sm-10">
</div>
<div class="col-sm-2">
 <a class = "btn btn-warning" onClick="reset();">Reset</a>
<a class="btn btn-danger" href="finished.html">Restart</a>
</div>
</div>
<div class="row">
<div class="col-sm-4">
<br><br>
<form action="#" onsubmit="doSubmit(event);">
<input type="text" name="circleText" id="textInput" style="width: 60%;">
<input type="hidden" name="formId" value="1"><!-- holds the SUid corresponding to this circle -->
<input type="submit" value="Add circle">
</form>
<br><br>
<form action="#" onsubmit="doSubmit(event);">
<input type="text" name="circleText" id="textInput" style="width: 60%;">
<input type="hidden" name="formId" value="2"><!-- holds the SUid corresponding to this circle-->
<input type="submit" value="Add circle">
</form>
<br><br>
<form action="#" onsubmit="doSubmit(event);">
<input type="text" id="textInput" style="width: 60%;">
<input type="hidden" name="formId" value="3"><!-- holds the SUid corresponding to this circle-->
<input type="submit" value="Add circle">
</form>
<br><br>
<form action="#" onsubmit="doSubmit(event);">
<input type="text" id="textInput" style="width: 60%;">
<input type="hidden" name="formId" value="4"><!-- holds the SUid corresponding to this circle-->
<input type="submit" value="Add circle">
</form>
<br><br>
<form action="#" onsubmit="doSubmit(event);">
<input type="text" id="textInput" style="width: 60%;">
<input type="hidden" name="formId" value="5"><!-- holds the SUid corresponding to this circle-->
<input type="submit" value="Add circle">
</form>
<br>
<br>
<br><br>
<a href="https://faculty.salisbury.edu/~jtanderson/identitymapping/index.html">←Previous </a>
<a href="https://faculty.salisbury.edu/~jtanderson/identitymapping/extendedMapping.html" onClick = "save();">Next → </a>
<p class="ex1">
<input type="range" id="rangeIntersect" min="0" max="100" value = "0"/> 
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadioIntersect1" value="option1">
<input class="form-check-input" type="radio" name="inlineRadioOptions" id="inlineRadioIntersect12" value="option2">
</p>
</div>
<script>
function doFunction(){
locked = true;
console.log(locked);
}
</script>
<div class="col-sm-8">
<canvas id="c" resize></canvas>
<div class="text text-right">
</div>
</div>
</div>
</div>
<br>
</div></div>
</div>
<div class="container">
<div class="row">
<div class="col-sm-4">
</div>
<div class="col-sm-4">
</div>
</div>
</div>
</div>
</body>
</html>