added hebrew, statistics

This commit is contained in:
2024-06-09 15:44:01 +03:00
parent 8a3782e1db
commit 409b076cd0
7 changed files with 198 additions and 57 deletions

3
public/hebrew.css Normal file
View File

@@ -0,0 +1,3 @@
body{
direction: rtl;
}

View File

@@ -91,16 +91,17 @@ function downloadValue(elementId, filename){
function scriptPackage(rowid, extracommand, line){
let text = `winget install ${rowid} -s huji`;
console.log(extracommand)
let fub = extracommand.indexOf(' &&')
let fub = extracommand.match(/\s?&&/)
fub = fub==null?-1:fub.index
console.log(`${rowid}, ${fub}`)
console.log(`${rowid}, ${extracommand.length < 2}`)
console.log(`fub in row: ${rowid}, is ${fub}`)
console.log(`extra command in line ${rowid}, has more than 2 lenght? ${extracommand.length < 2}. lenght${extracommand.length}`)
try{
console.log(text)
if(fub == 0){
text += extracommand;
}
else if((extracommand.length > 2)){
else if((extracommand.length > 2) && !(extracommand.match(/nil/))){
text = extracommand + " && " + text;
}
else if ((fub == -1))