use serde::{Deserialize, Serialize};
use serde_json::from_str;
use lazy_static::lazy_static;
#[derive(Serialize, Deserialize)]
struct Ascii {
ascii: Vec<String>,
}
lazy_static! {
static ref ASCII_DATA: Ascii = {
let file_contents = include_str!("ascii.json");
from_str(file_contents).expect("Could not deserialize JSON")
};
}
fn ascii() -> &'static Vec<String> {
&ASCII_DATA.ascii
}
fn main() {
let lines = ascii();
for line in lines {
println!("{}", line);
}
}
function updateButtonMoreTitle() {
if (currentLanguage === 'en') {
$('.moreTitle').text($('.moreTitle').hasClass('close') ? "Hide all" : "Show more");
} else if (currentLanguage === 'ru') {
$('.moreTitle').text($('.moreTitle').hasClass('close') ? "Скрыть всё" : "Показать все");
}
}
setInterval(updateButtonMoreTitle, 1);
$('.moreTitle').on('click', function () {
$(".moreText").toggle('showText');
$(this).toggleClass('close open');
updateButtonMoreTitle();
});