Увеличить/уменьшить тек&
How do I make an Увеличить/уменьшить тек&?
What is a Увеличить/уменьшить тек&? How do you make a Увеличить/уменьшить тек&? This script and codes were developed by Ddimonn8080 on 01 August 2022, Monday.
Увеличить/уменьшить тек& - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Увеличить/уменьшить текст</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <p class="text">Lorem ipsum dolor sit amet, consectetur adipisicing elit. Unde cupiditate quod, magni dolorem incidunt beatae voluptas, iste atque inventore ea.</p>
<div id="big" class="button">Больше</div>
<div id="small" class="button">Меньше</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>
Увеличить/уменьшить тек& - Script Codes CSS Codes
#big,#small { padding: 4px 7px; border: 1px solid #000; background: #369; color: #fff; cursor: pointer;
}
#big{float: left;}
#small{float: right;}
p{ border: 1px solid black; padding: 5px;
}
Увеличить/уменьшить тек& - Script Codes JS Codes
$(document).ready(function(){ function changeSize(element, size){ var current = parseInt(element.css('font-size')); if (size == 'small') { var newSize = current - 2; } else if (size == 'big') { var newSize = current + 2; } element.css({'font-size' : newSize + 'px'}); } $(function() { $('.button').click(function(){ var text = $('.text'); var ids = $(this).attr('id'); changeSize(text, ids); }); });
});
Developer | Ddimonn8080 |
Username | ddimonn8080 |
Uploaded | August 01, 2022 |
Rating | 3 |
Size | 2,035 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 |
Bootstrap grid sistem | 1,927 Kb |
Menu | 3,823 Kb |
A Pen by ddimonn8080 | 22,065 Kb |
Menu icons css | 2,200 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 |
Headroom.js demo | WickyNilliams | 3,982 Kb |
Clock Face Idea | Chrisburnell | 3,196 Kb |
Draggables in pure angular | Rlo206 | 5,167 Kb |
A Pen by Oliver Schafeld | Schafeld | 1,720 Kb |
Zip Button test | Lje7462 | 1,932 Kb |
Arrow Navigation | Hinducows | 1,973 Kb |
Pure CSS Read More Arrow | Zephyr | 1,747 Kb |
Slide out Menu | Rbiggs | 4,936 Kb |
A Pen by James Podles | Jpod | 2,656 Kb |
CSS only simple parallax scroll | Stanssongs | 3,708 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!