Mercurial > hg > Members > nobuyasu > html > graphViewer
changeset 51:45daac436fd7 draft
elete unnecessary code
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Sun, 24 Mar 2013 18:30:24 +0900 |
parents | 346400e1ee19 |
children | 5653ab0091be |
files | show.html |
diffstat | 1 files changed, 2 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/show.html Sun Mar 24 18:23:38 2013 +0900 +++ b/show.html Sun Mar 24 18:30:24 2013 +0900 @@ -118,7 +118,6 @@ } var DragHandler = { _oElem : null, - _id : null, attach : function(oElem) { oElem.onmousedown = DragHandler._dragBegin; return oElem; @@ -255,8 +254,8 @@ var nodeNum = 0; var OFFSET = 300; var miniD = $('#miniDisplay')[0].style; -var offsetLeft = parseInt(miniD.width.split('px')[0]); -var offsetTop = parseInt(miniD.height.split('px')[0]); +var offsetLeft = parseInt(miniD.width); +var offsetTop = parseInt(miniD.height); function calcNewNodePosition() { var position = {}; position = {x: offsetLeft+OFFSET, y: nodeNum*OFFSET + offsetTop / 3}; @@ -688,7 +687,6 @@ showAllEdge(gData); } - function init() { jsPlumb.importDefaults({ Connector : [ "Straight", { curviness:50 } ], @@ -703,9 +701,6 @@ left: rootLeft + 'px', top: rootTop + 'px' }); - var heightStr = $('#miniDisplay').css('height').split('px')[0]; - var height = parseInt(heightStr); -// hiddenStateMenuBody(); } function start() {