[Ajuda] JavaScript
#1

Olб, aqui й sу destinado a ajuda no Pawn ou por exemplo se estou fazendo um sistema web e estou com um problema o pessoal ajuda?

Entгo jб vou deixar o meu problema aqui caso nгo seja permitido eu irei excluir, sem problemas, eu estou fazendo um novo menu para o sistema e estou com uma dificuldade tremenda jб fiz todo meu cуdigo.
Menu:
PHP Code:
        <!-- SIDEBAR -->
        <
div id="wrapper" class="toggled">
            <!-- 
Sidebar -->
            <
div id="sidebar-wrapper" class="blue-grey darken-4">
                <
ul class="sidebar-nav">
                    <
li>
                        <
div id="info-user-menu">
                            <
img src="assets/imagens/boi.png" alt="" class="circle center" id="perfil-sidebar">
                            <
h6 class="white-text center" id="user-name-sidebar">Menu</h6>
                        </
div>
                    </
li>
                    
                    <
li class="indent">
                        <
a href="javascript:void(0)" class="master-menu">
                            
Animais
                            
<class="material-icons right">add</i>
                        </
a>
                        <
ul class="child-menu blue-grey darken-3">
                            <
li>
                                <
a href="javascript:void">
                                <
span>Lotes</span>
                                <
class="material-icons right">person</i>
                                </
a>
                            </
li>
                        </
ul>
                    </
li>
                    
                </
ul>
            </
div>
        </
div>
            <!-- 
HEADER -->
            <
header class="navbar-fixed">
                <
nav class="blue darken-2">
                    <
div class="nav-wrapper">
                        <
ul>
                            <
li>
                                <
a href="javascript:void(0)" id="btn-sidebar">
                                    <
class="material-icons">dehaze</i>
                                </
a>
                            </
li>
                            <
li>
                                <
a href="javascript:void(0)" id="header-logo">SISTEMA BRAVO</a>
                            </
li>
                        </
ul>
                        <
ul class="right">
                            <
li>
                                <
a href="javascript:void(0)">
                                    <
class="material-icons left">directions_run</i>
                                    <!--<
span class="new badge amber">Sair</span> -->
                                </
a>
                            </
li>
                        </
ul>
                </
nav>
            </
header
Cуdigo JavaScript:

PHP Code:
$(document).ready(function(){
   $(
'#btn-modal-footer').leanModal();
   $(
'#btn-dropdown-animais').dropdown();
});
$(
'.master-menu').click(function(e){
   
e.preventDefault();
   $(
this).next('ul').slideToggle('slow');
   $(
'.child-menu').not($(this).next()).slideUp('slow');
});
$(
'#btn-sidebar').click(function(e){
   
e.preventDefault();
   $(
'#wrapper').toggleClass('toggled');
   $(
'#btn-sidebar').toggleClass('toggled');
}); 
O cуdigo:
PHP Code:
   $('#btn-modal-footer').leanModal();
   $(
'#btn-dropdown-animais').dropdown(); 
Nгo й usado entгo ignore, eu nгo entendo muito de JS
O meu problema й que o menu nгo desce como deveria, nem mostra tambйm quando eu tiro da classe toggled, alguйm sabe o que estou fazendo de errado? Pois sinceramente estou a horas nisso.
Reply


Messages In This Thread
JavaScript - by nasser - 28.04.2018, 23:54
Re: JavaScript - by [BOPE]Seu._.Madruga - 29.04.2018, 00:58
Re: JavaScript - by FStralioti - 29.04.2018, 15:47
Re: JavaScript - by nasser - 29.04.2018, 20:24

Forum Jump:


Users browsing this thread: 1 Guest(s)