Skip to content

Commit

Permalink
Starting to look at adding navigators to the site template. Didn't ge…
Browse files Browse the repository at this point in the history
…t too far...

git-svn-id: https://xerteonlinetoolkits.googlecode.com/svn/trunk@726 912cdd6b-5c7d-d5a7-a2ba-d0f0cdb91641
  • Loading branch information
thexerteproject committed Mar 15, 2013
1 parent 17944fa commit d4d2fd8
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 0 deletions.
21 changes: 21 additions & 0 deletions modules/xerte/parent_templates/site/common/js/application.js
Expand Up @@ -117,6 +117,27 @@ function parseContent(index){
if (this.nodeName == 'video'){
section.append('<p><b>' + $(this).attr('name') + '</b></p><p><video style="max-width: 100%" class="fullPageVideo" src="' + eval( $(this).attr('url') ) + '" type="video/mp4" id="player1" controls="controls" preload="none"></video></p>');
}

if (this.nodeName == 'navigator'){

alert("Navver");

if ($(this).attr('type') == 'Tabs'){
alert("make a tab set");
}

if ($(this).attr('type') == 'Accordion'){
alert("make an accordion");
}

if ($(this).attr('type') == 'Pills'){
alert("make a pill set");
}

if ($(this).attr('type') == 'Carousel'){
alert("make a carousel");
}
}

});

Expand Down
28 changes: 28 additions & 0 deletions modules/xerte/parent_templates/site/data.xwd
Expand Up @@ -30,6 +30,7 @@
<newNodes>

<script><![CDATA[<script name="Name">//javascript</script>]]></script>
<navigator><![CDATA[<navigator name="Name" type="Tabs"/>]]></navigator>
<video><![CDATA[<video name="Name" url="Select File..."/>]]></video>
<audio><![CDATA[<audio name="Name" url="Select File..."/>]]></audio>
<image><![CDATA[<image name="Name" url="Select File..." alt="Alt Text"/>]]></image>
Expand Down Expand Up @@ -73,4 +74,31 @@

</video>

<navigator icon="icPages" menuItem="Navigator" remove="true">

<name type="TextInput" label="Name"/>
<type type="ComboBox" label="Type" options="Accordion,Carousel,Pills,Tabs" width="120"/>

<newNodes>

<pane><![CDATA[<pane name="Name"/>]]></pane>

</newNodes>

</navigator>

<pane icon="icPageWhite" remove="true" duplicate="true" menuItem="Pane">

<name type="TextInput" label="Pane Title"/>

<newNodes>

<video><![CDATA[<video name="Name" url="Select File..."/>]]></video>
<audio><![CDATA[<audio name="Name" url="Select File..."/>]]></audio>
<image><![CDATA[<image name="Name" url="Select File..." alt="Alt Text"/>]]></image>
<text><![CDATA[<text name="Name">Enter Text Here</text>]]></text>

</newNodes>
</pane>

</wizard>

0 comments on commit d4d2fd8

Please sign in to comment.