Rev 16660 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16660 | Rev 18584 | ||
---|---|---|---|
Line 6... | Line 6... | ||
6 | 6 | ||
7 | # Test your GeogebraWeb Installation |
7 | # Test your GeogebraWeb Installation |
8 | There are several WIMS modules using GegebraWeb. |
8 | There are several WIMS modules using GegebraWeb. |
9 | You can test for example one of these: |
9 | You can test for example one of these: |
10 | 10 | ||
- | 11 | ## mode "web3d": |
|
11 | * [H1/geometry/OEFtriang5.fr](http://localhost/wims/wims.cgi?module=H1/geometry/OEFtriang5.fr&cmd=new&exo=constr1) |
12 | * [H1/geometry/OEFtriang5.fr](http://localhost/wims/wims.cgi?module=H1/geometry/OEFtriang5.fr&cmd=new&exo=constr1) |
- | 13 | * [H2/geometry/oefevalwimssym.fr](http://localhost/wims/?cmd=new&module=H2/geometry/oefevalwimssym.fr&exo=conservation2) |
|
12 | * [H3/geometry/oefprogpythag.fr](http://localhost/wims/wims.cgi?module=H3/geometry/oefprogpythag.fr&cmd=new&exo=experim) |
14 | * [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) |
15 | * [U1/geometry/docisometriesplan.fr](http://localhost/wims/wims.cgi?module=U1%2Fgeometry%2Fdocisometriesplan.fr&+cmd=new&+job=read&+doc=1&+block=mainS2S1S1) |
- | 16 | ||
- | 17 | ||
- | 18 | ## mode "webSimple": |
|
14 | * [H5/geometry/vecteurs.fr](http://localhost/wims/wims.cgi?module=H5%2Fgeometry%2Fvecteurs.fr&cmd=new&job=read&doc=1&block=mainS1S1) |
19 | * [H5/geometry/vecteurs.fr](http://localhost/wims/wims.cgi?module=H5%2Fgeometry%2Fvecteurs.fr&cmd=new&job=read&doc=1&block=mainS1S1) |
- | 20 | ||
15 | 21 | ||
16 | --- |
22 | --- |
17 | # [WIMS DEV] Upgrading GeogebraWeb Library : |
23 | # [WIMS DEV] Upgrading GeogebraWeb Library : |
18 | [](https://wiki.geogebra.org/en/Reference:GeoGebra_Apps_Embedding#Offline_and_Self-Hosted_Solution) |
24 | [Self-Hosted solution](https://wiki.geogebra.org/en/Reference:GeoGebra_Apps_Embedding#Offline_and_Self-Hosted_Solution) |
19 | 25 | ||
20 | ## Download new version |
26 | ## Download new version |
21 | 27 | ||
22 | * Download the latest GGB bundle at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/) |
28 | * Download the latest GGB bundle at [dev.geogebra.org/download/web](http://dev.geogebra.org/download/web/) |
- | 29 | ou lien direct (latest) ==> https://download.geogebra.org/package/geogebra-math-apps-bundle |
|
23 | * Usually, it is the [geogebra-math-apps-bundle-5-xxx.zip](https://dev.geogebra.org/download/web/geogebra-math-apps-bundle-5-0-700-0.zip) |
30 | * Usually, it is the [geogebra-math-apps-bundle-5-xxx.zip](https://dev.geogebra.org/download/web/geogebra-math-apps-bundle-5-0-700-0.zip) |
24 | 31 | ||
25 | * unzip it and use |
32 | * unzip it and use the content of HTML5/5.0 to replace the geogebraweb folder |
26 | 33 | ||
27 | ## Modify "deployggb.js" |
34 | ## Modify "deployggb.js" |
28 | replace your deployggb.js by the one included in the zip you just downloaded |
35 | replace your deployggb.js by the one included in the zip you just downloaded |
29 | 36 | ||
30 | ## Adapt GGB code for WIMS |
37 | ## Adapt GGB code for WIMS |
31 | 38 | ||
32 | ### Hack WIMS 1 : |
39 | ### Hack WIMS 1 : |
33 | GGB use it's own hosted library. To use WIMS included GGB version, replace the original * |
40 | GGB use it's own hosted library. To use WIMS included GGB version, replace the original *codebase* URL in *deployggb.js* by this: |
34 | 41 | ||
35 | var getTubeURL = function() { |
- | |
36 |
|
42 | codebase="https://www.geogebra.org |
37 | }; |
- | |
38 | nb : the original `getTubeURL` function finish by `return tubeurl};` |
43 | nb : the original `getTubeURL` function finish by `return tubeurl};` |
39 | 44 | ||
40 | ### Hack WIMS 2 : |
45 | ### Hack WIMS 2 : |
41 | Then, replace in "deployggb.js" |
46 | Then, replace in "deployggb.js" `webModule.__moduleBase="https://www.geogebra.org..."+name+"/";` |
42 | by |
47 | by `webModule.__moduleBase="scripts/js/geogebra/geogebraweb/"+name+"/";` |
43 | 48 | ||
44 | ### Hack WIMS 3 : |
49 | ### Hack WIMS 3 : |
45 | Since WIMS 4.x still use ISO-xxx charsets (not UTF-8), you must add this to each geogebra "####.cache.js" files (web/ & web3d/): |
50 | Since WIMS 4.x still use ISO-xxx charsets (not UTF-8), you must add this to each geogebra "####.cache.js" files (web/ & web3d/): |
46 | 51 | ||
47 |
|
52 | 1. first search for string "js/properties_keys" |
48 | - | ||
- | 53 | 2. when found, find the function associated "D2l(d+'js/pr..." => D2l |
|
49 |
|
54 | 3. search this function, like "function D2l(" |
- | 55 | 4. add a "c.charset='utf-8';" after the creatElement(...) |
|
50 | 56 | ||
51 | d.src=e+'js/properties_keys_' |
- | |
52 | 57 | ||
53 | Don't forget to clean your browser cache, and then |
58 | Don't forget to clean your browser cache, and then |
54 | 59 | ||
55 | ## Test the new version on existing modules |
60 | ## Test the new version on existing modules |
56 |
|
61 | See the [WIMS USER] section for samples of exercices to be tested. |
57 | * [H2/geometry/oefevalwimssym.fr](//localhost/wims/?cmd=new&module=H2/geometry/oefevalwimssym.fr&exo=conservation2) |
- | |
58 | * [H4/geometry/anglesCercleTrigo.fr](//localhost/wims/?cmd=new&module=H4%2Fgeometry%2FanglesCercleTrigo.fr) |
- | |
59 | 62 | ||
60 | ## Publish new GGBWeb version into WIMS |
63 | ## Publish new GGBWeb version into WIMS |
61 | * duplicate your geogebraweb folder |
64 | * duplicate your geogebraweb folder |
62 | * rename it "GeoGebraWeb-WIMS-5.X.YYY.0", so it contains the new version number |
65 | * rename it "GeoGebraWeb-WIMS-5.X.YYY.0", so it contains the new version number |
63 | * zip it |
66 | * zip it |
64 | * If you'r on MacOS X : |
67 | * If you'r on MacOS X : |
65 | * `for file in *.zip; do zip "$file" - |
68 | * `for file in *.zip; do zip "$file" -d "__MACOSX/*"; done` |
- | 69 | * `for file in *.zip; do zip "$file" -d "\*/.DS_Store"; done` |
|
66 | * send it to wims.univ-cotedazur.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr)) |
70 | * send it to wims.univ-cotedazur.fr/download server (ask his administrator [bado@unice.fr](mailto:bado@unice.fr)) |
67 | * Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version |
71 | * Update the variable vGeogebra in the ./compile file at WIMS root, so it contains the new Geogebra number version |
68 | * remove the duplicated folder and the zip archive |
72 | * remove the duplicated folder and the zip archive |
69 | 73 | ||
70 | ## See More... |
74 | ## See More... |