Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
juliantenney committed Oct 16, 2012
1 parent 9b65195 commit bea1227
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1 +1 @@
<PG title="Column Page" name="columnPage"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (rootIcon.projMode == "dev"){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject();}rootIcon.setTitleText(templateData.learningObject[0].name);// handle multiple page data definitions in a project if (rootIcon.projectPageIndex == undefined){ rootIcon.projectPageIndex = 0;}// check if this page has a definition for the current project index and default to 0 if notif (pageIcon.templateData.columnPage[rootIcon.projectPageIndex].name == undefined){ projPI = 0;} else { projPI = rootIcon.projectPageIndex; } colCount = pageIcon.templateData.columnPage[projPI].nestedPage.length;colWidth = 780 / colCount;if (pageIcon.templateData.columnPage[projPI].narration != undefined){ narration = pageIcon.templateData.columnPage[projPI].narration; rootIcon.broadcast('showAudio');}]]></SCR> <SCR name="header"><![CDATA[if (pageIcon.templateData.columnPage[projPI].header == undefined && icon.built != 'true'){ icon.nextSibling.removeNode(); icon.built = 'true';}]]></SCR> <DIS id="header" name="header" x="20" y="20" w="760" h="10" type="text"><![CDATA[{pageIcon.templateData.columnPage[projPI].header}]]></DIS> <SCR name="getHeaderHeight"><![CDATA[if (pageIcon.templateData.columnPage[projPI].header == undefined){ headerHeight = 0;} else { headerHeight = header._height + 20;}if (icon.built != "true"){ icon.nextSibling.firstChild.duplicate(colCount - 1); icon.built = "true";}]]></SCR> <DEC id="columns" name="columns" repeat="all" branch="sequence" pause="0" erase="0" eraseOnExit="0"> <PG name="protoColumn"> <SCR name="deleteLoader"><![CDATA[col = icon.parentNode.clip();textH = 480 - headerHeight;if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url != undefined){ if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].controls == 'Control Bar'){ icon.nextSibling.attributes.controls = '1'; } if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip != undefined){ icon.nextSibling.attributes.toolTip = pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip; icon.nextSibling.firstChild.nodeValue = '{"' + pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip + '"}'; } } else { //no graphic icon.parentNode.getChildByName('graphic').removeNode(); icon.parentNode.getChildByName('loader').removeNode();}]]></SCR> <DIS id="graphic" name="graphic" x="20 + (colWidth * icon.parentNode.index())" y="colText._y + colText._height + 20" type="ext" url="{pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url}"><![CDATA[]]></DIS> <INT name="loader" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="1"> <SCR name="resize"><![CDATA[graphic.constrain(colWidth - 20, 300);textH = 480 - headerHeight - graphic._height - 20;if (pageIcon.templateData.columnPage[projPI].nestedPage[columns.getPageIndex()].initObject != undefined){ obj = expression(pageIcon.templateData.accNav[0].nestedPage[icon.parentNode.parentNode.parentNode.index()].initObject, engine); graphic.clip.init(obj);}]]></SCR> </RES> </INT> <DIS id="colText" scrolling="auto" name="text" x="20 + (colWidth * icon.parentNode.index())" y="20 + headerHeight" w="colWidth - 20" h="textH" type="text"><![CDATA[{pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].text}]]></DIS> <SCR name="position"><![CDATA[colText._y = 20 + headerHeight;if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url != undefined){ if (pageIcon.templateData.columnPage[projPI].nestedPage[columns.getPageIndex()].align == 'Top'){ colText._y = 20 + headerHeight; graphic._y = 20 + headerHeight + textH + 20; } else { colText._y = 20 + graphic._height + 20 + headerHeight; graphic._y = 20 + headerHeight; }} else { //no graphic}]]></SCR> </PG> </DEC> </PG>
<PG title="Column Page" name="columnPage"> <SCR name="getPageID"><![CDATA[pageIcon = icon.parentNode.clip();if (rootIcon.projMode == "dev"){ // Page Wizard pageIcon.templateData = pageIcon.extXML.toObject(); pageIcon.templateData = pageIcon.templateData.pageWizard[0];} else { // Toolkits myXML = new XML(extXML.firstChild.childNodes[rootIcon.getPageIndex() - pgOffset]); pageIcon.templateData = myXML.toObject();}rootIcon.setTitleText(templateData.learningObject[0].name);// handle multiple page data definitions in a project if (rootIcon.projectPageIndex == undefined){ rootIcon.projectPageIndex = 0;}// check if this page has a definition for the current project index and default to 0 if notif (pageIcon.templateData.columnPage[rootIcon.projectPageIndex].name == undefined){ projPI = 0;} else { projPI = rootIcon.projectPageIndex; } colCount = pageIcon.templateData.columnPage[projPI].nestedPage.length;colWidth = 780 / colCount;if (pageIcon.templateData.columnPage[projPI].narration != undefined){ narration = pageIcon.templateData.columnPage[projPI].narration; rootIcon.broadcast('showAudio');}]]></SCR> <SCR name="header"><![CDATA[if (pageIcon.templateData.columnPage[projPI].header == undefined && icon.built != 'true'){ icon.nextSibling.removeNode(); icon.built = 'true';}]]></SCR> <DIS id="header" name="header" x="20" y="20" w="760" h="10" type="text"><![CDATA[{pageIcon.templateData.columnPage[projPI].header}]]></DIS> <SCR name="getHeaderHeight"><![CDATA[if (pageIcon.templateData.columnPage[projPI].header == undefined){ headerHeight = 0;} else { headerHeight = header._height + 20;}if (icon.built != "true"){ icon.nextSibling.firstChild.duplicate(colCount - 1); icon.built = "true";}]]></SCR> <DEC id="columns" name="columns" repeat="all" branch="sequence" pause="0" erase="0" eraseOnExit="0"> <PG name="protoColumn"> <SCR name="deleteLoader"><![CDATA[col = icon.parentNode.clip();textH = 480 - headerHeight;if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url != undefined){ if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].controls == 'Control Bar'){ icon.nextSibling.attributes.controls = '1'; } if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip != undefined){ icon.nextSibling.attributes.toolTip = pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip; icon.nextSibling.firstChild.nodeValue = '{"' + pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].tip + '"}'; } } else { //no graphic icon.parentNode.getChildByName('graphic').removeNode(); icon.parentNode.getChildByName('loader').removeNode();}]]></SCR> <DIS id="graphic" name="graphic" x="20 + (colWidth * icon.parentNode.index())" y="colText._y + colText._height + 20" type="ext" url="{pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url}"><![CDATA[]]></DIS> <INT name="loader" perpetual="0"> <RES name="onLoad" type="event" eventName="onLoad" icon="graphic" erase="1" exit="1"> <SCR name="resize"><![CDATA[graphic.constrain(colWidth - 20, 300);textH = 480 - headerHeight - graphic._height - 20;if (pageIcon.templateData.columnPage[projPI].nestedPage[columns.getPageIndex()].initObject != undefined){ obj = expression(pageIcon.templateData.columnPage[projPI].nestedPage[columns.getPageIndex()].initObject, engine); graphic.clip.init(obj);}]]></SCR> </RES> </INT> <DIS id="colText" scrolling="auto" name="text" x="20 + (colWidth * icon.parentNode.index())" y="20 + headerHeight" w="colWidth - 20" h="textH" type="text"><![CDATA[{pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].text}]]></DIS> <SCR name="position"><![CDATA[colText._y = 20 + headerHeight;if (pageIcon.templateData.columnPage[projPI].nestedPage[icon.parentNode.index()].url != undefined){ if (pageIcon.templateData.columnPage[projPI].nestedPage[columns.getPageIndex()].align == 'Top'){ colText._y = 20 + headerHeight; graphic._y = 20 + headerHeight + textH + 20; } else { colText._y = 20 + graphic._height + 20 + headerHeight; graphic._y = 20 + headerHeight; }} else { //no graphic}]]></SCR> </PG> </DEC> </PG>
Expand Down

0 comments on commit bea1227

Please sign in to comment.