Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% load staticfiles %}
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <title>Leticia Martelli</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" type="text/css" media="screen" href="{% static 'css/index.css' %}" />
- <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
- <link href="https://fonts.googleapis.com/css?family=Alegreya+Sans:400,700,800,900|Vidaloka" rel="stylesheet">
- <script src="{% static 'js/index.js' %}"></script>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
- <script src="../../static/js/mediaelement-and-player.min.js"></script>
- <meta name="robots" content="noindex,follow" />
- </head>
- <body>
- <nav class="navbar" id="navbar_id">
- <img class="logo" id="logo_id" src="../../static/img/logo_inteira.png" alt="logo-leticia">
- <div class="hamburger_menu_icon" id="hamburger_icon">
- <img id="hamburger_icon" src="../../static/img/hamburger_branco.png">
- </div>
- <ul class ="menu">
- <li id="menu_options_id">
- <a href="#" id="nav_legal_english">THE LEGAL ENGLISH COURSE</a>
- </li>
- <li>
- <a href="#" id="nav_methodology">METHODOLOGY</a>
- </li>
- <li>
- <a href="#" id="nav_other_services">OTHER SERVICES</a>
- </li>
- <li>
- <a href="#" id="nav_my_profile">MY PROFILE</a>
- </li><li>
- <a href="#" id="nav_english_drops">LEGAL ENGLISH DROPS</a>
- </li>
- <li>
- <a href="#" id="nav_contact_me">CONTACT ME</a>
- </li>
- </ul>
- </nav>
- <ul class ="menu_hamburger" id="menu_hamburger_id">
- <li id="menu_hamburger_options_id">
- <a href="#" id="nav_legal_english">THE LEGAL ENGLISH COURSE</a>
- </li>
- <li>
- <a href="#" id="nav_methodology">METHODOLOGY</a>
- </li>
- <li>
- <a href="#" id="nav_other_services">OTHER SERVICES</a>
- </li>
- <li>
- <a href="#" id="nav_my_profile">MY PROFILE</a>
- </li><li>
- <a href="#" id="nav_english_drops">LEGAL ENGLISH DROPS</a>
- </li>
- <li>
- <a href="#" id="nav_contact_me">CONTACT ME</a>
- </li>
- </ul>
- <div class="banner" id="banner_id">
- <h1 class="title">Beyond Legal Terminology</h1>
- <p class="subtitle">INGLÊS JURÍDICO COM LETICIA MARTELLI</p>
- <div class="clip"></div>
- <div class="scroll_clip">
- <p>SCROLL</p>
- </div>
- <div class="clip_mobile">
- <img src="../../static/img/clip.png">
- </div>
- <a href="#" class="watch_video" onclick ="show('video_id')">WATCH THE VIDEO <span class="play_icon"><i class="far fa-play-circle"></i></span></a>
- <div class="video_container" id="video_id">
- <video width="1040" height="590" controls onseek onseeking>
- <source src="../../static/media/jout.mp4" type="video/mp4">
- </video>
- </div>
- <!--<div class="scroll">SCROLL</div>!-->
- </div>
- <div class"teste" id="teste">lalalala</div>
- <div class="teste2" id="resre2">aaaaaaaaa</div>
- <script>
- var navbarHeight = 118;
- var bannerHeight = $('#banner').height();
- var servicoHeight = 0;
- var sobrenosHeight = 0;
- var depoimentosHeight = 0;
- var contatosHight = 0;
- jQuery("document").ready(function($){
- //Elemento que vai receber os eventos.
- var nav = $('.navbar');
- var bannerHeight = $('#banner_id').height();
- var testeHeight = $('#teste').height() + bannerHeight; //altura de teste
- var teste2Height = $('#resre2').height() + testeHeight; //altura de teste
- var legalEnglishHeight = $('#legal_id').height() + bannerHeight;
- var methodologyHeight = $('#methodology_id').height() + legalEnglishHeight;
- var otherServicesHeight = $('#other_id').height() + methodologyHeight;
- var englishDropsHeight = $('#drops_id').height() + otherServicesHeight;
- var contactMeHeight = $('#contact_id').height() + englishDropsHeight ;
- //Ao rolar a página, a função será executada.
- $(window).scroll(function (navB) {
- //Se o tamanho da parte rolada for maior que 136px (pixels) ->
- if ($(this).scrollTop() >= 10 && $(this).scrollTop() <= testeHeight ) {
- nav.addClass("black_navbar"); //Aplica a classe scrolled_menu no elemento .menu
- $('#navbar_id').find("img").attr('src', '../../static/img/logo_encurtada.png');
- $('#hamburger_icon').find("img").attr('src', '../../static/img/hamburger_branco.png');
- }
- else if ($(this).scrollTop() <= bannerHeight){
- nav.removeClass("black_navbar");
- nav.removeClass("white_navbar");
- $('#navbar_id').find("img").attr('src', '../../static/img/logo_inteira.png');
- $('#hamburger_icon').find("img").attr('src', '../../static/img/hamburger_branco.png');
- }
- else {
- nav.removeClass("black_navbar"); //Remove a classe scrolled_menu no elemento .menu
- nav.addClass("white_navbar");
- $('#navbar_id').find("img").attr('src', '../../static/img/logo_encurtada.png');
- $('#hamburger_icon').find("img").attr('src', '../../static/img/hamburger_preto.png');
- }
- });
- $('#hamburguer_icon').on('click', function (event) {
- if (menu_hamburger.style.display == "none") {
- $("#menu_hamburger_id").slideDown("slow");
- } else {
- $("#menu_hamburger_id").slideUp("slow");
- }
- });
- });
- window.onload = navB;
- window.onscroll = navB;
- window.onresize = navB;
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment