Skip to content

Commit 774a485

Browse files
authored
Add files via upload
1 parent 9b7f78b commit 774a485

2 files changed

Lines changed: 37 additions & 7 deletions

File tree

crispr.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -705,6 +705,22 @@ document.getElementById("addCategoryBtn").addEventListener("click",addCategory);
705705
document.getElementById("exportLibBtn").addEventListener("click",exportLibrary);
706706
document.getElementById("importLibBtn").addEventListener("click",importLibrary);
707707

708+
document.addEventListener('keydown', function(event) {
709+
// Check for Ctrl + C (Copy)
710+
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'c') {
711+
exportData();
712+
713+
// event.preventDefault(); // Uncomment to stop browser's default copy behavior
714+
}
715+
716+
// Check for Ctrl + V (Paste)
717+
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === 'v') {
718+
719+
pasteClipboard();
720+
// event.preventDefault(); // Uncomment to stop browser's default paste behavior
721+
}
722+
});
723+
708724
// Load ?dna= on start
709725
function loadFromUrl() {
710726
const params = new URLSearchParams(window.location.search);

simpr.css

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,10 @@
77
}
88

99
.right-sidebar {
10-
width: 360px; /* increased from 280px */
10+
width:100%;
11+
12+
max-width:350px;
13+
min-width:350px;
1114
}
1215
.main-content {
1316
/* flex: 1 already set, shrinks to accommodate wider sidebar */
@@ -26,7 +29,8 @@
2629
.gene-table {
2730
margin-bottom:300px;
2831
max-width:800px;
29-
min-width:700px;
32+
width:100%;
33+
min-width:300px;
3034
}
3135

3236
.selected-option {
@@ -132,15 +136,25 @@
132136

133137
/* In bookmark lists, dropdown wider */
134138
.bookmark-item .custom-dropdown {
135-
min-width: 140px;
136-
max-width: 150px;
139+
min-width: 120px;
140+
max-width: 120px;
137141
}
138142
.bookmark-item .selected-option {
139-
padding: 4px 8px;
140-
font-size: 0.75rem;
143+
padding: 3px 6px;
144+
font-size: 0.6rem;
141145
}
142146
.bookmark-item .selected-option .value-part {
143-
font-size: 0.8rem;
147+
font-size: 0.7rem;
148+
}
149+
.bookmark-item .selected-option .bases-part {
150+
font-size: 0.6rem;
151+
}
152+
153+
.bookmark-info strong {
154+
font-size: 0.63rem;
155+
}
156+
.bookmark-info{
157+
font-size: 0.67rem;
144158
}
145159

146160
button[title="Load into compare"] {

0 commit comments

Comments
 (0)