This commit is contained in:
Lukasz Tatrocki 2020-05-07 19:20:38 +02:00
parent 93bd71abd5
commit b999bc02f8
3 changed files with 5 additions and 2 deletions

View File

@ -0,0 +1 @@
runtime: python37

5
e1.py
View File

@ -14,8 +14,9 @@ def index():
function count() function count()
{ {
var text = document.getElementById('text') var text = document.getElementById('text')
var result = (text.value.match(/[A-Z]/g) || []).length var capitals = (text.value.match(/[A-Z]/g) || []).length
document.getElementById('result').textContent = `duze: ${result} male: ${text.value.length - result}` var noncapitals = (text.value.match(/[a-z]/g) || []).length
document.getElementById('result').textContent = `duze: ${capitals} male: ${noncapitals}`
} }
</script> </script>
</head> </head>

View File

@ -0,0 +1 @@
Flask==1.1.2