Prettify code

This commit is contained in:
RedoX 2021-06-22 15:07:07 +00:00
parent 67f4298223
commit 64395efcbb
4 changed files with 30 additions and 44 deletions

View File

@ -19,18 +19,8 @@
function chatImgAlt() { function chatImgAlt() {
document.getElementById('chatimg').src = 'https://s3.imgcdn.dev/nWNtu.jpg' document.getElementById('chatimg').src = 'https://s3.imgcdn.dev/nWNtu.jpg'
} }
</script> </script>
<!--
<script>
function toggleColorMode() {
if (localStorage.theme = 'light') {
localStorage.theme = 'dark';
} else {
localStorage.theme = 'dark';
}
}
</script>
-->
</body> </body>
</html> </html>

View File

@ -7,8 +7,7 @@
<div class="mx-auto my-1 p-1 w-full"> <div class="mx-auto my-1 p-1 w-full">
<div class="px-2 sm:px-4 md:px-6 lg:px-8 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 text-center break-words"> <div class="px-2 sm:px-4 md:px-6 lg:px-8 grid grid-cols-2 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5 gap-3 text-center break-words">
{% for chat in chats %} {% for chat in chats %}
<a title="{{chat.name}}" href="/{{chat.page_id}}" <a title="{{chat.name}}" href="/{{chat.page_id}}" class="p-4 rounded shadow hover:shadow-md hover:border hover:border-blue-300 hover:bg-blue-100 dark:bg-red-700 dark:hover:bg-red-500">
class="p-4 rounded shadow hover:shadow-md hover:border hover:border-blue-300 hover:bg-blue-100 dark:bg-red-700 dark:hover:bg-red-500">
<img src="/{{chat.page_id}}/logo?big=1" class="w-full rounded-full "> <img src="/{{chat.page_id}}/logo?big=1" class="w-full rounded-full ">
<div class="p-2 mt-2 rounded text-white bg-blue-500 dark:bg-yellow-500">{{chat.name}}</div> <div class="p-2 mt-2 rounded text-white bg-blue-500 dark:bg-yellow-500">{{chat.name}}</div>

View File

@ -1,16 +1,13 @@
{% include 'header.html' %} {% include 'header.html' %} {% block javascript %}
{% block javascript %}
<script type="text/javascript"> <script type="text/javascript">
{% include "./js/filesaver.min.js" %} {% include "./js/filesaver.min.js" %}
{% include "./js/playlist.js" %} {% include "./js/playlist.js" %}
</script> </script>
{% endblock %} {% endblock %}
<div class="block md:flex justify-between items-center px-4 text-center border-b-2"> <div class="block md:flex justify-between items-center px-4 text-center border-b-2">
<div <div class="m-2 block md:flex items-center justify-center md:justify-start text-2xl md:text-right font-bold text-blue-500">
class="m-2 block md:flex items-center justify-center md:justify-start text-2xl md:text-right font-bold text-blue-500">
<img class="mx-auto md:ml-0 md:mr-1 my-4 md:my-2 w-16 h-16 rounded-full bg-black outline-none" src="{{logo}}"> <img class="mx-auto md:ml-0 md:mr-1 my-4 md:my-2 w-16 h-16 rounded-full bg-black outline-none" src="{{logo}}">
<a href="javascript:window.location.href=window.location.href"> {{name}} </a> <a href="javascript:window.location.href=window.location.href"> {{name}} </a>
</div> </div>