forked from enviPath/enviPy
[Feature] Ketcher V3 (#427)
Co-authored-by: Tim Lorsbach <tim@lorsba.ch> Reviewed-on: enviPath/enviPy#427
This commit is contained in:
38
static/js/ketcher3/standalone/index.html
Normal file
38
static/js/ketcher3/standalone/index.html
Normal file
@ -0,0 +1,38 @@
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8"/>
|
||||
<meta name="viewport" content="width=device-width,initial-scale=1"/>
|
||||
<meta name="theme-color" content="#000000"/>
|
||||
<meta name="description" content="Ketcher is a web-based chemical structure editor"/>
|
||||
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico"/>
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="./favicon-32x32.png"/>
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="./favicon-16x16.png"/>
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="./apple-touch-icon.png"/>
|
||||
<link rel="manifest" href="./manifest.json"/>
|
||||
<title>Ketcher v3.17.0</title>
|
||||
<script defer="defer" src="./static/js/main.cb80d824.js"></script>
|
||||
<link href="./static/css/main.9cca8bc6.css" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
// Block Ketcher grabbing focus on load
|
||||
const _origFocus = HTMLElement.prototype.focus;
|
||||
let _blockFocus = true;
|
||||
|
||||
HTMLElement.prototype.focus = function(...args) {
|
||||
if (!_blockFocus) {
|
||||
_origFocus.apply(this, args);
|
||||
}
|
||||
};
|
||||
|
||||
// Re-enable focus after Ketcher has initialized
|
||||
window.addEventListener("load", function () {
|
||||
setTimeout(() => { _blockFocus = false; }, 500);
|
||||
});
|
||||
</script>
|
||||
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user