/* jshint -W097 */ /* exported identidadevisual, elemento, app, PageController, ComponentesController */ /* globals angular, Prism, $ */ function renderMenu() { $('#main-menu').smartmenus({ subMenusSubOffsetX: 1, subMenusSubOffsetY: -8, hideDuration: 0, showDuration: 0 }); $('#main-menu').smartmenus('keyboardSetHotkey', 123, 'shiftKey'); }; function renderInfoButton() { $('.popper-info').popover({ placement: 'top', title: 'Informações do Sistema', container: '#footer_popover', html: true, content: function () { return $(this).next().html(); } }); } function renderHelpButton() { $('.popper-ajuda').popover({ placement: 'top', title: 'Ajuda !', container: '#footer_popover', html: true, content: function () { return $(this).next().html(); } }); } $(document).ready(function() { renderMenu(); renderInfoButton(); renderHelpButton(); }); /*var identidadevisual = angular.module('identidadevisual', []); function escape_html(value) { return value.replace(/&/gm, '&').replace(//gm, '>'); } identidadevisual.controller('ComponentesController', function($scope) { $scope.highlight = function(elemento) { if(elemento) { var container_exemplo = $("#" + elemento); var codigo_html = escape_html($(container_exemplo).html()); $(container_exemplo).next().find("code").html(codigo_html); } else { $("code").html(escape_html($(".dtp-box-demo").html())); } Prism.highlightAll(); }; }); identidadevisual.controller('PageController', function($scope) { $scope.footer_funcs = function() { $('.popper-info').popover({ placement: 'top', title: 'Informações do Sistema', container: '#footer_popover', html: true, content: function () { return $(this).next().html(); } }); $('.popper-ajuda').popover({ placement: 'top', title: 'Ajuda !', container: '#footer_popover', html: true, content: function () { return $(this).next().html(); } }); }; $scope.renderMenu = function() { console.log("Dentro do render menu"); $('#main-menu').smartmenus({ subMenusSubOffsetX: 1, subMenusSubOffsetY: -8, hideDuration: 0, showDuration: 0 }); $('#main-menu').smartmenus('keyboardSetHotkey', 123, 'shiftKey'); }; });*/