Subversion Repositories wimsdev

Rev

Rev 11340 | Rev 12542 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 11340 Rev 11759
Line -... Line 1...
-
 
1
# [WIMS USER] Updating GeogebraWeb Library :
1
 
2
 
-
 
3
If you want tu use the latest ggb library adaptated to your WIMS version, just update your Geogebraweb-WIMS:
-
 
4
 
-
 
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
 
2
# How to update GeogebraWeb Library :
17
# [WIMS DEV] Upgrading GeogebraWeb Library :
3
 
18
 
4
## Download new version
19
## Download new version
5
 
20
 
6
Download the latest GGBWeb at http://dev.geogebra.org/download/web/
21
* Download the latest GGBWeb at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/)
7
 
-
 
8
Upgrade Geogebraweb :
-
 
9
 
22
 
10
	./compile --geogebra
23
* unzip it to replace the geogebraweb folder
11
 
24
 
12
## Modify "deployggb.js"
25
## Modify "deployggb.js"
13
Download the latest "deployggb.js" here : [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js)
26
Download the latest "deployggb.js" here: [www.geogebra.org/scripts/deployggb.js](https://www.geogebra.org/scripts/deployggb.js)
14
 
27
 
15
## Adapt GGB code for WIMS
28
## Adapt GGB code for WIMS
16
 
29
 
17
### Hack WIMS 1 :
30
### Hack WIMS 1 :
18
GGB use it's own hosted library. To use WIMS included GGB version, replace the original *getTubeURL()* geogebra function in *deployggb.js* by this :
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:
19
 
32
 
20
    var getTubeURL = function() {
33
    var getTubeURL = function() {
21
        return "scripts/js/geogebra/geogebraweb/";
34
        return "scripts/js/geogebra/geogebraweb/";
22
     };
35
     };
-
 
36
nb : the original `getTubeURL` function finish by `return tubeurl};`
23
 
37
 
24
### Hack WIMS 2 :
38
### Hack WIMS 2 :
25
Then, modify in "deployggb.js" `codebase = "https://cdn.geogebra.org/apps/" + latestVersion + "/"`
39
Then, modify in "deployggb.js" `codebase="https://cdn.geogebra.org/apps/"+latestVersion+"/"`
26
 by `codebase = getTubeURL();`
40
 by `codebase = getTubeURL();`
27
 
41
 
28
### Hack WIMS 3 :
42
### Hack WIMS 3 :
29
Since WIMS 4.13 use ISO-xxx charsets (not UTF-8), you must add this to each 3 geogebra "####.cache.js" files (web/, web3d/, webSimple/) :
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/, ):
30
 
44
 
31
	d.charset='utf-8';
45
	d.charset='utf-8';
32
 
46
 
33
just next to this :
47
just next to this:
34
 
48
 
35
	()+'js/properties_keys_'+c+'.js');`
49
	()+'js/properties_keys_'+c+'.js');
36
 
50
 
37
## Publish new GGBWeb version into WIMS
51
## Publish new GGBWeb version into WIMS
38
* duplicate your geogebraweb folder
52
* duplicate your geogebraweb folder
39
* rename it, so it contains the new version number
53
* rename it, so it contains the new version number
40
* zip it
54
* zip it
41
* send it to wims.unice.fr/download server (ask his administrator bado@unice.fr)
55
* send it to wims.unice.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr))
42
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
56
* Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version
43
* remove the duplicated folder and the zip archive
57
* remove the duplicated folder and the zip archive
44
 
58
 
45
## See More...
59
## See More...
46
Nb : if you're curious to see non-obfuscated geogebra code, you have to follow these explanations :
60
Nb : if you're curious to see non-obfuscated geogebra code, you have to follow these explanations :