Subversion Repositories wimsdev

Rev

Rev 12542 | Rev 16660 | 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
12542 obado 8
There are several WIMS modules using GegebraWeb.
11759 obado 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
 
12542 obado 16
---
11759 obado 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
 
12542 obado 23
* unzip it and use its content 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 :
12542 obado 39
Then, replace in "deployggb.js" `codebase="https://cdn.geogebra.org/apps/"+latestVersion+"/"`
11340 obado 40
 by `codebase = getTubeURL();`
41
 
42
### Hack WIMS 3 :
12542 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
 
12542 obado 47
just before something like this:
11340 obado 48
 
12542 obado 49
	d.src=e+'js/properties_keys_'
14710 obado 50
 
12542 obado 51
Don't forget to clean your browser cache, and then
11340 obado 52
 
53
## Publish new GGBWeb version into WIMS
54
* duplicate your geogebraweb folder
12542 obado 55
* rename it "GeoGebraWeb-WIMS-5.X.YYY.0", so it contains the new version number
11340 obado 56
* zip it
14710 obado 57
* If you'r on MacOS X :
12542 obado 58
	* `for file in *.zip; do zip "$file" -qd "__MACOSX/*"; done`
14710 obado 59
* send it to wims.univ-cotedazur.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr))
11340 obado 60
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
61
* remove the duplicated folder and the zip archive
62
 
63
## See More...
64
Nb : if you're curious to see non-obfuscated geogebra code, you have to follow these explanations :
14710 obado 65
[dev.geogebra.org/trac/wiki/SetUp](https://dev.geogebra.org/trac/wiki/SetUp)