Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
MillKeny authored Apr 27, 2024
1 parent ad7cc3c commit 9d5658d
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 12 deletions.
13 changes: 11 additions & 2 deletions dict.js
Original file line number Diff line number Diff line change
Expand Up @@ -124866,9 +124866,18 @@ var adjs = [
"տանիք",
"կարիք",
"մկրատ",
"կարաբ",
"կարապ",
"տարիք",
"մածուն"
"մածուն",
"սիրուն",
"գաղութ",
"քաքել",
"վառել",
"մարել",
"սիրել",
"քաք",
"պոչ",
"խոզ"
]

window.verbs = verbs;
Expand Down
6 changes: 2 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const bd = document.body;
const bdctx = bd.innerHTML;
const template = `
<h1 style="font-family: 'Lucida Console', 'Courier New', monospace; text-shadow: 0px 3px 2px rgb(91, 100, 110); font-weight: 1000; color:rgb(30, 30, 30);">MillKeny-ի Անիմաստ Հայերեն Բառարանի Ծրագրեր (անճաշակ դիզայնով)</h1>
<h1 style="font-family: 'Lucida Console', 'Courier New', monospace; text-shadow: 0px 3px 4px rgb(91, 100, 110); font-weight: 1000; color:rgb(30, 30, 30);">MillKeny-ի Անիմաստ Հայերեն Բառարանի Ծրագրեր (անճաշակ դիզայնով)</h1>
<button class="hdr" onclick="location.href='index.html'">Հանգեր</button>
<button class="hdr" onclick="location.href='mostfreq.html'">Ամենատարածվածներ</button>
<button class="hdr" onclick="location.href='writer.html'">Պոետ</button>
Expand All @@ -12,6 +12,4 @@ ${bdctx}
`;


bd.innerHTML = template;

console.log(template)
bd.innerHTML = template;
4 changes: 4 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,8 @@ display: block;

.dropdown:hover .dropdown-content {
display: block;
}

#tarer {
letter-spacing: 4px;
}
36 changes: 30 additions & 6 deletions wordle.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@
<h1 >ՀԱՅԵՐԵՆ WORDLE</h1>
<h2 id="hed"></h2>
<input type="text" id="rifmi" placeholder="" style="width: 500px;" class="search" onchange="">
<input type="number" id="cnt" placeholder="Փորձերի Քանակը" class="count" value="6">
<input type="number" id="cntt" placeholder="Տառերի Քանակ" class="count" value="5">
<div class="dropdown">
<button class="srchd" class="dropbtn">Կանոններ․․․</button>
<div class="dropdown-content">
Փորձերի Քանակը՝
<input type="number" id="cnt" placeholder="Փորձերի Քանակը" class="count" value="6">
Տառերի Քանակը՝
<input type="number" id="cntt" placeholder="Տառերի Քանակ" class="count" value="5">
</div>
</div>
<br>
<button onclick="wordle(document.getElementById('rifmi').value)" class="srchd" class="dropbtn">Գուշակել</button>
<button onclick="wordle(document.getElementById('rifmi').value)" class="srchd" class="dropbtn">Enter</button>
<br>
</div>
<h2 id="tarer" class="ftitle"></h2>
Expand All @@ -38,14 +45,12 @@ <h2 id="finded" class="ftitle">-</h2>
return document.getElementById(id)
}
bars = window.bars;
console.log(bars.length);
verbs = window.verbs;
nouns = window.nouns;
adjs = window.adjs;
bars.push(...verbs);
bars.push(...nouns);
bars.push(...adjs);
console.log(bars.length);
function randome(arr){
return arr[Math.floor(Math.random()*arr.length)]
}
Expand Down Expand Up @@ -97,7 +102,17 @@ <h2 id="finded" class="ftitle">-</h2>
}
});

for(var i = 0; i < maxtries - tdisc.length; i++){
for(var j = 0; j < barl; j++){
disc += "<span style='font-size: 35px; color: white; background-color: gray'>-</span>";
}
disc += "<br>";
}
setid("finded", disc)

function wordle(word){
disc = "";

if(getid("cnt") < 1) document.getElementById('cnt').value = 1;
if(getid("cntt") < 2) document.getElementById('cntt').value = 2;
if(tdisc.length == 0){
Expand Down Expand Up @@ -189,7 +204,6 @@ <h2 id="finded" class="ftitle">-</h2>

setid("finded", disc)
setarr("tarer", tmpalph);
disc = "";

document.getElementById('rifmi').value = "";
}
Expand All @@ -208,6 +222,16 @@ <h2 id="finded" class="ftitle">-</h2>
setid("finded", "-")
setarr("tarer", alphabet);
}

function dlina(itr){
for(var j = 0; j < itr; j++){
var top = [];
for(i in bars){
if(bars[i].length == j) top.push(bars[i]);
}
console.log(j, top.length);
}
}


</script>
Expand Down

0 comments on commit 9d5658d

Please sign in to comment.