html
html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!-- The styles was created by @Богуслав. A great thanks to him.
Created by Vitaliy Angelov (Rostov-on-Don) -->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Challenge: Vowel Counter 2</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
</head>
<body align="center">
<div style="height:0.1em"></div>
<input type="text" class="mytext" autofocus="true">
<p>You entered the number of vowels is:</p>
<div id="contenInput" class="vid"></div>
<a href="https://www.sololearn.com/Profile/7116767/?ref=app">The author of styles</a>
</body>
</html>
Enter to Rename, Shift+Enter to Preview
css
css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/*The styles was created by @Богуслав.
A great thanks to him.
Created by Vitaliy Angelov (Rostov-on-Don)*/
body{
font-family: Lucida Sans Unicode;
font-size:1.2em;
word-spacing:0.2em;
color: #321;
background: linear-gradient(#a98 0%, #fed 10%);
height: 24em;
}
.mytext{
width: 12em;
height: 1em;
font-family: inherit;
word-spacing:inherit;
font-size: inherit;
color: inherit;
padding: 0.4em;
margin-top: 0.5em;
background-color:rgb(250, 240, 230);
}
div{
font-size: 4em;
}
.vid{
min-height: 3.5em;
Enter to Rename, Shift+Enter to Preview
js
js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*The styles was created by @Богуслав.
A great thanks to him.
Created by Vitaliy Angelov (Rostov-on-Don)*/
$(function(){
alert("You can write into English or into Russian")
$(".mytext").keyup(function() {
$('#contenInput').text($(".mytext").val().split(/[AaEeIiOoUuАаЕеИиОоУуЫыЭэЮюЯя]/).length -1);
});
});
Enter to Rename, Shift+Enter to Preview
BROWSER
Console
Run