forked from akhiljain93/furious-lion
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmash_p.php
60 lines (59 loc) · 1.48 KB
/
mash_p.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Mash</title>
<style>
#featured {
font-family: "Helvetica Neue", Helvetica, sans-serif;
position: relative;
width: 840px;
}
svg {
font: 10px sans-serif;
}
.axis path, .axis line {
fill: none;
stroke: #000;
shape-rendering: crispEdges;
}
.background {
fill: #eee;
}
line {
stroke: #fff;
}
text.active {
fill: red;
}
</style>
<script src="js/d3.v2.min.js?2.8.1"></script>
<script >
<?php
function getvar($vname, $deflt) {
if(isset($_GET[$vname])&& ($_GET[$vname]!='')){
echo urldecode($_GET[$vname]) ;
}
else
echo "$deflt";
}
?>
var field = '<?php
getvar('field','Questions');
?>',
stateFilt = [<?php
getvar('state','');
?>],
partyFilt = [<?php
getvar('party','');
?>],
sortvar = '<?php
getvar('sort','');
?>';
</script>
</head>
<body>
<div id="feature"></div>
<script src="js/mash_p.js"></script>
</body>
</html>