You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
80 lines
2.5 KiB
80 lines
2.5 KiB
2 years ago
|
<?xml version='1.0'?>
|
||
|
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
|
||
|
"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-flat-20030114.dtd">
|
||
|
<svg xmlns="http://www.w3.org/2000/svg"
|
||
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||
|
xmlns:dojo="http://dojotoolkit.org/dojoml"
|
||
|
onload="dojo.hostenv.modulesLoaded();">
|
||
|
<style type="text/css">
|
||
|
<![CDATA[
|
||
|
ellipse, rect, circle {
|
||
|
fill: url(#buttonGradient);
|
||
|
stroke:black;
|
||
|
stroke-width:1;
|
||
|
}
|
||
|
]]>
|
||
|
</style>
|
||
|
<script type="text/ecmascript"><![CDATA[
|
||
|
// Dojo configuration
|
||
|
window.djConfig = {
|
||
|
baseRelativePath: "../../../",
|
||
|
baseScriptUri: "../../../",
|
||
|
isDebug: true
|
||
|
};
|
||
|
// libraryScriptUri : "../../../hostenv_adobesvg.js",
|
||
|
]]></script>
|
||
|
<script type="text/ecmascript" xlink:href="../../../src/bootstrap1.js" />
|
||
|
<script type="text/ecmascript" xlink:href="../../../src/hostenv_adobesvg.js" />
|
||
|
<script type="text/ecmascript" xlink:href="../../../src/bootstrap2.js" />
|
||
|
<script type="text/ecmascript"><![CDATA[
|
||
|
dojo.require("dojo.xml.Parse");
|
||
|
dojo.require("dojo.webui.widgets.Parse");
|
||
|
dojo.require("dojo.webui.widgets.Button");
|
||
|
dojo.require("dojo.webui.widgets.SVGButton");
|
||
|
|
||
|
/*
|
||
|
dojo.hostenv.modulesLoadedListeners.push(function(evt){
|
||
|
//alert("init!")'
|
||
|
// add your on-load logic here
|
||
|
var parser = new dojo.xml.Parse();
|
||
|
var frag = parser.parseElement(document);
|
||
|
//outputObjectInfo(frag);
|
||
|
|
||
|
});
|
||
|
*/
|
||
|
|
||
|
// alert(dojo.hostenv.modulesLoadedListeners.length);
|
||
|
dojo.hostenv.modulesLoadedListeners.push(function(){
|
||
|
var parser = new dojo.xml.Parse();
|
||
|
try{
|
||
|
var frag = parser.parseElement(window.document.documentElement);
|
||
|
var fragParser = dojo.webui.widgets.getParser();
|
||
|
fragParser.createComponents(frag);
|
||
|
// alert("fragParser: "+fragParser);
|
||
|
}catch(e){
|
||
|
alert(e);
|
||
|
}
|
||
|
});
|
||
|
|
||
|
]]></script>
|
||
|
<defs>
|
||
|
<!--<radialGradient id="buttonGradient" cx="0" cy="0" fx="0%" fy="0%" r="100%">
|
||
|
<stop offset="0%" style="stop-color:#555555"/>
|
||
|
<stop offset="100%" style="stop-color:#f0f0f0"/>
|
||
|
</radialGradient>
|
||
|
-->
|
||
|
<linearGradient id="buttonGradient" x1="0%" y1="0%" x2="0%" y2="100%">
|
||
|
<stop offset="0%" style="stop-color:#ffffff"/>
|
||
|
<stop offset="100%" style="stop-color:#c0c0c0"/>
|
||
|
</linearGradient>
|
||
|
-->
|
||
|
</defs>
|
||
|
<g>
|
||
|
<text x="20" y="20" style="stroke:none;fill:#000000;">Check your javascript log; the scripts were all loaded in the head.</text>
|
||
|
<text x="20" y="35" dojoType="button" label="this is a test button!" onClick="alert(this.domNode);">
|
||
|
you shouldn't be seeing this
|
||
|
</text>
|
||
|
</g>
|
||
|
</svg>
|
||
|
|