sefordiferente = function (valor) {
if (valor.match(/\.md/i)) {
window
.open(
"https://www.ranoya.com/aulas/tryit/markdown2/?embed=plain&file=" +
valor,
"_blank"
)
.focus();
return "foi";
} else if (valor.match(/\.pde/i)) {
window
.open(
"https://www.ranoya.com/aulas/tryit/processing/?embed=slides&file=" +
valor,
"_blank"
)
.focus();
return "foi";
} else if (valor.match(/\.svg/i)) {
window
.open(
"https://www.ranoya.com/aulas/tryit/?embed=slides&lang=html&file=" +
valor,
"_blank"
)
.focus();
return "foi";
} else {
return "não foi";
}
}