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

navbar - sampleInfo - save image edits #274

Merged
merged 2 commits into from
Nov 6, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
123 changes: 119 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
</button>

<div id="igv-app-navbar-navigation" class="collapse navbar-collapse">

<ul class="navbar-nav mr-auto">

<!-- Genome -->
Expand Down Expand Up @@ -188,6 +189,55 @@
</div>
</li>

<!-- Sample Info File -->
<li class="nav-item px-3">
<div id="igv-app-sample-info-dropdown" class="dropdown">

<a id="igv-app-sample-info-dropdown-button" class="dropdown-toggle" href="#" data-toggle="dropdown">
Sample Info
</a>

<div id="igv-app-sample-info-dropdown-menu" class="dropdown-menu">

<!-- local file -->
<label class="dropdown-item btn btn-default btn-file">
<div class="igv-app-dropdown-item-cloud-storage">
<div>
Local File ...
</div>
<div>
<input id="igv-app-sample-info-dropdown-local-track-file-input" type="file" name="file" multiple style="display: none;">
</div>
</div>
</label>

<!-- Dropbox -->
<div class="dropdown-item">
<div id="igv-app-dropdown-dropbox-sample-info-file-button" class="igv-app-dropdown-item-cloud-storage">
<div>Dropbox</div>
<div><img id="igv-app-sample-info-dropbox-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>

<!-- Google Drive -->
<div class="dropdown-item">
<div id="igv-app-dropdown-google-drive-sample-info-file-button" class="igv-app-dropdown-item-cloud-storage">
<div>Google Drive</div>
<div><img id="igv-app-sample-info-google-drive-button-image" width="18" height="18"></div>
<div>...</div>
</div>
</div>

<!-- URL -->
<button class="dropdown-item" type="button" data-toggle="modal" data-target="#igv-app-sample-info-from-url-modal">
URL ...
</button>

</div>
</div>
</li>

<!-- Session -->
<li class="nav-item px-3">
<div class="dropdown">
Expand Down Expand Up @@ -255,13 +305,38 @@
</div>
</li>

<!-- Save SVG -->
<!-- Save Image. SVG or PNG -->
<li class="nav-item px-3">
<div>
<a id="igv-app-save-svg-button" href="#" data-toggle="modal" data-target="#igv-app-svg-save-modal">
Save SVG
<div class="dropdown">

<a id="igv-app-save-image-dropdown-button" href="#" data-toggle="dropdown">
Save Image
</a>

<div id="igv-app-save-image-dropdown-menu" class="dropdown-menu">

<!-- SVG -->
<div class="dropdown-item">

<a id="igv-app-save-svg-button" href="#" data-toggle="modal" data-target="#igv-app-svg-save-modal">
SVG
</a>

</div>

<!-- PNG -->
<div class="dropdown-item">

<a id="igv-app-save-png-button" href="#" data-toggle="modal" data-target="#igv-app-png-save-modal">
PNG
</a>

</div>

</div>

</div>

</li>

<!-- Circular View -->
Expand Down Expand Up @@ -465,6 +540,46 @@

</div>

<!-- PNG save -->
<div id="igv-app-png-save-modal" class="modal fade igv-app-file-save-modal">

<div class="modal-dialog modal-lg">

<div class="modal-content">

<div class="modal-header">

<div id="igv-app-png-save-modal-label" class="modal-title">
<div>
Save PNG File
</div>
</div>

<button type="button" class="close" data-dismiss="modal">
<span aria-hidden="true">&times;</span>
</button>
</div>

<div class="modal-body">
<input class="form-control" type="text" placeholder="igv-app.png">

<div>
Enter filename with .png suffix
</div>

</div>

<div class="modal-footer">
<button type="button" class="btn btn-sm btn-outline-secondary" data-dismiss="modal">Cancel</button>
<button type="button" class="btn btn-sm btn-secondary">OK</button>
</div>

</div>

</div>

</div>

<!-- Help - About - Modal -->
<div id="igv-app-help-about-modal" class="modal fade" tabindex="-1">
<div class="modal-dialog">
Expand Down
Loading
Loading