# Random Quote Machine feedback

**URL:** <https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897>\
**Category:** I Built This\
**Created:** [June 27, 2016, 11:01am UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897 "2016-06-27T11:01:12Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![allenewood](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@allenewood](https://forum.freecodecamp.org/u/allenewood)\
**Post date:** [June 27, 2016, 11:01am UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/1 "2016-06-27T11:01:12Z")

</div>

Here’s my [random quote machine](https://codepen.io/allenewood/full/WxRXbJ/) 🙂

I wanted to go all out and make it responsive with bootstrap, and even add audio files that play so you can listen to homer read the quote himself. But, in order to keep up with my schedule I created for myself I’ve got to call it done.

There’s one problem with it. It kept showing the same quotes by chance so I just spliced them from the array as you go through them. I thought of a different solution of maybe adding them to a new array, and when the first one is empty, switch to the new array to read them over again.

Any feedback is greatly appreciated!

---

<div class="post-metadata">

**Author:** ![marzelin](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marzelin/32/8442_2.png) [@marzelin](https://forum.freecodecamp.org/u/marzelin)\
**Post date:** [June 27, 2016, 12:26pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/2 "2016-06-27T12:26:31Z")

</div>

Fantastic design, congratulations.

Sometimes when the button is clicked, quote is not showing up because of a bug in JS code:

```
quotes.splice([Math.floor(Math.random() * quotes.length) + 1],1)

```

The range of random numbers in the code above will be from 1 to the length of an array, but arrays are numbered from 0. Remove `+ 1` to fix it.

I liked your design so much that I’ve forked your code I did some changes in css and js.  
In JS: quotes are not removed from the array completely but suspended for three draws.  
In CSS: the quote text is nicely aligned at the center of the bubble.

[[fork]](https://codepen.io/marzelin/pen/zBNgVp)

I’m looking forward to seeing your next project. Cheers.

---

<div class="post-metadata">

**Author:** ![genestd](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@genestd](https://forum.freecodecamp.org/u/genestd)\
**Post date:** [June 27, 2016, 3:08pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/3 "2016-06-27T15:08:39Z")

</div>

I like your idea; you have a great start. I would recommend making it responsive for small screens…it requires a lot of scrolling on mobile. Also, you are missing the option to tweet out the quote.

---

<div class="post-metadata">

**Author:** ![allenewood](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@allenewood](https://forum.freecodecamp.org/u/allenewood)\
**Post date:** [June 27, 2016, 6:10pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/4 "2016-06-27T18:10:04Z")

</div>

Those are some great updates to it, thanks! As I find time I’m going to go back to try to improve on it. I think it can actually be a nice little site that drives traffic 🙂.

1. Mobile friendly

2. Twitter and Facebook share

3. Add audio files

---

<div class="post-metadata">

**Author:** ![allenewood](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@allenewood](https://forum.freecodecamp.org/u/allenewood)\
**Post date:** [June 27, 2016, 6:10pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/5 "2016-06-27T18:10:41Z")

</div>

Thanks for the reminder about Twitter, I had actually forgotten about that when I “thought I was finished”!

---

<div class="post-metadata">

**Author:** ![imtoobose](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/imtoobose/32/9914_2.png) [@imtoobose](https://forum.freecodecamp.org/u/imtoobose)\
**Post date:** [June 27, 2016, 6:39pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/6 "2016-06-27T18:39:29Z")

</div>

This is probably one of my favorite quote machines. The design and idea are great. I can see the effort you’ve put in it. Great work 🙂

---

<div class="post-metadata">

**Author:** ![allenewood](https://avatars.discourse-cdn.com/v4/letter/a/97f17d/32.png) [@allenewood](https://forum.freecodecamp.org/u/allenewood)\
**Post date:** [June 27, 2016, 6:59pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/7 "2016-06-27T18:59:09Z")

</div>

Thanks @imtoobose 🙂

---

<div class="post-metadata">

**Author:** ![marcosmarxm](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/marcosmarxm/32/10927_2.png) [@marcosmarxm](https://forum.freecodecamp.org/u/marcosmarxm)\
**Post date:** [July 29, 2016, 11:55pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/8 "2016-07-29T23:55:43Z")

</div>

Great! I really like the creative design!

---

<div class="post-metadata">

**Author:** ![astv99](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/astv99/32/66820_2.png) [@astv99](https://forum.freecodecamp.org/u/astv99)\
**Post date:** [July 30, 2016, 7:54am UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/9 "2016-07-30T07:54:30Z")

</div>

I have to scroll down to see the Next Quote button, and I’m using a high-resolution display on a laptop computer (although I do always run my browser in a window, never full-screen). So I’d suggest reducing your vertical spacing so that button can be seen without scrolling on displays that are smaller than 1920x1080. You might want to read this related article: [http://www.hobo-web.co.uk/best-screen-size/](http://www.hobo-web.co.uk/best-screen-size/)

---

<div class="post-metadata">

**Author:** ![ILM](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ilm/32/363239_2.png) [@ILM](https://forum.freecodecamp.org/u/ILM)\
**Post date:** [June 1, 2021, 6:10pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-feedback/14897/11 "2021-06-01T18:10:10Z")

</div>

Closed on June 1, 2021, 6:10pm UTC


