Quote Machine
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 - 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
Developer | Matheus |
Username | MatheusLima92 |
Uploaded | September 03, 2022 |
Rating | 3 |
Size | 2,578 Kb |
Views | 36,432 |
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!
Name | Size |
Simon Game | 4,697 Kb |
Recipe Box | 9,514 Kb |
Portfolio | 7,721 Kb |
Game of Life | 6,575 Kb |
A Pen by Matheus | 3,441 Kb |
Wikipedia viewer | 3,085 Kb |
Test environment | 1,781 Kb |
Markdown Previewer | 3,402 Kb |
Voting App - register | 1,948 Kb |
Tic-Tac-Toe Game - v3 | 5,827 Kb |
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!
Name | Username | Size |
Simple personal profile | Miroot | 2,856 Kb |
BenU Maintenance Site | Ksherman | 4,893 Kb |
C.Rowe Button | Brownerd | 2,473 Kb |
A Pen by Miro Olma | Programiro | 2,342 Kb |
A Pen by Gregory Potdevin | GregoryPotdevin | 1,713 Kb |
CSS Grid Test | Ajaykarwal | 2,377 Kb |
A Pen by Matt Popovich | Mpopv | 3,349 Kb |
Rows with image hover effect | Amit-webdesigner | 12,875 Kb |
AngularJS Skills | Supro | 3,312 Kb |
Weather App | Kw7oe | 3,162 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!