-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'development_3.0' into config_cv
- Loading branch information
Showing
106 changed files
with
39,536 additions
and
97 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
projects/ketcher-wrapper/src/lib/ketcher-wrapper.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
<iframe id="ketcher-frame" [src]="safeKetcherFilePath" scrolling="no" #ketcherFrame> | ||
<iframe id="ketcher-frame" [src]="safeKetcherFilePath" scrolling="no" style = "height: 600px;" #ketcherFrame> | ||
</iframe> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"files": { | ||
"main.css": "./static/css/main.3fc9c0f8.css", | ||
"main.js": "./static/js/main.963f80c2.js", | ||
"static/js/583.7fb8b79c.chunk.js": "./static/js/583.7fb8b79c.chunk.js", | ||
"index.html": "./index.html" | ||
}, | ||
"entrypoints": [ | ||
"static/css/main.3fc9c0f8.css", | ||
"static/js/main.963f80c2.js" | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,149 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Document</title> | ||
<style> | ||
.modal { | ||
display: block; | ||
position: fixed; | ||
z-index: 1; | ||
left: 0; | ||
top: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: auto; | ||
background-color: rgb(0, 0, 0); | ||
background-color: rgba(0, 0, 0, 0.4); | ||
} | ||
|
||
.modal-content { | ||
background-color: #fefefe; | ||
margin: 0% auto; | ||
padding: 20px; | ||
border: 1px solid #888; | ||
width: 80%; | ||
} | ||
|
||
.close { | ||
color: #aaa; | ||
float: right; | ||
font-size: 28px; | ||
font-weight: bold; | ||
} | ||
|
||
.close:hover, | ||
.close:focus { | ||
color: black; | ||
text-decoration: none; | ||
cursor: pointer; | ||
} | ||
|
||
.inputs { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
.columns { | ||
width: 100%; | ||
display: flex; | ||
gap: 40px; | ||
} | ||
|
||
.columns > div:nth-child(2) { | ||
width: 80%; | ||
} | ||
|
||
textarea { | ||
width: 100%; | ||
height: 500px; | ||
} | ||
|
||
input { | ||
margin: 5px 0; | ||
} | ||
|
||
label { | ||
margin-right: 20px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="columns"> | ||
<div> | ||
<button>Open Modal</button> | ||
<div class="inputs"> | ||
<div> | ||
<label>Height</label> | ||
<input placeholder="height" class="height" /> | ||
</div> | ||
<div> | ||
<label>Width</label> | ||
<input placeholder="width" class="width" /> | ||
</div> | ||
</div> | ||
</div> | ||
<div> | ||
<textarea | ||
class="molecule" | ||
placeholder="Insert a molecule here..." | ||
></textarea> | ||
</div> | ||
</div> | ||
<script defer> | ||
const button = document.querySelector('button') | ||
const textarea = document.querySelector('.molecule') | ||
const width = document.querySelector('.width') | ||
const height = document.querySelector('.height') | ||
const modalContent = ` | ||
<div class="modal-content"> | ||
<span class="close">×</span> | ||
<iframe | ||
width="784" | ||
height="624" | ||
id="iframe" | ||
src="env_url" | ||
sandbox="allow-scripts allow-same-origin" | ||
></iframe> | ||
</div> | ||
` | ||
let modal | ||
let closeIcon; | ||
let iframe; | ||
|
||
function closeModal() { | ||
closeIcon.removeEventListener('click', closeModal) | ||
modal.remove() | ||
} | ||
|
||
function createModal() { | ||
modal = document.createElement('div') | ||
modal.classList.add('modal') | ||
modal.innerHTML = modalContent | ||
document.body.appendChild(modal) | ||
|
||
closeIcon = document.querySelector('.close') | ||
iframe = document.getElementById('iframe') | ||
iframe.style.height = height.value + 'px' | ||
iframe.style.width = width.value + 'px' | ||
|
||
closeIcon.addEventListener('click', closeModal) | ||
} | ||
|
||
button.onclick = createModal | ||
window.onclick = function (event) { | ||
if (event.target == modal) { | ||
closeModal() | ||
} | ||
} | ||
|
||
window.addEventListener('message', (event) => { | ||
if (event.data.eventType === 'init') { | ||
iframe.contentWindow.ketcher.setMolecule(textarea.value) | ||
} | ||
}) | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<!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 v2.15.0</title><script defer="defer" src="./static/js/main.963f80c2.js"></script><link href="./static/css/main.3fc9c0f8.css" rel="stylesheet"></head><body id = "ketcher-body" #ketcherBody><noscript>You need to enable JavaScript to run this app.</noscript><div id="root"></div></body></html> |
Oops, something went wrong.