Commit c31619d9 authored by Jakob Moser's avatar Jakob Moser
Browse files

Merge branch 'add-support-chat' into 'master'

Add support chat

See merge request !14
parents 034b96bf ed3f9944
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -64,3 +64,12 @@ We adapted the solution to center an image in README from the following Stack Ov
* URL: https://stackoverflow.com/a/53273661/
* Author: [Simon Hyll](https://stackoverflow.com/users/5614602/simon-hyll)
* License: [CC BY-SA 4.0](https://creativecommons.org/licenses/by-sa/4.0/)

## jQuery

jQuery is only used to embed the Zammad live chat. If you don't want to use Zammad live chat, you can remove jQuery entirely.

* Files: `static/lib/jquery/*`
* URL: https://jquery.com/download/
* Author: OpenJS Foundation and other contributors
* License: [MIT License](https://jquery.org/license/)
+1 −1
Original line number Diff line number Diff line
@@ -63,7 +63,7 @@ This virtual host simply redirects any HTTP request to the HTTPS endpoint.
        Header always set X-Frame-Options "SAMEORIGIN"
        Header always set Referrer-Policy "no-referrer"
        Header always set X-Content-Type-Options "nosniff"
        Header always set Content-Security-Policy "default-src 'self'"
        Header always set Content-Security-Policy "default-src 'self' https://tickets.technik.cl.uni-heidelberg.de; style-src 'self' 'unsafe-inline' https://tickets.technik.cl.uni-heidelberg.de data:; connect-src 'self' wss://tickets.technik.cl.uni-heidelberg.de; img-src 'self' http://tickets.technik.cl.uni-heidelberg.de https://tickets.technik.cl.uni-heidelberg.de"
</VirtualHost>
</IfModule>
```
+9 −0
Original line number Diff line number Diff line
/* Overrides for the Zammad live chat style */

.zammad-chat-message-body {
    white-space: normal !important;
}

.zammad-chat-message-body li p {
    margin: 0 !important;
}

static/js/livechat.js

0 → 100644
+8 −0
Original line number Diff line number Diff line
$(function() {
    new ZammadChat({
        background: '#001220',
        fontSize: '14px',
        chatId: 1,
        show: false
    })
})
+2 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading