Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                    <div class="heading">
        <div class="wrapper">
            <h3><span>Course:</span> Programming Foundations with JavaScript, HTML and CSS</h3>

            <div class="logos">
                <svg viewBox="0 0 1155 164" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd"
                    stroke-linejoin="round" stroke-miterlimit="2">
                    <path
                        d="M159.75 81.54c0-44.49 36.63-80.47 82.43-80.47 46.12 0 82.76 36 82.76 80.47 0 44.16-36.64 80.8-82.76 80.8-45.8 0-82.43-36.68-82.43-80.8zm125.61 0c0-22.24-19.3-41.87-43.18-41.87-23.55 0-42.85 19.63-42.85 41.87 0 22.57 19.3 42.2 42.85 42.2 23.92 0 43.18-19.63 43.18-42.2zm705.63 1.31c0-48.74 39.58-81.78 75.57-81.78 24.53 0 38.6 7.52 48.08 21.92l3.77-19h36.79v155.4h-36.79l-4.75-16c-10.79 11.78-24.21 19-47.1 19-35.33-.05-75.57-31.13-75.57-79.54zm125.61-.33c-.09-23.527-19.47-42.835-43-42.835-23.59 0-43 19.411-43 43v.165c0 21.59 19.3 40.89 42.86 40.89 23.85 0 43.14-19.3 43.14-41.22zM945.78 22V4h-40.23v155.39h40.23V75.66c0-25.19 12.44-38.27 34-38.27 1.43 0 2.79.1 4.12.23L991.36.11c-20.97.11-36.17 7.3-45.58 21.89zm-404.27.01v-18l-40.23.09.34 155.37 40.23-.09-.22-83.72c-.06-25.18 12.35-38.29 33.93-38.34 1.376.004 2.752.081 4.12.23L587.1 0c-21 .17-36.22 7.39-45.59 22.01zM338.88 99.2V4.01h40.22V94.3c0 19.95 11.12 31.73 30.42 31.73 21.59 0 34-13.09 34-38.28V4.01h40.24v155.38h-40.21v-18c-9.48 14.72-24.86 21.92-46.12 21.92-35.98.01-58.55-26.16-58.55-64.11zm391.74-17.48c.09-43.51 31.23-80.74 80.62-80.65 45.8.09 78.11 36.78 78 80 .01 4.273-.33 8.54-1 12.76l-118.41-.22c4.54 18.65 19.89 32.09 43.12 32.14 14.06 0 29.12-5.18 38.3-16.94l27.44 22c-14.11 19.93-39 31.66-65.48 31.61-46.75-.16-82.67-35.23-82.59-80.7zm118.12-16.14c-2.26-15.7-18.59-27.84-37.89-27.87-18.65 0-33.71 11.06-39.63 27.73l77.52.14zm-261.4 59.94l35.76-18.72c5.91 12.81 17.73 20.36 34.48 20.36 15.43 0 21.34-4.92 21.34-11.82 0-25-84.71-9.85-84.71-67 0-31.52 27.58-48.26 61.72-48.26 25.94 0 48.92 11.49 61.4 32.83l-35.44 18.75c-5.25-10.51-15.1-16.42-27.58-16.42-12.14 0-18.06 4.27-18.06 11.49 0 24.3 84.71 8.87 84.71 67 0 30.21-24.62 48.59-64.35 48.59-33.82-.03-57.46-11.19-69.27-36.8zM0 81.54C0 36.73 36.63.74 82.43.74c27.947-.196 54.182 13.737 69.67 37l-34.34 19.92a42.972 42.972 0 00-35.33-18.32c-23.55 0-42.85 19.63-42.85 42.2 0 22.57 19.3 42.2 42.85 42.2a42.502 42.502 0 0036.31-20l34 20.28c-15.307 23.955-41.902 38.431-70.33 38.28C36.63 162.34 0 125.66 0 81.54z"
                        fill="#0056D2" fill-rule="nonzero" />
                </svg>
                <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200.75751 87.715622" version="1.1">
                    <g transform="matrix(1.25 0 0 -1.25 -326.25 413.97)">
                        <path
                            d="m365.85 330.14c-0.215 0-0.42875-0.0532-0.64375-0.15625l-5.4641-2.0797c-0.587-0.215-1.0142-0.38731-1.2812-0.52031-0.266-0.134-0.39844-0.334-0.39844-0.6 0-0.374 0.19844-0.61587 0.59844-0.72187 0.399-0.106 0.85493-0.25207 1.3609-0.43907 0.507-0.187 0.96094-0.50793 1.3609-0.96093 0.401-0.454 0.6-1.2142 0.6-2.2812v-40.18c0-0.853-0.0942-1.4933-0.28125-1.9203-0.186-0.426-0.46606-0.7485-0.83906-0.9625-0.374-0.212-0.80225-0.37213-1.2812-0.47813-0.48-0.106-0.98575-0.23956-1.5188-0.40156-0.426-0.105-0.77263-0.22581-1.0406-0.35781-0.267-0.134-0.4-0.3875-0.4-0.7625 0-0.372 0.25338-0.59813 0.75938-0.67813 0.507-0.078 0.89393-0.12031 1.1609-0.12031 0.694 0 1.5898 0.0511 2.6828 0.15312 1.096 0.102 2.1273 0.15469 3.0953 0.15469 0.912 0 1.7956-0.0527 2.6516-0.15469 0.858-0.102 1.7671-0.15312 2.7281-0.15312 0.427 0 0.83962 0.0544 1.2406 0.15937 0.399 0.107 0.6 0.3185 0.6 0.6375 0 0.374-0.22768 0.59913-0.67968 0.67813-0.453 0.08-1.0016 0.22719-1.6406 0.44219-0.375 0.104-0.7615 0.33-1.1625 0.675-0.399 0.347-0.59687 0.97156-0.59687 1.8766v11.333c0 0.265 0.18637 0.4 0.55937 0.4 0.16 0 0.40087-0.16069 0.72187-0.47969l12.08-11.412c0.586-0.586 0.87813-1.0126 0.87813-1.2766 0-0.267-0.14606-0.50675-0.43906-0.71875-0.295-0.213-0.65225-0.34587-1.0812-0.39687-0.693-0.108-1.2527-0.22894-1.6797-0.36094-0.426-0.134-0.6375-0.38538-0.6375-0.75938 0-0.373 0.18437-0.59656 0.55937-0.67656 0.373-0.078 0.98607-0.12031 1.8391-0.12031 0.959 0 1.9187 0.0511 2.8797 0.15312 0.959 0.102 1.9736 0.15469 3.0406 0.15469 1.227 0 2.3469-0.0527 3.3609-0.15469 1.013-0.102 1.947-0.15312 2.8-0.15312 1.387 0 2.0797 0.26544 2.0797 0.79844 0 0.266-0.17175 0.48062-0.51875 0.64062-0.348 0.159-0.814 0.35744-1.4 0.59844-0.587 0.24-1.2682 0.54731-2.0422 0.92031-0.774 0.375-1.5594 0.93213-2.3594 1.6781l-13.841 12.556c-0.108 0.105-0.242 0.25206-0.4 0.43906-0.161 0.187-0.24063 0.41269-0.24063 0.67969 0 0.213 0.69369 0.78575 2.0797 1.7188 1.386 0.933 2.9739 1.9314 4.7609 2.9984 1.787 1.066 3.519 2.0654 5.2 2.9984 1.68 0.933 2.8136 1.532 3.4016 1.8 0.265 0.106 0.62468 0.22638 1.0797 0.35938 0.453 0.132 0.89288 0.27906 1.3219 0.43906 0.425 0.159 0.78312 0.33331 1.0781 0.52031 0.293 0.187 0.43907 0.387 0.43907 0.6 0 0.426-0.15813 0.694-0.47813 0.8-0.321 0.106-0.66706 0.16094-1.0391 0.16094-0.802 0-1.7492-0.0271-2.8422-0.0781-1.094-0.051-2.1499-0.0781-3.1609-0.0781-1.069 0-2.1486 0.0271-3.2406 0.0781-1.093 0.051-2.0663 0.0781-2.9203 0.0781-0.267 0-0.51938-0.0816-0.75938-0.24063-0.24-0.161-0.35937-0.34693-0.35937-0.56093 0-0.321 0.15769-0.5745 0.47969-0.7625 0.319-0.186 0.66662-0.37182 1.0406-0.55782 0.374-0.187 0.71862-0.42787 1.0406-0.72187 0.318-0.294 0.47813-0.70863 0.47813-1.2406 0-0.268-0.30731-0.65393-0.92031-1.1609-0.613-0.506-1.3717-1.0813-2.2797-1.7203-0.905-0.642-1.906-1.3081-3-2.0031-1.094-0.694-2.1197-1.3202-3.0797-1.8812s-1.8003-1.0139-2.5203-1.3609-1.1336-0.52031-1.2406-0.52031c-0.479 0-0.71875 0.42725-0.71875 1.2812v32.922c0 0.587-0.0928 0.97338-0.28282 1.1594-0.186 0.188-0.38812 0.28281-0.60312 0.28281h-0.725zm-80.872-3.8594c-2.565 0-4.848-0.0757-6.85-0.22969-2.004-0.155-3.9928-0.23281-5.9688-0.23281h-7.2828c-0.268 0-0.57387-0.0121-0.92188-0.0391-0.347-0.026-0.67843-0.0809-0.99843-0.16093-0.32-0.081-0.60007-0.21557-0.83907-0.40157-0.24199-0.187-0.36093-0.43937-0.36093-0.75937 0-0.427 0.17175-0.6825 0.51875-0.7625 0.347-0.079 0.97425-0.17213 1.8812-0.27813 0.532-0.054 1.1048-0.0949 1.7188-0.12187 0.614-0.026 1.2009-0.0804 1.7609-0.15938 0.559-0.08 1.0254-0.21356 1.3984-0.40156 0.374-0.186 0.56094-0.46506 0.56094-0.83906v-37.639c0-1.174-0.10631-2.0803-0.32031-2.7203-0.213-0.642-0.49207-1.1332-0.83906-1.4812-0.347-0.347-0.73338-0.58887-1.1594-0.72187-0.427-0.134-0.85425-0.22825-1.2812-0.28125-1.227-0.213-2.026-0.48-2.4-0.8-0.374-0.319-0.55937-0.64094-0.55937-0.96094 0-0.412 0.18537-0.64275 0.55937-0.69375s0.66569-0.0766 0.87969-0.0766c0.96 0 2.1061 0.0511 3.4391 0.15312 1.334 0.103 2.5891 0.15469 3.7641 0.15469h18.908c3.418 0 6.6357 0.57431 9.6547 1.7203 3.019 1.147 5.6492 2.7062 7.8922 4.6812 2.242 1.974 4.0176 4.2945 5.3266 6.9625 1.309 2.666 1.9641 5.4942 1.9641 8.4812 0 4.802-0.80113 8.9503-2.4031 12.445-1.603 3.493-3.7802 6.3606-6.5312 8.6016-2.751 2.24-5.9691 3.8939-9.6531 4.9609-3.687 1.067-7.6378 1.6-11.858 1.6zm-1.7719-2.3906c1.659 0 3.426-0.2 5.3-0.6 1.873-0.4 3.7206-1.0282 5.5406-1.8812 1.82-0.854 3.5734-1.92 5.2594-3.2 1.685-1.28 3.1728-2.8025 4.4578-4.5625 1.286-1.761 2.301-3.7616 3.05-6.0016 0.75-2.24 1.125-4.7216 1.125-7.4406 0-2.722-0.375-5.1368-1.125-7.2438-0.749-2.106-1.7378-3.9479-2.9688-5.5219-1.232-1.574-2.6236-2.9196-4.1766-4.0406s-3.1048-2.0142-4.6578-2.6812c-1.552-0.667-3.0519-1.1597-4.4969-1.4797-1.446-0.322-2.7034-0.48125-3.7734-0.48125-1.286 0-2.5424 0.15925-3.7734 0.48125-1.233 0.32-2.3297 0.81268-3.2937 1.4797-0.964 0.667-1.7401 1.5063-2.3281 2.5203-0.588 1.013-0.88281 2.2151-0.88281 3.6031v34.489c0 0.266 0.0393 0.55969 0.12031 0.87969 0.08 0.319 0.3335 0.59963 0.7625 0.84063 0.428 0.24 1.0978 0.44056 2.0078 0.60156 0.909 0.159 2.1931 0.23906 3.8531 0.23906zm125.25-15.353c-2.504 0-4.6634-0.53513-6.4734-1.6031-1.811-1.068-3.3166-2.4169-4.5156-4.0469s-2.089-3.446-2.675-5.45c-0.586-2.003-0.87968-3.9378-0.87968-5.8078 0-5.023 1.2046-8.988 3.6156-11.9 2.41-2.911 5.8298-4.3672 10.258-4.3672 2.08 0 3.8533 0.30843 5.3203 0.92343 1.466 0.615 2.6781 1.3131 3.6391 2.0891 0.96 0.776 1.6537 1.4996 2.0797 2.1656 0.429 0.667 0.64218 1.0796 0.64218 1.2406 0 0.426-0.24287 0.63906-0.72187 0.63906-0.32 0-0.61469-0.17388-0.87969-0.52188-0.268-0.346-0.64131-0.71775-1.1203-1.1188-0.48-0.401-1.146-0.75868-2-1.0797-0.855-0.321-2.053-0.47969-3.6-0.47969-2.454 0-4.4425 0.3855-5.9625 1.1625-1.52 0.775-2.6918 1.7794-3.5188 3.0094-0.827 1.228-1.3867 2.645-1.6797 4.25-0.294 1.603-0.43907 3.2589-0.43907 4.9719v1.6844c0 0.48 0.0501 0.85544 0.15312 1.1234h19.466c0.693 0 1.1312 0.11938 1.3172 0.35938 0.185 0.24 0.27969 0.73268 0.27969 1.4797 0 0.852-0.21363 1.9194-0.64063 3.1984-0.426 1.28-1.1176 2.5198-2.0766 3.7188-0.959 1.2-2.2249 2.2267-3.7969 3.0797-1.572 0.854-3.5006 1.2797-5.7906 1.2797zm-88.923-1.3109c-0.587 0-1.0661-0.0282-1.4391-0.0813-0.374-0.054-0.56094-0.26563-0.56094-0.64063 0-0.267 0.15869-0.468 0.47969-0.6 0.32-0.134 0.96131-0.333 1.9203-0.6 0.48-0.107 0.98831-0.241 1.5203-0.4 0.533-0.16 0.8-0.53487 0.8-1.1219 0-1.175-0.0131-2.4955-0.0391-3.9625s-0.0375-2.9754-0.0375-4.5234c0-1.496-0.0141-2.9888-0.0391-4.4828-0.026-1.496-0.0375-2.8558-0.0375-4.0828 0-1.709 0.14506-3.2583 0.43906-4.6453s0.79931-2.5871 1.5203-3.6031c0.721-1.014 1.7079-1.7848 2.9609-2.3188 1.254-0.533 2.8158-0.80156 4.6828-0.80156 1.602 0 3.0288 0.25043 4.2828 0.74843s2.3472 1.0526 3.2812 1.6656c0.933 0.613 1.6943 1.1606 2.2812 1.6406 0.587 0.479 1.04 0.72032 1.361 0.72032 0.374 0 0.55936-0.32038 0.55936-0.95938v-1.8406c0-0.374 0.0251-0.67932 0.0781-0.92032 0.051-0.241 0.23219-0.35937 0.54219-0.35937 0.377 0 1.3731 0.15687 2.9891 0.47187 1.616 0.316 3.8361 0.68525 6.6641 1.1062 0.586 0.107 1.0006 0.21019 1.2406 0.31719 0.238 0.104 0.36093 0.31525 0.36093 0.63125 0 0.421-0.30887 0.65738-0.92187 0.70938-0.614 0.054-1.6936 0.0812-3.2406 0.0812-0.373 0-0.81431 0.10375-1.3203 0.31875-0.508 0.213-0.75938 0.74656-0.75938 1.6016 0 4.055 0.0507 8.0954 0.15469 12.123 0.102 4.029 0.15469 8.0716 0.15469 12.127 0 0.746-0.21432 1.212-0.64532 1.4-0.427 0.187-0.77519 0.28125-1.0422 0.28125-0.805 0-1.5939-0.0271-2.3719-0.0781-0.776-0.051-1.5662-0.0766-2.3672-0.0766-0.694 0-1.3746 0.0256-2.0406 0.0766-0.668 0.051-1.3471 0.0781-2.0391 0.0781-0.427 0-0.82756-0.0419-1.2016-0.12188-0.373-0.08-0.55937-0.25175-0.55937-0.51875 0-0.32 0.30631-0.586 0.92031-0.8 0.613-0.213 1.08-0.37425 1.4-0.48125 0.96-0.267 1.7071-0.467 2.2391-0.6 0.533-0.134 0.94662-0.25337 1.2406-0.35937 0.293-0.106 0.48095-0.23956 0.56095-0.40156 0.079-0.159 0.12031-0.34638 0.12031-0.55938 0-2.88-0.0271-5.7334-0.0781-8.5594-0.053-2.828-0.0781-5.6811-0.0781-8.5641 0-0.799-0.0937-1.6282-0.27968-2.4812-0.185-0.854-0.5985-1.6127-1.2375-2.2797-0.638-0.666-1.5849-1.2121-2.8359-1.6391-1.251-0.428-2.9947-0.64218-5.2297-0.64218-1.97 0-3.5148 0.44187-4.6328 1.3219-1.119 0.88-1.6766 2.146-1.6766 3.8 0 3.574 0.0251 7.1342 0.0781 10.681 0.05 3.548 0.075 7.1084 0.075 10.684 0 0.585-0.066 0.98443-0.2 1.1984-0.135 0.214-0.47081 0.32188-1.0078 0.32188-0.59 0-1.1809-0.0271-1.7719-0.0781-0.59-0.051-1.1809-0.0766-1.7719-0.0766-0.59 0-1.166 0.0256-1.725 0.0766s-1.1343 0.0781-1.7203 0.0781zm90.061-0.61719c1.707 0 3.1196-0.467 4.2406-1.4 1.119-0.933 1.6797-2.0911 1.6797-3.4781 0-0.747-0.0922-1.3591-0.28125-1.8391-0.186-0.48-0.57181-0.87843-1.1578-1.1984-0.587-0.32-1.4153-0.54825-2.4813-0.68125-1.067-0.134-2.4806-0.2-4.2406-0.2-1.707 0-3.0279 0.0146-3.9609 0.0406s-1.6267 0.0663-2.0797 0.12031c-0.453 0.052-0.72156 0.12-0.80156 0.2-0.078 0.079-0.11876 0.19938-0.11876 0.35938 0 0.639 0.21363 1.4118 0.64063 2.3188 0.426 0.906 1.025 1.7861 1.8 2.6391 0.774 0.852 1.7342 1.5844 2.8812 2.1984 1.146 0.612 2.4397 0.92031 3.8797 0.92031zm-41.008-36.059c-1.604 0-2.8719-0.92057-2.8719-2.4266 0-1.556 0.88144-2.0155 2.7234-2.5625 1.455-0.436 1.9656-0.77175 1.9656-1.4438 0-0.847-0.58412-1.2688-1.8031-1.2688-0.821 0-1.6806 0.39782-2.2656 1.0328l-0.93126-0.90782c0.732-0.859 1.8279-1.4062 3.0969-1.4062 2.227 0 3.2203 1.0705 3.2203 2.6375 0 1.555-1.0685 2.103-2.7875 2.625-1.504 0.447-1.9016 0.74625-1.9016 1.3562 0 0.584 0.43525 1.0828 1.4562 1.0828 0.858 0 1.4796-0.27438 2.0266-0.83438l0.92188 0.93438c-0.771 0.746-1.669 1.1812-2.85 1.1812zm-101.2-0.13594v-5.0531c0-2.4 1.1199-3.7938 3.2719-3.7938 2.165 0 3.3469 1.3298 3.3469 3.7688v5.0781h-1.3078v-5.1031c0-1.592-0.64606-2.4359-2.0141-2.4359-1.307 0-1.9906 0.882-1.9906 2.525v5.0141h-1.3062zm35.183 0v-8.7094h1.3062v8.7094h-1.3062zm79.873 0v-8.7094h1.3062v8.7094h-1.3062zm27.978 0 3.1234-5.2641v-3.4453h1.3078v3.4453l3.1203 5.2641h-1.5047l-1.3688-2.4141c-0.31-0.561-0.74631-1.3952-0.89531-1.7172-0.15 0.322-0.59631 1.1931-0.89531 1.7281l-1.3562 2.4031h-1.5312zm-125.5-0.002v-8.7078h1.2672v4.5156c0 0.485-0.0109 1.6926-0.0109 2.0156 0.136-0.224 0.43588-0.74731 0.64688-1.0703l3.4703-5.4609h1.2453v8.7078h-1.2703v-4.4906c0-0.486 0.0141-1.7291 0.0141-2.0531-0.125 0.224-0.49787 0.87025-0.72187 1.2312l-3.3094 5.3125h-1.3312zm29.448 0 3.0219-8.7078h1.3812l2.9859 8.7078h-1.3922l-1.7922-5.5359c-0.162-0.51-0.41194-1.2932-0.48594-1.6062-0.075 0.313-0.32338 1.0838-0.48438 1.5938l-1.8172 5.5484h-1.4172zm17.814 0v-8.7078h5.7984v1.2688h-4.4906v2.7484h2.5v1.2688h-2.5v2.1531h4.3031v1.2688h-5.6109zm16.361 0v-8.7078h1.2813v3.4453h1.9656l1.7281-3.4453h1.5078l-1.7797 3.5578c1.182 0.299 1.9156 1.157 1.9156 2.55 0 1.793-1.2804 2.6-2.7984 2.6h-3.8203zm45.697 0v-1.2812h2.5375v-7.4266h1.3063v7.4266h2.5375v1.2812h-6.3812zm-44.416-1.2312h2.5391c0.883 0 1.4797-0.49825 1.4797-1.4062 0-0.946-0.60868-1.3938-1.4797-1.3938h-2.5391v2.8z"
                            fill="#001a57" />
                    </g>
                </svg>
            </div>

            <h5><span>Hany Said Afifi Ali</span>MiniProject Solution</h5>
        </div>
    </div>

    <hr>

    <div class="container">
        <canvas id="my-canvas"></canvas>
        <div class="upload-wrapper">
            <label class="button">
                <input type="file" multiple="false" accept="image/*" id="file-upload" onchange="upload()">
                Upload a Picture
            </label>
            <input class="button reset" type="button" value="Reset Picture" id="reset" onclick="resetImage()" >

        </div>
        <div class="buttons-wrapper">
              <input class="button" type="button" value="Make Grayscale" onclick="makeGray()" >
              <input class="button" type="button" value="Make Red" onclick="filterRed()" >
              <input class="button" type="button" value="Make Rainbow" onclick="filterRainbow()" >
        </div>
    </div>
              
            
!

CSS

              
                @import url('https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;600&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Oswald', sans-serif;
    background-color: #f2f5f5;;
}

.heading {
width: 100%;
}


.container {
    max-width: 1000px;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
}



.heading .wrapper{
    margin: 1rem auto;
    max-width: 40rem;
}

.heading h3 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heading h3 span{
    background-color: #0c2f0f;
    color: #fff;
    padding: 0 5px;
    width: 3rem;
    font-size: .8rem;
    height: 1.35rem;
    display: inline-block;
    font-weight: 400;
    text-align: right;
    margin-right: 1rem;
    position: relative;
}

.heading h3 span:after {
    content: '';
    position: absolute;
    border: 1px solid #000000;
    top: 4px;
    left: 4px;
    width: calc(100% - 1px);
    height: calc(100% - 1px);
  }


.heading h5 {
    color: #12a952;
    font-style: italic;
    text-transform: uppercase;
    font-size: .9rem;
    font-weight: 400;
    letter-spacing: 6px;
    text-align: center;
}

.heading h5 span{
    color: #0c2f0f;
    margin: 0 1rem;
    font-size: .88rem;
    background-color: #fef100;
    padding: 0 1rem;
}



.logos {
    width: 40rem;
    height: 1.75rem;
    display: flex;
    justify-content: space-evenly;
    margin: 2rem 1rem;
}

.logos svg {
    max-width: 6.5rem;
    align-self: center;
}



.container canvas#my-canvas {

    width: 500px;
    margin: 1rem auto;
    box-shadow: rgb(0 0 0 / 40%) 0px -1px 4px, rgb(0 0 0 / 30%) 0px -7px 2px -9px, rgb(0 0 0 / 20%) 0px 2px 1px inset;
    border-radius: 5px;
}
  

.container div.upload-wrapper ,
.container div.buttons-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    width: 500px;
    height: fit-content;
    margin: 1rem auto;
}
  

input[type="file"] {
    display: none;
}


.container div.upload-wrapper .button{
    background-color: #13aa52;
    border-radius: 4px;
    box-shadow: rgb(0 0 0 / 10%) 0 2px 4px 0;
    box-sizing: border-box;
    color: #fff;
    cursor: pointer;
    font-family: "Akzidenz Grotesk BQ Medium", -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13px;
    font-weight: 400;
    outline: 0;
    padding: 10px 15px;
    text-align: center;
    transform: translateY(0);
    transition: transform 150ms, box-shadow 150ms;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: fit-content;
    margin: auto;
    border: none;
}

.container div.upload-wrapper .button.reset{
    background-color: #b2002a;
}
  

.container div.upload-wrapper .button:active {
    box-shadow: rgba(0, 0, 0, .15) 0 3px 9px 0;
    transform: translateY(-2px);
  }
  


.container div.buttons-wrapper input.button {
    font-family: "Open Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
    cursor: pointer;
    border: 3px solid;
    padding: 0.75em;
    box-shadow: 0px 0px 0px 0px, 1px 1px 0px 0px, 2px 2px 0px 0px, 3px 3px 0px 0px, 4px 4px 0px 0px;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    width: 14rem;
    margin: auto;
}
  

.container div.buttons-wrapper input.button:active {
    box-shadow: 0px 0px 0px 0px;
    top: 5px;
    left: 5px;
  }
  


              
            
!

JS

              
                
var image = null;
var rawImage = null;
var reset = null;
var canvas = document.getElementById("my-canvas");


function upload() {
  var fileInput = document.getElementById("file-upload");
  image = new SimpleImage(fileInput);
  rawImage = new SimpleImage(fileInput);
  reset = new SimpleImage(fileInput);
  image.drawTo(canvas);
}

console.log("testing: " + rawImage);

function resetImage() {
  for(var pixel of reset.values()) {
    var rawPixels = rawImage.getPixel(pixel.getX(), pixel.getY());
    reset.setPixel(pixel.getX(), pixel.getY(), rawPixels)
  }
  reset.drawTo(canvas);
}



function makeGray() {
  for (var pixel of image.values()) {
    var avg = (pixel.getRed() + pixel.getGreen() + pixel.getBlue()) / 3;
    pixel.setRed(avg);
    pixel.setGreen(avg);
    pixel.setBlue(avg);
  }
  var canvas = document.getElementById("my-canvas");
  image.drawTo(canvas);
}

function filterRed() {
  for (var pixel of image.values()) {
    var avg = (pixel.getRed() + pixel.getGreen() + pixel.getBlue()) / 3;
    if (avg < 128) {
      pixel.setRed(2 * avg);
      pixel.setGreen(0);
      pixel.setBlue(0);
    } else {
      pixel.setRed(255);
      pixel.setGreen(2 * avg - 255);
      pixel.setBlue(2 * avg - 255);
    }
  }
  var canvas = document.getElementById("my-canvas");
  image.drawTo(canvas);
}

function filterRainbow() {
  var height = image.getHeight();
  for (var pixel of image.values()) {
    var y = pixel.getY();
    var avg = (pixel.getRed() + pixel.getGreen() + pixel.getBlue()) / 3;
    if (y < height / 7) {
      //red
      if (avg < 128) {
        pixel.setRed(2 * avg);
        pixel.setGreen(0);
        pixel.setBlue(0);
      } else {
        pixel.setRed(255);
        pixel.setGreen(2 * avg - 255);
        pixel.setBlue(2 * avg - 255);
      }
    } else if (y < (height * 2) / 7) {
      //orange
      if (avg < 128) {
        pixel.setRed(2 * avg);
        pixel.setGreen(0.8 * avg);
        pixel.setBlue(0);
      } else {
        pixel.setRed(255);
        pixel.setGreen(1.2 * avg - 51);
        pixel.setBlue(2 * avg - 255);
      }
    } else if (y < (height * 3) / 7) {
      //yellow
      if (avg < 128) {
        pixel.setRed(2 * avg);
        pixel.setGreen(2 * avg);
        pixel.setBlue(0);
      } else {
        pixel.setRed(255);
        pixel.setGreen(255);
        pixel.setBlue(2 * avg - 255);
      }
    } else if (y < (height * 4) / 7) {
      //green
      if (avg < 128) {
        pixel.setRed(0);
        pixel.setGreen(2 * avg);
        pixel.setBlue(0);
      } else {
        pixel.setRed(2 * avg - 255);
        pixel.setGreen(255);
        pixel.setBlue(2 * avg - 255);
      }
    } else if (y < (height * 5) / 7) {
      //blue
      if (avg < 128) {
        pixel.setRed(0);
        pixel.setGreen(0);
        pixel.setBlue(2 * avg);
      } else {
        pixel.setRed(2 * avg - 255);
        pixel.setGreen(2 * avg - 255);
        pixel.setBlue(255);
      }
    } else if (y < (height * 6) / 7) {
      //indigo
      if (avg < 128) {
        pixel.setRed(0.8 * avg);
        pixel.setGreen(0);
        pixel.setBlue(2 * avg);
      } else {
        pixel.setRed(1.2 * avg - 51);
        pixel.setGreen(2 * avg - 255);
        pixel.setBlue(255);
      }
    } else {
      //violet
      if (avg < 128) {
        pixel.setRed(1.6 * avg);
        pixel.setGreen(0);
        pixel.setBlue(1.6 * avg);
      } else {
        pixel.setRed(0.4 * avg + 153);
        pixel.setGreen(2 * avg - 255);
        pixel.setBlue(0.4 * avg + 153);
      }
    }
  }

  var canvas = document.getElementById("my-canvas");
  image.drawTo(canvas);
}

              
            
!
999px

Console