/
template.html
70 lines (60 loc) 路 2.75 KB
/
template.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>MSABrowser | Template</title>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/gh/msabrowser/msabrowser@v1.1//css/style.css" media="screen" />
<script src="https://html2canvas.hertzen.com/dist/html2canvas.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/msabrowser/msabrowser@v1.1//javascript/msabrowser.js"></script>
</head>
<body>
<h1>MSABrowser | Template</h1>
<article>
<br> For example, you can view a particular <a href="javascript:void(0)" onclick="viewer.scrollToPosition(1,5)"> variation on a species</a> or by clicking the link.
</article>
<!-- MSABrowser Demo -->
<section id="MSABrowserDemo"></section>
<!-- end of MSABrowser Demo -->
<script type="text/javascript" charset="utf-8">
var viewer;
var annotations = [
{
source: "Annotations #1",
data: [{
'annotation_id': 'Defined Sequence Interval',
'annotation_name': 'Defined Sequence Interval',
'annotation_external_link': 'https://msabrowser.github.io/',
'annotation_start_point': 8,
'annotation_end_point': 28
}]
}
];
var alterations = [
{
'sequenceIndex': 1,
'position': 5,
'note': 'A modification note with a red asterisk might be detailed here using <a href="https://msabrowser.github.io/"> extra </a> information.'
+ '<br><div style="background:red">Special box</div>'
+ '<br><p style="color: blue;">P tag is also used here.</p>'
+ '<br> <img height=65 width=230 src="https://user-images.githubusercontent.com/65191506/81839302-06123400-9550-11ea-92d2-ac904ccd32c6.png"> ',
'source': 'Modification',
'type': Alteration.Modification
},];
$.get("https://cdn.jsdelivr.net/gh/msabrowser/msabrowser@v1.0//examples/sample_files/TUBA1A.txt", (fasta) => {
viewer = new MSABrowser({
id: "MSABrowserDemo",
msa: MSAProcessor({
fasta: fasta,
hasConsensus: true
}),
annotations: annotations,
alterations: alterations,
colorSchema: "clustal",
});
viewer.export("MSA_export.fasta");
});
</script>
</body>
</html>