cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - Activehtmlicon-personicon-teamoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <head>
  
<!--   God Dam your filthy. -->
<link href="https://fonts.googleapis.com/css?family=Over+the+Rainbow|Patrick+Hand+SC|Walter+Turncoat" rel="stylesheet">
</head>

<h1 >Dirty Phrase Generator</h1>

<h2>You Ask The Question. <br /> And I'll Make it <span>Dirty</span></h2>

<div class="container">
   <input placeholder="Insertion Here"id="text" type="text" />
  <button id="button" type="submit">Push My Butt on.</button>
</div>

<div >
<p id="in-bed"></p>
</div>

<p  id="your-filthy">
</p>

<p class ='tag' id="fade-in">
</p>
            
          
!
            
              body {
  background: #3B97E0;
}

#fade-in {
  position: relative;
  text-align:center;
  bottom: -140px;
  font-family: 'Patrick Hand SC', cursive;
  color: white;
  font-size: 30px;
}

#in-bed {
  position: relative;
  text-align:center;
  bottom: 140px;
  font-family: 'Patrick Hand SC', cursive;
  color: white;
  font-size: 30px;
  
}

#your-filthy {
  font-family: 'Patrick Hand SC', cursive;
  color: white;
  font-size: 60px;
  text-align:center;
  position: relative;
  top: 50px;
}


h1 {
  text-align: center;
  font-family: 'Over the Rainbow', cursive;
  color: #D42A1A;
  font-size: 50px;
  margin-bottom: -40px;
}

 h2 {
   line-height: 38px;
  text-align: center;
  font-family: 'Patrick Hand SC', cursive;
  color: white;
   font-size: 40px;
}

span {
  font-size: 30x;
  color: #D42A1A;
  font-family: 'Over the Rainbow', cursive;
}



.container {

  margin-top: 60px;
}

input {
  margin-top: 20px;
  position: relative;
  top: 20px;
  display: block;
  text-align: center;
  margin: 2em auto;
  padding: 0.5em 0.25em;
  border: none;
  border-radius: 0.2em;
  font-size: 1.5em;
  text-align: center;
  box-shadow: 0 0 1em 0.25em rgba(0,0,0,0.2);
}

button {
  font-size: 15px;
  color: white;
  
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: sans-serif;
   box-shadow: 0 0 0.1em 0.25em rgba(0,0,0,0.2);
  background: #3498db;
  width: 180px;
  border: none;
  padding: 4px 0;
  height: 60px;
  position: absolute;
  left: 50%;
  top: 70%;
  border: white 3px solid;
  transform: translateX(-50%) translateY(-50%);
  border-radius: 3px;
}
            
          
!
            
              

document.getElementById('button').addEventListener('click', function() {

  document.body.style.backgroundColor = '#D42A1A';
  var button = document.getElementById('button');
  button.style.backgroundColor = '#D42A1A';
  $('h1, h2').css('display', 'none');
   $('span').css('display', 'none');
    $('button').css('display', 'none');
      $('input#text').css('display', 'none');
    var value = document.getElementById('text').value;
  var parent = document.getElementById('in-bed');
  var inBed = " ... in bed.";  
  var answer = value.concat(inBed);
  parent.innerText = answer;
  var filth = document.getElementById('your-filthy');
  filth.innerText = answer;

  var cheekyText = document.getElementById('fade-in');
   cheekyText.innerText = 'God youre filthy. ;)';
  $('.tag').fadeIn("slow");
  

   
  
  
  
 
});



            
          
!
999px
Close

Asset uploading is a PRO feature.

As a PRO member, you can drag-and-drop upload files here to use as resources. Images, Libraries, JSON data... anything you want. You can even edit them anytime, like any other code on CodePen.

Go PRO

Loading ..................

Console