Some funny little change

:)
This commit is contained in:
Masahiko AMANO 2022-02-09 19:12:17 +03:00
parent afa417d251
commit d1462470b1
5 changed files with 26 additions and 2 deletions

View File

@ -4,6 +4,8 @@
Hey! This is a simple web-service called __HuffPress__. What it does? Well, actually it _huffpresses_ files... I mean, compresses files using the [Huffman compression](https://en.wikipedia.org/wiki/Huffman_coding 'Read about it on Wikipedia'). Hey! This is a simple web-service called __HuffPress__. What it does? Well, actually it _huffpresses_ files... I mean, compresses files using the [Huffman compression](https://en.wikipedia.org/wiki/Huffman_coding 'Read about it on Wikipedia').
Also it uses a bit modified [SHICHIRO coding](https://github.com/H1K0/SHICHIRO 'View on GitHub') for compressing and embedding Huffman table.
## What do I need? ## What do I need?
- Any web browser - Any web browser
@ -13,7 +15,7 @@ Hey! This is a simple web-service called __HuffPress__. What it does? Well, actu
## So, how do I use it? ## So, how do I use it?
I think it's too easy to explain the usage of this service, but anyway here's [a video guide](https://yadi.sk/i/aiy78bDaoKqoJQ 'Watch!'). I think the usage is too easy to explain it, but anyway here's [a video guide](https://yadi.sk/i/aiy78bDaoKqoJQ 'Watch!').
--- ---

1
images/angry_huffman Normal file

File diff suppressed because one or more lines are too long

View File

@ -8,6 +8,7 @@
<link rel="stylesheet" href="./css/bootstrap.min.css" /> <link rel="stylesheet" href="./css/bootstrap.min.css" />
<link rel="stylesheet" href="./css/style.css" /> <link rel="stylesheet" href="./css/style.css" />
<script src="./js/jquery-3.6.0.min.js"></script> <script src="./js/jquery-3.6.0.min.js"></script>
<script src="./js/console.image.min.js"></script>
</head> </head>
<body> <body>
<header> <header>

4
js/console.image.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -87,4 +87,20 @@ $('.closebtn').click(function () {
$('.process').css('display', 'none'); $('.process').css('display', 'none');
$('.error').css('display', 'none'); $('.error').css('display', 'none');
$('.complete').css('display', 'none'); $('.complete').css('display', 'none');
}); });
$(window).on('load', function() {
let msg = 'И что это мы тут забыли?\nА ну кыш отседова!\nНашлись тут кулхацкеры понимаешь!';
let style = [
'padding: 1rem;',
'font-family: monospace;',
'font-size: 18pt;',
].join('');
console.log('%c%s', style, msg);
$.ajax({
url: './images/angry_huffman',
success: function(data) {
console.image(data);
},
});
});