//Add Global Nav Link to Student Resources (function() { 'use strict'; // configure trays const InstIconTray = { title: 'Resources', // the menu item or tray name, what users will see icon_svg: 'icon-launch', trayLinks: [{ href: 'https://umpquaeo.sharepoint.com/sites/UCCStudents', title: 'Student Portal', desc: 'Access to your student email, self-service, news, resources, and more!' }, { href: 'https://umpqua.edu/academic-advising', title: 'Advising', desc: 'Helps you successfully meet your academic goals' }, { href: 'https://bookstore.umpqua.edu/', title: 'Bookstore (the Hawk Shop)', desc: 'Your source for textbooks, computers, academic supplies, and spirit gear!' }, //{ //href: 'https://umpqua.instructure.com/accounts/96416/external_tools/1089962?launch_type=global_navigation', //title: 'TutorMe', //desc: '24/7 Online Tutoring' //}, { href: 'https://umpqua.edu/financial-aid', title: 'Financial Aid', desc:'Are you looking for some financial assistance to help you through college?' }, { href: 'https://community.canvaslms.com/t5/Canvas-Student/ct-p/canvas_student', title: 'Getting Started in Canvas', desc: 'If you are new to Canvas, start here' }, { href: 'https://www.umpqua.edu/student-resources', title: 'Student Resources', desc: 'List of current support resources' }, { href: 'https://umpquaeo.sharepoint.com/sites/UCCStudents/SitePages/Trail-to-Wellness.aspx', title: 'Trail to Wellness', desc: '24/7 student support/crisis line (833)434-1217' }, { href: 'https://umpqua.edu/library', title: 'Library', desc: 'Find research, get help, citations, online tutorials' }, { href: 'https://umpqua.edu/register-for-classes', title: 'Registration', desc: 'Registering for classes is easy. Click link above' }, //{ //href: 'https://umpqua.instructure.com/users/current/external_tools/845692', //title: 'Smarthinking', //desc:'24/7 Online tutoring and writing feedback' //}, { href: 'https://library.umpqua.edu/TutoringCenter', title: 'Tutoring Center', desc:'Provides tutoring/academic coaching resources for UCC students' } //Sample Link //{ // href: 'https://www.umpqua.edu/', //title: 'Link Title Here', //desc: 'Link Description Here' //}, ], footer: 'Click the X above to close this menu.' } const globalNavCustomTray = t => { const n = t.title.replace(/\W/g, "_").toLowerCase(), s = `global_nav_${n}_tray`, i = "ic-app-header__menu-list-item", e = `${i}--active`; var a = `"; var l = $("#main"), //Changed below from #menu to #global_nav_profile_link to place the new tray link under Profile o = $("#global_nav_profile_link"), //Changed 'o.append(c)' from original to 'o.parent().after(c)' so that the new link is after the Profile link rather than inside. c = $("
  • ", { id: `global_nav_${n}_menu`, class: `${i} rc-gnct`, html: `\n \n ` }); if (1 == /^icon-[a-z]/.test(t.icon_svg)) c.find(`.svg-${n}-holder`).append($("
    ", { id: `global_nav_${n}_svg`, class: "menu-item-icon-container", html: `
    `, role: "presentation" })); else if (/^http/.test(t.icon_svg)) c.find(`.svg-${n}-holder`).load(t.icon_svg, (function() { let s = $(this).find("svg")[0], i = `global_nav_${n}_svg`; s.setAttribute("id", i), s.setAttribute("class", "ic-icon-svg menu-item__icon ic-icon-svg--apps svg-icon-help ic-icon-svg-custom-tray"), "object" == typeof t.svg_size && (s.setAttribute("height", t.svg_size.height), s.setAttribute("width", t.svg_size.width)) })); else if (/^ div.course-options > a.btn.button-sidebar-wide.course-home-sub-navigation-lti").remove(); }); } //Login Page Footer cleanup //Remove old links $(function() { var docUrl = document.URL; $("a[href='http://eepurl.com/1LSkT']").remove(); $("a[href='https://umpqua.instructure.com/privacy_policy']").remove(); $("a[href='https://umpqua.beta.instructure.com/privacy_policy']").remove(); $("a[href='https://umpqua.test.instructure.com/privacy_policy']").remove(); $("a[href='https://umpqua.instructure.com/terms_of_use']").remove(); $("a[href='https://umpqua.beta.instructure.com/terms_of_use']").remove(); $("a[href='https://umpqua.test.instructure.com/terms_of_use']").remove(); $("a[href='http://facebook.com/instructure']").remove(); $("a[href='http://twitter.com/instructure']").remove(); //Add new links $('#footer-links').prepend('Umpqua Home Page '); $('#footer-links').prepend('UCCOnline '); $('#footer-links').prepend('Login Help '); $('#footer-links').append('Accessibility '); $('#footer-links').append('Privacy '); // Forgot password fix $("#forgot_password_form > p").html("

    STUDENTS - To receive a reset link, enter your home institution student email address

    COMMUNITY MEMBERS - To receive a reset link, enter your work or personal email address

    "); $("#forgot_password_form > div > span.field-with-fancyplaceholder > label").html(""); }); //Ally integration var ALLY_CFG = { 'baseUrl': 'https://prod.ally.ac', 'clientId': 3 }; $.getScript(ALLY_CFG.baseUrl + '/integration/canvas/ally.js'); //H5P window resizing // var h5pScript = document.createElement('script'); // h5pScript.setAttribute('charset', 'UTF-8'); // h5pScript.setAttribute('src', 'https://h5p.com/canvas-resizer.js'); // document.body.appendChild(h5pScript); /*EvaluationKIT START*/ var evalkit_jshosted = document.createElement('script'); evalkit_jshosted.setAttribute('defer', 'defer'); evalkit_jshosted.setAttribute('type', 'text/javascript'); evalkit_jshosted.setAttribute('src', 'https://umpqua.evaluationkit.com/canvas/js'); document.getElementsByTagName('head')[0].appendChild(evalkit_jshosted); /*EvaluationKIT END*/ (async function() { const PANORAMA_SERVER_URL = 'https://panorama-api.yuja.com'; const panoramaIdentifierKey = '03b54d49b84b7e1331707eaa93fd21d28d9e35c72320f4206ab3382ab4763ffe'; const PANORAMA_CDN_URL = 'https://cdn-panorama.yuja.com'; window.PANORAMA_SERVER_URL = PANORAMA_SERVER_URL; window.panoramaIdentifierKey = panoramaIdentifierKey; window.PANORAMA_CDN_URL = PANORAMA_CDN_URL; function loadScript(url) { const script = document.createElement('script'); script.src = url; document.head.appendChild(script); } try { const response = await fetch(`${PANORAMA_SERVER_URL}/panorama-visualizer/canvas`, {cache: 'no-store'}); const scriptUrl = await response.text(); loadScript(scriptUrl); } catch (e) { console.error('Failed to load Panorama: ', e); } })();