Added some files missing from last checkin

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@1631 eee81c28-f429-11dd-99c0-75d572ba1ddd
master
Alexis Deveria 2010-07-14 18:08:22 +00:00
parent d627c01d1e
commit a9ea21c521
2 changed files with 33 additions and 0 deletions

View File

@ -0,0 +1,26 @@
<!doctype html>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<body>
<h1>Select an image:</h1>
<a href="smiley.svg">smiley.svg</a>
</body>
<script>
$('a').click(function() {
// Do ajax request for image's href value
$.get(this.href, function(data) {
// This is where the magic happens!
window.top.postMessage(data, "*");
}, 'html'); // 'html' is necessary to keep returned data as a string
return false;
});
</script>

View File

@ -0,0 +1,7 @@
<?xml version='1.0'?>
<svg width="137" height="137" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<path id="svg_1" d="m32.186821,97.716736q36.315895,24.940765 72.545845,0m-64.675407,-49.255753c0,-3.855408 3.125259,-6.980789 6.980682,-6.980789c3.854485,0 6.978722,3.125381 6.978722,6.980789c0,3.853455 -3.124237,6.978668 -6.978722,6.978668c-3.855423,0 -6.980682,-3.125214 -6.980682,-6.978668m42.930473,0c0,-3.855408 3.12529,-6.980789 6.97963,-6.980789c3.854401,0 6.979706,3.125381 6.979706,6.980789c0,3.853455 -3.125305,6.978668 -6.979706,6.978668c-3.85434,0 -6.97963,-3.125214 -6.97963,-6.978668m-81.485962,20.035995l0,0c0,-37.001968 29.996788,-66.998917 67.000946,-66.998917c37.003036,0 66.999985,29.996948 66.999985,66.998917c0,37.004089 -29.996948,67.001007 -66.999985,67.001007c-37.004158,0 -67.000946,-29.996918 -67.000946,-67.001007zm0,0l0,0c0,-37.001968 29.996788,-66.998917 67.000946,-66.998917c37.003036,0 66.999985,29.996948 66.999985,66.998917c0,37.004089 -29.996948,67.001007 -66.999985,67.001007c-37.004158,0 -67.000946,-29.996918 -67.000946,-67.001007z" stroke-width="3" stroke="#000000" fill="#ffff00"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.1 KiB