var board = JXG.JSXGraph.initBoard('box1', {axis: true, boundingbox: [-10, 10, 10, -10], showcopyright: false,keepaspectratio: true, zoom: true, axis: false,showNavigation: false,
});
var p1 = board.create('point', [-9, -8],{name:'A', size: 1,face:"", color:'blue', label: {offset:[15,-10]}} );
var p2 = board.create('point', [9, -8],{name:'B', size: 1,face:"", color:'blue', label: {offset:[-20,-10]}} );
var po = board.create('regularpolygon',[p1,p2,3], {withLines: true, fillColor:'none',highlightFillColor:'#333', vertices:{face:''} });
var mp1 = board.create('midpoint', [p1, p2],{name:'D', size: 1,face:"", color:'blue', label: {offset:[0,-10] }} );
var l1 = board.create('segment', [po.vertices[2], mp1],{name:"h", withLabel:true, strokeWidth:1});
var l2 = board.create('segment', [po.vertices[2], p2],{name:"6", withLabel:true, strokeWidth:1});
// var L1 = board.create('segment', [p1, g1],{name:'a',withLabel:true});