/usr/share/kadu/syntax/chat/hapi.syntax is in kadu-common 4.1-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | <kadu:top>
<script>
function messageStatusChanged(messageid, status)
\{
if (status == StatusDelivered)
document.getElementById("confirm_"+messageid).style.opacity = "1.0";
if (status == StatusWontDeliver)
document.getElementById("confirm_"+messageid).style.opacity = "0.1";
\}
function contactActivityChanged( state, message, name )
\{
if( state == StateComposing )
document.getElementById("composing").style.display = "block";
else
document.getElementById("composing").style.display = "none";
\}
</script>
<div id="composing" style="display:none; position:fixed; z-index:1; top:0px; right:0px; cursor:default; -webkit-user-select:none;" onclick="this.style.display=\'none\';">
<div style="position:relative; top:2px; right:2px; padding:3px 8px; -webkit-border-radius:10px; background:rgba(255,255,255,0.7);">
<img id="composingicon" src="@{kadu_icons/composing:svg}" alt="" style="max-width:32px; max-height:32px; vertical-align:middle;">
</div>
</div>
</kadu:top>
#{separator}<p[ id="confirm_#{messageId}"] style="background-color: #{backgroundColor}">
<kadu:header><table style="border-bottom: solid 1px black;" border="0" cellspacing="0" cellpadding="0" width="100%">
<tr><td align="left" width="50%" valign="bottom"><span style="font-weight:bold; color:#{nickColor}">%a</span></td>
<td align="right" width="50%"><span style="color:#{fontColor}">#{receivedDate}[ / S #{sentDate}]</span></td></tr></table>
</kadu:header><span style="color:#{fontColor}">#{message}</span>
</p>
<script>
if ("#{messageId}" != "")
\{
document.getElementById("confirm_#{messageId}").style.opacity = "0.4";
messageStatusChanged("#{messageId}", #{messageStatus});
\}
</script>
|