AnsweredAssumed Answered

How to add a javascript widget to the dashboard?

Question asked by Catharina Rudy on Jan 11, 2018
Latest reply on Apr 23, 2018 by chofer@morainepark.edu

Hello,

I've added a javascript widgets into the right sidebar of courses.

How can I add the widget to the students's #dashboard instead?

 

 

// add info to the right sidebar

 

var a = document.createElement("img");

 

a.src = "https://frankfurtschool.test.instructure.com/files/2621/download?download_frd=1"

 

a.style.cursor = 'pointer'

 

a.onclick = function() {

 

    window.open ("https://frankfurt-school.jobteaser.com/de/users/sign_in?back_to_after_login=%2F",'newwindow','location=no,menubar=no,status=no,titlebar=no,toolbar=no,top=100,left=100,scrollbars=yes,width=900,height=900');

 

};

 

document.body.appendChild(a);

 

document.getElementById("right-side").appendChild(a);

 

Thanks for your support.

 

Catharina

Outcomes