-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
135 lines (128 loc) · 7.25 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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<!DOCTYPE html>
<html>
<head>
<title>Project #1 - Marvel Movies</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/bootstrap.min.css" type="text/css"/>
<link rel="stylesheet" href="css/bootstrap-theme.min.css" type="text/css"/>
<link rel="stylesheet" href="css/bootstrap.icon-large.min.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery.tipsy.css" type="text/css"/>
<link rel="stylesheet" href="css/jquery.qtip.min.css" type="text/css"/>
<link rel="stylesheet" href="css/d3tip.css" type="text/css"/>
<link rel="stylesheet" href="css/style.css" type="text/css"/>
<script type="text/javascript" src="js/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.min.js"></script>
<script type="text/javascript" src="js/jquery.tipsy.js"></script>
<script type="text/javascript" src="js/jquery.qtip.min.js"></script>
<script type="text/javascript" src="js/fancybox2/source/jquery.fancybox.pack.js"></script>
<script type="text/javascript" src="js/d3.v3.min.js"></script>
<script type="text/javascript" src="js/d3-tip.js"></script>
<script type="text/javascript" src="js/marvelDataLoader.js"></script>
<script type="text/javascript" src="js/marvelFilters.js"></script>
<script type="text/javascript" src="js/marvelTips.js"></script>
<script type="text/javascript" src="js/marvelCollision.js"></script>
<script type="text/javascript" src="js/graphPlugins.js"></script>
<script type="text/javascript" src="js/searchSuggester.js"></script>
<script>
function resumeForce () {
// check the stuff has actually loaded!
if(graphPlugins) {
startForce(0.5);
}
}
function restartForce () {
// check the stuff has actually loaded!
if(graphPlugins) {
trueRestart();
}
}
function changeForce(charge, gravity) {
force.charge(charge).gravity(gravity);
}
</script>
</head>
<body>
<div class="row">
<div class="col-lg-offset-2 col-lg-8 col-md-10 header" style="margin-top: 10px;">
<h1>Project #1 - Marvel Movies</h1>
</div>
<!--<div class="col-lg-2" style="margin-top: 50px;">
</div>-->
<div class="col-lg-offset-2 col-lg-8 col-md-10 content" style="margin-top: 30px;">
<form class="form-inline" id="graphfilter">
<div class="form-group" style="position: relative;margin-right: 20px;" id="movieselect">
<input class="form-control" type="text" name="movie" id="movie" placeholder="Movie"/>
<div id="suggest" style="position: absolute; top: 100%;"></div>
</div>
<div class="form-group" id="connectionselect">
<label class="control-label">Connected by:</label>
<div id="button1" class="roundedOne">
<input type="radio" value="" id="check" name="link"/>
<label for="check" title="All"></label>
</div>
<div id="button2" class="roundedOne">
<input type="radio" value="movie" id="moviecheck" name="link" checked/>
<label for="moviecheck" title="Movie"></label>
</div>
<div id="button3" class="roundedOne">
<input type="radio" value="star" id="starcheck" name="link"/>
<label for="starcheck" title="Actors"></label>
</div>
<div id="button4" class="roundedOne">
<input type="radio" value="director" id="directorcheck" name="link"/>
<label for="directorcheck" title="Director"></label>
</div>
<div id="button5" class="roundedOne">
<input type="radio" value="character" id="charactercheck" name="link"/>
<label for="charactercheck" title="Characters"></label>
</div>
</div>
<div class="form-group" style="position: relative;margin-right: 20px;" id="labeloption">
<label class="control-label" for="showlabels">Show Labels:</label>
<input type="checkbox" id="showlabels" name="showlabels" title="Show Labels" checked/>
</div>
<a href="#" class="btn btn-primary" id="clear">Clear</a>
</form>
<!--
<div id="controlbox">
<button onclick="resumeForce()">Resume Force</button>
<button onclick="restartForce()">Restart Force</button>
<button onclick="changeForce(0, 0)">No Force</button>
<button onclick="changeForce(-60, 0)">Mutual Repulsion</button>
<button onclick="changeForce(60, 0)">Mutual Attraction</button>
<button onclick="changeForce(0, 0.02)">Gravity</button>
<button onclick="changeForce(-30, 0.1)">Gravity with Repulsion</button>
</div>
-->
<div id="grapharea" data-url="./data/movielist.json" class="col-lg-12" style="min-height: 500px;margin-top: 20px;">
<svg></svg>
<!--
<div style="position:absolute;bottom: 2px;right: 2px;z-index: 100;">
<a href="#" class="btn btn-sm glyphicon glyphicon-lens"></a>
<a href="#" class="btn btn-sm glyphicon glyphicon-hand"></a>
</div>
-->
</div>
</div>
<div class="col-lg-2 col-md-2 col-sm-2" style="margin-top: 70px;">
<div class="d3-tip" id="infoactive" style="margin-top: 10px;display: none;pointer-events: all;min-height: 1px;width: 100%;">
</div>
<div class="d3-tip" id="infohover" style="display: none;position: relative;float: left;margin-top: 10px;pointer-events: all;width: 100%;">
</div>
</div>
<div class="col-lg-offset-2 col-lg-8 footer" style="min-height: 50px;position: relative;float: left;">
</div>
</div>
<div style="font-size: 12px; text-align: center;">
<p>Data Sources</p>
<div style="width: 15%; margin: 0 auto;">
<ul style="text-align: left;">
<li><a target="_blank" href="http://www.imdb.com/">IMDB</a></li>
<li><a target="_blank" href="http://www.omdbapi.com/">OMDB API</a></li>
</ul>
</div>
</div>
<div style="font-size: 12px; text-align: center;">© Ben Logan</div>
</body>
</html>