This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // gcc aml-upgrade-package-extract.c -o aml-upgrade-package-extract | |
| // ./aml-upgrade-package-extract update-usb-burning-mode.img | |
| // /dev/sdX - fat32 sdcard | |
| // Make bootable Android update: | |
| // dd if=aml_sdc_burn.UBOOT bs=1 count=442 of=/dev/sdX | |
| // dd if=aml_sdc_burn.UBOOT seek=1 skip=1 bs=512 of=/dev/sdX | |
| // sync |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // File input button value | |
| // HTML | |
| <input type="file" multiple class="input input--hidden input--add-images" id="add-images" accept="image/*"> | |
| <label class="input input--label input--label-for-add-images input--dark" for="add-images">Выберете файл</label> | |
| // JS | |
| function fileInputValue(input, label){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.textarea').each(function () { | |
| this.setAttribute('style', 'height:' + (this.scrollHeight) + 'px;overflow-y:hidden;'); | |
| }).on('input', function () { | |
| this.style.height = 'auto'; | |
| this.style.height = (this.scrollHeight) + 'px'; | |
| }); |