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-10-10</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-10-10</span></a>
  51.  </div></li>
  52.  
  53.  <li style="display: flex; flex-direction: row;">
  54.    <div style="flex: 1 1;">
  55.              <a href="./2024-10-09" 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.      <li class="channel " data-channel="#indieweb-events">
  86.      <a href="https://chat.indieweb.org/events/">#events</a>
  87.    </li>
  88.  
  89.  <li class="divider"></li>
  90.  
  91.  <li class="search">
  92.    <form action="https://indiechat.search.cweiske.de/" method="get">
  93.      <div style="position:relative">
  94.        <input type="text" name="q" id="search" placeholder="Search"/>
  95.        <button class="material-icons" type="submit">search</button>
  96.      </div>
  97.    </form>
  98.  </li>
  99.  <li>
  100.    <form action="/set-timezone.php" method="post" id="set-timezone-form">
  101.      <div class="input-field col s12">
  102.        <select class="browser-default" id="set-timezone" name="tz" onchange="document.getElementById('set-timezone-form').submit()">
  103.                      <option value="-5 GMT" >-5 GMT</option>
  104.                      <option value="Africa/Accra" >Africa/Accra</option>
  105.                      <option value="Africa/Tunis" >Africa/Tunis</option>
  106.                      <option value="America/Boise" >America/Boise</option>
  107.                      <option value="America/Chicago" >America/Chicago</option>
  108.                      <option value="America/Denver" >America/Denver</option>
  109.                      <option value="America/Detroit" >America/Detroit</option>
  110.                      <option value="America/Edmonton" >America/Edmonton</option>
  111.                      <option value="America/Halifax" >America/Halifax</option>
  112.                      <option value="America/Los_Angeles" >America/Los_Angeles</option>
  113.                      <option value="America/Los_angeles" >America/Los_angeles</option>
  114.                      <option value="America/Mexico_City" >America/Mexico_City</option>
  115.                      <option value="America/Monterrey" >America/Monterrey</option>
  116.                      <option value="America/Montreal" >America/Montreal</option>
  117.                      <option value="America/New_York" >America/New_York</option>
  118.                      <option value="America/Phoenix" >America/Phoenix</option>
  119.                      <option value="America/Sao_Paulo" >America/Sao_Paulo</option>
  120.                      <option value="America/Toronto" >America/Toronto</option>
  121.                      <option value="America/Vancouver" >America/Vancouver</option>
  122.                      <option value="Asia/Bangkok" >Asia/Bangkok</option>
  123.                      <option value="Asia/Calcutta" >Asia/Calcutta</option>
  124.                      <option value="Asia/Kolkata" >Asia/Kolkata</option>
  125.                      <option value="Asia/Kuala_Lumpur" >Asia/Kuala_Lumpur</option>
  126.                      <option value="Asia/Manila" >Asia/Manila</option>
  127.                      <option value="Asia/Seoul" >Asia/Seoul</option>
  128.                      <option value="Asia/Tehran" >Asia/Tehran</option>
  129.                      <option value="Asia/Tokyo" >Asia/Tokyo</option>
  130.                      <option value="Atlantic/Faroe" >Atlantic/Faroe</option>
  131.                      <option value="Atlantic/Reykjavik" >Atlantic/Reykjavik</option>
  132.                      <option value="Australia/Adelaide" >Australia/Adelaide</option>
  133.                      <option value="Australia/Brisbane" >Australia/Brisbane</option>
  134.                      <option value="Australia/Melbourne" >Australia/Melbourne</option>
  135.                      <option value="Australia/Perth" >Australia/Perth</option>
  136.                      <option value="Australia/Sydney" >Australia/Sydney</option>
  137.                      <option value="CET" >CET</option>
  138.                      <option value="Canada/Eastern" >Canada/Eastern</option>
  139.                      <option value="Europe/Amsterdam" >Europe/Amsterdam</option>
  140.                      <option value="Europe/Athens" >Europe/Athens</option>
  141.                      <option value="Europe/Belfast" >Europe/Belfast</option>
  142.                      <option value="Europe/Belgrade" >Europe/Belgrade</option>
  143.                      <option value="Europe/Berlin" >Europe/Berlin</option>
  144.                      <option value="Europe/Brussels" >Europe/Brussels</option>
  145.                      <option value="Europe/Dublin" >Europe/Dublin</option>
  146.                      <option value="Europe/Helsinki" >Europe/Helsinki</option>
  147.                      <option value="Europe/Lisbon" >Europe/Lisbon</option>
  148.                      <option value="Europe/London" >Europe/London</option>
  149.                      <option value="Europe/Luxembourg" >Europe/Luxembourg</option>
  150.                      <option value="Europe/Madrid" >Europe/Madrid</option>
  151.                      <option value="Europe/Moscow" >Europe/Moscow</option>
  152.                      <option value="Europe/Paris" >Europe/Paris</option>
  153.                      <option value="Europe/Prague" >Europe/Prague</option>
  154.                      <option value="Europe/Rome" >Europe/Rome</option>
  155.                      <option value="Europe/Stockholm" >Europe/Stockholm</option>
  156.                      <option value="Europe/Zurich" >Europe/Zurich</option>
  157.                      <option value="GMT" >GMT</option>
  158.                      <option value="Pacific/Auckland" >Pacific/Auckland</option>
  159.                      <option value="US/Central" >US/Central</option>
  160.                      <option value="US/Eastern" >US/Eastern</option>
  161.                      <option value="US/Pacific" >US/Pacific</option>
  162.                      <option value="UTC" selected="selected">UTC</option>
  163.                  </select>
  164.        <input type="hidden" name="location" value="/2024-10-10"/>
  165.      </div>
  166.    </form>
  167.  </li>
  168.  
  169. </ul>
  170.  
  171. <div class="navbar-fixed">
  172.  <nav>
  173.    <div class="nav-wrapper">
  174.      <a href="#" class="brand-logo">#indieweb</a>
  175.      <a href="#" data-activates="slide-out" class="button-collapse"><abbr title="menu">≡</abbr></a>
  176.  
  177.      <ul class="right">
  178.        <li>
  179.                      <a href="./2024-10-09" rel="prev"><abbr title="Previous">←</abbr></a>
  180.                  </li>
  181.        <li>
  182.                      <a class="disabled"><abbr title="Next">→</abbr></a>
  183.                  </li>
  184.      </ul>
  185.    </div>
  186.  </nav>
  187. </div>
  188.  
  189. <script>
  190. $(function(){
  191.  $(".button-collapse").sideNav();
  192.  $("li.channel").each(function(i,ch){
  193.    if(channel_unread($(ch).data('channel'))) {
  194.      $(ch).addClass('activity');
  195.    }
  196.  });
  197.  channel_read($("#active-channel").val());
  198. });
  199. </script>
  200. <main>
  201.  
  202. <h2 class="date"><span class="channel-name">#indieweb</span> 2024-10-10</h2>
  203.  
  204. <div class="logs">
  205.  <div id="log-lines">
  206.    <div class="daymark">2024-10-10 <span class="tz">UTC</span></div><div class="line join cluster">[Murray] joined the channel</div><div id="t1728521402190300" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-10-10#t1728521402190300" class="hash">#</a> <time class="dt-published" datetime="2024-10-10T00:50:02+00:00"><a href="https://chat.indieweb.org/2024-10-10/1728521402190300" class="u-url time" title="2024-10-10T00:50:02+00:00">00:50</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">Homebrew Website Club - Pacific is starting soon! Join us! <a href="https://events.indieweb.org/VZJQwWYXD9Ks" target="_blank">https://events.indieweb.org/VZJQwWYXD9Ks</a></span></span></div></div>
  207.  
  208. <div class="line join cluster">Halian and aesthetikx joined the channel</div><div id="t1728524179201600" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-10-10#t1728524179201600" class="hash">#</a> <time class="dt-published" datetime="2024-10-10T01:36:19+00:00"><a href="https://chat.indieweb.org/2024-10-10/1728524179201600" class="u-url time" title="2024-10-10T01:36:19+00:00">01:36</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">nataliagruber</span></span></span> <span class="e-content p-name">[capjamesg] checking out your site, I like the varying themes on different posts!</span></span></div></div>
  209.  
  210. <div class="line join cluster">Halian|, athan and Halian joined the channel</div><div id="t1728532421322700" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-10-10#t1728532421322700" class="hash">#</a> <time class="dt-published" datetime="2024-10-10T03:53:41+00:00"><a href="https://chat.indieweb.org/2024-10-10/1728532421322700" class="u-url time" title="2024-10-10T03:53:41+00:00">03:53</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%2Flmorchard.com%2Favatar.jpg&amp;sig=e4b06ea0d808ce52a1f7c823e00a56e7a345ec622ffd91a14bcc598f3a71803e" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://lmorchard.com" class="author p-nickname p-name u-url" target="_blank">lmorchard</a></span></span> <span class="e-content p-name">Heya folks 👋🏻  wandering over here to say hi. Tried joining via IRC, but apparently my IP is banned? Been a web nerd for a good long while. My blog turned 22 this year, neglected though I keep meaning to post more 😅  <a href="https://blog.lmorchard.com/" target="_blank">https://blog.lmorchard.com/</a></span></span></div></div>
  211.  
  212. <div id="t1728532421583400" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-10-10#t1728532421583400" class="hash">#</a> <time class="dt-published" datetime="2024-10-10T03:53:41+00:00"><a href="https://chat.indieweb.org/2024-10-10/1728532421583400" class="u-url time" title="2024-10-10T03:53:41+00:00">03:53</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%2Flmorchard.com%2Favatar.jpg&amp;sig=e4b06ea0d808ce52a1f7c823e00a56e7a345ec622ffd91a14bcc598f3a71803e" width="20" height="20" class="u-photo"/></div><span class=""><a href="http://lmorchard.com" class="author p-nickname p-name u-url" target="_blank">lmorchard</a></span></span> <span class="e-content p-name">[edit] Heya folks 👋🏻  wandering over here to say hi. Tried joining via IRC, but apparently my IP is banned? Been a web nerd for a good long while. My blog turned 22 this year, neglected though I keep meaning to post more 😅  <a href="https://blog.lmorchard.com/" target="_blank">https://blog.lmorchard.com/</a></span></span></div></div>
  213.  
  214. <div id="t1728532734637100" class="h-entry line msg-message "><div class="in"><a href="https://chat.indieweb.org/2024-10-10#t1728532734637100" class="hash">#</a> <time class="dt-published" datetime="2024-10-10T03:58:54+00:00"><a href="https://chat.indieweb.org/2024-10-10/1728532734637100" class="u-url time" title="2024-10-10T03:58:54+00:00">03:58</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">nataliagruber</span></span></span> <span class="e-content p-name">Hi there!</span></span></div></div>
  215.  
  216. <div class="line join cluster">GuestZero, [tantek], [Jo], [Murray], [snarfed]1, IWSlackGateway, IWSlackGateway1, bret, saptaks_znc, toastal, saptaks and Halian| joined the channel; toastal left the channel</div>  </div>
  217.  <span id="bottom"></span>
  218. </div>
  219.  
  220.  <input id="active-channel" type="hidden" value="#indieweb">
  221.  <input id="tz-offset" type="hidden" value="+00:00">
  222.  
  223. <div id="chat-footer">
  224.      <div id="join_prompt">
  225.  <button type="button" id="join_btn">Join the Chat</button>
  226.  (or join via <a href="https://indieweb.org/discuss#Join_Discussions">Discord, IRC<!--, Matrix official bridge disabled --></a>,
  227.  or <a href="https://chat.indieweb.org/slack">Slack</a>).
  228.  Any problems? Please file an
  229.  <a href="https://github.com/indieweb/chat.indieweb.org/issues">issue on GitHub</a>.
  230. </div>
  231.  
  232. <div id="signin" class="hidden">
  233.  enter nickname: <input type="text" id="nickname" autocomplete="off" />
  234. </div>
  235.  
  236. <div id="connection_status" class="hidden">
  237.  <input type="text" readonly="readonly" id="connection_status_field" />
  238. </div>
  239.  
  240. <div id="chat" class="hidden">
  241.  <input type="text" id="message" autocomplete="off" />
  242.  <span id="notify_control" class="hidden">
  243.    <button type="button" id="notify_btn">Enable Notifications</button>
  244.  </span>
  245. </div>
  246.  
  247.  
  248. <div id="irc_notice" class="hidden"><div class="pad">
  249.  <button type="button" class="close" id="close_notice_btn">×</button>
  250.  <span class="nick" id="irc_notice_nick"></span>
  251.  <span class="text" id="irc_notice_text"></span>
  252. </div></div>
  253.  
  254.  
  255. <style type="text/css">
  256. .hidden {
  257.  display: none;
  258. }
  259. #join_prompt button {
  260.  padding: 4px;
  261.  font-size: 15px;
  262.  background: #94dfef;
  263.  border: 1px #78cee1 solid;
  264.  border-radius: 4px;
  265. }
  266. #notify_control button {
  267.  font-size: 15px;
  268.  background: #ccc;
  269.  border: 1px #999 solid;
  270.  border-radius: 4px;
  271.  float:right;
  272. }
  273. #notify_control button.enabled {
  274.  border: 1px #78cee1 solid;
  275.  background: #94dfef;
  276. }
  277. #connection_status_field {
  278.  width: 300px;
  279. }
  280. #message {
  281.  font-size: 15px;
  282.  width: 400px;
  283. }
  284. #irc_notice {
  285.  position: absolute;
  286.  bottom: 60px;
  287.  left: 20px;
  288.  background: #f2dede;
  289.  border: 2px #ebccd1 solid;
  290.  color: #a94442;
  291.  border-radius: 4px;
  292. }
  293. #irc_notice .pad {
  294.  margin: 15px;
  295. }
  296. #irc_notice .nick {
  297.  font-weight: bold;
  298. }
  299. #irc_notice .close {
  300.  position: relative;
  301.  top: -6px;
  302.  right: -9px;
  303.  border: 0;
  304.  float: right;
  305.  cursor: pointer;
  306.  background: 0 0;
  307.  -webkit-appearance: none;
  308.  font-size: 21px;
  309.  font-weight: 700;
  310.  line-height: 1;
  311.  color: #000;
  312.  text-shadow: 0 1px 0 #fff;
  313.  opacity: 0.2;
  314.  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  315. }
  316. #irc_notice .close:hover {
  317.  opacity: 0.5;
  318. }
  319. </style>
  320.  
  321. <script>
  322. document.getElementById('close_notice_btn').addEventListener('click', function(){
  323.  document.getElementById('irc_notice').classList.add('hidden');
  324. });
  325.  
  326.  var join_btn = document.getElementById('join_btn');
  327.  var notify_btn = document.getElementById('notify_btn');
  328.  var message_box = document.getElementById('message');
  329.  var nick_field = document.getElementById('nickname');
  330.  var status_field = document.getElementById('connection_status_field');
  331.  var notify = false;
  332.  var nickname;
  333.  var nickname_regex = null;
  334.  var nickname_self_regex = null;
  335.  var connected = false;
  336.  var chat_session = false;
  337.  
  338.  join_btn.addEventListener('click', function(){
  339.    document.getElementById('join_prompt').classList.add('hidden');
  340.    document.getElementById('signin').classList.remove('hidden');
  341.    document.querySelector('.logs').classList.add('active-chat');
  342.    if(get_nick_from_cookie()) {
  343.      nick_field.value = get_nick_from_cookie();
  344.    }
  345.    nick_field.focus();
  346.    window.scrollTo(0,document.body.offsetHeight);
  347.  
  348.    var nick_key_listener = function(e) {
  349.      if(e.keyCode == 13) {
  350.        if(!connected) {
  351.          show_notice("connecting...","connecting to the chat room...");
  352.        }
  353.      }
  354.    };
  355.    nick_field.addEventListener("keypress", nick_key_listener);
  356.    
  357.  });
  358.  
  359.  notify_btn.addEventListener('click', function(){
  360.    if(notify){
  361.        notify = false;
  362.        notify_btn.classList.remove('enabled');
  363.        notify_btn.innerHTML = 'Enabled Notifications';
  364.    } else {
  365.        if (!("Notification" in window)) {
  366.            alert("Notifications not supported on this browser.");
  367.        } else if (Notification.permission === "granted") {
  368.            notify = true;
  369.            notify_btn.classList.add('enabled');
  370.            notify_btn.innerHTML = 'Disable Notifications';
  371.        } else if (Notification.permission !== 'denied') {
  372.            Notification.requestPermission(function (permission) {
  373.                if (permission === "granted") {
  374.                    notify = true;
  375.                    notify_btn.classList.add('enabled');
  376.                    notify_btn.innerHTML = 'Disable Notifications';
  377.                }
  378.            });
  379.        }
  380.    }
  381.  });
  382.  
  383.  nick_field.addEventListener('keypress', function(e){
  384.    if(e.keyCode == 13) {
  385.      set_nick(nick_field.value);
  386.      document.getElementById('message').focus();
  387.      join(nickname);
  388.      activate_chat_field();
  389.    }
  390.  });
  391.  
  392. function activate_chat_field() {
  393.  document.getElementById('signin').classList.add('hidden');
  394.  document.getElementById('chat').classList.remove('hidden');
  395.  document.querySelector('.logs').classList.add('active-chat');
  396.  var message_key_listener = function(e) {
  397.    if(e.keyCode == 13) {
  398.      console.log("Sending to IRC: "+message_box.value);
  399.      if(!connected) {
  400.        show_notice("connecting...","connecting to the chat room...");
  401.      }
  402.      send(message_box.value);
  403.    }
  404.  };
  405.  message_box.addEventListener("keypress", message_key_listener);
  406. }
  407.  
  408. function get_nick_from_cookie() {
  409.  return Cookies.get("nickname");
  410. }
  411.  
  412. function set_nick(nick) {
  413.  nickname = nick;
  414.  nickname_regex = new RegExp(nickname, "i");
  415.  nickname_self_regex = new RegExp('^# \\d\\d:\\d\\d \\[?'+nickname, "i");
  416.  Cookies.set("nickname", nickname);
  417. }
  418.  
  419. function get_session_from_cookie() {
  420.  return Cookies.get("gatewaysession");
  421. }
  422.  
  423. function set_session(session) {
  424.  chat_session = session;
  425.  Cookies.set("gatewaysession", session);
  426. }
  427.  
  428. function show_notice(nick, text) {
  429.  document.getElementById('irc_notice').classList.remove('hidden');
  430.  document.getElementById('irc_notice_nick').innerHTML = nick;
  431.  document.getElementById('irc_notice_text').innerHTML = text;
  432. }
  433. function hide_notice() {
  434.  document.getElementById('irc_notice').classList.add('hidden');
  435.  document.getElementById('irc_notice_nick').innerHTML = "";
  436.  document.getElementById('irc_notice_text').innerHTML = "";
  437. }
  438. function check_alert(data){
  439.  if(!connected) {
  440.    console.log("Not connected. Got text: ");
  441.    console.log(data);
  442.    if(data.nick == nickname) {
  443.      connected = true;
  444.      console.log("Connected");
  445.      hide_notice();
  446.    }
  447.  }
  448.  if(notify){
  449.    if(data.line.match(nickname_regex) && data.nick != nickname) {
  450.      if (!("Notification" in window)) {
  451.          console.log("Notifications not supported on this browser.");
  452.      } else if (Notification.permission === "granted") {
  453.          var notification = new Notification(text);
  454.      } else if (Notification.permission !== 'denied') {
  455.          Notification.requestPermission();
  456.      }
  457.    }
  458.  }
  459. }
  460. function send(text) {
  461.  xhr = new XMLHttpRequest();
  462.  
  463.  xhr.open('POST', encodeURI('/send.php?action=input'));
  464.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  465.  xhr.onload = function() {
  466.    var response = JSON.parse(xhr.responseText);
  467.    if (xhr.status === 200 && response.username) {
  468.      console.log("sent");
  469.      message_box.value = '';
  470.    }
  471.    else {
  472.      alert('Request failed: ' + response.error);
  473.    }
  474.  };
  475.  xhr.send('user_name=' + encodeURIComponent(nickname)
  476.    + '&text=' + encodeURIComponent(text)
  477.    + '&session=' + encodeURIComponent(chat_session)
  478.    + '&channel=' + encodeURIComponent(document.getElementById('active-channel').value));
  479. }
  480. function join(nick) {
  481.  xhr = new XMLHttpRequest();
  482.  
  483.  xhr.open('POST', encodeURI('/send.php?action=join'));
  484.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  485.  xhr.onload = function() {
  486.    console.log("Got status "+xhr.status);
  487.    var response = JSON.parse(xhr.responseText);
  488.    console.log(response);
  489.    if (response.status=="connecting") {
  490.      console.log("connecting...");
  491.      set_session(response.session);
  492.    } else if(response.status=="connected") {
  493.      connected = true;
  494.      console.log("connected");
  495.      set_session(response.session);
  496.      hide_notice();
  497.    } else {
  498.      alert('Request failed.  Returned status of ' + xhr.status);
  499.    }
  500.  };
  501.  xhr.send('user_name=' + encodeURIComponent(nickname) + '&channel=' + encodeURIComponent(document.getElementById('active-channel').value));
  502. }
  503.  
  504. // Check if there is an active session in the cookie
  505. if(chat_session=get_session_from_cookie()) {
  506.  xhr = new XMLHttpRequest();
  507.  
  508.  xhr.open('POST', encodeURI('/send.php?action=session'));
  509.  xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
  510.  xhr.onload = function() {
  511.    var response = JSON.parse(xhr.responseText);
  512.    if(response && response.username) {
  513.      set_nick(response.username);
  514.      connected = true;
  515.      hide_notice();
  516.      document.getElementById('join_prompt').classList.add('hidden');
  517.      document.getElementById('signin').classList.add('hidden');
  518.      document.getElementById('chat').classList.remove('hidden');
  519.      activate_chat_field();
  520.      window.scrollTo(0,document.body.offsetHeight);
  521.    } else {
  522.      set_session("");
  523.    }
  524.  }
  525.  xhr.send('session=' + encodeURIComponent(chat_session));
  526. }
  527.  
  528. </script>
  529.  
  530.  <div class="clear"></div>
  531. </div>
  532.  
  533. <script type="text/javascript">/*<![CDATA[*/
  534.  if(window.location.hash && window.location.hash != '#top' && window.location.hash != '#bottom') {
  535.    var n = document.getElementById(window.location.hash.replace('#',''));
  536.    n.classList.add('hilite');
  537.  }
  538.  window.addEventListener("hashchange", function(){
  539.    var n = document.getElementsByClassName('line');
  540.    Array.prototype.filter.call(n, function(el){ el.classList.remove('hilite') });
  541.    var n = document.getElementById(window.location.hash.replace('#',''));
  542.    n.classList.add('hilite');
  543.  }, false);
  544. /*]]>*/</script>
  545.  
  546. </main>
  547.  
  548. </body>
  549. </html>
  550.  
Copyright © 2002-9 Sam Ruby, Mark Pilgrim, Joseph Walton, and Phil Ringnalda