Skip to content

Commit

Permalink
Values hex at pages of ASCII Character Codes and Virtual Key Codes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatiDragon-YT committed Nov 24, 2022
1 parent 8a85011 commit 3f48c9d
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 7 deletions.
6 changes: 5 additions & 1 deletion en/scm-documentation/ascii-character-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,8 @@
|þ|254|
|ÿ|255|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>
6 changes: 5 additions & 1 deletion en/scm-documentation/virtual-key-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@
|'|222|
|\\|226|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>
6 changes: 5 additions & 1 deletion es/scm-documentation/ascii-character-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,8 @@
|þ|254|
|ÿ|255|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>
6 changes: 5 additions & 1 deletion es/scm-documentation/virtual-key-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@
|{|222|
|<|226|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>
Binary file modified help-system.zip
Binary file not shown.
22 changes: 22 additions & 0 deletions js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,26 @@ $("#CHANGE").onclick = function(){
ModeLight()
? IMAGE('out')
: IMAGE('base')
}

/**
* String.prototype.padStart() polyfill
* https://github.com/uxitten/polyfill/blob/master/string.polyfill.js
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/padStart
*/
if (!String.prototype.padStart) {
String.prototype.padStart = function padStart(targetLength,padString) {
targetLength = targetLength>>0; //truncate if number or convert non-number to 0;
padString = String((typeof padString !== 'undefined' ? padString : ' '));
if (this.length > targetLength) {
return String(this);
}
else {
targetLength = targetLength-this.length;
if (targetLength > padString.length) {
padString += padString.repeat(targetLength/padString.length); //append to original to ensure we are longer than needed
}
return padString.slice(0,targetLength) + String(this);
}
};
}
2 changes: 1 addition & 1 deletion js/main.min.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion ru/scm-documentation/ascii-character-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -183,4 +183,8 @@
|þ|254|
|ÿ|255|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>
6 changes: 5 additions & 1 deletion ru/scm-documentation/virtual-key-codes.html
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@
|'|222|
|\\|226|

<script src="../../js/main.min.js"></script>
<script src="../../js/main.min.js"></script>
<script>
$('thead tr').innerHTML += '<th>HEX</th>';
$('tbody tr').forEach(function(tr){tr.innerHTML += '<td>'+String(Number(tr.lastChild.innerHTML).toString(16).padStart (2, "0")).toUpperCase()+'</td>'})
</script>

0 comments on commit 3f48c9d

Please sign in to comment.