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

Disables Take a Photo Button and File Chooser While Camera is Active #1357

Merged
merged 2 commits into from
Dec 16, 2019
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
2 changes: 1 addition & 1 deletion examples/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ <h1><a href="/" target='_blank' class="name-header">Image Sequencer</a></h1>
</header>

<div id="dropzone" class="dropzone">
<p>
<p id="dropzone-text">
<i>Select or drag in an image to start!</i>
</p>
<center>
Expand Down
8 changes: 8 additions & 0 deletions src/ui/SetInputStep.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ function setInputStepInit() {
document.getElementById('video').style.display = 'inline';
document.getElementById('capture').style.display = 'inline';
document.getElementById('close').style.display = 'inline';

fileInput.css('display', 'none');
takePhoto.css('display', 'none');
document.getElementById('dropzone-text').style.display = 'none';

var video = document.getElementById('video');
canvas = document.getElementById('canvas'),
Expand Down Expand Up @@ -69,6 +73,10 @@ function setInputStepInit() {
document.getElementById('video').style.display = 'none';
document.getElementById('capture').style.display = 'none';
document.getElementById('close').style.display = 'none';

fileInput.css('display', 'block');
takePhoto.css('display', 'block');
document.getElementById('dropzone-text').style.display = 'block';
}
}

Expand Down