forked from oppia/oppia
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update main integrations folder with Google Sites integration.
- Loading branch information
Showing
6 changed files
with
64 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Embedding Oppia explorations in a Google Sites page Version 0.0.0 | ||
--------------------------------------------------- | ||
|
||
On the Sites page, select: | ||
|
||
'Insert' -> 'More Gadgets' -> 'Add gadget by URL' | ||
|
||
and add the following URL [*]: | ||
|
||
https://oppia.googlecode.com/git-history/v2.0.0.rc.3/integrations/google_sites_20150606_v0.0.0/gadget.xml | ||
|
||
Then, enter values for the exploration ID and the Oppia base server URL, and | ||
select 'OK'. | ||
|
||
[*] WARNING: The above URL may change over time. If you want this URL to be | ||
stable, you can download the XML file from integrations/google_sites/gadget.xml | ||
and host it somewhere, then point to it. |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
Embedding Oppia explorations in a Google Sites page Version {{VERSION}} | ||
--------------------------------------------------- | ||
|
||
On the Sites page, select: | ||
|
||
'Insert' -> 'More Gadgets' -> 'Add gadget by URL' | ||
|
||
and add the following URL [*]: | ||
|
||
https://oppia.googlecode.com/git-history/v2.0.0.rc.3/integrations/google_sites_{{DATE}}_v{{VERSION}}/gadget.xml | ||
|
||
Then, enter values for the exploration ID and the Oppia base server URL, and | ||
select 'OK'. | ||
|
||
[*] WARNING: The above URL may change over time. If you want this URL to be | ||
stable, you can download the XML file from integrations/google_sites/gadget.xml | ||
and host it somewhere, then point to it. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<Module> | ||
<ModulePrefs title="Oppia Gadget" height="800" width="600" author="Google"> | ||
<Require feature="dynamic-height"/> | ||
</ModulePrefs> | ||
<UserPref name="explorationId" display_name="Exploration ID" /> | ||
<UserPref name="serverBaseUrl" display_name="Oppia Server Base URL" default_value="https://www.oppia.org" /> | ||
<Content type="html"> | ||
<![CDATA[ | ||
<script src="//cdn.jsdelivr.net/oppia/0.0.1/oppia-player.min.js"></script> | ||
<oppia id="oppiaTag" oppia-id="" src=""></oppia> | ||
<script type="text/javascript"> | ||
var prefs = new gadgets.Prefs(); | ||
function loadGadget() { | ||
var element = document.getElementById('oppiaTag'); | ||
element.setAttribute('oppia-id', prefs.getString('explorationId')); | ||
element.setAttribute('src', prefs.getString('serverBaseUrl')); | ||
} | ||
gadgets.util.registerOnLoadHandler(loadGadget); | ||
</script> | ||
]]> | ||
</Content> | ||
</Module> |