startv

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
via CSS Lint

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
via JS Hint

Code Indentation

     

Save Automatically?

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

Want a Run Button?

If active, the preview will update automatically when you change code.

HTML

            
              <div class="bullshitjobtitlegenerator" data-js="bullshit-jobtitle-generator">
  
  <nav>
    <h1>Bullshit Job Title Generator</h1>
    <button class="generate">Generate</button>
    
    <span class="alpha">
      2013 by <a href="http://twitter.com/TimPietrusky" target="_blank"> Tim Pietrusky</a>
    </span>
    
    <span class="generated"></span>
  </nav>
  
  <hr />
  
</div>


            
          
!

CSS

            
              @import "compass/css3";

$emw--list-alpha: 
  'Lato', 
  'Quicksand', 
  'Francois One', 
  'Geo', 
  'Krona One',
  'Michroma',
  'Voltaire',
  'Julius Sans One' 
;

$emw--list-beta: 
  #2ecc71, 
  #27ae60,
  #f1c40f,
  #f39c12,
  #3498db,
  #2980b9,
  #e74c3c,
  #c0392b,
  #9b59b6,
  #8e44ad, 
  #1abc9c,
  #16a085
;





// # of different jobtitle classes
$emw--unit-alpha: length($emw--list-beta); 
$emw--unit-beta: 0.85s;





* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font: 1em sans-serif;
  
  @include breakpoint(small) {
    font-size: .7em;
  }
}





.bullshitjobtitlegenerator {
  text-align: center;
  
  span {
    &.alpha {
      padding: 1em;
    }
  }
  
  a {
    color: #666;
    text-decoration: none;
    
    &:hover {
      color: #000;
    }
  }
  
  nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    z-index: 1337;
  }
  
  h1 {
    padding: .5em;
    display: inline-block;
    margin: 0;
    font: 1.5em sans-serif;
  }
  
  h2 {
    position: relative;
    width: 100%;
    color: #fff;
    padding: .25em 0;
    margin: .75em 0 0 0;
    animation: animation--alpha $emw--unit-beta 1 forwards;
    text-shadow: .025em .025em .025em rgba(0, 0, 0, .15);
    
    // Counter
    &:before {
      position:absolute;
      left: .15em;
      top: .15em;
      font: .75em sans-serif;
      z-index: 1;
      content: "#" attr(data-position);
      color: rgba(#fff, 1);
      background: rgba(#fff, .2);
      text-shadow: none;
      padding: .15em;
      opacity: .35;
      box-shadow: .025em .025em .025em 0 rgba(#000, .15);
      
      @include breakpoint(small) {
        content: '';
        opacity: 0;
      }
    }
  }
  
  button {
    border: .01em solid #fff;
    background: #000;
    color: #fff;
    font: 2em sans-serif;
    padding: .5em;
    margin: 0;
    cursor: pointer;
    
    &:active {
      @include transform(scale(.9, .9));
    }
  }
  
  .generated {
    font-weight: bold;
    color: rgba(0, 0, 0, .5);
  }
}





@keyframes animation--alpha {
  0% {
    @include transform(scale(.1, .1) translateY(-2em) rotateZ(10deg));
  }
}





@for $i from 1 through $emw--unit-alpha {
  .bullshit-title-#{$i} { 
    font: 4em nth($emw--list-alpha, random(length($emw--list-alpha)));
    background: nth($emw--list-beta, $i);
  }
}
            
          
!

JS

            
              /*
 * Bullshit Job Title Generator
 *  
 * Inspired by https://github.com/bullgit/bullshit-job-titles
 * by bullgit.github.io
 * 
 * 
 * 2013 by Tim Pietrusky
 * timpietrusky.com
 */

BullshitJobTitleGenerator = (function() {
    
  function BullshitJobTitleGenerator(args) {
    try {
      // Parent element
      this.el = $(args.el);
      this.button = this.el.find(args.button);
      this.appendAfterEl = this.el.find("hr");
      this.generatedEl = this.el.find(args.generatedClassName);
      
      this.generated = 0;
      
      // The name of the class of each job title
      this.className = args.className;
      
      this.firstPart = [
        'Web', 
        'Internet',
        'Senior', 
        'Lead',
        'Professional', 
        'Junior', 
        'Google',
        'Yahoo',
        'Flash',
        'Homepage',
        'Creative',
        'Future',
        'Dreamweaver',
        'Photoshop',
        'Joomla',
        'Frontpage',
        'HTML',
        'CSS',
        'Responsive',
        'WordPress',
        'CodePen',
        'Dribbble',
        'Internet Explorer',
        'GitHub',
        'Office',
        'Reddit',
        'NULL',
        'Undefined',
        'Error',
        'IT',
        'Marketing',
        'SEO',
        'Java',
        'C',
        'C++',
        'PHP',
        'Python',
        'Ruby',
        'SQL',
        'JavaScript',
        'Frontend',
        'Backend',
        'Chrome',
        'Safari',
        'Firefox',
        'Twitter',
        'HackerNews',
        'Social',
        'Linux',
        'Mac',
        'Windows',
        'Android',
        'iOS',
        'Hashtag',
        'Sidebar',
        'cssdeck',
        'JSFiddle',
        'jQuery',
        'Microsoft',
        'Ubuntu',
        'Generator',
        'Job Title Generator',
        'bullgit',
        '4ae9b8',
        'Kickstarter',
        'ebay',
        'Facebook',
        'Google+',
        'SCSS',
        'SASS',
        'LESS',
        'Stylus',
        'Coderwall',
        'Coderbits',
        'Mobile',
        'User Experience',
        'Soundcloud',
        'Node.js',
        'AngularJS',
        'Backbone',
        'React',
        'MongoDB',
        'YouTube',
        'Sublime Text',
        'Firefox OS',
        'Wikipedia',
        'Nerd',
        'Geek',
        'LinkedIn'
      ];
      
      this.secondPart = [
        'Expert',
        'Coffee Maker',
        'File Uploader',
        'Pizza Reheater',
        'Admin',
        'Search Expert',
        'Slayer',
        'Guru',
        'Designer',
        'Mastermind',
        'Millionaire',
        'RockStar',
        'Evangelist',
        'Master',
        'Celebrity',
        'Optimizer',
        'Bitch',
        'Hacker',
        'Dev',
        'Craftsman',
        'Jedi',
        'Sithlord',
        'Person',
        'Tweeter',
        'Slut',
        'Dick',
        'Boss',
        'CTO',
        'Lady',
        'Pirate',
        'Captain',
        'Legend',
        'Ninja',
        'Zombie',
        'King',
        'Supporter',
        'Manager',
        'Director',
        'Consultant',
        'Strategist',
        'Agent',
        'Wizard',
      ];
      
      this.preFirstPart = [
        'Über',
        'Ultra',
        'Freaking',
        'Holy',
        'Only the best',
        'Awesome',
        '+1',
        '♥',
        'Insane',
        'First Class',
        'Unbelievable',
        'Gorgeous',
        'Beautiful',
        '★',
        '#1',
        'Sexy',
        'Hot',
        'One in a million',
        'Slick',
        'Brilliant',
        'Cute',
        'Nice',
        'Perfect'
      ];
      
      // Create a random job title on click
      this.button.on('click', $.proxy(function(e) {
        this.random();
      }, this));
      
      // First title
      this.random();
      
    } catch(e) {}
  };
  
  // Create a random job title
  BullshitJobTitleGenerator.prototype.random = function() {
    try {
      var title = '<span>' + this.preFirstPart[this.randomNumber(0, this.preFirstPart.length - 1)];
        
      title += "</span> " + this.firstPart[this.randomNumber(0, this.firstPart.length - 1)];
      
      title += " " + this.secondPart[this.randomNumber(0, this.secondPart.length - 1)];
  
      var child = $(
        '<h2>'
        + title +
        '</h2>'
      );
      
      // Increase count of generated titles
      this.generated += 1;
      
      // Add count to the DOM
      // this.generatedEl.html(this.generated);
      
      // Add a random class
      child.addClass(this.className + this.randomNumber(1, 12));
      
      //  this.generated
      child.attr("data-position", this.generated);
      
      // Add generated title to the DOM
      this.appendAfterEl.after(child);
    } catch (e) {
      this.random();
    }
  };
  
  // Create a random number
  // min / max
  BullshitJobTitleGenerator.prototype.randomNumber = function(min, max) {
    return Math.floor(Math.random() * (max - min + 1) + min);
  };

  return BullshitJobTitleGenerator;
})();



new BullshitJobTitleGenerator({
  el : $('[data-js="bullshit-jobtitle-generator"]'),
  button : '> nav > button.generate',
  className : 'bullshit-title-',
  generatedClassName : '> nav > .generated'
});
            
          
!
999px
Loading ..................

Console