-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (134 loc) Β· 6.63 KB
/
Copy pathindex.html
File metadata and controls
143 lines (134 loc) Β· 6.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<title>CRISPR 2.0</title>
<link rel="stylesheet" href="./css/crispr.css">
<link rel="stylesheet" href="./css/headers.css">
<link rel="stylesheet" href="./css/mobile.css">
</head>
<body>
<!-- Main container with max-width constraint -->
<div class="app-container">
<!-- Header inside container -->
<header class="header-bar">
<div class="header-title">
<span>π§¬</span> CRISPR 2.0
</div>
<div class="tools-dropdown" id="toolsDropdown">
<button class="tools-btn" id="toolsBtn">
π§ Tools <span class="arrow">βΌ</span>
</button>
<div class="dropdown-menu" id="dropdownMenu">
<!-- Populated by header-links.js -->
</div>
</div>
</header>
<!-- Three-column layout -->
<div class="app-layout">
<!-- LEFT SIDEBAR -->
<div class="left-sidebar">
<div class="controls-section">
<div class="btn-group">
<button id="pasteBtn" class="primary">PASTE</button>
<button id="exportBtn" class="success">COPY</button>
</div>
</div>
<div class="textarea-section">
<label>βοΈ GENE DATA (To edit)</label>
<div class="textarea-with-clear">
<textarea id="rawGeneInput" rows="20" placeholder='Example:
0:ATATGGCTTC
0:CTATGGACTC
1:TATAGCAACCTCA
1:TATAGCAACCTCA'></textarea>
<span class="textarea-actions">
<a id="dnaShortenerLink" href="#" target="_self">To DNA Shortener</a>
<button id="clearRawBtn" class="clear-btn clear-textarea-btn">β Clear</button>
</span>
</div>
</div>
<!-- Compare Mode Toggle + compare textarea -->
<div class="controls-section textarea-section" style="border-top: 1px solid #2d3a46;">
<div class="btn-group">
<button id="toggleCompareBtn" class="compare-toggle">βοΈ COMPARE MODE (OFF)</button>
</div>
<div id="compareArea" style="display: none; margin-top: 12px;">
<label>π GENE DATA (To compare)</label>
<div class="textarea-with-clear">
<textarea id="compareGeneInput" rows="10" placeholder='Paste reference genes:
0:ATATGGCTTC
0:CTATGGACTC
...'></textarea>
<button id="clearCompareBtn" class="clear-btn clear-textarea-btn">β Clear</button>
</div>
</div>
</div>
<!-- REMOVE DIVERSITY BUTTON -->
<div class="controls-section" style="border-top: none; padding-top: 8px; padding-bottom: 16px">
<div class="btn-group" style="flex-direction: column; gap: 8px;">
<button id="removeDiversityBtn" title="Merge genes where possible, without changing the horse (except antler/hat and skin patterns)" class="diversity-remove" style="background: #8b5a2b; border-bottom-color: #d49b3a;">𧬠REMOVE DIVERSITY</button>
<button id="randomDiversityBtn" title="Randomize the genes where possible without changing the horse (except antler/hat and skin patterns)" class="random-diversity" style="background: #2b6e4c; border-bottom-color: #67b886;">π² RANDOM DIVERSITY</button>
</div>
</div>
</div>
<!-- MAIN TABLE AREA -->
<div class="main-content" id="mainContent">
<div class="filter-cell">
<label>π Search: </label>
<input type="text" id="filterInput" class="filter-input" placeholder="" value="">
<button id="clearFilterBtn" class="clear-filter-btn">β</button>
</div>
<div class="table-wrapper">
<table class="gene-table" id="geneTable">
<thead id="dynamicThead"></thead>
<tbody id="tableBody"></tbody>
</table>
</div>
</div>
<!-- RIGHT SIDEBAR: helix jump + bookmarks + DNA Library -->
<div class="right-sidebar">
<div class="helix-nav">
<h3>π GO TO HELIX (0β19)</h3>
<div class="helix-buttons" id="helixNavButtons"></div>
</div>
<div class="bookmarks-section">
<h3>β BOOKMARKS <span style="font-size:0.65rem;"></span></h3>
<div id="bookmarksList" class="bookmarks-list">
<div class="empty-bookmarks">No bookmarks yet.<br>Click β
a row to add.</div>
</div>
</div>
<!-- DNA Library -->
<div class="saved-dna-section">
<h3>π DNA Library</h3>
<div class="library-controls">
<button id="addCategoryBtn"><span>β</span> Add Category</button>
<button id="saveDnaBtn"><span>πΎ</span> <span id="saveBtnText">Save DNA</span></button>
</div>
<ul class="category-list" id="categoryList"></ul>
<div class="import-export-btns">
<button id="exportLibBtn"><span>β¬οΈ</span> Export</button>
<button id="importLibBtn"><span>β¬οΈ</span> Import</button>
</div>
</div>
<!-- Hidden file input for import -->
<input type="file" id="importFileInput" accept=".json" style="display:none">
</div>
</div>
</div>
<div id="toast" class="toast"></div>
<button id="mobileRightToggle" title="Bookmarks & Library">π</button>
<div class="sidebar-overlay" id="sidebarOverlay"></div>
<script>
const targetURL = "/dna/crispr.html";
// Redirect by appending the current query string
window.location.replace(targetURL + window.location.search);
</script>
<script src="./js/genes.js"></script>
<script src="./js/crispr.js"></script>
<script src="./js/headers.js"></script>
<script src="./js/mobile.js"></script>
</body>
</html>