Page tree

University of Tartu IT wiki

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Content Layer
id1127863526
Content Column
width100.00002%
id1127863537
Content Block
padding0px 22px
margin0px 22px
background-repeatno-repeat
background-size1100px
id1127863536
background-imageTU_Delta_MBA5215_c_MarisTomba_72dpi-1920x1280.jpgUT170510AT041-Pano-1.webp
background-positioncenter center
height250px

Content Layer
id1127863513
Content Column
width100%
id1127863523
Content Block
100px
margin0px 0px 30px 0px
overflowvisible
id1127863524height

Livesearch
spaceKeyIT
sizelarge
placeholderSearch from helpdesk...
typepage


Welcome to the University of Tartu IT wiki page!

The University of Tartu IT helpdesk works during the summer period (from June 19 to August 31) from Monday to Friday from 8 a.m. to 5 p.m.

Content Layer
id1127868835
Content Column
columnalternate
width22%
id1127868836
Content Block
background-color$lightGrayColor
padding40px 16px
margin0px 22px
overflowhidden
id1127868847
Contact information

M-F 8.00-17.00

+372 737 5500 (5500)

Uppsala 10

helpdesk@ut.ee

Content Column
width78.0%
id1127868846
Content Block
overflowhidden
id1127868858
 IT

 IT helpdesk requests portal

         Order equipment or software

         Statuspage

         University mailbox

         Log in

Image Modified   News

HTML
<!-- Chat Button -->
<button id="openChatBtn" style="position: fixed; bottom: 20px; right: 20px; cursor: pointer; border: none; background: none; z-index: 1000;">
    <img id="chatAvatar" alt="Chat Avatar" width="160" height="84" />
</button>

<!-- Chat Container -->
<div id="chatContainer" style="position: fixed; bottom: 0; right: 0; width: 100%; max-width: 500px; height: 80vh; border: 1px solid #ccc; background-color: white; z-index: 1000; display: none; border-radius: 20px 20px 0px 0px;">
    <!-- Chat Header with Close Button -->
    <div style="background-color: #2C569B; padding: 10px; text-align: right; height: 50px; border-radius: 20px 20px 0 0; display: flex; align-items: center; justify-content: space-between;">
        <img src="https://demo.tehisintellekt.ee/ut/tiksu.png" alt="Logo" style="height: 46px; margin-left: 12px;">
        <button id="closeChatBtn" style="border: none; background: none; cursor: pointer; padding-right: 12px; display: flex; align-items: center;">
            <img src="https://demo.tehisintellekt.ee/ut/close_button.svg" alt="Close" />
        </button>
    </div>
    <!-- Chat iFrame -->
    <iframe id="chatIframe" src="https://demo.tehisintellekt.ee/ut/assistant" style="width: 100%; height: calc(100% - 70px); border: none; border-radius: 0 0 20px 20px;"></iframe>
</div>

<script>
    // Language resources
    const resources = {
        english: {
            avatar: "https://demo.tehisintellekt.ee/ut/need_some_help.svg",
        },
        estonian: {
            avatar: "https://demo.tehisintellekt.ee/ut/kas_vajad_abi.svg",
        },
    };

    // Get elements
    const chatAvatar = document.getElementById('chatAvatar');

    // Function to set language based on referrer URL
    function setLanguage() {
        if (typeof window !== "undefined") {
            console.log("Referrer URL:", document.referrer);
            if (window.location.href.startsWith("https://wiki.ut.ee/display/IT") || 
                window.location.href.startsWith("https://wiki-test.ut.ee/display/IT")) {
                // Set English
                chatAvatar.src = resources.english.avatar;
            } else {
                // Set Estonian
                chatAvatar.src = resources.estonian.avatar;
            }
        }
    }

    // Initialize the language
    setLanguage();

    // Open Chat
    document.getElementById('openChatBtn').addEventListener('click', function() {
        document.getElementById('chatContainer').style.display = 'block';
    });

    // Close Chat
    document.getElementById('closeChatBtn').addEventListener('click', function() {
        document.getElementById('chatContainer').style.display = 'none';
    });
</script>
Content Layer
id1127873894
classhideCommentBlock
page
Content Column
width100%
id1127873906
Content Block
overflowvisible
id1127873917
height200px
Livesearch
spaceKeyIT
sizelarge
type