29 lines
820 B
HTML
29 lines
820 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<title>SVG Edit</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
<script>
|
|
/* eslint-disable no-unused-vars */
|
|
/**
|
|
* This method adds the script that overrides the default open/save handlers.
|
|
* @returns {void}
|
|
*/
|
|
function addHandlers () {
|
|
const cdoc = document.getElementById('container').contentDocument;
|
|
if (cdoc) {
|
|
const scriptelm = cdoc.createElement('script');
|
|
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>
|
|
</html>
|