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 is required to process package imports. If you need a different preprocessor remove all packages first.

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

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

              
                <div class="container-fluid">
	<div class="jumbotron">
		<img class="img-responsive" src="https://upload.wikimedia.org/wikipedia/commons/6/62/Ghost_in_the_Shell_1995_logo.png" alt="Ghost in the Shell" />
		<div class="blockquote">
			<blockquote>
				<p id="quoteContent"></p>
				<footer id="quoteAuthor"></footer>
			</blockquote>
		</div>

		<div class="buttons">
			<button id="quote" class="btn btn-primary">
				<p>次の</p>
			</button>

			<a href="#" id="tweet" class="share-btn">
				<i class="fa fa-twitter"></i>
			</a>


		</div>

		<p class="credit">Artwork by: <a href="http://www.zerochan.net/46559">http://www.zerochan.net/46559</a></p>
	</div>
	<!-- end jumbotron -->

</div>
<!-- end container -->
              
            
!

CSS

              
                @import url(https://fonts.googleapis.com/css?family=Raleway:400,500);
@import url(https://fonts.googleapis.com/css?family=Quantico:400,500);
body,
html {
	margin: 0;
	padding: 0;
	list-style: none;
	vertical-align: baseline;
	height: 100%;
}

body {
	font-family: 'Quantico', sans-serif;
	height: auto;
	width: 100%;
	background-color: #EBE6E1;
	background-image: url("http://static.zerochan.net/Koukaku.Kidoutai.GHOST.IN.THE.SHELL.full.46559.jpg");
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
	background-attachment: fixed;
}

.container-fluid {
	position: relative;
	width: 80%;
	max-width: 768px;
	min-height: 100%;
	margin: 30px auto;
}

.jumbotron {

	margin: 30px auto;
	text-align: center;
	padding: 30px;
	opacity: 0.8;
}

.jumbotron .img-responsive {
	width: 300px;
	margin: 0 auto;
	padding: 8px;
}

.blockquote {
	padding: 8px;
}

.blockquote p {
	color: #262F3D;
	font-weight: 500;
}

.blockquote footer {
	color: #262F3D;
}

.buttons .btn {
	display: block;
	margin: 0 auto;
	background: transparent;
	border-color: #506274;
	color: #262F3D;
}

.btn p {
	font-size: 1.4em;
	padding: 0;
	margin: 0;
}

.btn:hover {
	background: #262F3D;
	color: white;
	border-color: white;
}

.btn:focus {
	outline: 0;
	background: transparent;
	border-color: #262F3D;
	color: #262F3D;
}

.buttons .share-btn {
	display: block;
	margin: 10px auto 0;
	width: 32px;
	height: 32px;
	border: none;
	background: none;
	font-size: 2em;
	color: #262F3D;
	transition: 0.2s ease-in;
	cursor: pointer;
}

.share-btn:hover {
	color: #262F3D;
	opacity: 0.7;
}

.share-btn:focus {
	outline: 0;
}

.container-fluid .credit,
.container-fluid .credit a {
	font-size: 1em;
	color: #8F92A5;
	margin: 30px auto 0;
}
              
            
!

JS

              
                $(document).ready(function() {

	var randomQuote;
	var randomAuthor;
	var randomNum;
	var quotationMark = ' “ ';
	
	function getQuote() {
	
		var quotes = [
			["And where does the newborn go from here? The Net is vast and infinite."],
			["I guess once you start doubting, there's no end to it."],
			["Any way you look at it, all the information that a person accumulates in a lifetime is just a drop in the bucket."],
			["All things change in a dynamic environment. Your effort to remain what you are is what limits you."],
			["If we all reacted the same way, we'd be predictable, and there's always more than one way to view a situation... It's simple: overspecialise, and you breed in weakness. It's slow death."],
			["I mean, have you ever actually seen your brain?"],
			["It can also be argued that DNA is nothing more than a program designed to preserve itself."],
			["I am not an AI. My code name is Project 2501. I am a living, thinking entity that was created in the sea of information."],
			["I am sentient and I am able to recognize my own existence, but in my present state I am still incomplete. I lack the most basic processes inherent in all living organisms: reproducing and dying."],
			["Just like wine, some human relationships need time to mature."],
			["If a technological feat is possible, man will do it. Almost as if it's wired into the core of our being."],
			["Just as water runs downhill, the human heart also tends to revert to its basest instincts."],
			["I feel confined, only free to expand myself within boundaries"]
		];
		var author = [
			["Motoko Kusanagi"],
			["Batou"],
			["Batou"],
			["Puppet Master"],
			["Motoko Kusanagi"],
			["Motoko Kusanagi"],
			["Puppet Master"],
			["Puppet Master"],
			["Puppet Master"],
			["Daisuke Aramaki"],
			["Motoko Kusanagi"],
			["Hideo Kuze"],
			["Motoko Kusanagi"]
		];
		
		randomNum = Math.floor((Math.random() * quotes.length));
		randomQuote = quotes[randomNum];
		randomAuthor = author[randomNum];

		$("#quoteContent").text(quotationMark + randomQuote).hide().fadeIn();
		$("#quoteAuthor").text(randomAuthor).hide().fadeIn();

} //end getQuote()


	
	$("#tweet").on("click", function() {
		getQuote();
		window.open("https://twitter.com/intent/tweet?text=" + randomQuote + " - " + randomAuthor);
	});

	$(document).ready(function() {
		getQuote();
	});

	$("#quote").on("click", function() {
		getQuote();
	});

});
              
            
!
999px

Console