Chuck Norris Quotes

Developer
Size
2,989 Kb
Views
34,408

How do I make an chuck norris quotes?

What is a chuck norris quotes? How do you make a chuck norris quotes? This script and codes were developed by David Storey on 12 July 2022, Tuesday.

Chuck Norris Quotes Previews

Chuck Norris Quotes - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Chuck Norris Quotes</title> <style> /* NOTE: The styles were added inline because Prefixfree needs access to your styles and they must be inlined if they are on local disk! */ [v-cloak] { display: none;
}
body {	margin: 0;	padding: 0 20px;
}
.quote {	border: 1px solid #000;	border-radius: 4px;	box-shadow: 0px 6px 8px 0px rgba(0,0,0,0.5);	display: block;	margin: 15% auto 0;	max-width: 800px;	padding: 20px;
}
.quote p {	font-family: sans-serif;	margin: 0;	padding: 0 0 20px 0;	text-align: center;	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}
.quote p:before {	content: '\201C';
}
.quote p:after {	content: '\201D';
}
.quote p:after,
.quote p:before {	font-size: 300%;	font-weight: bold;	line-height: 0.4;	position: relative;	top: 10px;
}
.quote .button {	background: #000;	border: 1px solid #000;	border-radius: 3px;	color: #fff;	cursor: pointer;	display: inline-block;	font-family: sans-serif;	font-size: 12px;	line-height: 1;	margin: 0;	padding: 10px;	text-align: center;	text-decoration: none;
}
.quote .button:hover,
.quote .button:focus {	background: #fff;	color: #000;
}
.quote .button.shareOnTwitter {	float: right;
}
@media (max-width: 400px) {	.quote .button {	padding: 10px 0;	width: 100%;	}	.quote .button.shareOnTwitter {	float: none;	margin-top: 10px;	}
} </style> <script src="https://cdnjs.cloudflare.com/ajax/libs/prefixfree/1.0.7/prefixfree.min.js"></script>
</head>
<body> <div id="app">	<div class="quote" v-cloak>	<p>{{ quote }}</p>	<button class="button newQuote" v-on:click="fetchQuote()">New quote</button>	<a class="button shareOnTwitter" href="https://twitter.com/intent/tweet?text={{ quote }}" target="_blank">Share on Twitter</a>	</div>
</div> <script src='https://cdn.jsdelivr.net/vue/latest/vue.js'></script>
<script src='https://cdn.rawgit.com/larryosborn/JSONP/master/lib/jsonp.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Chuck Norris Quotes - Script Codes CSS Codes

[v-cloak] { display: none;
}
body {	margin: 0;	padding: 0 20px;
}
.quote {	border: 1px solid #000;	border-radius: 4px;	box-shadow: 0px 6px 8px 0px rgba(0,0,0,0.5);	display: block;	margin: 15% auto 0;	max-width: 800px;	padding: 20px;
}
.quote p {	font-family: sans-serif;	margin: 0;	padding: 0 0 20px 0;	text-align: center;	text-shadow: 0px 1px 1px rgba(0, 0, 0, 0.3);
}
.quote p:before {	content: '\201C';
}
.quote p:after {	content: '\201D';
}
.quote p:after,
.quote p:before {	font-size: 300%;	font-weight: bold;	line-height: 0.4;	position: relative;	top: 10px;
}
.quote .button {	background: #000;	border: 1px solid #000;	border-radius: 3px;	color: #fff;	cursor: pointer;	display: inline-block;	font-family: sans-serif;	font-size: 12px;	line-height: 1;	margin: 0;	padding: 10px;	text-align: center;	text-decoration: none;
}
.quote .button:hover,
.quote .button:focus {	background: #fff;	color: #000;
}
.quote .button.shareOnTwitter {	float: right;
}
@media (max-width: 400px) {	.quote .button {	padding: 10px 0;	width: 100%;	}	.quote .button.shareOnTwitter {	float: none;	margin-top: 10px;	}
}

Chuck Norris Quotes - Script Codes JS Codes

var vue = new Vue({	el: '#app',	data: {	quote: ''	},	created: function() {	this.fetchQuote();	},	methods: {	updateQuote: function(val) {	this.quote = decodeHtml(val);	},	fetchQuote: function() {	var self = this;	JSONP({	url: 'http://api.icndb.com/jokes/random', // http://www.icndb.com/api/	success: function(data) { self.updateQuote(data.value.joke); }	});	}	}
});
function decodeHtml(html) {	var txt = document.createElement('textarea');	txt.innerHTML = html;	return txt.value;
}
Chuck Norris Quotes - Script Codes
Chuck Norris Quotes - Script Codes
Home Page Home
Developer David Storey
Username davidpanik
Uploaded July 12, 2022
Rating 3
Size 2,989 Kb
Views 34,408
Do you need developer help for Chuck Norris Quotes?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

David Storey (davidpanik) Script Codes
Create amazing captions with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!