Comment

Comment by misframer

I like how they set the price:

  $(function() {
    var price = localStorage.getItem('price');
    if(!price) {
      price = Math.ceil(Math.random() * 3);
      localStorage.setItem('price', price);
    }
    $('#price').html(price);
  });
parent misframer 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton