mirror of https://github.com/interlegis/sapl.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.1 KiB
50 lines
1.1 KiB
// TODO: migrar compilacao para VueJs
|
|
|
|
import "./scss/compilacao.scss";
|
|
|
|
import compilacao from "./js/old/compilacao";
|
|
import compilacao_view from "./js/old/compilacao_view";
|
|
import compilacao_notas from "./js/old/compilacao_notas";
|
|
import _ from "lodash";
|
|
|
|
|
|
|
|
//import "./js/compilacao_edit";
|
|
|
|
_.forEach(_.merge(_.merge(compilacao, compilacao_notas),compilacao_view), function(func, key) {
|
|
window[key] = func;
|
|
});
|
|
|
|
$(document).ready(function() {
|
|
setTimeout(function() {
|
|
var href = location.href.split("#");
|
|
if (href.length == 2) {
|
|
try {
|
|
$("html, body").animate(
|
|
{
|
|
scrollTop:
|
|
$("#dptt" + href[1]).offset().top - window.innerHeight / 9
|
|
},
|
|
0
|
|
);
|
|
} catch (err) {
|
|
console.log(err);
|
|
}
|
|
}
|
|
}, 100);
|
|
|
|
$("#btn_font_menos").click(function() {
|
|
$(".dpt").css("font-size", "-=1");
|
|
});
|
|
$("#btn_font_mais").click(function() {
|
|
$(".dpt").css("font-size", "+=1");
|
|
});
|
|
|
|
$(".dpt.bloco_alteracao .dpt").each(function() {
|
|
var nivel = parseInt($(this).attr("nivel"));
|
|
$(this).css("z-index", 15 - nivel);
|
|
});
|
|
|
|
onReadyNotasVides();
|
|
|
|
});
|
|
|