A Pen by Cory
How do I make an a pen by cory?
What is a a pen by cory? How do you make a a pen by cory? This script and codes were developed by Cory on 13 December 2022, Tuesday.
A Pen by Cory - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Cory</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div id="wrap"> <h1>How to make a Mojito</h1> <div id="buttons"> <div id="left-arrow"></div> <div id="step-text"> Step 1 of 6 </div> <div id="right-arrow"></div> </div> <div id="image"></div> <div id="text"> Inspired by a South Beach sunset, this rum sparkler with a mint infusion is perfect for slow sipping while watching the sun go down — no matter where you live. </div> </div> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
A Pen by Cory - Script Codes CSS Codes
@charset "UTF-8";
/* CSS Document */
* { margin: 0; padding: 0; border: none; }
#wrap { width: 650px; margin: 60px auto 0px auto; }
h1 { text-align: center; }
#buttons { width: 325px; height: 32px; margin-left: 40px; }
#left-arrow,
#right-arrow { float: left; width: 32px; height: 32px; }
#left-arrow:before,
#right-arrow:before{ display: block; border-radius: 50%; background-color: #999; width: 2em; height: 2em; text-align: center; color: #fff }
#left-arrow:before { content: '<';
}
#right-arrow:before { content: '>';
}
#left-arrow:hover:before, #right-arrow:hover:before { background-color: #666 }
#step-text { float: left; width: 180px; height: 32px; font-size: 0.8em; line-height: 24px; font-family: Verdana, sans-serif; color: #aaa; text-align: center; }
#image { float: left; width: 325px; height: 325px; background-image: url("http://slowcocktails.squarespace.com/storage/mojito1.jpg"); background-position: bottom center; }
#text { float: left; width: 285px; height: 285px; padding: 20px; background-color: #eee; }
A Pen by Cory - Script Codes JS Codes
// JavaScript Document
// Store the current step in the instructions, and an array to hold each corresponding step's instruction
var images = ['http://slowcocktails.squarespace.com/storage/mojito1.jpg', 'http://rock-ur-party.tablespoon.com/files/2013/04/2013-04-30-mint-julep-jelly-shots-mint-580x400.jpg', 'http://res.mindbodygreen.com/img/ftr/sugar-dumb.jpg', 'http://image.shutterstock.com/display_pic_with_logo/56233/56233,1174940759,7/stock-photo-pure-natural-lime-juice-pouring-straight-from-the-lime-into-the-glass-2952975.jpg', 'http://img.foodnetwork.com/FOOD/2011/05/03/CC_Michael-Chiarello-Mojitos_s4x3_lg.jpg', ] step = 0, instructions = [
"Inspired by a South Beach sunset, this rum sparkler with a mint infusion is perfect for slow sipping while watching the sun go down — no matter where you live.",
"Remove the leaves from 8 sprigs of fresh mint and add them to a blender.",
"Next add 1/2 cup sugar.",
"Add 1/4 cup fresh lime juice.",
"Finally, add the skin of a grated lime and 2 cups ice cubes. Pulse until the mint is chopped.",
"Fill a pitcher with 2 cups of ice and add the mint mixture. Then pour in a cup or so of golden rum. For a virgin mojito, you can skip this step and instead add a couple cups of soda water, and stir.",
"Pour into a glass, relax, and enjoy."
];
// Respond to user clicking the right arrow:
// Update step, check boundary condition first
// Change the content
function nextStep() { step++; if (step > instructions.length) { step = 1; } changeContent();
}
// Respond to user clicking the left arrow:
// Update step, check boundary condition first
// Change the content
function prevStep() { step--; if (step < 1) { step = instructions.length; } changeContent();
}
// Update the content for the current step
function changeContent() { //Update the instructions //get the instruction at index step //replace the content in #text with the new content $('#text').html(instructions[step]); //Update the image //get the image at index step //replace the content in #image with the new image $('#image').css({ backgroundImage: 'url(' + images[step] + ')' }); //Update the step text $('#step-text').html('step ' + (step + 1) + ' of ' + instructions.length)
}
$('#right-arrow').on('click', function () { nextStep();
});
$('#left-arrow').on('click', function () { prevStep();
});
Developer | Cory |
Username | uniqname |
Uploaded | December 13, 2022 |
Rating | 3 |
Size | 3,306 Kb |
Views | 14,168 |
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 |
CSA-React POC | 5,660 Kb |
Hover activated accordian with default state | 1,946 Kb |
React Carousel POC | 12,622 Kb |
PictureTime | 3,565 Kb |
Floating Labels | 2,238 Kb |
A content slider | 2,374 Kb |
Javascript Digital Clock Example | 1,797 Kb |
X-Picture tag | 2,573 Kb |
Memory Leak Demo | 2,074 Kb |
Digital Clock | 1,897 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 |
Feedback Page | TessDiNapoli | 2,836 Kb |
A Pen by Mike Otis | Mikeotis | 3,185 Kb |
Test | Dviate | 2,668 Kb |
Form Labels | Bartuc | 2,717 Kb |
Growing Root - Scroll control - CANVAS | Cjonasw | 2,342 Kb |
CSS3 Selectables with information rollover | Jasonmayes | 9,565 Kb |
Heatmap Color Scales | Stevepepple | 2,331 Kb |
CSS3 Latte Art Logo | Esambino | 2,036 Kb |
03 - CSS Variables | Run-time | 2,682 Kb |
Drag in vanilla js using dotval math instead of translate | Paulq | 2,662 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!