Quote Machine

Developer
Size
2,578 Kb
Views
36,432

How do I make an quote machine?

What is a quote machine? How do you make a quote machine? This script and codes were developed by Matheus on 03 September 2022, Saturday.

Quote Machine Previews

Quote Machine - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Quote Machine</title> <link rel='stylesheet prefetch' href='https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <link rel="stylesheet" type="text/css" href="https://fonts.googleapis.com/css?family=Cookie">
<body> <h1>Inspirational Quotes for designers</h1> <div id="mainBox" align="center"> <h4 id="fraseQuery">Quote will appear here when the button is clicked - </h4> <h5 id="quoteAuthor" align="center"> Author will appear here </h5> <div id="twitter"> <a href="https://twitter.com/share" class="twitter-share-button" data-text="Testing" data-size="large" data-show-count="false">Tweet</a><script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script> </div> <button id="btn1" class = "btn btn-primary"> New Quote </button> </div>
</body> <script src='https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

Quote Machine - Script Codes CSS Codes

body{ background: url(https://www.shropshirehillsaonb.co.uk/wp-content/uploads/2010/10/The-Shropshire-Hills-Early-Spring-by-Jordan-Mansfield.jpg) no-repeat center center fixed; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;
}
h1{ font-family: 'Cookie', serif; font-size: 70px; text-shadow: 4px 4px 4px #aaa; text-align: center;
}
h4{ font-family: 'Cookie', serif; font-size: 40px; text-shadow: 4px 4px 4px #aaa;
}
h5{ font-family: 'Cookie', serif; font-size: 30px; text-shadow: 4px 4px 4px #aaa;
}
#mainBox{ position: relative; top:130px;
}
#twitter{ position: relative; right: 50px; top: 33px;
}
#btn1{ position: relative; left:50px; top: 0px; font-size: 10px; padding-left: 8px; padding-right: 8px;
}

Quote Machine - Script Codes JS Codes

$(document).ready(function(){ $.ajaxSetup({ cache: false }); $("#btn1").click(function(){ $.getJSON("https://quotesondesign.com/wp-json/posts?filter[orderby]=rand&filter[posts_per_page]=1&callback=", function(result){ //var string=JSON.stringify(result); console.log(result); var string = (result[0].content).replace(/<\/?[^>]+(>|$)/g, "") var string = '"' + string + '"'; //$.each(result, function(i, field){ $("#fraseQuery").html(string); $("#quoteAuthor").html(result[0].title); //}); }).done(update); });
});
//https://api.forismatic.com/api/1.0/?method=getQuote&key=457653&format=json&lang=en
Quote Machine - Script Codes
Quote Machine - Script Codes
Home Page Home
Developer Matheus
Username MatheusLima92
Uploaded September 03, 2022
Rating 3
Size 2,578 Kb
Views 36,432
Do you need developer help for Quote Machine?

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!

Matheus (MatheusLima92) Script Codes
Create amazing blog posts 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!