Увеличить/уменьшить тек&

Developer
Size
2,035 Kb
Views
18,216

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.

Увеличить/уменьшить тек& Previews

Увеличить/уменьшить тек& - 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); }); });
});
Увеличить/уменьшить тек& - Script Codes
Увеличить/уменьшить тек& - Script Codes
Home Page Home
Developer Ddimonn8080
Username ddimonn8080
Uploaded August 01, 2022
Rating 3
Size 2,035 Kb
Views 18,216
Do you need developer help for Увеличить/уменьшить тек&?

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!

Ddimonn8080 (ddimonn8080) 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!