Skip to content

Commit

Permalink
Merge pull request #47 from MetiUmashri/feature/diffs-language
Browse files Browse the repository at this point in the history
Feature/diffs language
  • Loading branch information
princekhunt authored Jun 20, 2024
2 parents f2277ad + 06be3ca commit b0e68cd
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 6 deletions.
23 changes: 20 additions & 3 deletions chat/templates/chat/Base.html
Original file line number Diff line number Diff line change
Expand Up @@ -187,8 +187,8 @@ <h3 class="top-nav-header">

<div class="main" id="ChatScreen">
{% block content %}
<div class="greet">
<h4>🙋‍♂️ नमस्ते {{request.user}}</h4>
<div class="greet"><!--code changed here-->
<h4>🙋‍♂️ <p id="changeTxt"> {{request.user}}</p></h4>
</div>
<div class="greet-tagline">
<h2>Privacy is a <u>Fundamental</u> Right!</h2>
Expand All @@ -201,6 +201,22 @@ <h2>Privacy is a <u>Fundamental</u> Right!</h2>
{% endblock %}
</div>
{% if anonymous %}

<script>
var cit = new Array("नमस्ते", " Bonjour ", " Hello", " Ciao ", "Anyoung");
var ind= 0;
function ChangeText(){
document.getElementById('changeTxt').innerHTML = cit[ind];
if(ind < cit.length - 1 ){
ind++;
}else{
ind = 0;
}
setTimeout("ChangeText();", 1000);
}
ChangeText();
</script>

<script>
//check cookie
var Anotified = getCookie("Anotified");
Expand Down Expand Up @@ -707,4 +723,5 @@ <h2>Privacy is a <u>Fundamental</u> Right!</h2>

</body>

</html>
</html>

6 changes: 3 additions & 3 deletions chat/templates/chat/chats.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,10 +61,10 @@ <h3>{{friend.name}}</h3>
}

const text_box = '<div class="container darker">' +
'<img src="{% static 'images/user_image.jpg' %}" alt="Avatar" class="right" style="width:100%;">' +
'<p>{description}</p>' +
'<img src="{% static \'images/user_image.jpg\' %}" alt="Avatar" class="right" style="width:100%;">' +
'<p>{description}</p>' +
'<span class="time-right">{time}</span>' +
'</div>'
'</div>';
</script>

<script>
Expand Down

0 comments on commit b0e68cd

Please sign in to comment.