Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

My sequence ids are not displayed (or displayed white on white) #13

Open
alslonik opened this issue Feb 20, 2024 · 0 comments
Open

My sequence ids are not displayed (or displayed white on white) #13

alslonik opened this issue Feb 20, 2024 · 0 comments

Comments

@alslonik
Copy link

alslonik commented Feb 20, 2024

Hi, When I embed the browser sequence on my html page (part of internal biodatabase) the headers of my fasta disappear. They exist, but are white on white. How do I change the color of the font that represent the fasta headers in the browser? Or restore the blue background?
Thanks!

Here is the embedded chunk:


<div class="col-md-12" style="max-width: 100%; overflow-x: auto ; border: 1px solid black; padding: 10px;">
<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>MSABrowser Example</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>
        <!-- Header for Alignment -->
        <h2>MSABrowser Example</h2>
       <!<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" color="black" >
            var viewer;
            var annotations = [
                {
                    source: "Annotations #1",
                    data: [{
                        'annotation_id': 'Conserved domain',
                        'annotation_name': 'Conserved domain',
                        '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("msa.fasta", (fasta) => {

                viewer = new MSABrowser({
                id: "MSABrowserDemo",
        msa: MSAProcessor({
            fasta: fasta,
            hasConsensus: true
        }),
        annotations: annotations,
        alterations: alterations,
        colorSchema: "clustal2",
    });

    viewer.export("msa.fasta");
});
        </script>
      </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant