Subversion Repositories wimsdev

Rev

Rev 11340 | Rev 12542 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
11759 obado 1
# [WIMS USER] Updating GeogebraWeb Library :
11340 obado 2
 
11759 obado 3
If you want tu use the latest ggb library adaptated to your WIMS version, just update your Geogebraweb-WIMS:
11340 obado 4
 
11759 obado 5
	./compile --geogebra
6
 
7
# Test your GeogebraWeb Installation
8
There are several WIMS modolues using GegebraWeb.
9
You can test for example one of these:
10
 
11
* [H1/geometry/OEFtriang5.fr](http://localhost/wims/wims.cgi?module=H1/geometry/OEFtriang5.fr&cmd=new&exo=constr1)
12
* [H3/geometry/oefprogpythag.fr](http://localhost/wims/wims.cgi?module=H3/geometry/oefprogpythag.fr&cmd=new&exo=experim)
13
* [U1/geometry/docisometriesplan.fr](http://localhost/wims/wims.cgi?module=U1%2Fgeometry%2Fdocisometriesplan.fr&+cmd=new&+job=read&+doc=1&+block=mainS2S1S1)
14
* [H5/geometry/vecteurs.fr](http://localhost/wims/wims.cgi?module=H5%2Fgeometry%2Fvecteurs.fr&cmd=new&job=read&doc=1&block=mainS1S1)
15
 
16
 
17
# [WIMS DEV] Upgrading GeogebraWeb Library :
18
 
11340 obado 19
## Download new version
20
 
11759 obado 21
* Download the latest GGBWeb at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/)
11340 obado 22
 
11759 obado 23
* unzip it to replace the geogebraweb folder
11340 obado 24
 
25
## Modify "deployggb.js"
11759 obado 26
Download the latest "deployggb.js" here: [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js)
11340 obado 27
 
28
## Adapt GGB code for WIMS
29
 
30
### Hack WIMS 1 :
11759 obado 31
GGB use it's own hosted library. To use WIMS included GGB version, replace the original *getTubeURL()* geogebra function in *deployggb.js* by this:
11340 obado 32
 
33
    var getTubeURL = function() {
34
        return "scripts/js/geogebra/geogebraweb/";
35
     };
11759 obado 36
nb : the original `getTubeURL` function finish by `return tubeurl};`
11340 obado 37
 
38
### Hack WIMS 2 :
11759 obado 39
Then, modify in "deployggb.js" `codebase="https://cdn.geogebra.org/apps/"+latestVersion+"/"`
11340 obado 40
 by `codebase = getTubeURL();`
41
 
42
### Hack WIMS 3 :
11759 obado 43
Since WIMS 4.15 still use ISO-xxx charsets (not UTF-8), you must add this to each geogebra "####.cache.js" files (web/, web3d/, ):
11340 obado 44
 
45
	d.charset='utf-8';
46
 
11759 obado 47
just next to this:
11340 obado 48
 
11759 obado 49
	()+'js/properties_keys_'+c+'.js');
11340 obado 50
 
51
## Publish new GGBWeb version into WIMS
52
* duplicate your geogebraweb folder
53
* rename it, so it contains the new version number
54
* zip it
11759 obado 55
* send it to wims.unice.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr))
11340 obado 56
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
57
* remove the duplicated folder and the zip archive
58
 
59
## See More...
60
Nb : if you're curious to see non-obfuscated geogebra code, you have to follow these explanations :
61
[dev.geogebra.org/trac/wiki/SetUp](https://dev.geogebra.org/trac/wiki/SetUp)