damus.io

damus.io website
git clone git://jb55.com/damus.io
Log | Files | Refs | README | LICENSE

channels.ejs (1628B)


      1 <!DOCTYPE html>
      2 <html lang="en">
      3     <head>
      4         <meta charset="utf-8">
      5         <meta name="viewport" content="width=device-width, initial-scale=1">
      6 
      7         <title>Active nostr channels past week</title>
      8         <link rel="stylesheet" href="../log/comments.css?v=5">
      9         <link rel="stylesheet" href="channels.css?v=7">
     10     </head>
     11     <body>
     12 	<section class="header">
     13 		<span class="logo">
     14 			<img src="/img/damus-nobg.svg"/>
     15 		</span>
     16 	</section>
     17 	<div class="container">
     18 
     19 		<h2>Active nostr channels past week</h2>
     20 		<table>
     21 		
     22 		<thead>
     23 			<tr>
     24 				<th>Channel</th>
     25 				<th>Messages</th>
     26 				<th>ID</th>
     27 			</tr>
     28 		</thead>
     29 		<tbody>
     30 		<% channels.forEach((channel) => { %>
     31 		    <tr>
     32 			    <td>
     33 				    <div class="channel">
     34 					    <img onerror="this.onerror=null;this.src='https://robohash.org/<%= channel[3] %>'" src="<%= channel[2] %>" />
     35 					    <%= channel[1].slice(0,20) %>
     36 				    </div>
     37 			    </td>
     38 			    <td><%= channel[0] %></td>
     39 			    <td><pre><%= channel[3] %></pre></td>
     40 		    </tr>
     41 		<% }) %>
     42 		</tbody>
     43 		</table>
     44 
     45 		<h3>Raw Data</h3>
     46 		<a href="https://damus.io/stats/channels-last-week.json">json</a><br/>
     47 		<a href="https://damus.io/stats/channels-last-week.csv">csv</a>
     48 
     49 		<!--
     50 	<h3><a href="nostr:e:2ed9b99190f0acf8f5cf768d4edd4be004a1262c6d296f341333e5e94b5ec423">Comments</a></h3>
     51     <div id="comments">
     52     </div>
     53     <script src="nostr.js?v=4" ></script>
     54     <script src="comments.js?v=16" ></script>
     55 	     <script>
     56 		const relay = comments_init("2ed9b99190f0acf8f5cf768d4edd4be004a1262c6d296f341333e5e94b5ec423")
     57 	     </script>
     58 		-->
     59   </div> <!-- container -->
     60     </body>
     61 </html>