streams/vendor/svg-edit/svgedit/opera-widget/index.html

29 lines
820 B
HTML
Raw Normal View History

2019-11-11 01:11:51 +00:00
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>SVG Edit</title>
<link rel="stylesheet" href="style.css">
<script>
2019-12-04 05:46:07 +00:00
/* eslint-disable no-unused-vars */
/**
* This method adds the script that overrides the default open/save handlers.
* @returns {void}
*/
2019-11-11 01:11:51 +00:00
function addHandlers () {
2019-12-04 05:46:07 +00:00
const cdoc = document.getElementById('container').contentDocument;
2019-11-11 01:11:51 +00:00
if (cdoc) {
2019-12-04 05:46:07 +00:00
const scriptelm = cdoc.createElement('script');
2019-11-11 01:11:51 +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>
</html>