Dictionary
How do I make an dictionary?
Yandex api translate used. What is a dictionary? How do you make a dictionary? This script and codes were developed by Nikita Zubarets on 12 September 2022, Monday.
Dictionary - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Dictionary </title> <link rel='stylesheet prefetch' href='http://www.monogon.co/assets/lib/bootstrap/3/css/bootstrap.css'> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class='container'> <h1>Translater</h1> <form class='form-horizontal well' id='translate'> <div class='control-group'> <div class='controls'> <input name='word' type='text'> </div> </div> <hr> <div class='control-group'> <div class='controls'> <input class='btn btn-primary' type='submit' value='Do it!'> </div> </div> <div class='control-group result'> <div class='controls'> <hr> <div id='result'></div> </div> </div> </form>
</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>
Dictionary - Script Codes CSS Codes
.result { display: none;
}
Dictionary - Script Codes JS Codes
var Dictionary = { args: { api: "trnsl.1.1.20130912T122526Z.7dd52df9f1d3ea78.af10c3fb85e0fe32f754e918d281cf48977c83f7;", lang: "en-ru", wrapper: $(".result"), }, url: function(text) { return "https://translate.yandex.net/api/v1.5/tr.json/translate?key="+this.args.api+"&lang="+this.args.lang+"&text="+text.replace(/ /g, "+"); }, getTranslate: function(text) { $.get(this.url(text), function(data) { Dictionary.setResponse(data) }); }, setResponse: function(response) { console.log(response); var str = ""; for(var i=0; i<response.text.length; i++) { str += response.text[i]; } $("#result").text(str); this.args.wrapper.show(); }
};
$(function() { $("#translate").on("submit", function(e) { e.preventDefault(); var word = $(this).find("[name=word]").val(); Dictionary.getTranslate(word); });
});
Developer | Nikita Zubarets |
Username | snapson |
Uploaded | September 12, 2022 |
Rating | 3 |
Size | 2,604 Kb |
Views | 38,456 |
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 |
Conditional comments | 1,426 Kb |
Coffee Clock | 3,622 Kb |
Resize textarea | 10,634 Kb |
My SVG resume | 38,295 Kb |
Tanks the game | 1,162 Kb |
Signature | 1,763 Kb |
Frog jmp | 2,064 Kb |
Work tickets | 14,081 Kb |
A Pen by Nikita Zubarets | 3,435 Kb |
Tabs for tm us | 2,798 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 |
Pure CSS Animated Photo Stack | Depthdev | 2,486 Kb |
Draggable directive | YahyaKacem | 2,277 Kb |
Weird glowy CSS3 game | Toneworm | 3,684 Kb |
Testimonial Fancy tabs responsive | Amit-webdesigner | 3,056 Kb |
Click Based Rotation Demo | Zeaklous | 2,086 Kb |
Animated SVG stroke-dasharray | Netsi1964 | 3,179 Kb |
Direction-icon | Alexandremasy | 3,323 Kb |
Flex Table | Simeonoff | 4,059 Kb |
Svg animation draw | SzymonDziewonski | 5,545 Kb |
React JS Movie Info App | MTushar | 4,870 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!