This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var determineFontHeight = function(fontStyle) { | |
var body = document.getElementsByTagName("body")[0]; | |
var dummy = document.createElement("div"); | |
var dummyText = document.createTextNode("M"); | |
dummy.appendChild(dummyText); | |
dummy.setAttribute("style", fontStyle); | |
body.appendChild(dummy); | |
var result = dummy.offsetHeight; | |
body.removeChild(dummy); | |
return result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Certetrminal</title> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/xterm.css" /> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/xterm.js"></script> | |
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/addons/terminado/terminado.js"></script> | |
<script src="{{ static('terminado.js') }}"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM nginx:latest | |
LABEL maintainer="Biarca" | |
COPY mysite.template / | |
CMD ["/bin/bash", "-c", "export NGINX_PORT=${NGINX_PORT:-80}; envsubst < /mysite.template > /etc/nginx/conf.d/default.conf && nginx -g 'daemon off;'"] |