new england institute of technology customizing canvas through javascript and css oshean member...
TRANSCRIPT
![Page 1: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/1.jpg)
New England Institute of Technology
Customizing Canvas through Javascript and CSS
OSHEAN Member ForumJune 12, 2015
![Page 2: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/2.jpg)
New England Institute of Technology
Canvas Customization
• NEIT Switched to Canvas last April• Consistent “Customized” user experience • Brand our courses and departments• “Manage” course development process • 350 full and part time faculty • Short amount of time
• Streamline and manage course setup • “Policy” decisions regarding the setup and use of the
system
![Page 3: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/3.jpg)
New England Institute of Technology
Canvas Customization
![Page 4: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/4.jpg)
New England Institute of Technology
Custom Home Page
![Page 5: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/5.jpg)
New England Institute of Technology
Custom Home Page
![Page 6: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/6.jpg)
New England Institute of Technology
Help Page
![Page 7: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/7.jpg)
New England Institute of Technology
Customization of the Modules Page
Before
After
![Page 8: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/8.jpg)
New England Institute of Technology
Tabs
![Page 9: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/9.jpg)
New England Institute of Technology
How Does This Work?
Separation of Powers
From Canvas:• HTML – Page Content & Structure
From Canvas and Customer:• CSS – Appearance• Javascript – Behaviors
– (can include changing page content and structure)
• Multiple CSS and Javascript components can be loaded separately, from entirely different locations
![Page 10: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/10.jpg)
New England Institute of Technology
Plugging In Your Own Code
![Page 11: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/11.jpg)
New England Institute of Technology
CSS vs. JS
• Appearance (CSS)– Hide the Conclude Course
button– Branding and term/week
banner graphic– Improve Modules page
aesthetics– Hide Syllabus Tool
• Behavior (JS)– Hide the Delete Course button
except for admins– Add/change links and other
structure to the page• Nav links in banner• Rename left-hand navigation items• Add Twitter feeds to Dashboard
page– Make requests for supplemental
information• Feature Week section• Announcements box and "unread"
indicator
– Activate "tabs"
![Page 12: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/12.jpg)
New England Institute of Technology
A CSS example: Hide Delete Course Button
1) Chrome Developer Tools helps identify the structure you'll select for in CSS
![Page 13: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/13.jpg)
New England Institute of Technology
A CSS example: Hide Delete Course Button
1) Chrome Developer Tools helps identify the structure you'll select for in CSS2) Style settings go into your local CSS file
![Page 14: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/14.jpg)
New England Institute of Technology
A JS example: Show # Unread Announcements
Use Canvas API to: 1) Retrieve all
announcements for a user
2) Count unread 3) Add a new
element to page
This code is available at:
http://pastebin.com/9ghxPMkJ
![Page 15: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/15.jpg)
New England Institute of Technology
Some CSS Is Built-InCanvas Styleguide: https://[your_canvas_url]/styleguide
![Page 16: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/16.jpg)
New England Institute of Technology
Some JS Features Are Built-In (with a little help from you)Canvas Styleguide: https://[your_canvas_url]/styleguide
![Page 17: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/17.jpg)
New England Institute of Technology
Canvas HTML Whitelisthttps://s3.amazonaws.com/tr-learncanvas/docs/Canvas_HTML_Whitelist.pdf
![Page 18: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/18.jpg)
New England Institute of Technology
Gotchas and Maintenance
• Canvas changes frequently– BUT…things break infrequently (once in eight months we've
been in production)– Quick-check beta release site every ~2 weeks
• when you get the Beta Release Notes
• Change only as much as you must, and don't get too clever!
• Use good error-handling practices in your JS code (try/catch, etc)
• Controlling load order is non-trivial• The browser wars are not over (test in several!)
![Page 19: New England Institute of Technology Customizing Canvas through Javascript and CSS OSHEAN Member Forum June 12, 2015](https://reader036.vdocuments.site/reader036/viewer/2022062517/56649f005503460f94c15c17/html5/thumbnails/19.jpg)
New England Institute of Technology
Thank You
Denise [email protected]
Larry [email protected]
URL for Announcement Count:http://pastebin.com/
9ghxPMkJ