Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Node.js User Survey 2018 microsite #1670

Merged
merged 1 commit into from
May 31, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions external/survey-2018/bootstrap.min.css

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions external/survey-2018/bootstrap.min.js

Large diffs are not rendered by default.

5 changes: 5 additions & 0 deletions external/survey-2018/d3.v3.min.js

Large diffs are not rendered by default.

3,367 changes: 3,367 additions & 0 deletions external/survey-2018/data.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions external/survey-2018/data.min.js

Large diffs are not rendered by default.

775 changes: 775 additions & 0 deletions external/survey-2018/full.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions external/survey-2018/full.min.js

Large diffs are not rendered by default.

113 changes: 113 additions & 0 deletions external/survey-2018/graph.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
<!DOCTYPE html>
<html>
<head>
<title>Web Survey Report 2018: Technologies | Node.js</title>
<style>
body, html {
margin: 0;
}

body {
font-family: 'HelveticaNeue-Roman',Helvetica,Arial,sans-serif;
line-height: 1.5;
overflow: hidden;
}

.node {
stroke: #fff;
stroke-width: 2px;
}

.node circle {
stroke: #000;
stroke-width: 1.5px;
}


.textClass {
stroke: #323232;
font-weight: normal;
stroke-width: .1;
font-size: 5px;
}

.svg-container {
display: inline-block;
position: relative;
width: 100%;
padding-bottom: 100%;
/* aspect ratio */
vertical-align: top;
overflow: hidden;
margin-left: -50px;
}

.svg-content-responsive {
display: inline-block;
position: absolute;
top: 90px;
left: 0;
}

button {
display: inline-block;
padding: 10px 16px;
margin: 1em 0;
font-size: 14px;
font-size: 18px;
line-height: 1;
text-align: center;
white-space: nowrap;
vertical-align: middle;
-ms-touch-action: manipulation;
touch-action: manipulation;
cursor: pointer;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
background-image: none;
border: 1px solid transparent;
border-radius: 4px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
border-bottom-right-radius: 4px;
border-bottom-left-radius: 4px;
background: #000;
border-color: #000;
color: #fff;
}

label {
display: inline-block;
width: 10em;
}
</style>
</head>

<body>
<!--
<button data-action="addNodesBE">Back End</button>
<button data-action="addNodesFE">Front End</button>
<button data-action="addNodesFS">Full Stack</button>
<button data-action="remove">remove</button> <br>
-->
<form>
<label>Developer Segment:</label>
<input type="radio" name="stack" value="ac" id="tr1" checked="checked">Back End
<input type="radio" name="stack" value="sc" id="tr2">Front End
<input type="radio" name="stack" value="smc" id="tr3">Full Stack
</form>
<form>
<label>Connection Types:</label>
<input type="radio" name="stack" value="ac" id="cr1" checked="checked"> All
<input type="radio" name="stack" value="sc" id="cr2"> Strong
<input type="radio" name="stack" value="smc" id="cr3"> Strong and Medium
</form>
<button data-action="addNodes">Draw</button>
<div id="graph-container"></div>
<script src="d3.v3.min.js"></script>
<script src="jquery.min.js"></script>
<script src="graph.min.js" async defer></script>
</body>
</html>
Loading