mirror of
https://github.com/publiclab/image-sequencer.git
synced 2025-12-11 19:00:00 +01:00
GCI task pull request (#474)
* GCI task commit * GCI task commit * Cleaned up the code * Added the css to demo.css file * Final cleanup and shortened code * Code compacting * All beautify changes reverted * Spacing corrected
This commit is contained in:
committed by
Jeffrey Warren
parent
ef10fb77f1
commit
bf13d5807a
@@ -158,3 +158,17 @@ h1 {
|
|||||||
opacity:0.5;
|
opacity:0.5;
|
||||||
color:#BABABA;
|
color:#BABABA;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#stepRemovedNotification{
|
||||||
|
background-color: #808b96;
|
||||||
|
padding:4px;
|
||||||
|
color:white;
|
||||||
|
border-radius:3px;
|
||||||
|
font-size:2rem;
|
||||||
|
position:fixed;
|
||||||
|
bottom:8px;
|
||||||
|
left:45%;
|
||||||
|
min-width:14rem;
|
||||||
|
text-align:center;
|
||||||
|
display:none;
|
||||||
|
}
|
||||||
|
|||||||
@@ -7,6 +7,17 @@
|
|||||||
// The variable 'step' stores useful data like input and
|
// The variable 'step' stores useful data like input and
|
||||||
// output values, step information.
|
// output values, step information.
|
||||||
// See documetation for more details.
|
// See documetation for more details.
|
||||||
|
function stepRemovedNotify() {
|
||||||
|
if ($('#stepRemovedNotification').length == 0) {
|
||||||
|
var notification = document.createElement('span');
|
||||||
|
notification.innerHTML = ' <i class="fa fa-info-circle" aria-hidden="true"></i> Step Removed ';
|
||||||
|
notification.id = 'stepRemovedNotification';
|
||||||
|
|
||||||
|
$('body').append(notification);
|
||||||
|
}
|
||||||
|
|
||||||
|
$('#stepRemovedNotification').DOMNotification.fadeIn(500).delay(200).fadeOut(500);
|
||||||
|
}
|
||||||
function DefaultHtmlStepUi(_sequencer, options) {
|
function DefaultHtmlStepUi(_sequencer, options) {
|
||||||
|
|
||||||
options = options || {};
|
options = options || {};
|
||||||
@@ -37,7 +48,7 @@ function DefaultHtmlStepUi(_sequencer, options) {
|
|||||||
|
|
||||||
var tools =
|
var tools =
|
||||||
'<div class="tools btn-group">\
|
'<div class="tools btn-group">\
|
||||||
<button confirm="Are you sure?" class="remove btn btn btn-default">\
|
<button confirm="Are you sure?" onclick="stepRemovedNotify()" class="remove btn btn btn-default">\
|
||||||
<i class="fa fa-trash"></i>\
|
<i class="fa fa-trash"></i>\
|
||||||
</button>\
|
</button>\
|
||||||
</div>';
|
</div>';
|
||||||
|
|||||||
Reference in New Issue
Block a user