blob: 17bff037d8ebab06beb5b9b7cee4905299695dd2 [file] [log] [blame]
genia.likes.science@gmail.comc5f82a22013-05-08 02:44:35 -07001<!doctype html>
2<html>
3 <head>
4 <title>easyXDM</title>
5 <script type="text/javascript" src="../easyXDM.debug.js">
6 </script>
7 <script type="text/javascript">
8 easyXDM.DomHelper.requiresJSON("../json2.js");
9 </script>
10 <script type="text/javascript" src="../easyXDM.Widgets.debug.js">
11 </script>
12 <script type="text/javascript">
13 var _widgetManager;
14 easyXDM.whenReady(function(){
15 _widgetManager = new easyXDM.WidgetManager({
16 swf: "../easyxdm.swf",
17 container: document.getElementById("widgets")
18 });
19 document.getElementById("widget1url").value = location.href.replace("consumer", "provider").replace("widgets.html", "widget.html");
20 document.getElementById("widget2url").value = location.href.replace("consumer.", "").replace("widgets.html", "widget.html");
21 });
22 </script>
23 <style type="text/css">
24
25 #widgets {
26 height: 400px;
27 }
28
29 #widgets iframe {
30 width: 200px;
31 height: 300px;
32 float: left;
33 }
34 </style>
35 </head>
36 <body>
37 <div style="border:1px solid black;padding:3px;margin:10px;">
38 <a href="index.html">Index of examples</a>
39 | <a href="http://github.com/oyvindkinsey/easyXDM/#readme">Readme at github</a>
40 |
41 | <a href="http://easyxdm.net/">easyXDM.net</a>
42 | <a href="http://groups.google.com/group/easyxdm">easyXDM at Google Groups</a>
43 <br/>
44 The examples are executing slower than the production build due to the extensive tracing.
45 <br/>
46 If you are alerted about a popup, then this is only the trace log feature. You can ignore this.
47 </div>
48 <!-- easyXDM.Debug.trace(msg) will output its messages to any element with the id "log" -->
49 <div id="log" style="height:100px;border:1px dotted black;overflow:auto">
50 </div>
51 <div>
52 <input type="text" id="widget1url" style="width:300px" value=""/><input type="button" onclick="_widgetManager.addWidget(document.getElementById('widget1url').value,{});" value="Add Widget"/><input type="button" onclick="_widgetManager.removeWidget(document.getElementById('widget1url').value);" value="Remove Widget"/>
53 </div>
54 <div>
55 <input type="text" id="widget2url" style="width:300px" value=""/><input type="button" onclick="_widgetManager.addWidget(document.getElementById('widget2url').value,{});" value="Add Widget"/><input type="button" onclick="_widgetManager.removeWidget(document.getElementById('widget2url').value);" value="Remove Widget"/>
56 </div><input type="button" onclick="_widgetManager.publish('testtopic','abc');" value="publish"/>
57 <div id="widgets">
58 </div>
59 <script type="text/javascript">
60 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
61 document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
62 </script>
63 <script type="text/javascript">
64 if (location.host.indexOf("easyxdm.net") !== -1) {
65 try {
66 var pageTracker = _gat._getTracker("UA-9535591-3");
67 pageTracker._setDomainName(".easyxdm.net");
68 pageTracker._trackPageview();
69 }
70 catch (err) {
71 }
72 }
73 </script>
74 </body>
75</html>