# Random quote machine - improving

**URL:** <https://forum.freecodecamp.org/t/random-quote-machine-improving/186876>\
**Category:** General\
**Created:** [April 21, 2018, 12:27pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876 "2018-04-21T12:27:08Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![ido2267](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ido2267/32/160126_2.png) [@ido2267](https://forum.freecodecamp.org/u/ido2267)\
**Post date:** [April 21, 2018, 12:27pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/1 "2018-04-21T12:27:08Z")

</div>

In visual studio the buttons look fine. Why is it different in codepaen?

> **[quotation processor](https://codepen.io/captain_hadock/pen/ZxJXoj)**
>
> ...

---

<div class="post-metadata">

**Author:** ![ido2267](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ido2267/32/160126_2.png) [@ido2267](https://forum.freecodecamp.org/u/ido2267)\
**Post date:** [April 21, 2018, 12:28pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/2 "2018-04-21T12:28:49Z")

</div>

Codepen of course, I was in a hurry

---

<div class="post-metadata">

**Author:** ![vipatron](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/vipatron/32/81984_2.png) [@vipatron](https://forum.freecodecamp.org/u/vipatron)\
**Post date:** [April 21, 2018, 3:19pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/3 "2018-04-21T15:19:37Z")

</div>

The answer is your pen settings:

In the HTML tab/Stuff for Head, cut/paste this:  
`<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.8/css/all.css" integrity="sha384-3AB7yXWz4OeoZcPbieVW64vVXEwADiYyAEhwilzWsLw+9FgqpyjjStpPnpBO8o8S" crossorigin="anonymous">`

It looks like you are using bootstrap:

- In the CSS pane, you have to add `bootstrap.css`.
- In the JS pane, you need (in order, but don’t worry: those are drag handles on the left):  
– jQuery.js  
– Bootstrap.js  
(You can also get the minified versions of the javascript - `*.min.js`

---

<div class="post-metadata">

**Author:** ![vipatron](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/vipatron/32/81984_2.png) [@vipatron](https://forum.freecodecamp.org/u/vipatron)\
**Post date:** [April 21, 2018, 8:24pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/4 "2018-04-21T20:24:14Z")

</div>

Did my previous reply answer your question? if so, click the checkmark underneath it to label this thread as “Solved” (It should turn green)

---

<div class="post-metadata">

**Author:** ![ido2267](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/ido2267/32/160126_2.png) [@ido2267](https://forum.freecodecamp.org/u/ido2267)\
**Post date:** [April 21, 2018, 8:39pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/5 "2018-04-21T20:39:06Z")

</div>

not entirely. know the box has shifted, but I’m working on it

---

<div class="post-metadata">

**Author:** ![vipatron](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/vipatron/32/81984_2.png) [@vipatron](https://forum.freecodecamp.org/u/vipatron)\
**Post date:** [April 21, 2018, 8:52pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/6 "2018-04-21T20:52:34Z")

</div>

I checked it out. I see a dashed-border box which gets new quotes when I click the button. The share quote button doesn’t work, but I noticed a typo in your parameters. I think (even) should be (event), right?

```auto
$('.share-quote').on('click', function(even){
    event.preventDefault();

```

---

<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:** [January 17, 2021, 8:23pm UTC](https://forum.freecodecamp.org/t/random-quote-machine-improving/186876/7 "2021-01-17T20:23:05Z")

</div>

Closed on January 17, 2021, 8:23pm UTC


