Posting Statuses
How do I make an posting statuses?
Post a status like on Facebook and Twitter. What is a posting statuses? How do you make a posting statuses? This script and codes were developed by Corbin on 26 September 2022, Monday.
Posting Statuses - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Posting Statuses</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!doctype html>
<html> <head> <link href="https://s3.amazonaws.com/codecademy-content/courses/ltp2/css/bootstrap.min.css" rel="stylesheet"> <link href='https://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'> <link href="style.css" rel="stylesheet"> </head> <body> <div class="container"> <form> <div class="form-group"> <textarea class="form-control status-box" rows="2" placeholder="What's on your mind?"></textarea> </div> </form> <div class="button-group pull-right"> <p class="counter">140</p> <a href="#" class="btn btn-primary">Post</a> </div> <ul class="posts"> </ul> </div> </body>
</html> <script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script> <script src="js/index.js"></script>
</body>
</html>
Posting Statuses - Script Codes CSS Codes
html,
body { font-family: 'Roboto', sans-serif; color: #404040; background-color: #eee;
}
.container { width: 520px; margin-top: 20px;
}
.form-group { margin-top: 5%;
}
.button-group { margin-bottom: 20px;
}
.counter { display: inline; margin-top: 0; margin-bottom: 0; margin-right: 10px;
}
.posts { clear: both; list-style: none; padding-left: 0; width: 100%;
}
.posts li { background-color: #fff; border: 1px solid #d8d8d8; padding-top: 10px; padding-left: 20px; padding-right: 20px; padding-bottom: 10px; margin-bottom: 10px; word-wrap: break-word; min-height: 42px;
}
.selected { background-color: gray;
}
Posting Statuses - Script Codes JS Codes
var main = function() { $('.btn').click(function(){ var post = $('.status-box').val(); $('<li>').text(post).prependTo('.posts'); //Clear value in the status box once posted $('.status-box').val(''); //return .counter to 140 when status posts $('.counter').text('140'); //make .btn disabled once status is posts $('.btn').addClass('disabled'); }); //count down the 140 characters $('.status-box').keyup(function(){ var postLength = $(this).val().length; var charactersLeft = 140 - postLength; $('.counter').text(charactersLeft); //check to see if characters in post are elidgible to post if(charactersLeft < 0) { //make button disabled if charcters are < 0 $('.btn').addClass('disabled'); } else if (charactersLeft === 140) { //make button disabled if charcters are 140 $('.btn').addClass('disabled'); } else { //make button disabled if charcters anything else $('.btn').removeClass('disabled'); } }); $('.btn').addClass('disabled');
};
$(document).ready(main);
Developer | Corbin |
Username | corbinmj16 |
Uploaded | September 26, 2022 |
Rating | 3 |
Size | 2,512 Kb |
Views | 18,216 |
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 |
Simple Parallax Scroll | 2,321 Kb |
JS Arrays | 1,913 Kb |
Javascript Ternary Operator | 1,988 Kb |
Diabetes Calculator | 1,874 Kb |
Drawing App with Canvas | 3,340 Kb |
JS Find total and using textContent | 1,610 Kb |
Slider with arrows and dots | 3,897 Kb |
Tab area | 1,978 Kb |
Vue.js To-do List | 1,736 Kb |
Red Box Move on Mouse Coordiantes | 1,728 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 |
Wikipedia Viewer | Odylic | 2,333 Kb |
RollOver Effect 2 | Lmack90 | 2,162 Kb |
Cant get enough icecream in pure css3 | Melawire | 4,322 Kb |
CSS3 keyframe onload animation. | Samueljseay | 1,706 Kb |
Wave Lines | Mikehobizal | 4,023 Kb |
Angular Route | Arun_v606 | 1,837 Kb |
Testimonial Fancy tabs responsive | Amit-webdesigner | 3,056 Kb |
Donut Chart example - MorrisJS | Capelo | 2,385 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
CMP5-Opdracht15 | SannevanGastel | 2,733 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!