Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.

+ 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

Auto Save

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

              
                <script src="http://civicmemory.la/wp-content/uploads/js/toggle.js"></script>

<script src="https://code.jquery.com/jquery-2.2.4.min.js"></script>





<p>Understanding ‘Layers of Space’ is about understanding
  the ground one exists on. Every city is a palimpsest
  where traces of what has been erased are visible. In Los<sup id="footnote01">10</sup>
  
  <span id="text1" class="footnote">Los Angeles boulevard: eight x-rays of the body public, Douglas R.
    Suisman. Los Angeles Forum for Architecture and Urban Design, 1989</span>
  Angeles these layers include: the pre-civilization natural
  condition  
<sup id="footnote02">11</sup>
  <span id="text2" class="footnote">Los Angeles boulevard: eight x-rays of the body public, Douglas R.<img src="https://i.imgur.com/M5NaJdr.jpeg" style="float:left;padding:10px;width:500px;">
    Suisman. Los Angeles Forum for Architecture and Urban Design, 1989</span>
  (specifically water); Indigenous civilizations,
  their communities and villages, their use of land and, in
  particular, their relation to water (e.g. ‘Sacred Springs’);
  18th century Spanish principles of city building, or land
  use policies—land reserved for the Crown vs. land granted
  to private landholders
              
            
!

CSS

              
                body{
  font-size:3em;
  
}
 
  .switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
    border-radius: 34px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(237, 99, 115, 0.3);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 15px;
  width: 25px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
    border-radius: 34px;


}

input:checked + .slider {
  background-color: rgba(237, 99, 115);
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(17px);
  -ms-transform: translateX(17px);
  transform: translateX(17px);
}

/* Rounded sliders */
.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}
  

  
   .select_hide {
 background: rgba(237, 99, 115) !important;
    padding: 3px 3px;
    border: #ED6373 1px solid;
    color: white;
    cursor: pointer;  }

  .select_show {
 background: rgba(237, 99, 115) !important;
    padding: 3px 3px;
    border: #ED6373 1px solid;
    color: white !important;
    cursor: pointer;  
  }

  sup {
    border: #ED6373 1px solid;
    border-radius: 50px;
    padding: 4px 4px;
    color: #562C0E;
    font-size: 0.5em;
    text-decoration: none;
    font-weight: bold;
    margin: 3px;
    cursor:pointer;
    background: rgba(237, 99, 115, 0.3);
  }

  sup:hover {
    background: rgba(237, 99, 115, 0.3) ;
    color: #562C0E;
    font-size: 0.5em;
    border: #ED6373 1px solid;
   cursor:pointer;
  }

  sup.on {
    background: #ED6373;
    color: #FBFAF4;
    font-size: 0.5em;
  }

  .footnote {
    font-size: 1em;
    font-family:'Cahuenga_Italic';
    padding: 3px 10px;
    color: #ED6373;
    line-height: 1.5em;
    display: none;
  }

#text1, #text2{
  display:none;
}


.show{
  display:inline;
}

.on{
  color:red;
}
              
            
!

JS

              
                $('input').change(function(){
    if ($(this).is(':checked')) {
  $('#text1').toggle();
   $('#text2').toggle();      
      $("sup").addClass('on');
    }
  
  else
  {
 $('#text1').toggle();
   $('#text2').toggle();         $("sup").removeClass('on');
  }
});


$(document).ready(function(){
    $("sup").click(function(){
        $(this).toggleClass('on');
    });
  
});

$("#footnote01").click(function(){
       $('#text1').toggle();
    });
  
$("#footnote02").click(function(){
       $('#text2').toggle();
    });
  

$("h2").click(function(){
       $('#text1').toggle();
   $('#text2').toggle();
 $(this).toggleClass('on'); 
   $("sup").toggleClass('on');


    });
              
            
!
999px

Console