|
@@ -1,4 +1,4 @@
|
|
|
-
|
|
|
+
|
|
|
let btnVoltar = document.getElementById("ifr__btn__backToTop");
|
|
|
window.onscroll = function () {
|
|
|
scrollFunction();
|
|
@@ -20,18 +20,28 @@ function backToTop() {
|
|
|
|
|
|
|
|
|
|
|
|
-
|
|
|
-function pegarURL () {
|
|
|
+
|
|
|
+function getURL () {
|
|
|
strUrl = window.location.href;
|
|
|
ind = strUrl.lastIndexOf("/");
|
|
|
subStrigURL = strUrl.substring(0, ind);
|
|
|
-
|
|
|
+ ind2 = subStrigURL.lastIndexOf("/");
|
|
|
+ subStrigURL2 = strUrl.substring(ind2+1, ind);
|
|
|
+ if (subStrigURL2=='paginas')
|
|
|
+ subStrigURL = strUrl.substring(0, ind2);
|
|
|
+ else
|
|
|
+ if (subStrigURL2=='area_professor')
|
|
|
+ subStrigURL = strUrl.substring(0, ind2-7);
|
|
|
+ else
|
|
|
+ if (subStrigURL2=='sobre')
|
|
|
+ subStrigURL = strUrl.substring(0, ind2-7);
|
|
|
+
|
|
|
return subStrigURL;
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
-const baseUrl = pegarURL();
|
|
|
+const baseUrl = getURL();
|
|
|
const lastUpdate =
|
|
|
"Atualizado pela ultima vez em: 25 de março de 2025 -- por <a href='http://www.ime.usp.br/~laira'>Laira</a>.";
|
|
|
let footer = document.getElementById("footer");
|