How can I access graphics in my library using JavaScript?

Quavid
Quavid GermanyCommunity Member Qubie ✭
edited July 29 in Custom Code

I want to implement a memory game in Qualtrics. Originally, using VS Code, the game consists of a JavaScript file, CSS file and a HTML document. The game can be played by running the HTML document, while the folder with the corresponding graphics is loaded in VS Code. I know that I can add JS code to a question, custom CSS in the design section and HTML by using the rich content editor. Now, I struggle with accessing the graphics that I loaded in my Qualtrics library in JS code. Can anyone help?

Best Answer

  • cbhavsar
    cbhavsar Mumbai, IndiaCommunity Member, Qualtrics Brand Admin Guru ✭✭
    Accepted Answer

    Hi,

    Graphics you can access Qualtrics in two ways...

    1. Loading Graphics on some graphics servers such as S3 and adding absolute path of it in your code.
    2. In Qualtrics - Navigate to "Library" section - "Graphics Library" - create folder (if required) and add all relevant graphics in here. Copy Graphic URL and paste the absolute path in your code

    All the very best for your project!

Answers

Sign In to Comment

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!