add ui to upload to IPFS node on box
This commit is contained in:
parent
99089126c0
commit
54b3da996c
27 changed files with 78892 additions and 4 deletions
43
assets/js/upload/node-menu.js
Normal file
43
assets/js/upload/node-menu.js
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
$('.form').find('input, textarea').on('keyup blur focus', function (e) {
|
||||
|
||||
var $this = $(this),
|
||||
label = $this.prev('label');
|
||||
|
||||
if (e.type === 'keyup') {
|
||||
if ($this.val() === '') {
|
||||
label.removeClass('active highlight');
|
||||
} else {
|
||||
label.addClass('active highlight');
|
||||
}
|
||||
} else if (e.type === 'blur') {
|
||||
if( $this.val() === '' ) {
|
||||
label.removeClass('active highlight');
|
||||
} else {
|
||||
label.removeClass('highlight');
|
||||
}
|
||||
} else if (e.type === 'focus') {
|
||||
|
||||
if( $this.val() === '' ) {
|
||||
label.removeClass('highlight');
|
||||
}
|
||||
else if( $this.val() !== '' ) {
|
||||
label.addClass('highlight');
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
$('.tab a').on('click', function (e) {
|
||||
|
||||
e.preventDefault();
|
||||
|
||||
$(this).parent().addClass('active');
|
||||
$(this).parent().siblings().removeClass('active');
|
||||
|
||||
target = $(this).attr('href');
|
||||
|
||||
$('.tab-content > div').not(target).hide();
|
||||
|
||||
$(target).fadeIn(600);
|
||||
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue