octocatstartv

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.

Want a Run Button?

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

            
              <!-- iOS reminder bubble markup -->
<div class="bubble" id="bubble">
  <a class="bubble-close" id="bubble-close">x</a>
  <p>don't forget to add this app to your <strong>home screen</strong> for easier access</p>
</div>


<!-- wanna the see the bubble again after you closed it? inspect/resources/localStorage/secure.codepen.io, delete the 'bubble' key and refresh -->
            
          
!
            
              /* remimder bubble styling */
.bubble{
  background-color: #FFF;
  border: 6px solid #666;
  -moz-border-radius: 10px;
  -webkit-border-radius: 10px;
  border-radius: 10px;
  bottom: 0px;
  color: #666;
  display: none;
  left: 50%;
  margin-bottom: 25px;
  margin-left: -125px;
  padding: 0px;
  position: fixed;
  text-align: center;
  width: 240px;
  z-index: 100;
}
.bubble p {
  font: normal 18px Arial, Sans-serif;
  margin: 8px;
}
.bubble strong{
  font-style: italic;
  font-weight: bold;
}
.bubble:before,
.bubble:after {
  bottom: -15px;
  border: solid 20px transparent;
  border-bottom: 0;
  border-top-color: #fff;
  content: "\0020";
  display: block;
  height: 0;
  left: 42%;
  overflow: hidden;
  position: absolute;
  width: 0;
  z-index: 101;  
}
.bubble:before {
  bottom: -24px;
  border-top-color: #666;
  z-index: 99;
}
a.bubble-close{
  background-color: #666;
  border-radius: 80px;
  color: #fff;
  cursor: pointer;
  font: bold 20px Arial, Sans-serif;
  float:right;
  margin-right: -20px;
  margin-top: -20px;
  padding: 2px 9px;  
}​
            
          
!
            
              $(function() {
    showMeTheBubble();
});

function showMeTheBubble(){
  //does the 'bubble' key exist in localStorage? if not show the bubble markup.
  if(!localStorage.bubble){
    $('#bubble').show();
    $('#bubble-close').click(function(){
      $('#bubble').hide();
      //store the 'bubble' key and set value to true.
      localStorage.setItem("bubble", true);
    });
  }
  else{console.log("meh, do nothing");}
}
            
          
!
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