()
| 34 | } |
| 35 | |
| 36 | function populateCheckBoxes() { |
| 37 | console.log('populating images...'); |
| 38 | let div = document.getElementById("images"); |
| 39 | div.appendChild(createLabel("Images", "imgId", null)); |
| 40 | |
| 41 | populateCheckbox(div, "jpeg", "image/jpeg", true); |
| 42 | populateCheckbox(div, "png", "image/png", true); |
| 43 | populateCheckbox(div, "gif", "image/gif", true); |
| 44 | populateCheckbox(div, "bmp", "image/bmp", true); |
| 45 | populateCheckbox(div, "allImages", "image/*", true); |
| 46 | |
| 47 | console.log('populating videos...'); |
| 48 | div = document.getElementById("videos"); |
| 49 | div.appendChild(createLabel("Videos", "videoId", null)); |
| 50 | populateCheckbox(div, "mp4", "video/mp4", true); |
| 51 | populateCheckbox(div, "avi", "video/avi", true); |
| 52 | populateCheckbox(div, "mov", "video/mov", true); |
| 53 | populateCheckbox(div, "allVideos", "video/*", true); |
| 54 | |
| 55 | console.log('populating extensions...'); |
| 56 | div = document.getElementById("extensions"); |
| 57 | div.appendChild(createLabel("Extensions", "extId", null)); |
| 58 | populateCheckbox(div, "dot_jpg", ".jpg", true); |
| 59 | populateCheckbox(div, "dot_png", ".png", true); |
| 60 | populateCheckbox(div, "dot_mov", ".mov", true); |
| 61 | populateCheckbox(div, "allExtensions", "*.*", true); |
| 62 | |
| 63 | console.log('populating others...'); |
| 64 | div = document.getElementById("others"); |
| 65 | div.appendChild(createLabel("Non-visual", "otherId", null)); |
| 66 | populateCheckbox(div, "binary", "application/octet-stream", true); |
| 67 | populateCheckbox(div, "pdf", "application/pdf", true); |
| 68 | populateCheckbox(div, "allApplication", "application/*", true); |
| 69 | populateCheckbox(div, "textPlain", "text/plain", true); |
| 70 | populateCheckbox(div, "audio", "audio/*", true); |
| 71 | populateCheckbox(div, "all", "*/*", true); |
| 72 | |
| 73 | console.log('populating actions...'); |
| 74 | div = document.getElementById("actions"); |
| 75 | div.appendChild(createLabel("Attributes", "attrId", null)); |
| 76 | populateCheckbox(div, "multiple", "Allow multiple", false); |
| 77 | populateCheckbox(div, "capture", "Capture", false); |
| 78 | } |
| 79 | |
| 80 | function checkboxUpdated(event) { |
| 81 | // Prepare the Upload button, but don't add it yet |
nothing calls this directly
no test coverage detected