Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!doctype html>
- <html>
- <head>
- <title>Cosmo Cards</title>
- <script type="text/javascript" src="vis.js"></script>
- <link href="vis-network.min.css" rel="stylesheet" type="text/css" />
- <style type="text/css">
- @font-face{
- font-family:diogenes;
- src: url("DIOGENES.tff") format("truetype");
- }
- #mynetwork {
- width: 100%;
- height: 800px;
- border: 1px solid lightgray;
- background: url("bonito.png") fixed center;
- }
- </style>
- </head>
- <body>
- <p>
- Árvore genealógica (protótipo)
- </p>
- <div id="mynetwork"></div>
- <script type="text/javascript">
- // create an array with nodes
- var nodes = new vis.DataSet([
- {id: 1, label: 'Caos', shape: 'image', size: 100, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/chaos.svg', selected: 'carta.png'}, },
- {id: 2, label: 'Tártaro', shape: 'image',size: 80, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/tártaro.svg', selected: 'carta.png'} },
- {id: 3, label: 'Eros', shape: 'image',size: 80,font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/heros.svg', selected: 'carta.png'} },
- {id: 4, label: 'Gaia', shape: 'image',size: 80, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/gaia.svg', selected: 'carta.png'} },
- {id: 5, label: 'Nix', shape: 'image',size: 40, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/nix.svg', selected: 'carta.png'} },
- {id: 6, label: 'Érebo', shape: 'image',size: 40, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/érebo.svg', selected: 'carta.png'} },
- {id: 7, label: 'União 1'},
- {id: 8, label: 'Emera', shape: 'image',size: 30, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/hemera.svg', selected: 'carta.png'} },
- {id: 9, label: 'Éter', shape: 'image', size: 30,font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/eter.svg', selected: 'carta.png'} },
- {id: 10, label: 'Pontos'},
- {id: 11, label: 'Orea', shape: 'image',size: 30,font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/orea.svg', selected: 'carta.png'} },
- {id: 12, label: 'Uranos', shape: 'image',size: 30, font:{size: 30, color:'white', face: 'diogenes'},
- image:{ unselected:'img/urano.svg', selected: 'carta.png'} },
- {id: 13, label: 'Afrodite'},
- {id: 14, label: 'União 2'},
- {id: 15, label: 'Mnemosine'},
- {id: 16, label: 'Hiperion'},
- {id: 17, label: 'Teia'},
- {id: 18, label: 'Crio'},
- {id: 19, label: 'Febe'},
- {id: 20, label: 'Ceos'},
- {id: 21, label: 'Temis'},
- {id: 22, label: 'Jápeto'},
- {id: 23, label: 'Tetis'},
- {id: 24, label: 'Oceanos'},
- {id: 25, label: 'Reia'},
- {id: 26, label: 'Cronos'},
- {id: 27, label: 'União 3'},
- {id: 28, label: 'Atlas'},
- {id: 29, label: 'União 4'},
- {id: 30, label: 'Pleone'},
- {id: 31, label: 'União 5'},
- {id: 32, label: 'Leto'},
- {id: 33, label: 'Maia'},
- {id: 34, label: 'União 6'},
- {id: 35, label: 'Hestia'},
- {id: 36, label: 'Demeter'},
- {id: 37, label: 'Hera'},
- {id: 38, label: 'Zeus'},
- {id: 39, label: 'Poseidon'},
- {id: 40, label: 'Hades'},
- {id: 41, label: 'União 7'},
- {id: 42, label: 'Ares'},
- {id: 43, label: 'Hefesto'},
- {id: 44, label: 'Atena'},
- {id: 45, label: 'União 8'},
- {id: 46, label: 'União 9'},
- {id: 47, label: 'Hermes'},
- {id: 48, label: 'Apolo'},
- {id: 49, label: 'Artemes'},
- {id: 50, label: 'Dionísio'}
- ]);
- // create an array with edges
- var edges = new vis.DataSet([
- {from: 1, to: 2, length:250, color:{color:'#ffffff'}},
- {from: 1, to: 3,length:250},
- {from: 1, to: 4,length:250},
- {from: 1, to: 5,length:250},
- {from: 1, to: 6,length:250},
- {from: 4, to: 10,length:250},
- {from: 4, to: 11,length:250},
- {from: 4, to: 12,length:250},
- {from: 4, to: 14,length:250},
- {from: 5, to: 7,length:250},
- {from: 6, to: 7,length:250},
- {from: 7, to: 8,length:250},
- {from: 7, to: 9,length:250},
- {from: 12, to: 13,length:250},
- {from: 12, to: 14,length:250},
- {from: 14, to: 15,length:250},
- {from: 14, to: 16,length:250},
- {from: 14, to: 17,length:250},
- {from: 14, to: 18,length:250},
- {from: 14, to: 19,length:250},
- {from: 14, to: 20,length:250},
- {from: 14, to: 21,length:250},
- {from: 14, to: 22,length:250},
- {from: 14, to: 23,length:250},
- {from: 14, to: 24,length:250},
- {from: 14, to: 25,length:250},
- {from: 14, to: 26,length:250},
- {from: 19, to: 27,length:250},
- {from: 20, to: 27,length:250},
- {from: 22, to: 28,length:250},
- {from: 23, to: 29,length:250},
- {from: 24, to: 29,length:250},
- {from: 25, to: 34,length:250},
- {from: 26, to: 34,length:250},
- {from: 27, to: 32,length:250},
- {from: 28, to: 31,length:250},
- {from: 29, to: 30,length:250},
- {from: 30, to: 31,length:250},
- {from: 31, to: 33,length:250},
- {from: 32, to: 45,length:250},
- {from: 33, to: 46},
- {from: 34, to: 35},
- {from: 34, to: 36},
- {from: 34, to: 37},
- {from: 34, to: 38},
- {from: 34, to: 39},
- {from: 34, to: 40},
- {from: 37, to: 41},
- {from: 38, to: 41},
- {from: 38, to: 44},
- {from: 38, to: 45},
- {from: 38, to: 46},
- {from: 38, to: 50},
- {from: 41, to: 42},
- {from: 41, to: 43},
- {from: 45, to: 48},
- {from: 45, to: 49},
- {from: 46, to: 47}
- ]);
- // create a network
- var container = document.getElementById('mynetwork');
- var data = {
- nodes: nodes,
- edges: edges
- };
- var options = {};
- var network = new vis.Network(container, data, options);
- function mudanca(id, selected, size){
- size
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement