Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

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.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <main>
  <h1>Valve ARG Serious Discord<br><span>B</span>
  <span>I</span>
  <span>N</span>
  <span>G</span>
  <span>O</span></h1>
  <div class="grid">
    <label>
      <input type="checkbox">
      <div class="mark"><span>1</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>2</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>3</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>4</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>5</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>6</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>7</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>8</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>9</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>10</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>11</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>12</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>13</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>14</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>15</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>16</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>17</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>18</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>19</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>20</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>21</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>22</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>23</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>24</span></div>
    </label>
    <label>
      <input type="checkbox">
      <div class="mark"><span>25</span></div>
    </label>
  </div>
  <small>Card a<span id="seed">000000</span> (not a real seed)</small>
  <small>unitunitunit made this ok?</small>
</main>
              
            
!

CSS

              
                // Bingo card stylesheet inspired by One More Thing

body {
  //font-family: "TF2 Build", "Helvetica Neue", Helvetica, sans-serif;
  font-family: "Helvetica Neue", Helvetica, sans-serif;
  background: #AAA;
  color: green;
  box-sizing: border-box;
  user-select: none;
}
*, *:before, *:after {
  box-sizing: inherit;
}
main {
  width: 33rem;
  margin: 33px auto;
  border-radius: 15px;
  border: 3px solid red;
  background: #222;
}
h1 {
  padding-top: 1rem;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  span {
    display: inline-block;
    font-size: 2.7em;
    width: 5.7rem;
    height: 5.7rem;
  }
}
.grid {
  width: 30rem;
  height: 30rem;
  margin: 0 auto;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}

label {
  width: 5.7rem;
  height: 5.7rem;
  background: #226B36;
  border-radius: 15px;
  border: 3px solid #fff;
  display: block;
  input {
    display: none;
    &:checked + .mark {
      background: transparent;
      color: #fff;
    }
  }
  .mark {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 5.34rem;
    height: 5.34rem;
    border-radius: 12px;
    background: #bbb;
    text-align: center;
    font-size: .9em;
    padding: .2rem;
  }
}
small {
  display: block;
  text-align: center;
  padding: 1em;
}
              
            
!

JS

              
                var lines = [
  "guys",
  "lambda",
  "hl3 confirmed",
  "lead",
  "memes",
  "wave guys wave",
  "guys there is the comic",
  "X minutes left",
  "email",
  "tweets",
  "guys! guys! guys!",
  "laughter for an entire minute",
  "red herring",
  "the reddit sux",
  "brute force",
  "what have I missed",
  "whispering",
  "weird noises",
  "screams",
  "hype",
  "what did you say",
  "what is this",
  "it is kr1tikal",
  "stegano-graphy",
  "morse code",
  "whispering",
  ".wav",
  "sexual stuff",
  "garfield kart",
  "fuck you",
  "can we get back on topic",
  "and then gabe...",
  "error",
  "we solved it",
  "bullet hell",
  "the arg is over!",
  "let's wait",
  "blase blase blase",
  "we should call [celebrity]"
];

var shuffle = function(array) { // Fisher-Yates Shuffle
  var m = array.length,
    t, i;
  // While there remain elements to shuffle…
  while (m) {
    // Pick a remaining element…
    i = Math.floor(Math.random() * m--);
    // And swap it with the current element.
    t = array[m];
    array[m] = array[i];
    array[i] = t;
  }
  return array;
};

var insertToCard = function(array) {
  var slot = 25;
  while (slot) {
    $("label:nth-child(" + slot + ") .mark span").text(array[slot + 1]);
    slot--;
  }
};

$(document).ready(function() {
  var shuffledLines = shuffle(lines);
  insertToCard(shuffledLines);
  $("#seed").text(Math.floor(Math.random() * 100000000));
});
              
            
!
999px

Console