2013-10-29 03:32:01 +00:00
|
|
|
<!DOCTYPE html>
|
2009-08-21 13:44:54 +00:00
|
|
|
<html>
|
2018-05-18 06:41:43 +00:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
<title>SVG Edit</title>
|
|
|
|
<link rel="stylesheet" href="style.css">
|
|
|
|
<script>
|
2019-07-02 04:21:21 +00:00
|
|
|
/* eslint-disable no-unused-vars */
|
|
|
|
/**
|
|
|
|
* This method adds the script that overrides the default open/save handlers.
|
|
|
|
* @returns {void}
|
|
|
|
*/
|
2018-05-18 06:41:43 +00:00
|
|
|
function addHandlers () {
|
2019-07-02 04:21:21 +00:00
|
|
|
const cdoc = document.getElementById('container').contentDocument;
|
2018-05-18 06:41:43 +00:00
|
|
|
if (cdoc) {
|
2019-07-02 04:21:21 +00:00
|
|
|
const scriptelm = cdoc.createElement('script');
|
2018-05-18 06:41:43 +00:00
|
|
|
scriptelm.src = '../handlers.js';
|
|
|
|
cdoc.getElementsByTagName('head')[0].appendChild(scriptelm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<object id="container" data="editor/svg-editor.html" onload="addHandlers()">
|
|
|
|
Failed to load for some reason.
|
|
|
|
</object>
|
|
|
|
</body>
|
2009-08-21 13:44:54 +00:00
|
|
|
</html>
|