| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
| 2 |
<html> |
| 3 |
<head> |
| 4 |
<title>Test the Feed Viewer (using ATOM)</title> |
| 5 |
<style type="text/css"> |
| 6 |
@import "../../../../dojo/resources/dojo.css"; |
| 7 |
@import "../../../../dijit/themes/tundra/tundra.css"; |
| 8 |
@import "../../widget/templates/css/EntryHeader.css"; |
| 9 |
@import "../../widget/templates/css/HtmlFeedViewer.css"; |
| 10 |
@import "../../widget/templates/css/HtmlFeedViewerGrouping.css"; |
| 11 |
@import "../../widget/templates/css/HtmlFeedViewerEntry.css"; |
| 12 |
@import "../../widget/templates/css/HtmlFeedEntryViewer.css"; |
| 13 |
</style> |
| 14 |
<script type="text/javascript"> |
| 15 |
var djConfig = {isDebug: true, parseOnLoad: true}; |
| 16 |
</script> |
| 17 |
<script type="text/javascript" src="../../../../dojo/dojo.js"></script> |
| 18 |
<script language="JavaScript" type="text/javascript"> |
| 19 |
dojo.require("dojox.atom.widget.FeedViewer"); |
| 20 |
dojo.require("dojox.atom.widget.FeedEntryViewer"); |
| 21 |
dojo.require("dojox.atom.widget.FeedEntryEditor"); |
| 22 |
dojo.require("dijit.layout.ContentPane"); |
| 23 |
dojo.require("dijit.layout.SplitContainer"); |
| 24 |
dojo.require("dojo.parser"); |
| 25 |
|
| 26 |
</script> |
| 27 |
<style> |
| 28 |
html, body, #main { |
| 29 |
width: 100%; |
| 30 |
height: 100%; |
| 31 |
/*overflow: hidden;*/ |
| 32 |
padding: 0 0 0 0; |
| 33 |
margin: 0 0 0 0; |
| 34 |
font-family: Myriad,Tahoma,Verdana,sans-serif; |
| 35 |
font-size: small; |
| 36 |
background: #FFF; |
| 37 |
} |
| 38 |
|
| 39 |
#ViewPane{ |
| 40 |
overflow: auto; |
| 41 |
overflow-x: auto; |
| 42 |
overflow-y: auto; |
| 43 |
padding: 5px; |
| 44 |
font-family: Myriad,Tahoma,Verdana,sans-serif; |
| 45 |
font-size: small; |
| 46 |
/*background: lightgrey;*/ |
| 47 |
background:#FFF; |
| 48 |
word-wrap: normal; |
| 49 |
} |
| 50 |
|
| 51 |
#EditorPane { |
| 52 |
overflow: auto; /* We want scrolling*/ |
| 53 |
overflow-x: auto; |
| 54 |
overflow-y: auto; |
| 55 |
padding: 0px; |
| 56 |
background: #FFF; |
| 57 |
} |
| 58 |
|
| 59 |
#ActionContainer { |
| 60 |
height: 1024px; |
| 61 |
} |
| 62 |
|
| 63 |
</style> |
| 64 |
</head> |
| 65 |
<body class="tundra"> |
| 66 |
|
| 67 |
|
| 68 |
<div id="ActionContainer" |
| 69 |
dojoType="dijit.layout.SplitContainer" |
| 70 |
orientation="horizontal" |
| 71 |
sizerWidth="1" |
| 72 |
activeSizing="false" |
| 73 |
> |
| 74 |
<div dojoType="dijit.layout.ContentPane" |
| 75 |
id="ViewPaneID" |
| 76 |
executeScripts="true" |
| 77 |
> |
| 78 |
<div dojoType="dojox.atom.widget.FeedViewer" |
| 79 |
id="fv1" |
| 80 |
url="samplefeed.xml" |
| 81 |
entrySelectionTopic="atomfeed.entry.topic"> |
| 82 |
</div> |
| 83 |
</div> |
| 84 |
|
| 85 |
<div dojoType="dijit.layout.ContentPane" |
| 86 |
id="ViewPaneID2" |
| 87 |
executeScripts="true" |
| 88 |
> |
| 89 |
<div dojoType="dojox.atom.widget.FeedViewer" |
| 90 |
id="fv2" |
| 91 |
xmethod="true" |
| 92 |
localSaveOnly="true" |
| 93 |
url="samplefeedEdit.xml" |
| 94 |
entrySelectionTopic="atomfeed2.entry.topic"> |
| 95 |
</div> |
| 96 |
</div> |
| 97 |
|
| 98 |
<div dojoType="dijit.layout.ContentPane" |
| 99 |
id="EditorPaneID2" |
| 100 |
executeScripts="true" |
| 101 |
> |
| 102 |
<div dojoType="dojox.atom.widget.FeedEntryEditor" |
| 103 |
id="feedEditor2" |
| 104 |
enableMenu="true" |
| 105 |
enableMenuFade="true" |
| 106 |
enableEdit="true" |
| 107 |
displayEntrySections="title,authors,summary,content,id" |
| 108 |
entrySelectionTopic="atomfeed2.entry.topic"> |
| 109 |
</div> |
| 110 |
</div> |
| 111 |
|
| 112 |
|
| 113 |
<div dojoType="dijit.layout.ContentPane" |
| 114 |
id="EditorPaneID" |
| 115 |
executeScripts="true" |
| 116 |
> |
| 117 |
<div dojoType="dojox.atom.widget.FeedEntryViewer" |
| 118 |
id="feedEditor" |
| 119 |
enableMenu="true" |
| 120 |
enableMenuFade="true" |
| 121 |
enableEdit="true" |
| 122 |
displayEntrySections="title,authors,summary,content" |
| 123 |
entrySelectionTopic="atomfeed.entry.topic"> |
| 124 |
</div> |
| 125 |
</div> |
| 126 |
|
| 127 |
</div> |
| 128 |
|
| 129 |
|
| 130 |
</body> |
| 131 |
</html> |