It looks like this is a web page, not a feed. I looked for a feed associated with this page, but couldn't find one. Please enter the address of your feed to validate.

Source: http://indiewebcamp.com/irc/feed.atom

  1. <!DOCTYPE html>
  2. <html class="h-feed">
  3. <head>
  4.  <meta charset="utf-8"/>
  5.  <title class="p-name">#indieweb 2024-09-08</title>
  6.  
  7.  <meta name="keywords" content="#indieweb"/>
  8.        <meta name="robots" content="noindex,follow"/>
  9.  
  10.  <script src="/assets/jquery-3.1.0.min.js"></script>
  11.  <script src="/assets/cookie.js"></script>
  12.  
  13.  <link rel="stylesheet" type="text/css" href="/materialize/css/materialize.min.css"/>
  14.  <script src="/materialize/js/materialize.min.js"></script>
  15.  <script src="/assets/moment.min.js"></script>
  16.  
  17.  <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"/>
  18.  
  19.  <link rel="stylesheet" type="text/css" href="/assets/styles.css"/>
  20.  
  21.  <meta name="viewport" content="width=device-width,initial-scale=1"/>
  22.  <meta name="generator" content="https://github.com/indieweb/chat.indieweb.org"/>
  23.  <link rel="pingback" href="https://webmention.io/indiewebcamp/xmlrpc"/>
  24.  <link href="https://webmention.io/indiewebcamp/webmention" rel="webmention"/>
  25.  <script src="/assets/pushstream.js"></script>
  26.  <script src="/assets/streaming.js"></script>
  27.  
  28.  <link rel="apple-touch-icon-precomposed" href="/assets/logo/indieweb.png">
  29.  
  30.  <script type="application/ld+json">
  31.  {
  32.    "@context": "http://schema.org",
  33.    "@type": "WebSite",
  34.    "url": "https://chat.indieweb.org/",
  35.    "potentialAction": {
  36.      "@type": "SearchAction",
  37.      "target": "https://indiechat.search.cweiske.de/?q={search_term_string}",
  38.      "query-input": "required name=search_term_string"
  39.    }
  40.  }
  41.  </script>
  42.  <link rel="search" title="search chat.indieweb.org" type="application/opensearchdescription+xml" href="/opensearchdescription.php"/>
  43. </head>
  44. <body>
  45. <ul class="side-nav fixed" id="slide-out">
  46.  <li><div class="userView">
  47.    <img src="/assets/user-bkg.jpg" class="background"/>
  48.    <a href="#"><img class="circle" src="/assets/logo/indieweb.png"/></a>
  49.    <a><span class="white-text name" style="font-size: 18pt;">#indieweb</span></a>
  50.    <a><span class="white-text email">2024-09-08</span></a>
  51.  </div></li>
  52.  
  53.  <li style="display: flex; flex-direction: row;">
  54.    <div style="flex: 1 1;">
  55.              <a href="./2024-09-07" rel="prev">Prev</a>
  56.          </div>
  57.    <div style="flex: 1 1;">
  58.              <a class="disabled">Next</a>
  59.          </div>
  60.  </li>
  61.  
  62.  <li class="divider"></li>
  63.  
  64.      <li class="channel current" data-channel="#indieweb">
  65.      <a href="https://chat.indieweb.org/indieweb/">#indieweb</a>
  66.    </li>
  67.      <li class="channel " data-channel="#indieweb-dev">
  68.      <a href="https://chat.indieweb.org/dev/">#dev</a>
  69.    </li>
  70.      <li class="channel " data-channel="#indieweb-wordpress">
  71.      <a href="https://chat.indieweb.org/wordpress/">#wordpress</a>
  72.    </li>
  73.      <li class="channel " data-channel="#indieweb-meta">
  74.      <a href="https://chat.indieweb.org/meta/">#meta</a>
  75.    </li>
  76.      <li class="channel " data-channel="#indieweb-stream">
  77.      <a href="https://chat.indieweb.org/stream/">#stream</a>
  78.    </li>
  79.      <li class="channel " data-channel="#microformats">
  80.      <a href="https://chat.indieweb.org/microformats/">#microformats</a>
  81.    </li>
  82.      <li class="channel " data-channel="#indieweb-known">
  83.      <a href="https://chat.indieweb.org/known/">#known</a>
  84.    </li>
  85.  
  86.  <li class="divider"></li>
  87.  
  88.  <li class="search">
  89.    <form action="https://indiechat.search.cweiske.de/" method="get">
  90.      <div style="position:relative">
  91.        <input type="text" name="q" id="search" placeholder="Search"/>
  92.        <button class="material-icons" type="submit">search</button>
  93.      </div>
  94.    </form>
  95.  </li>
  96.  <li>
  97.    <form action="/set-timezone.php" method="post" id="set-timezone-form">
  98.      <div class="input-field col s12">
  99.        <select class="browser-default" id="set-timezone" name="tz" onchange="document.getElementById('set-timezone-form').submit()">
  100.                      <option value="-5 GMT" >-5 GMT</option>
  101.                      <option value="Africa/Accra" >Africa/Accra</option>
  102.                      <option value="Africa/Tunis" >Africa/Tunis</option>
  103.                      <option value="America/Boise" >America/Boise</option>
  104.                      <option value="America/Chicago" >America/Chicago</option>
  105.                      <option value="America/Denver" >America/Denver</option>
  106.                      <option value="America/Detroit" >America/Detroit</option>
  107.                      <option value="America/Edmonton" >America/Edmonton</option>
  108.                      <option value="America/Halifax" >America/Halifax</option>
  109.                      <option value="America/Los_Angeles" >America/Los_Angeles</option>
  110.                      <option value="America/Los_angeles" >America/Los_angeles</option>
  111.                      <option value="America/Mexico_City" >America/Mexico_City</option>
  112.                      <option value="America/Monterrey" >America/Monterrey</option>
  113.                      <option value="America/Montreal" >America/Montreal</option>
  114.                      <option value="America/New_York" >America/New_York</option>
  115.                      <option value="America/Phoenix" >America/Phoenix</option>
  116.                      <option value="America/Sao_Paulo" >America/Sao_Paulo</option>
  117.                      <option value="America/Toronto" >America/Toronto</option>
  118.                      <option value="America/Vancouver" >America/Vancouver</option>
  119.                      <option value="Asia/Bangkok" >Asia/Bangkok</option>
  120.                      <option value="Asia/Calcutta" >Asia/Calcutta</option>
  121.                      <option value="Asia/Kolkata" >Asia/Kolkata</option>
  122.                      <option value="Asia/Kuala_Lumpur" >Asia/Kuala_Lumpur</option>
  123.                      <option value="Asia/Manila" >Asia/Manila</option>
  124.                      <option value="Asia/Seoul" >Asia/Seoul</option>
  125.                      <option value="Asia/Tehran" >Asia/Tehran</option>
  126.                      <option value="Asia/Tokyo" >Asia/Tokyo</option>
  127.                      <option value="Atlantic/Faroe" >Atlantic/Faroe</option>
  128.                      <option value="Atlantic/Reykjavik" >Atlantic/Reykjavik</option>
  129.                      <option value="Australia/Adelaide" >Australia/Adelaide</option>
  130.                      <option value="Australia/Brisbane" >Australia/Brisbane</option>
  131.                      <option value="Australia/Melbourne" >Australia/Melbourne</option>
  132.                      <option value="Australia/Perth" >Australia/Perth</option>
  133.                      <option value="Australia/Sydney" >Australia/Sydney</option>
  134.                      <option value="CET" >CET</option>
  135.                      <option value="Canada/Eastern" >Canada/Eastern</option>
  136.                      <option value="Europe/Amsterdam" >Europe/Amsterdam</option>
  137.                      <option value="Europe/Athens" >Europe/Athens</option>
  138.                      <option value="Europe/Belfast" >Europe/Belfast</option>
  139.                      <option value="Europe/Belgrade" >Europe/Belgrade</option>
  140.                      <option value="Europe/Berlin" >Europe/Berlin</option>
  141.                      <option value="Europe/Brussels" >Europe/Brussels</option>
  142.                      <option value="Europe/Dublin" >Europe/Dublin</option>
  143.                      <option value="Europe/Helsinki" >Europe/Helsinki</option>
  144.                      <option value="Europe/Lisbon" >Europe/Lisbon</option>
  145.                      <option value="Europe/London" >Europe/London</option>
  146.                      <option value="Europe/Luxembourg" >Europe/Luxembourg</option>
  147.                      <option value="Europe/Madrid" >Europe/Madrid</option>
  148.                      <option value="Europe/Moscow" >Europe/Moscow</option>
  149.                      <option value="Europe/Paris" >Europe/Paris</option>
  150.                      <option value="Europe/Prague" >Europe/Prague</option>
  151.                      <option value="Europe/Rome" >Europe/Rome</option>
  152.                      <option value="Europe/Stockholm" >Europe/Stockholm</option>
  153.                      <option value="Europe/Zurich" >Europe/Zurich</option>
  154.                      <option value="GMT" >GMT</option>
  155.                      <option value="Pacific/Auckland" >Pacific/Auckland</option>
  156.                      <option value="US/Central" >US/Central</option>
  157.                      <option value="US/Eastern" >US/Eastern</option>
  158.                      <option value="US/Pacific" >US/Pacific</option>
  159.                      <option value="UTC" selected="selected">UTC</option>
  160.                  </select>
  161.        <input type="hidden" name="location" value="/2024-09-08"/>
  162.      </div>
  163.    </form>
  164.  </li>
  165.  
  166. </ul>
  167.  
  168. <div class="navbar-fixed">
  169.  <nav>
  170.    <div class="nav-wrapper">
  171.      <a href="#" class="brand-logo">#indieweb</a>
  172.      <a href="#" data-activates="slide-out" class="button-collapse"><abbr title="menu">≡</abbr></a>
  173.  
  174.      <ul class="right">
  175.        <li>
  176.                      <a href="./2024-09-07" rel="prev"><abbr title="Previous">←</abbr></a>
  177.                  </li>
  178.        <li>
  179.                      <a class="disabled"><abbr title="Next">→</abbr></a>
  180.                  </li>
  181.      </ul>
  182.    </div>
  183.  </nav>
  184. </div>
  185.  
  186. <script>
  187. $(function(){
  188.  $(".button-collapse").sideNav();
  189.  $("li.channel").each(function(i,ch){
  190.    if(channel_unread($(ch).data('channel'))) {
  191.      $(ch).addClass('activity');
  192.    }
  193.  });
  194.  channel_read($("#active-channel").val());
  195. });
  196. </script>
  197. <main>
  198.  
  199. <h2 class="date"><span class="channel-name">#indieweb</span> 2024-09-08</h2>
  200.  
  201. <div class="logs">
  202.  <div id="log-lines">
  203.    <div class="daymark">2024-09-08 <span class="tz">UTC</span></div><div class="line join cluster">thegreekgeek joined the channel</div><div id="t1725756369429400" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725756369429400" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T00:46:09+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725756369429400" class="u-url time" title="2024-09-08T00:46:09+00:00">00:46</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar" style="opacity: .20;"><img src="https://chat.indieweb.org//assets/user.svg" width="20" height="20"/></div><span class=""><span class="p-nickname p-name">catgirlin.space</span></span></span> <span class="e-content p-name">indieweb store??</span></span></div></div>
  204.  
  205. <div id="t1725756370383000" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725756370383000" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T00:46:10+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725756370383000" class="u-url time" title="2024-09-08T00:46:10+00:00">00:46</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar" style="opacity: .20;"><img src="https://chat.indieweb.org//assets/user.svg" width="20" height="20"/></div><span class=""><span class="p-nickname p-name">catgirlin.space</span></span></span> <span class="e-content p-name">need</span></span></div></div>
  206.  
  207. <div class="line join cluster">to2ds and ren joined the channel</div><div id="t1725761432452800" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761432452800" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:10:32+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761432452800" class="u-url time" title="2024-09-08T02:10:32+00:00">02:10</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=https%3A%2F%2Ftantek.com%2Flogo.jpg&amp;sig=fdc026586d46976e19df06a113be643ff26d1dec5e3cb4e70d23224b6b3de6d0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://Tantek.com" class="author p-nickname p-name u-url" target="_blank">[tantek]</a></span></span> <span class="e-content p-name">what is the indieweb store?</span></span></div></div>
  208.  
  209. <div id="t1725761432935600" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761432935600" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:10:32+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761432935600" class="u-url time" title="2024-09-08T02:10:32+00:00">02:10</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=http%3A%2F%2Floqi.me%2Flogo%2Floqisaur.png&amp;sig=3571041228810c0664972bd517c3e0cb2b50fe82c7359f310bed393df91a84e0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://loqi.me" class="author p-nickname p-name u-url" target="_blank">Loqi</a></span></span> <span class="e-content p-name">It looks like we don't have a page for "indieweb store" yet. <a href="https://indieweb.org/s/12XK" target="_blank">Would you like to create it?</a> (Or just say "indieweb store is ____", a sentence describing the term)</span></span></div></div>
  210.  
  211. <div id="t1725761489078400" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761489078400" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:11:29+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761489078400" class="u-url time" title="2024-09-08T02:11:29+00:00">02:11</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=https%3A%2F%2Ftantek.com%2Flogo.jpg&amp;sig=fdc026586d46976e19df06a113be643ff26d1dec5e3cb4e70d23224b6b3de6d0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://Tantek.com" class="author p-nickname p-name u-url" target="_blank">[tantek]</a></span></span> <span class="e-content p-name">indieweb store is <a href="https://indieweb.org/swag" target="_blank">/swag</a></span></span></div></div>
  212.  
  213. <div id="t1725761489340800" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761489340800" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:11:29+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761489340800" class="u-url time" title="2024-09-08T02:11:29+00:00">02:11</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=http%3A%2F%2Floqi.me%2Flogo%2Floqisaur.png&amp;sig=3571041228810c0664972bd517c3e0cb2b50fe82c7359f310bed393df91a84e0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://loqi.me" class="author p-nickname p-name u-url" target="_blank">Loqi</a></span></span> <span class="e-content p-name">ok</span></span></div></div>
  214.  
  215. <div id="t1725761834191400" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761834191400" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:17:14+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761834191400" class="u-url time" title="2024-09-08T02:17:14+00:00">02:17</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=https%3A%2F%2Ftantek.com%2Flogo.jpg&amp;sig=fdc026586d46976e19df06a113be643ff26d1dec5e3cb4e70d23224b6b3de6d0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://Tantek.com" class="author p-nickname p-name u-url" target="_blank">[tantek]</a></span></span> <span class="e-content p-name">what is indieweb store</span></span></div></div>
  216.  
  217. <div id="t1725761834634300" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761834634300" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:17:14+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761834634300" class="u-url time" title="2024-09-08T02:17:14+00:00">02:17</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=http%3A%2F%2Floqi.me%2Flogo%2Floqisaur.png&amp;sig=3571041228810c0664972bd517c3e0cb2b50fe82c7359f310bed393df91a84e0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://loqi.me" class="author p-nickname p-name u-url" target="_blank">Loqi</a></span></span> <span class="e-content p-name">swag is indieweb apparel and accessories you can purchase <a href="https://indieweb.org/indieweb_store" target="_blank">https://indieweb.org/indieweb_store</a></span></span></div></div>
  218.  
  219. <div id="t1725761839729200" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725761839729200" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:17:19+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725761839729200" class="u-url time" title="2024-09-08T02:17:19+00:00">02:17</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=https%3A%2F%2Ftantek.com%2Flogo.jpg&amp;sig=fdc026586d46976e19df06a113be643ff26d1dec5e3cb4e70d23224b6b3de6d0" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://Tantek.com" class="author p-nickname p-name u-url" target="_blank">[tantek]</a></span></span> <span class="e-content p-name">^ there we go</span></span></div></div>
  220.  
  221. <div id="t1725764172351500" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725764172351500" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T02:56:12+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725764172351500" class="u-url time" title="2024-09-08T02:56:12+00:00">02:56</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar" style="opacity: .20;"><img src="https://chat.indieweb.org//assets/user.svg" width="20" height="20"/></div><span class=""><span class="p-nickname p-name">catgirlin.space</span></span></span> <span class="e-content p-name">ty</span></span></div></div>
  222.  
  223. <div class="line join cluster">athan and Artea joined the channel</div><div id="t1725771610829100" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-09-08#t1725771610829100" class="hash">#</a> <time class="dt-published" datetime="2024-09-08T05:00:10+00:00"><a href="https://chat.indieweb.org/2024-09-08/1725771610829100" class="u-url time" title="2024-09-08T05:00:10+00:00">05:00</a></time> <span class="text"><span class="nick p-author h-card"><div class="avatar"><img src="https://chat.indieweb.org/img.php?url=https%3A%2F%2Fsecure.gravatar.com%2Favatar%2F17d306899b5f20953440eca1d65d34e0%3Fs%3D128&amp;sig=de41f5fe2715ff38a6514b2323a41e07b698b9ec1a50d5544649adfb55f2308f" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://www.ciccarello.me" class="author p-nickname p-name u-url" target="_blank">[aciccarello]</a></span></span> <span class="e-content p-name">I just saw gregor's animal crossing design! I gotta see if I can download that. Was playing earlier today.</span></span></div></div>
  224.  
  225. <div class="line join cluster">sp1ff, jan6, akiraq, ttybitnik, thegreekgeek_, bterry1 and athan joined the channel</div>  </div>
  226.  <span id="bottom"></span>
  227. </div>
  228.  
  229.  <input id="active-channel" type="hidden" value="#indieweb">
  230.  <input id="tz-offset" type="hidden" value="+00:00">
  231.  
  232. <div id="chat-footer">
  233.      <div id="join_prompt">
  234.  <button type="button" id="join_btn">Join the Chat</button>
  235.  (or join via <a href="https://indieweb.org/discuss#Join_Discussions">Discord, IRC<!--, Matrix official bridge disabled --></a>,
  236.  or <a href="https://chat.indieweb.org/slack">Slack</a>).
  237.  Any problems? Please file an
  238.  <a href="https://github.com/indieweb/chat.indieweb.org/issues">issue on GitHub</a>.
  239. </div>
  240.  
  241. <div id="signin" class="hidden">
  242.  enter nickname: <input type="text" id="nickname" autocomplete="off" />
  243. </div>
  244.  
  245. <div id="connection_status" class="hidden">
  246.  <input type="text" readonly="readonly" id="connection_status_field" />
  247. </div>
  248.  
  249. <div id="chat" class="hidden">
  250.  <input type="text" id="message" autocomplete="off" />
  251.  <span id="notify_control" class="hidden">
  252.    <button type="button" id="notify_btn">Enable Notifications</button>
  253.  </span>
  254. </div>
  255.  
  256.  
  257. <div id="irc_notice" class="hidden"><div class="pad">
  258.  <button type="button" class="close" id="close_notice_btn">×</button>
  259.  <span class="nick" id="irc_notice_nick"></span>
  260.  <span class="text" id="irc_notice_text"></span>
  261. </div></div>
  262.  
  263.  
  264. <style type="text/css">
  265. .hidden {
  266.  display: none;
  267. }
  268. #join_prompt button {
  269.  padding: 4px;
  270.  font-size: 15px;
  271.  background: #94dfef;
  272.  border: 1px #78cee1 solid;
  273.  border-radius: 4px;
  274. }
  275. #notify_control button {
  276.  font-size: 15px;
  277.  background: #ccc;
  278.  border: 1px #999 solid;
  279.  border-radius: 4px;
  280.  float:right;
  281. }
  282. #notify_control button.enabled {
  283.  border: 1px #78cee1 solid;
  284.  background: #94dfef;
  285. }
  286. #connection_status_field {
  287.  width: 300px;
  288. }
  289. #message {
  290.  font-size: 15px;
  291.  width: 400px;
  292. }
  293. #irc_notice {
  294.  position: absolute;
  295.  bottom: 60px;
  296.  left: 20px;
  297.  background: #f2dede;
  298.  border: 2px #ebccd1 solid;
  299.  color: #a94442;
  300.  border-radius: 4px;
  301. }
  302. #irc_notice .pad {
  303.  margin: 15px;
  304. }
  305. #irc_notice .nick {
  306.  font-weight: bold;
  307. }
  308. #irc_notice .close {
  309.  position: relative;
  310.  top: -6px;
  311.  right: -9px;
  312.  border: 0;
  313.  float: right;
  314.  cursor: pointer;
  315.  background: 0 0;
  316.  -webkit-appearance: none;
  317.  font-size: 21px;
  318.  font-weight: 700;
  319.  line-height: 1;
  320.  color: #000;
  321.  text-shadow: 0 1px 0 #fff;
  322.  opacity: 0.2;
  323.  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  324. }
  325. #irc_notice .close:hover {
  326.  opacity: 0.5;
  327. }
  328. </style>
  329.  
  330. <script>
  331. document.getElementById('close_notice_btn').addEventListener('click', function(){
  332.  document.getElementById('irc_notice').classList.add('hidden');
  333. });
  334.  
  335.  var join_btn = document.getElementById('join_btn');
  336.  var notify_btn = document.getElementById('notify_btn');
  337.  var message_box = document.getElementById('message');
  338.  var nick_field = document.getElementById('nickname');
  339.  var status_field = document.getElementById('connection_status_field');
  340.  var notify = false;
  341.  var nickname;
  342.  var nickname_regex = null;
  343.  var nickname_self_regex = null;
  344.  var connected = false;
  345.  var chat_session = false;
  346.  
  347.  join_btn.addEventListener('click', function(){
  348.    document.getElementById('join_prompt').classList.add('hidden');
  349.    document.getElementById('signin').classList.remove('hidden');
  350.    document.querySelector('.logs').classList.add('active-chat');
  351.    if(get_nick_from_cookie()) {
  352.      nick_field.value = get_nick_from_cookie();
  353.    }
  354.    nick_field.focus();
  355.    window.scrollTo(0,document.body.offsetHeight);
  356.  
  357.    var nick_key_listener = function(e) {
  358.      if(e.keyCode == 13) {
  359.        if(!connected) {
  360.          show_notice("connecting...","connecting to the chat room...");
  361.        }
  362.      }
  363.    };
  364.    nick_field.addEventListener("keypress", nick_key_listener);
  365.    
  366.  });
  367.  
  368.  notify_btn.addEventListener('click', function(){
  369.    if(notify){
  370.        notify = false;
  371.        notify_btn.classList.remove('enabled');
  372.        notify_btn.innerHTML = 'Enabled Notifications';
  373.    } else {
  374.        if (!("Notification" in window)) {
  375.            alert("Notifications not supported on this browser.");
  376.        } else if (Notification.permission === "granted") {
  377.            notify = true;
  378.            notify_btn.classList.add('enabled');
  379.            notify_btn.innerHTML = 'Disable Notifications';
  380.        } else if (Notification.permission !== 'denied') {
  381.            Notification.requestPermission(function (permission) {
  382.                if (permission === "granted") {
  383.                    notify = true;
  384.                    notify_btn.classList.add('enabled');
  385.                    notify_btn.innerHTML = 'Disable Notifications';
  386.                }
  387.            });
  388.        }
  389.    }
  390.  });
  391.  
  392.  nick_field.addEventListener('keypress', function(e){
  393.    if(e.keyCode == 13) {
  394.      set_nick(nick_field.value);
  395.      document.getElementById('message').focus();
  396.      join(nickname);
  397.      activate_chat_field();
  398.    }
  399.  });
  400.  
  401. function activate_chat_field() {
  402.  document.getElementById('signin').classList.add('hidden');
  403.  document.getElementById('chat').classList.remove('hidden');
  404.  document.querySelector('.logs').classList.add('active-chat');
  405.  var message_key_listener = function(e) {
  406.    if(e.keyCode == 13) {
  407.      console.log("Sending to IRC: "+message_box.value);
  408.      if(!connected) {
  409.        show_notice("connecting...","connecting to the chat room...");
  410.      }
  411.      send(message_box.value);
  412.    }
  413.  };
  414.  message_box.addEventListener("keypress", message_key_listener);
  415. }
  416.  
  417. function get_nick_from_cookie() {
  418.  return Cookies.get("nickname");
  419. }
  420.  
  421. function set_nick(nick) {
  422.  nickname = nick;
  423.  nickname_regex = new RegExp(nickname, "i");
  424.  nickname_self_regex = new RegExp('^# \\d\\d:\\d\\d \\[?'+nickname, "i");
  425.  Cookies.set("nickname", nickname);
  426. }
  427.  
  428. function get_session_from_cookie() {
  429.  return Cookies.get("gatewaysession");
  430. }
  431.  
  432. function set_session(session) {
  433.  chat_session = session;
  434.  Cookies.set("gatewaysession", session);
  435. }
  436.  
  437. function show_notice(nick, text) {
  438.  document.getElementById('irc_notice').classList.remove('hidden');
  439.  document.getElementById('irc_notice_nick').innerHTML = nick;
  440.  document.getElementById('irc_notice_text').innerHTML = text;
  441. }
  442. function hide_notice() {
  443.  document.getElementById('irc_notice').classList.add('hidden');
  444.  document.getElementById('irc_notice_nick').innerHTML = "";
  445.  document.getElementById('irc_notice_text').innerHTML = "";
  446. }
  447. function check_alert(data){
  448.  if(!connected) {
  449.    console.log("Not connected. Got text: ");
  450.    console.log(data);
  451.    if(data.nick == nickname) {
  452.      connected = true;
  453.      console.log("Connected");
  454.      hide_notice();
  455.    }
  456.  }
  457.  if(notify){
  458.    if(data.line.match(nickname_regex) && data.nick != nickname) {
  459.      if (!("Notification" in window)) {
  460.          console.log("Notifications not supported on this browser.");
  461.      } else if (Notification.permission === "granted") {
  462.          var notification = new Notification(text);
  463.      } else if (Notification.permission !== 'denied') {
  464.          Notification.requestPermission();
  465.      }
  466.    }
  467.  }
  468. }
  469. function send(text) {
  470.  xhr = new XMLHttpRequest();
  471.  
  472.  xhr.open('POST', encodeURI('/send.php?action=input'));
  473.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  474.  xhr.onload = function() {
  475.    var response = JSON.parse(xhr.responseText);
  476.    if (xhr.status === 200 && response.username) {
  477.      console.log("sent");
  478.      message_box.value = '';
  479.    }
  480.    else {
  481.      alert('Request failed: ' + response.error);
  482.    }
  483.  };
  484.  xhr.send('user_name=' + encodeURIComponent(nickname)
  485.    + '&text=' + encodeURIComponent(text)
  486.    + '&session=' + encodeURIComponent(chat_session)
  487.    + '&channel=' + encodeURIComponent(document.getElementById('active-channel').value));
  488. }
  489. function join(nick) {
  490.  xhr = new XMLHttpRequest();
  491.  
  492.  xhr.open('POST', encodeURI('/send.php?action=join'));
  493.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  494.  xhr.onload = function() {
  495.    console.log("Got status "+xhr.status);
  496.    var response = JSON.parse(xhr.responseText);
  497.    console.log(response);
  498.    if (response.status=="connecting") {
  499.      console.log("connecting...");
  500.      set_session(response.session);
  501.    } else if(response.status=="connected") {
  502.      connected = true;
  503.      console.log("connected");
  504.      set_session(response.session);
  505.      hide_notice();
  506.    } else {
  507.      alert('Request failed.  Returned status of ' + xhr.status);
  508.    }
  509.  };
  510.  xhr.send('user_name=' + encodeURIComponent(nickname) + '&channel=' + encodeURIComponent(document.getElementById('active-channel').value));
  511. }
  512.  
  513. // Check if there is an active session in the cookie
  514. if(chat_session=get_session_from_cookie()) {
  515.  xhr = new XMLHttpRequest();
  516.  
  517.  xhr.open('POST', encodeURI('/send.php?action=session'));
  518.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  519.  xhr.onload = function() {
  520.    var response = JSON.parse(xhr.responseText);
  521.    if(response && response.username) {
  522.      set_nick(response.username);
  523.      connected = true;
  524.      hide_notice();
  525.      document.getElementById('join_prompt').classList.add('hidden');
  526.      document.getElementById('signin').classList.add('hidden');
  527.      document.getElementById('chat').classList.remove('hidden');
  528.      activate_chat_field();
  529.      window.scrollTo(0,document.body.offsetHeight);
  530.    } else {
  531.      set_session("");
  532.    }
  533.  }
  534.  xhr.send('session=' + encodeURIComponent(chat_session));
  535. }
  536.  
  537. </script>
  538.  
  539.  <div class="clear"></div>
  540. </div>
  541.  
  542. <script type="text/javascript">/*<![CDATA[*/
  543.  if(window.location.hash && window.location.hash != '#top' && window.location.hash != '#bottom') {
  544.    var n = document.getElementById(window.location.hash.replace('#',''));
  545.    n.classList.add('hilite');
  546.  }
  547.  window.addEventListener("hashchange", function(){
  548.    var n = document.getElementsByClassName('line');
  549.    Array.prototype.filter.call(n, function(el){ el.classList.remove('hilite') });
  550.    var n = document.getElementById(window.location.hash.replace('#',''));
  551.    n.classList.add('hilite');
  552.  }, false);
  553. /*]]>*/</script>
  554.  
  555. </main>
  556.  
  557. </body>
  558. </html>
  559.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda