Using CSS styles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:




.mySerifFont {
.myDefaultFont {
     font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
     font-family: "Avant Garde", Avantgarde, "Century Gothic", CenturyGothic, "AppleGothic", sans-serif;
}
}
Line 23: Line 23:
</html>
</html>
<jsxgraph width="600" height="600">
<jsxgraph width="600" height="600">
JXG.Options.text.cssClass = 'myDefaultFont';
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5,5,5,-5]});
var board = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5,5,5,-5]});


Line 31: Line 33:
             fontSize:20
             fontSize:20
           });
           });
var p = board.create('point', [0,0]);


</jsxgraph>
</jsxgraph>

Revision as of 09:09, 10 October 2012

The JavaScript code