diff --git a/.gitignore b/.gitignore index 9a4d5fda..485dee64 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1 @@ .idea -_site diff --git a/_config.yml b/_config.yml deleted file mode 100644 index e69de29b..00000000 diff --git a/_layouts/default.html b/_layouts/default.html deleted file mode 100644 index bf6cfbca..00000000 --- a/_layouts/default.html +++ /dev/null @@ -1,63 +0,0 @@ - - - -
- - - - - - - - -
-
-
-
-
diff --git a/css/style.css b/css/style.css
index 29d2e08b..5852141a 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,105 +1,20 @@
-html, body {
- font-family: arial;
- font-size: 11pt;
- color: #4D4D4D;
- line-height: 1.7em;
-
- padding: 0px;
- margin: 0px;
- width: 100%;
- height: 100%;
-}
-
-body {
- overflow-y: scroll;
-}
-
-#container {
- margin: 0 auto;
- width: 900px;
-
- /* TODO: cleanup
- height: 100%;
- */
-}
-
#menu {
- width: 150px;
- float: left;
- text-align: right;
-
- /* TODO: cleanup
- height: 100%;
- position: fixed;
- overflow-x: hidden;
- overflow-y: auto;
- */
-}
-
-#menu-inner {
- padding: 70px 20px 0px 0px;
-}
-
-#contents {
- /* TODO: cleanup
- margin-left: 150px;
- */
- padding: 50px 25px;
-
- width: 700px;
- float: left;
-}
-
-h2 {
- padding-top: 20px;
- padding-bottom: 10px;
- border-bottom: 1px solid #a0c0f0;
- color: #2B7CE9;
-}
-
-a {
- color: #2B7CE9;
- text-decoration: none;
-}
-a:visited {
- color: #2E60A4;
-}
-a:hover {
- color: red;
- text-decoration: underline;
-}
-
-/*
-ul.nav {
- text-decoration: none;
- text-transform: uppercase;
-
- margin-bottom: 30px;
- padding-left: 0px;
-}
-li.nav {
- list-style: none;
+ position: absolute;
+ left: -150px;
+ top: 35px;
}
-ul li.nav {
- text-decoration: none;
- text-transform: uppercase;
- font-weight: bold;
- font-size: 11pt;
- color: #2B7CE9;
-
- margin-top: 5px;
+#forkme {
+ position: fixed;
+ top: 0;
+ right: 0;
+ border: 0;
}
-ul li ul li.nav {
- text-decoration: none;
- text-transform: none;
- font-weight: normal;
- font-size: 11pt;
- color: #4D4D4D;
+div.nav {
+ text-align: right;
}
-*/
div.nav ul {
text-decoration: none;
@@ -115,7 +30,7 @@ li.nav {
div.nav ul li {
text-decoration: none;
text-transform: uppercase;
- font-weight: bold;
+ font-weight: normal;
font-size: 11pt;
color: #2B7CE9;
@@ -141,67 +56,24 @@ a.nav:hover {
color: #2B7CE9;
}
-
-table.example {
- border-collapse: collapse;
-}
-
-th.example {
- font-weight: normal;
- border: 1px solid lightgray;
- background-color: #E5E5E5;
- text-align: left;
- vertical-align: top;
- padding: 5px;
-}
-td.example {
- border: 1px solid lightgray;
- padding: 5px;
+.gallery .thumb {
+ display: inline-block;
+ text-align: center;
+ margin-right: 10px;
+ margin-bottom: 20px;
}
-
-pre {
- line-height: 1.5em;
- font-size: 10pt;
- overflow-x: auto;
- background-color: #F5F5F5;
- border: 1px solid lightgray;
- padding: 5px;
+.gallery .thumb img {
+ border: 1px solid white;
+ border-radius: 5px;
+ height: 90px;
+ margin: 0;
}
-pre.example {
- background-color: transparent;
- border: none;
- padding: 0px;
- margin: 0px;
+.gallery .thumb a:hover img {
+ border-color: lightgray;
}
-
-div.lastupdate {
- font-size: 75%;
- margin-top: 40px;
-
- border-top: 1px solid #a0c0f0;
- color: #2B7CE9;
-}
-
-img {
- border: none;
-}
-
-img.thumb {
- border: 1px solid #a0c0f0;
- width: 120px;
- height: 60px;
-}
-
-img.thumb:hover {
- border-color: #2E60A4;
-}
-
-#forkme {
- position: fixed;
- top: 0;
- right: 0;
- border: 0;
+.gallery .thumb div {
+ margin: 0;
}
\ No newline at end of file
diff --git a/css/style.css.bak b/css/style.css.bak
new file mode 100644
index 00000000..29d2e08b
--- /dev/null
+++ b/css/style.css.bak
@@ -0,0 +1,207 @@
+
+html, body {
+ font-family: arial;
+ font-size: 11pt;
+ color: #4D4D4D;
+ line-height: 1.7em;
+
+ padding: 0px;
+ margin: 0px;
+ width: 100%;
+ height: 100%;
+}
+
+body {
+ overflow-y: scroll;
+}
+
+#container {
+ margin: 0 auto;
+ width: 900px;
+
+ /* TODO: cleanup
+ height: 100%;
+ */
+}
+
+#menu {
+ width: 150px;
+ float: left;
+ text-align: right;
+
+ /* TODO: cleanup
+ height: 100%;
+ position: fixed;
+ overflow-x: hidden;
+ overflow-y: auto;
+ */
+}
+
+#menu-inner {
+ padding: 70px 20px 0px 0px;
+}
+
+#contents {
+ /* TODO: cleanup
+ margin-left: 150px;
+ */
+ padding: 50px 25px;
+
+ width: 700px;
+ float: left;
+}
+
+h2 {
+ padding-top: 20px;
+ padding-bottom: 10px;
+ border-bottom: 1px solid #a0c0f0;
+ color: #2B7CE9;
+}
+
+a {
+ color: #2B7CE9;
+ text-decoration: none;
+}
+a:visited {
+ color: #2E60A4;
+}
+a:hover {
+ color: red;
+ text-decoration: underline;
+}
+
+/*
+ul.nav {
+ text-decoration: none;
+ text-transform: uppercase;
+
+ margin-bottom: 30px;
+ padding-left: 0px;
+}
+li.nav {
+ list-style: none;
+}
+
+ul li.nav {
+ text-decoration: none;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #2B7CE9;
+
+ margin-top: 5px;
+}
+
+ul li ul li.nav {
+ text-decoration: none;
+ text-transform: none;
+ font-weight: normal;
+ font-size: 11pt;
+ color: #4D4D4D;
+}
+*/
+
+div.nav ul {
+ text-decoration: none;
+ text-transform: uppercase;
+
+ margin-bottom: 30px;
+ padding-left: 0px;
+}
+li.nav {
+
+}
+
+div.nav ul li {
+ text-decoration: none;
+ text-transform: uppercase;
+ font-weight: bold;
+ font-size: 11pt;
+ color: #2B7CE9;
+
+ list-style: none;
+ margin-top: 5px;
+}
+
+div.nav ul li ul li {
+ text-decoration: none;
+ text-transform: none;
+ font-weight: normal;
+ font-size: 11pt;
+ color: #4D4D4D;
+
+ list-style: none;
+}
+
+a.nav {
+ color: #4D4D4D;
+}
+
+a.nav:hover {
+ color: #2B7CE9;
+}
+
+
+table.example {
+ border-collapse: collapse;
+}
+
+th.example {
+ font-weight: normal;
+ border: 1px solid lightgray;
+ background-color: #E5E5E5;
+ text-align: left;
+ vertical-align: top;
+ padding: 5px;
+}
+td.example {
+ border: 1px solid lightgray;
+ padding: 5px;
+}
+
+
+pre {
+ line-height: 1.5em;
+ font-size: 10pt;
+ overflow-x: auto;
+ background-color: #F5F5F5;
+ border: 1px solid lightgray;
+ padding: 5px;
+}
+
+pre.example {
+ background-color: transparent;
+ border: none;
+ padding: 0px;
+ margin: 0px;
+}
+
+
+div.lastupdate {
+ font-size: 75%;
+ margin-top: 40px;
+
+ border-top: 1px solid #a0c0f0;
+ color: #2B7CE9;
+}
+
+img {
+ border: none;
+}
+
+img.thumb {
+ border: 1px solid #a0c0f0;
+ width: 120px;
+ height: 60px;
+}
+
+img.thumb:hover {
+ border-color: #2E60A4;
+}
+
+#forkme {
+ position: fixed;
+ top: 0;
+ right: 0;
+ border: 0;
+}
\ No newline at end of file
diff --git a/docs/css/prettify.css b/docs/css/prettify.css
index b4ec4ca0..07d25d3f 100644
--- a/docs/css/prettify.css
+++ b/docs/css/prettify.css
@@ -16,12 +16,16 @@
pre.prettyprint {
border: 1px solid lightgray;
+ box-sizing: border-box;
+ -moz-box-sizing: border-box;
background-color: #fcfcfc;
padding: 5px;
font-size: 10pt;
line-height: 1.5em;
font-family: monospace;
+ overflow-x: auto;
+ width: 100%;
}
ol.linenums {
diff --git a/docs/css/style.css b/docs/css/style.css
index 15554585..5addab9c 100644
--- a/docs/css/style.css
+++ b/docs/css/style.css
@@ -13,9 +13,12 @@ body, td, th {
}
#container {
+ position: relative;
margin: 0 auto;
- padding-bottom: 50px;
+ padding: 10px 10px 50px 10px;
width: 700px;
+ max-width: 100%;
+ box-sizing: border-box;
}
h1 {
@@ -36,7 +39,6 @@ h3 {
font-size: 140%;
}
-
a {
color: #2B7CE9;
text-decoration: none;
diff --git a/img/gallery/graph/01_basic_usage.png b/img/gallery/graph/01_basic_usage.png
new file mode 100644
index 00000000..5fea7b0f
Binary files /dev/null and b/img/gallery/graph/01_basic_usage.png differ
diff --git a/img/gallery/graph/02_random_nodes.png b/img/gallery/graph/02_random_nodes.png
new file mode 100644
index 00000000..39a9e3a8
Binary files /dev/null and b/img/gallery/graph/02_random_nodes.png differ
diff --git a/img/gallery/graph/03_images.png b/img/gallery/graph/03_images.png
new file mode 100644
index 00000000..118915e4
Binary files /dev/null and b/img/gallery/graph/03_images.png differ
diff --git a/img/gallery/graph/04_shapes.png b/img/gallery/graph/04_shapes.png
new file mode 100644
index 00000000..b556c599
Binary files /dev/null and b/img/gallery/graph/04_shapes.png differ
diff --git a/img/gallery/graph/05_social_network.png b/img/gallery/graph/05_social_network.png
new file mode 100644
index 00000000..980ef836
Binary files /dev/null and b/img/gallery/graph/05_social_network.png differ
diff --git a/img/gallery/graph/06_groups.png b/img/gallery/graph/06_groups.png
new file mode 100644
index 00000000..d8d59026
Binary files /dev/null and b/img/gallery/graph/06_groups.png differ
diff --git a/img/gallery/graph/07_selections.png b/img/gallery/graph/07_selections.png
new file mode 100644
index 00000000..16e90a4b
Binary files /dev/null and b/img/gallery/graph/07_selections.png differ
diff --git a/img/gallery/graph/08_mobile_friendly.png b/img/gallery/graph/08_mobile_friendly.png
new file mode 100644
index 00000000..b62bf9bf
Binary files /dev/null and b/img/gallery/graph/08_mobile_friendly.png differ
diff --git a/img/gallery/graph/09_sizing.png b/img/gallery/graph/09_sizing.png
new file mode 100644
index 00000000..1cc18057
Binary files /dev/null and b/img/gallery/graph/09_sizing.png differ
diff --git a/img/gallery/graph/10_multiline_text.png b/img/gallery/graph/10_multiline_text.png
new file mode 100644
index 00000000..7f95d7a8
Binary files /dev/null and b/img/gallery/graph/10_multiline_text.png differ
diff --git a/img/gallery/graph/11_custom_style.png b/img/gallery/graph/11_custom_style.png
new file mode 100644
index 00000000..18f538e9
Binary files /dev/null and b/img/gallery/graph/11_custom_style.png differ
diff --git a/img/gallery/graph/12_scalable_images.png b/img/gallery/graph/12_scalable_images.png
new file mode 100644
index 00000000..1d3c7ee7
Binary files /dev/null and b/img/gallery/graph/12_scalable_images.png differ
diff --git a/img/gallery/graph/13_dashed_lines.png b/img/gallery/graph/13_dashed_lines.png
new file mode 100644
index 00000000..bb6779ce
Binary files /dev/null and b/img/gallery/graph/13_dashed_lines.png differ
diff --git a/img/gallery/graph/14_dot_language.png b/img/gallery/graph/14_dot_language.png
new file mode 100644
index 00000000..a0433e17
Binary files /dev/null and b/img/gallery/graph/14_dot_language.png differ
diff --git a/img/gallery/graph/15_dot_language_playground.png b/img/gallery/graph/15_dot_language_playground.png
new file mode 100644
index 00000000..7048da50
Binary files /dev/null and b/img/gallery/graph/15_dot_language_playground.png differ
diff --git a/img/gallery/graph/graphviz_gallery.png b/img/gallery/graph/graphviz_gallery.png
new file mode 100644
index 00000000..9aacc612
Binary files /dev/null and b/img/gallery/graph/graphviz_gallery.png differ
diff --git a/img/gallery/timeline/01_basic.png b/img/gallery/timeline/01_basic.png
new file mode 100644
index 00000000..8be3e577
Binary files /dev/null and b/img/gallery/timeline/01_basic.png differ
diff --git a/img/gallery/timeline/02_dataset.png b/img/gallery/timeline/02_dataset.png
new file mode 100644
index 00000000..8be3e577
Binary files /dev/null and b/img/gallery/timeline/02_dataset.png differ
diff --git a/img/gallery/timeline/03_much_data.png b/img/gallery/timeline/03_much_data.png
new file mode 100644
index 00000000..48819882
Binary files /dev/null and b/img/gallery/timeline/03_much_data.png differ
diff --git a/img/gallery/timeline/04_html_data.png b/img/gallery/timeline/04_html_data.png
new file mode 100644
index 00000000..5b73a37d
Binary files /dev/null and b/img/gallery/timeline/04_html_data.png differ
diff --git a/img/gallery/timeline/05_groups.png b/img/gallery/timeline/05_groups.png
new file mode 100644
index 00000000..04234222
Binary files /dev/null and b/img/gallery/timeline/05_groups.png differ
diff --git a/index.html b/index.html
new file mode 100644
index 00000000..26e4f06b
--- /dev/null
+++ b/index.html
@@ -0,0 +1,294 @@
+
+
+
+
+ + Vis.js is a dynamic, browser based visualization library. + The library is designed to be easy to use, to handle large amounts + of dynamic data, and to enable manipulation of the data. + The library consists of the components DataSet, Timeline, and Graph. +
++ The vis.js library is developed by Almende B.V. +
+ + ++npm install vis ++ +
+bower install vis ++ +
+ A basic example demonstrating how to use the vis.js timeline is shown below. +
+ ++ More examples can be found in the + examples directory. +
+ +<!doctype html>
+<html>
+<head>
+ <title>Timeline | Basic demo</title>
+ <script src="http://visjs.org/vis.js"></script>
+
+ <style type="text/css">
+ body, html {
+ font-family: sans-serif;
+ }
+ </style>
+</head>
+<body>
+<div id="mytimeline"></div>
+
+<script type="text/javascript">
+ var container = document.getElementById('mytimeline');
+ var data = [
+ {id: 1, content: 'item 1', start: '2013-04-20'},
+ {id: 2, content: 'item 2', start: '2013-04-14'},
+ {id: 3, content: 'item 3', start: '2013-04-18'},
+ {id: 4, content: 'item 4', start: '2013-04-16', end: '2013-04-19'},
+ {id: 5, content: 'item 5', start: '2013-04-25'},
+ {id: 6, content: 'item 6', start: '2013-04-27'}
+ ];
+ var options = {};
+ var timeline = new vis.Timeline(container, data, options);
+</script>
+</body>
+</html>
+
+
+
+
+
+
+
+
+
+ + The following documentation is available: +
++ Copyright (C) 2010-2013 Almende B.V. +
+ ++ Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at +
+ ++ http://www.apache.org/licenses/LICENSE-2.0 +
+ ++ Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. +
+ + +
+
+
+