Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
html5: fixed line breaks bug, fixed bugs on newWindow, embedDiv and t…
…itle pages, completed textVideo page, new xerteModel page added git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@495 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
- Loading branch information
Showing
7 changed files
with
80 additions
and
56 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
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 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 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 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 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
35 changes: 35 additions & 0 deletions
35
modules/xerte/parent_templates/Nottingham/models_html5/xerteModel.html
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,35 @@ | ||
<script type="text/javascript"> | ||
|
||
// pageChanged & sizeChanged functions are needed in every model file | ||
// other functions for model should also be in here to avoid conflicts | ||
var xerteModel = new function() { | ||
// function called every time the page is viewed after it has initially loaded | ||
this.pageChanged = function() { | ||
|
||
} | ||
|
||
// function called every time the size of the LO is changed | ||
this.sizeChanged = function() { | ||
|
||
} | ||
} | ||
|
||
console.log(eval(x_currentPageXML.getAttribute("modelFile"))); | ||
if (x_currentPageXML.getAttribute("modelFile").toLowerCase().indexOf(".html") >= 0) { | ||
$("#pageContents").load(eval(x_currentPageXML.getAttribute("modelFile"))); | ||
} else { | ||
$("#x_pageDiv div").html("You can not view this type of content in the HTML5 viewer"); // ** need translated error message for if trying to load xerte model | ||
} | ||
|
||
// call this function in every model once everything's loaded | ||
x_pageLoaded(); | ||
|
||
</script> | ||
|
||
<style type="text/css"> | ||
|
||
</style> | ||
|
||
<div id="pageContents"> | ||
|
||
</div> |