forked from markmarkoh/datamaps
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSpecRunner_CountriesGlobal.html
62 lines (52 loc) · 1.58 KB
/
SpecRunner_CountriesGlobal.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
<!DOCTYPE html>
<html>
<head>
<style>
path {
/*fill: #BADA55;*/
stroke: #FFFFFF;
stroke-width: 1px;
}
.hoverover {
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.hoverinfo {
padding: 4px;
border-radius: 1px;
background-color: #FFF;
box-shadow: 1px 1px 5px #CCC;
font-size: 12px;
border: 1px solid #CCC;
}
.hoverinfo hr {
border:1px dotted #CCC;
}
</style>
</head>
<body>
<body>
<link rel="stylesheet" type="text/css" href="lib/jasmine-1.2.0/jasmine.css">
<script type="text/javascript" src="lib/jasmine-1.2.0/jasmine.js"></script>
<script type="text/javascript" src="lib/jasmine-1.2.0/jasmine-html.js"></script>
<div id="container1" style="border:3px dotted blue; height: 350px; width: 660px"></div>
<!-- Datamaps Source -->
<script src="../../dist/datamaps.js"></script>
<!-- Specs -->
<script type="text/javascript" src="spec/MapSpec.js"></script>
<!-- Map Generating Function, creates makeMap($el) -->
<script>
function makeMap($el) {
return new Map({
scope: 'world',
el: $el,
geography: {
highlightBorderColor: '#222',
highlightOnHover: true
}
});
}
</script>
<!-- Jasmine Runner -->
<script src="lib/runner.js"></script>
</body>
</html>