123

Pen Settings

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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

            
              <div style="position: relative; width: 200px; height: 230px; overflow: hidden;" id="slideshow">
</div>
  <!--All elements inside this will become slides-->

  <!--a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; opacity: 1; width: 200px; height: 230px;" href="https://bit.ly/1PQHELk">
    <img src="http://library.wartburg.edu/Images/from pulpit to podium to policy.png" alt="cover for 'from pulpit to podium to policy' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: 0px; display: block; z-index: 12; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1oCHO0r">
    <img src="http://library.wartburg.edu/Images/Mass media law.png" alt="cover for 'mass media law' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: -200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1Q3PWNR">
    <img src="http://library.wartburg.edu/Images/Hitchcock a la carte.png" alt="cover for 'hitchcock al a carte' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1T0soQ7">
    <img src="http://library.wartburg.edu/Images/piracy, cord cutting, and the future.png" alt="book cover" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: -200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1UWgaoQ">
    <img src="http://library.wartburg.edu/Images/coverI_LayMyStitches.png" alt="cover for 'I Lay my Stitches Down' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1T779M4">
    <img src="http://library.wartburg.edu/Images/coverHipHopSpeaks.png" alt="cover for 'Hip Hop Speaks to Children' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: -200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1SN2IED">
    <img src="http://library.wartburg.edu/Images/coverTreesOnMars.png" alt="book cover for 'Trees On Mars' " height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1SCIyiy">
    <img src="http://library.wartburg.edu/Images/coverGiantsMonstersAndDragons.png" alt="cover for 'Giants, Monsters and Dragons' book" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: -200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/23kTAMH">
    <img src="http://library.wartburg.edu/Images/coverMissionImpossibleDVD.png" alt="video cover" height="230" width="200"></a>
  <a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1S053fe">
    <img src="http://library.wartburg.edu/Images/palmer.fw.png" alt="book cover" height="234" width="200"></a>
  <a style="position: absolute; top: 0px; left: -200px; display: none; z-index: 11; width: 200px; height: 230px; opacity: 1;" href="https://bit.ly/1HsoGtZ">
    <img src="http://library.wartburg.edu/Images/coverEveryoneIsAfrican.png" alt="book cover" height="230" width="200"></a>
  <!-- <a href="https://bit.ly/1PuE1aP">
                <img src="Images/coverSecretsOfWarDVD.png" width="200" height="230" alt="video cover"/></a>
              <a href="https://bit.ly/1T2hjN2">
                 <img src="Images/coverWhoIsAllah.png" width="200" height="230" alt="book cover"/></a>
              <a href="https://bit.ly/1RRTIzD">
                <img src="Images/coverDoFactsMatter2.png" width="200" height="230" alt="book cover"/></a>
              
              
              <a href="https://bit.ly/1HDQgiy">
              	<img src="Images/coverHijackedBrains.png" width="200" height="230" alt="book cover"/></a> 
              <a href="https://bit.ly/1kHSPuF">
              	<img src="Images/coverDataAndGoliath.png" width="200" height="230" alt="book cover"/></a>
              <a href="https://www.surveymonkey.com/s/3GGL5L7">
              	<img src="Images/Movie.png" width="200" height="230" /></a>
              <a href="http://knightguides.wartburg.edu/c.php?g=247828&amp;p=1651723">
              	<img src="Images/NYTimes.png" width="200" height="230" /></a>
              <a href="http://knightguides.wartburg.edu/c.php?g=247871&amp;p=1650541">
              	<img src="Images/PREP.png" width="200" height="230" /></a>
              <a href="https://archive.org/details/wartburgyearbooks">
              	<img src="Images/Yearbook2.png" width="200" height="230" /></a>-->
            
          
!
            
                 		    slideshowAddCaption=true;
$(document).ready(function() {
  var slide_width = "200px";
  var slide_height = "230px";
  var slide_template = '<a style="position: absolute; top: 0px; left: 200px; display: none; z-index: 11; opacity: 1; width: 200px; height: 230px;" href="$link"><img src="$img" alt="$alt" height="230" width="200"></a>';
  images = [
    {
      "link": "http://library.wartburg.edu/Images/from pulpit to podium to policy.png",
      "img": "http://library.wartburg.edu/Images/Mass media law.png",
      "description": "Subscribe to the New York Times free!"
    },
    {
      "link": "https://bit.ly/1Q3PWNR",
      "img": "http://library.wartburg.edu/Images/Hitchcock a la carte.png",
      "description":"cover for 'hitchcock al a carte' book"
    }
  ];
  
  for(var i = 0; i < images.length; i++){
    var slide = slide_template;
    slide = slide.replace(/\$alt/g, images[i].description);
    slide = slide.replace(/\$link/g, images[i].link);
    slide = slide.replace(/\$img/g, images[i].img);
    document.getElementById("slideshow").innerHTML += slide;
  }
  
  $("#slideshow").css("height", slide_height);
  $("#slideshow").css("width", slide_width);
  $("#slideshow").children().each(function(){
    $(this).children()[0].height = slide_height.substr(0,3);
    $(this).children()[0].width = slide_width.substr(0,3);
    $(this).css("width", slide_width);
    $(this).css("height", slide_height);
  });
	$('#slideshow').cycle({
		after:			slideshowOnCycleAfter, //the function that is triggered after each transition
		autostop:			false,     // true to end slideshow after X transitions (where X == slide count) 
		fx:				'scrollLeft,scrollRight,',// name of transition effect 
		pause:			false,     // true to enable pause on hover 
		randomizeEffects:	false,  // valid when multiple effects are used; true to make the effect sequence random 
		speed:			1000,  // speed of the transition (any valid fx speed value) 
		sync:			true,     // true if in/out transitions should occur simultaneously 
		timeout:		7000,  // milliseconds between slide transitions (0 to disable auto advance) 
		fit:			true,
		height:		   slide_height,
		width:         slide_width,  // container width (if the 'fit' option is true, the slides will be set to this width as well) 
	});
}); 
function slideshowOnCycleAfter() { 
	if (slideshowAddCaption==true){
			$('#slideshow-caption').html(this.title); 
	}
}
            
          
!
999px
🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.

Console