1- Criar una nova anotação, pode ser salva no formato (.txt) em (Downloads) local.
'+
''+
'
'+
'
'+
'
'+
'
2- Modificar uma anotação (.txt*) salva em (Downloads) local.
'+
''+
' '+
'
'+
' '+
'
Importante Enfrentam um problema para carregar um arquivo em uma pasta Local? É imperativo salvar seu trabalho antes de seguir a próxima etapa. Para solucionar o problema clique no botao (Refresh page).
'+
' '+
''+
''+
''+
''+
''+
''+
'
'+
'
'+
'
'+
'
Calculadora
'+
''+
'
Calculadora
'+
'
'+
'
'+
'
'+
'
'+
'
'+
'
'+
''+
'
'+
'
'+
''+
'
'+
'
'+
'
'+
'
'+
'
');
function editDBF() {
var x = document.getElementById('dbfwndw');
if (x.style.display === 'none') {
x.style.display = 'block';
} else {
x.style.display = 'none';
}
}
$('.ui-dialog-titlebar-close').on('mousedown', function () {
$('.dbf_icon').addClass('click');
});
$('.ui-dialog-titlebar-close').on('mouseup', function () {
$('.dbf_icon').removeClass('click');
});
$('.ui-dialog-titlebar-close').click(editDBF);
$( "#dbfwndw" ).draggable();
$(function() {
$('#skillPoints').on('input', function() {
calculate();
});
function calculate() {
var pPos = parseInt($('#skillPoints').val());
var pEarned1 = parseInt($('#pointsgiven1').val());
var pEarned2 = parseInt($('#pointsgiven2').val());
var pEarned3 = parseInt($('#pointsgiven3').val());
var pEarned4 = parseInt($('#pointsgiven4').val());
var pEarned5 = parseInt($('#pointsgiven5').val());
var pEarned6 = parseInt($('#pointsgiven6').val());
var pEarned7 = parseInt($('#pointsgiven7').val());
var pEarned8 = parseInt($('#pointsgiven8').val());
var pEarned9 = parseInt($('#pointsgiven9').val());
var pEarned10 = parseInt($('#pointsgiven10').val())
var pEarned11 = parseInt($('#pointsgiven11').val());
var pEarned12 = parseInt($('#pointsgiven12').val());
var percBal = "";
var percCom = "";
var percSpee = "";
var percResi = "";
var percSpeed = "";
var percPrec = "";
var percTechn = "";
var percPerf = "";
var percBala = "";
var percSpeedi = "";
var percFocus = "";
var percTechni = "";
if (isNaN(pPos) || isNaN(pEarned1) || isNaN(pEarned2) || isNaN(pEarned3) || isNaN(pEarned4) || isNaN(pEarned5) || isNaN(pEarned6) || isNaN(pEarned7) || isNaN(pEarned8) || isNaN(pEarned9) || isNaN(pEarned10) || isNaN(pEarned11) || isNaN(pEarned12)) {
percBal = "";
percCom = "";
percSpee = "";
} else {
percBal = ((pEarned1 / 100) * pPos).toFixed(0);
percCom = ((pEarned2 / 100) * pPos).toFixed(0);
percSpee = ((pEarned3 / 100) * pPos).toFixed(0);
percResi = ((pEarned4 / 100) * pPos).toFixed(0);
percSpeed = ((pEarned5 / 100) * pPos).toFixed(0);
percPrec = ((pEarned6 / 100) * pPos).toFixed(0);
percTechn = ((pEarned7 / 100) * pPos).toFixed(0);
percPerf = ((pEarned8 / 100) * pPos).toFixed(0);
percBala = ((pEarned9 / 100) * pPos).toFixed(0);
percSpeedi = ((pEarned10 / 100) * pPos).toFixed(0);
percFocus = ((pEarned11 / 100) * pPos).toFixed(0);
percTechni = ((pEarned12 / 100) * pPos).toFixed(0);
}
$('#AA1').val(percBal);
$('#AA2').val(percCom);
$('#AA3').val(percSpee);
$('#AA4').val(percResi);
$('#AA5').val(percSpeed);
$('#AA6').val(percPrec);
$('#AA7').val(percTechn);
$('#AA8').val(percPerf);
$('#AA9').val(percBala);
$('#AA10').val(percSpeedi);
$('#AA11').val(percFocus);
$('#AA12').val(percTechni);
}
});
$(function() {
$('#skillPointsh').on('input', function() {
calculate();
});
function calculate() {
var pPos = parseInt($('#skillPointsh').val());
var pEarned1 = parseInt($('#pointsgiven11').val());
var pEarned2 = parseInt($('#pointsgiven21').val());
var pEarned3 = parseInt($('#pointsgiven31').val());
var pEarned4 = parseInt($('#pointsgiven41').val());
var pEarned5 = parseInt($('#pointsgiven51').val());
var pEarned6 = parseInt($('#pointsgiven61').val());
var pEarned7 = parseInt($('#pointsgiven71').val());
var pEarned8 = parseInt($('#pointsgiven81').val());
var pEarned9 = parseInt($('#pointsgiven91').val());
var pEarned10 = parseInt($('#pointsgiven101').val())
var pEarned11 = parseInt($('#pointsgiven111').val());
var pEarned12 = parseInt($('#pointsgiven121').val());
var percBal = "";
var percCom = "";
var percSpee = "";
var percResi = "";
var percSpeed = "";
var percPrec = "";
var percTechn = "";
var percPerf = "";
var percBala = "";
var percSpeedi = "";
var percFocus = "";
var percTechni = "";
if (isNaN(pPos) || isNaN(pEarned1) || isNaN(pEarned2) || isNaN(pEarned3) || isNaN(pEarned4) || isNaN(pEarned5) || isNaN(pEarned6) || isNaN(pEarned7) || isNaN(pEarned8) || isNaN(pEarned9) || isNaN(pEarned10) || isNaN(pEarned11) || isNaN(pEarned12)) {
percBal = "";
percCom = "";
percSpee = "";
} else {
percBal = ((pEarned1 / 100) * pPos).toFixed(0);
percCom = ((pEarned2 / 100) * pPos).toFixed(0);
percSpee = ((pEarned3 / 100) * pPos).toFixed(0);
percResi = ((pEarned4 / 100) * pPos).toFixed(0);
percSpeed = ((pEarned5 / 100) * pPos).toFixed(0);
percPrec = ((pEarned6 / 100) * pPos).toFixed(0);
percTechn = ((pEarned7 / 100) * pPos).toFixed(0);
percPerf = ((pEarned8 / 100) * pPos).toFixed(0);
percBala = ((pEarned9 / 100) * pPos).toFixed(0);
percSpeedi = ((pEarned10 / 100) * pPos).toFixed(0);
percFocus = ((pEarned11 / 100) * pPos).toFixed(0);
percTechni = ((pEarned12 / 100) * pPos).toFixed(0);
}
$('#BA1').val(percBal);
$('#BA2').val(percCom);
$('#BA3').val(percSpee);
$('#BA4').val(percResi);
$('#BA5').val(percSpeed);
$('#BA6').val(percPrec);
$('#BA7').val(percTechn);
$('#BA8').val(percPerf);
$('#BA9').val(percBala);
$('#BA10').val(percSpeedi);
$('#BA11').val(percFocus);
$('#BA12').val(percTechni);
}
});
$(function(){
$('#pointspossible').on('input', function() {
calculate();
});
$('#pointsgiven').on('input', function() {
calculate();
});
function calculate(){
var pPos = parseInt($('#pointspossible').val());
var pEarned = parseInt($('#pointsgiven').val());
var perc="";
if(isNaN(pPos) || isNaN(pEarned)){
perc=" ";
}else{
perc = ((pEarned/100) * pPos).toFixed(0);
percBig = ((pEarned/100) * (pPos/4)).toFixed(0);
percCav = ((pEarned/100) * (pPos/3)).toFixed(0);
}
$('#pointsperc').val(perc);
$('#pointsperc1').val(perc);
$('#pointsperc2').val(perc);
$('#pointsperc3').val(perc);
$('#pointsperc4').val(perc);
$('#pointHop').val(perc);
$('#pointArq').val(perc);
$('#pointHop2').val(perc);
$('#pointBigas').val(percBig);
$('#pointCavaleiros').val(percCav);
$('#pointBigas2').val(percBig);
$('#pointCavaleiros2').val(percCav);
}
});
(function($) {
'use strict';
function somme() {
var nbr1, nbr2, nbr3, nbr4, nbr5, sum;
var percentual = 0.30;
nbr1 = Number($("#nbr1").val()) * 50;
nbr2 = Number($("#nbr2").val()) * 10;
nbr3 = Number($("#nbr3").val()) * 8;
nbr4 = Number($("#nbr4").val()) * 16;
nbr5 = Number($("#nbr5").val()) * 170;
sum = Math.round(nbr1 + nbr2 + nbr3 + nbr4 + nbr5);
var sumElement = $("#sum");
sumElement.val(Math.round(sum * percentual));
if (sum > 566) {
console.log('Valor acima de 170. Mudando para vermelho.');
sumElement.css({ color: 'red', fontWeight: 'bold' });
$("#Posidon").css({ filter: 'drop-shadow(16px 16px 20px red) invert(5%)' });
$("#Tposi").html("Colon Afundado");
$("#Tposi").css({ color: 'red' });
} else {
console.log('Valor 170 ou abaixo. Mudando para verde.');
sumElement.css({ color: 'green', fontWeight: 'bold' });
$("#Posidon").css({ filter: 'drop-shadow(16px 16px 20px green) invert(5%)' });
// Limpar mensagem em caso de mudança para um valor menor ou igual a 566
$("#Tposi").html("Sem danos no Colon");
$("#Tposi").css({ color: 'green' });
}
}
$("#nbr1, #nbr2, #nbr3, #nbr4, #nbr5").on("change", somme);
somme();
})(jQuery);
function limparCampos(campos) {
for (var i = 0; i < campos.length; i++) {
$('#' + campos[i]).val('');
}
}
$(document).ready(function() {
$('#resetBtc').click(function() {
limparCampos(['nbr1', 'nbr2', 'nbr3', 'nbr4', 'sum']);
});
$('#resetBtp').click(function() {
limparCampos(['pointspossible', 'pointsperc', 'pointsperc1', 'pointsperc2', 'pointsperc3', 'pointsperc4', 'pointCavaleiros2', 'pointHop', 'pointBigas', 'pointArq', 'pointCavaleiros', 'pointHop2', 'pointBigas2']);
});
$('#resetBtg').click(function() {
limparCampos(['skillPointsh', 'BA1', 'BA2', 'BA3', 'BA4', 'BA5', 'BA6', 'BA7', 'BA8', 'BA9', 'BA10', 'BA11', 'BA12']);
});
$('#resetBtgh').click(function() {
limparCampos(['skillPoints', 'AA1', 'AA2', 'AA3', 'AA4', 'AA5', 'AA6', 'AA7', 'AA8', 'AA9', 'AA10', 'AA11', 'AA12']);
});
$('#resetBtgi').click(function() {
limparCampos(['inputfile']);
});
});
(function() {
'use strict';
function calcularSoma() {
var totalHoras = 0;
var totalMinutos = 0;
var totalSegundos = 0;
$('#timeTable tbody tr').each(function() {
var horas = parseInt($(this).find('.hour').val()) || 0;
var minutos = parseInt($(this).find('.minute').val()) || 0;
var segundos = parseInt($(this).find('.second').val()) || 0;
totalHoras += horas;
totalMinutos += minutos;
totalSegundos += segundos;
});
totalMinutos += Math.floor(totalSegundos / 60);
totalSegundos %= 60;
totalHoras += Math.floor(totalMinutos / 60);
totalMinutos %= 60;
$('#totalTimeHHMMSS').val(
padLeft(totalHoras, 2) + ':' +
padLeft(totalMinutos, 2) + ':' +
padLeft(totalSegundos, 2)
);
}
function padLeft(value, length) {
return ('0' + value).slice(-length);
}
$('#resetBtn').click(function() {
// Limpa os campos .hour, .minute e .second
$('.hour').val('');
$('.minute').val('');
$('.second').val('');
$('#totalTimeHHMMSS').val('');
});
$('#calcularSomaBtn').click(function() {
calcularSoma(); // Chamada movida para dentro da função anônima
});
$('#copiarBtn').click(function() {
$('#totalTimeHHMMSS').select();
document.execCommand('copy');
});
calcularSoma();
})();
(function() {
'use strict';
function injectCustomScript() {
function btm(val) {
document.getElementById("calc-output").innerHTML += val;
}
function btmClean() {
document.getElementById("calc-output").innerHTML = "";
}
function btmPlus() {
document.getElementById("calc-output").innerHTML += "+";
}
function btmLess() {
document.getElementById("calc-output").innerHTML += "-";
}
function btmMultiply() {
document.getElementById("calc-output").innerHTML += "*";
}
function btmDivision() {
document.getElementById("calc-output").innerHTML += "/";
}
function btmEgal() {
var egal = eval(document.getElementById('calc-output').innerHTML);
document.getElementById('calc-output').innerHTML = egal;
}
document.getElementById('button-1').addEventListener('click', function() {
btm(1);
});
document.getElementById('button-2').addEventListener('click', function() {
btm(2);
});
document.getElementById('button-3').addEventListener('click', function() {
btm(3);
});
document.getElementById('button-4').addEventListener('click', function() {
btm(4);
});
document.getElementById('button-5').addEventListener('click', function() {
btm(5);
});
document.getElementById('button-6').addEventListener('click', function() {
btm(6);
});
document.getElementById('button-7').addEventListener('click', function() {
btm(7);
});
document.getElementById('button-8').addEventListener('click', function() {
btm(8);
});
document.getElementById('button-9').addEventListener('click', function() {
btm(9);
});
document.getElementById('button-0').addEventListener('click', function() {
btm(0);
});
document.getElementById('button-C').addEventListener('click', function() {
btmClean();
});
document.getElementById('button-+').addEventListener('click', function() {
btmPlus();
});
document.getElementById('button--').addEventListener('click', function() {
btmLess();
});
document.getElementById('button-*').addEventListener('click', function() {
btmMultiply();
});
document.getElementById('button-/').addEventListener('click', function() {
btmDivision();
});
document.getElementById('button-=').addEventListener('click', function() {
btmEgal();
});
document.getElementById('button-.').addEventListener('click', function() {
btm('.');
});
}
function waitForDocumentReady(callback) {
if (document.readyState === 'complete') {
callback();
} else {
document.addEventListener('DOMContentLoaded', callback);
}
}
waitForDocumentReady(function() {
injectCustomScript();
});
})();
function adicionarBlocoDeNota() {
var novoBloco = $('
');
$('.containers').append(novoBloco);
novoBloco.find('.reset-btn').click(function() {
$(this).siblings(['.nota-input', '.titulo-input']).val('');
});
}
function adicionarFormato() {
var notaInput = $(this).siblings('.nota-input');
var formato = $(this).data('format');
var nota = notaInput.val();
notaInput.val(nota + formato);
notaInput.focus();
}
function deletarBlocoDeNota() {
$(this).parent('.bloco-de-nota').remove();
}
function salvarBlocoDeNota() {
var titulo = $(this).siblings('.titulo-input').val();
var nota = $(this).siblings('.nota-input').val();
if (titulo.trim() === "") {
alert("Por favor, insira um título para salvar a nota.");
return;
}
salvarNotaNoDownload(titulo, nota);
}
function salvarNotaNoDownload(titulo, nota) {
var notasTexto = titulo + "\n" + nota + "\n\n";
var blob = new Blob([notasTexto], { type: 'text/plain' });
var url = window.URL.createObjectURL(blob);
var a = document.createElement('a');
a.href = url;
a.download = titulo + '.txt';
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
window.URL.revokeObjectURL(url);
}
$(document).ready(function() {
$('#adicionar-btn').click(adicionarBlocoDeNota);
$('.containers').on('click', '.format-btn', adicionarFormato);
$('.containers').on('click', '.deletar-btn', deletarBlocoDeNota);
$('.containers').on('click', '.salvar-btn', salvarBlocoDeNota);
});
var loadedFileName = "";
document.getElementById('inputfile').addEventListener('change', function() {
var fr = new FileReader();
fr.onload = function() {
loadedFileName = document.getElementById('inputfile').files[0].name;
document.getElementById('output').textContent = fr.result;
}
fr.readAsText(this.files[0]);
});
const saveBtn = document.querySelector('button.save-file');
saveBtn.addEventListener('click', function() {
console.log('Botão de salvar clicado');
var textArea = document.querySelector("textarea");
var textContent = textArea.value;
console.log('Conteúdo do textarea:', textContent);
var textBlob = new Blob([textContent], { type: 'text/plain' });
var tempLink = document.createElement("a");
tempLink.setAttribute('href', URL.createObjectURL(textBlob));
tempLink.setAttribute('download', loadedFileName.toLowerCase()); // Usa o nome do arquivo carregado para o download
tempLink.style.display = 'none'; // Oculta o link
console.log('Link temporário criado:', tempLink);
document.body.appendChild(tempLink); // Adiciona o link ao corpo do documento
console.log('Link temporário adicionado ao corpo do documento');
tempLink.click(); // Simula um clique no link
console.log('Clique no link simulado');
document.body.removeChild(tempLink); // Remove o link do corpo do documento
console.log('Link temporário removido do corpo do documento');
});
let widthMachine = document.querySelector(".width-machine");
function calcHeight(value) {
let numberOfLineBreaks = (value.match(/\n/g) || []).length;
let newHeight = 20 + numberOfLineBreaks * 20 + 12 + 2;
return newHeight;
}
let clear = document.querySelector('button#clear');
let textarea = document.querySelector('#output');
clear.addEventListener('click', function() {
textarea.value = '';
});
textarea.addEventListener("keyup", () => {
textarea.style.height = calcHeight(textarea.value) + "px";
});
$("#hide-btn").click(function(){
$(".hideshow").hide();
});
$("#show-btn").click(function(){
$(".hideshow").show();
});
const refreshBtn = document.getElementById("btnRefresh");
function handleClick() {
window.location.reload();
}
refreshBtn.addEventListener("click", handleClick);