Skip to content

Commit

Permalink
small refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 29, 2024
1 parent 8615ac7 commit b7b201c
Show file tree
Hide file tree
Showing 14 changed files with 37 additions and 33 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -21,7 +21,7 @@ COMMIT=`git log -n 1 | grep '^commit' | sed 's/commit //'`
TOKEN=cat .github.token | tr -d '\n'
URL=`git config --get remote.origin.url`
skip_re="[xfi]it\\(|[fdx]describe\\("
UPDATE_CONTRIBUTORS=0
UPDATE_CONTRIBUTORS=1

.PHONY: coverage test coveralls lint.src eslint skipped_tests jsonlint publish lint tscheck publish-guthub emoji

Expand Down
2 changes: 1 addition & 1 deletion css/emoji.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions css/jquery.terminal-2.40.6.css
Expand Up @@ -4,15 +4,15 @@
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
* \/ /____/ version 2.40.6
* \/ /____/ version DEV
* http://terminal.jcubic.pl
*
* This file is part of jQuery Terminal.
*
* Copyright (c) 2011-2023 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Sat, 27 Apr 2024 14:57:31 +0000
* Date: Mon, 29 Apr 2024 09:21:19 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd-prompt, .cmd-prompt div {
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal-2.40.6.min.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions css/jquery.terminal.css
Expand Up @@ -4,15 +4,15 @@
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ /
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/
* \/ /____/ version 2.40.6
* \/ /____/ version DEV
* http://terminal.jcubic.pl
*
* This file is part of jQuery Terminal.
*
* Copyright (c) 2011-2023 Jakub T. Jankiewicz <https://jcubic.pl/me>
* Released under the MIT license
*
* Date: Sat, 27 Apr 2024 14:57:31 +0000
* Date: Mon, 29 Apr 2024 09:21:19 +0000
*/
.terminal .terminal-output .format, .cmd .format,
.cmd-prompt, .cmd-prompt div {
Expand Down
4 changes: 2 additions & 2 deletions css/jquery.terminal.min.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion css/jquery.terminal.min.css.map

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions js/jquery.terminal-2.40.6.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 28 Apr 2024 12:14:00 +0000
* Date: Mon, 29 Apr 2024 09:21:19 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5297,20 +5297,22 @@
// :: is that it's triggers when virtual keyboard is toggled
// -------------------------------------------------------------------------
function on_height_change(callback) {
var height = window.visualViewport.height;
var scale = window.visualViewport.scale;
var height = Math.round(window.visualViewport.height * scale);
callback(height);
window.visualViewport.addEventListener('resize', function() {
var newHeight = window.visualViewport.height;
if (height !== newHeight) {
height = newHeight;
var new_scale = window.visualViewport.scale;
var new_height = Math.round(window.visualViewport.height * new_scale);
if (height !== new_height) {
height = new_height;
callback(height);
}
});
}
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 28 Apr 2024 12:14:00 +0000',
date: 'Mon, 29 Apr 2024 09:21:19 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.40.6.min.js

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions js/jquery.terminal-src.js
Expand Up @@ -5301,10 +5301,10 @@
var height = Math.round(window.visualViewport.height * scale);
callback(height);
window.visualViewport.addEventListener('resize', function() {
var newScale = window.visualViewport.scale;
var newHeight = Math.round(window.visualViewport.height * newScale);
if (height !== newHeight) {
height = newHeight;
var new_scale = window.visualViewport.scale;
var new_height = Math.round(window.visualViewport.height * new_scale);
if (height !== new_height) {
height = new_height;
callback(height);
}
});
Expand Down
14 changes: 8 additions & 6 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sun, 28 Apr 2024 12:14:00 +0000
* Date: Mon, 29 Apr 2024 09:21:19 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5297,20 +5297,22 @@
// :: is that it's triggers when virtual keyboard is toggled
// -------------------------------------------------------------------------
function on_height_change(callback) {
var height = window.visualViewport.height;
var scale = window.visualViewport.scale;
var height = Math.round(window.visualViewport.height * scale);
callback(height);
window.visualViewport.addEventListener('resize', function() {
var newHeight = window.visualViewport.height;
if (height !== newHeight) {
height = newHeight;
var new_scale = window.visualViewport.scale;
var new_height = Math.round(window.visualViewport.height * new_scale);
if (height !== new_height) {
height = new_height;
callback(height);
}
});
}
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sun, 28 Apr 2024 12:14:00 +0000',
date: 'Mon, 29 Apr 2024 09:21:19 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion templates/Makefile.in
Expand Up @@ -21,7 +21,7 @@ COMMIT=`git log -n 1 | grep '^commit' | sed 's/commit //'`
TOKEN=cat .github.token | tr -d '\n'
URL=`git config --get remote.origin.url`
skip_re="[xfi]it\\(|[fdx]describe\\("
UPDATE_CONTRIBUTORS=0
UPDATE_CONTRIBUTORS=1

.PHONY: coverage test coveralls lint.src eslint skipped_tests jsonlint publish lint tscheck publish-guthub emoji

Expand Down

0 comments on commit b7b201c

Please sign in to comment.