-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from RhoInc/add-test-page
add test page and npm script that opens it in all three major browsers
- Loading branch information
Showing
4 changed files
with
72 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
@import url(https://fonts.googleapis.com/css?family=Open+Sans:400,300); | ||
* { | ||
padding: 0; | ||
margin: 0; | ||
font-family: 'Open Sans'; | ||
} | ||
#title { | ||
width: 96%; | ||
padding: 0 0 1% 0; | ||
border-bottom: 2px solid lightgray; | ||
margin: 2% 2% 1% 2%; | ||
font-size: 32px; | ||
font-weight: normal; | ||
} | ||
#subtitle { | ||
width: 96%; | ||
margin: 0 2% 1% 2%; | ||
font-size: 24px; | ||
font-weight: lighter; | ||
} | ||
#container { | ||
width: 96%; | ||
margin: 1% 2%; | ||
display: inline-block; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Query Overview</title> | ||
<meta http-equiv = 'Content-Type' content = 'text/html; charset = utf-8'> | ||
|
||
<script type = 'text/javascript' src = 'https://d3js.org/d3.v3.min.js'></script> | ||
<script type = 'text/javascript' src = 'https://rawgit.com/RhoInc/Webcharts/master/build/webcharts.js'></script> | ||
<script type = 'text/javascript' src = 'https://rawgit.com/RhoInc/query-overview/master/build/queryOverview.js'></script> | ||
|
||
<link type = 'text/css' rel = 'stylesheet' href = 'https://rawgit.com/RhoInc/Webcharts/master/css/webcharts.css'> | ||
<link type = 'text/css' rel = 'stylesheet' href = './index.css'> | ||
</head> | ||
|
||
<body> | ||
<div id = 'title'>Query Overview</div> | ||
<div id = 'subtitle'>Test Page</div> | ||
<div id = 'container'></div> | ||
</body> | ||
|
||
<script type = 'text/javascript' src = './index.js'></script> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
//Load local build if in local environment. | ||
if (window.origin !== 'https://rhoinc.github.io') { | ||
var head = document.getElementsByTagName('head')[0]; | ||
var script = document.createElement('script'); | ||
script.type = 'text/javascript'; | ||
script.src = '../queryOverview.js'; | ||
head.appendChild(script); | ||
} | ||
|
||
d3.csv( | ||
'https://rawgit.com/RhoInc/viz-library/master/data/queries/queries.csv', | ||
function(error,data) { | ||
if (error) | ||
console.log(error); | ||
|
||
var settings = {}; | ||
var instance = queryOverview( | ||
'#container', | ||
settings | ||
); | ||
instance.init(data); | ||
} | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters