View Source code:

Tidy UP & Clean HTML Code - View Source of http://silviosande.com.br

<!DOCTYPE html>
<html lang="pt-br" ng-app="AtitudeApp">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <!--<meta name="viewport" content="width=device-width, initial-scale=1">-->
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">

        <title>Portal Silvio Sande - Cursos Online para Concursos Públicos</title>
        <meta name="description" content="O Portal Silvio Sande é o maior portal de cursos para concursos do país. Estude com os melhores! Cursos online em pdf e videoaulas 100% focados no edital.">
        <meta name="keywords" content="cursos online em pdf e videoaulas, cursos para concursos, cursos focados no edital, portal silvio sande">

        <meta property="og:title" content="Cursos Online para Concursos Públicos"/>
        <meta property="og:type" content="company"/>
        <meta property="og:url" content="https://www.silviosande.com.br/"/>
        <meta property="og:description" content="O Portal Silvio Sande é o maior portal de cursos para concursos do país. Estude com os melhores! Cursos online em pdf e videoaulas 100% focados no edital."/>


        <meta name="google-site-verification" content="5SzECCYwz4yhw0WAno_Ki_mP0nd9SGKag1Vec5U-uUA" />

        <!--favicon icon-->
        <link rel="icon" type="image/png" href="https://www.silviosande.com.br/assets/site/img/favicon.png">

        <!-- /// CSS /// -->
        <link href="/assets/site/css/vendor.css?v=201811211" rel="stylesheet">
        
        <!-- Criteo Homepage Tag -->
        <script type="text/javascript" src="//static.criteo.net/js/ld/ld.js" async="true"></script>
        <script type="text/javascript">
        window.criteo_q = window.criteo_q || [];
        var deviceType = /iPad/.test(navigator.userAgent) ? "t" : /Mobile|iP(hone|od)|Android|BlackBerry|IEMobile|Silk/.test(navigator.userAgent) ? "m" : "d";
        window.criteo_q.push(
        { event: "setAccount", account: 53305}, // You should never update this line
                { event: "setSiteType", type: deviceType},
        { event: "viewHome"});
        </script> 
        <!-- END Criteo Home Page Tag -->

        <script type="text/javascript">
        var verifyCallback = function(response) {
          var $form = $('form[name=TagFormDesejado');

          $.post( base_url + 'welcome/cursoDesejado', $form.serialize(), function(res) {
            $('#divRecaptcha').modal('hide');
            $form.trigger("reset");
            grecaptcha.reset();
            alert('Curso solicitado com sucesso!');
          });
        };

        var onloadCallbackRepk = function() {
          widgetId1 = grecaptcha.render('recaptcha', {
            'sitekey' : '6LdHvgcUAAAAAKkiNvq5qHyNoiUMc1OadEKba3eC',
            'theme' : 'light',
            'hl': 'pt-BR',
            'callback' : verifyCallback,
          });
        };
        </script>

        <!-- Facebook Pixel Code -->
        <script>
        !function(f,b,e,v,n,t,s)
        {if(f.fbq)return;n=f.fbq=function(){n.callMethod?
        n.callMethod.apply(n,arguments):n.queue.push(arguments)};
        if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
        n.queue=[];t=b.createElement(e);t.async=!0;
        t.src=v;s=b.getElementsByTagName(e)[0];
        s.parentNode.insertBefore(t,s)}(window,document,'script',
        'https://connect.facebook.net/en_US/fbevents.js');
        fbq('init', '508385106226818'); 
        fbq('track', 'PageView');
        </script>
        <noscript>
        <img height="1" width="1" 
        src="https://www.facebook.com/tr?id=508385106226818&ev=PageView
        &noscript=1"/>
        </noscript>
        <!-- End Facebook Pixel Code -->

        <!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-KX48Z3');</script>
<!-- End Google Tag Manager -->

<script>!function(){var a=window.pipz=window.pipz||[];if(!a.initialize)if(a.invoked)window.console&&console.error&&console.error('Snippet included twice.');else{a.invoked=!0;a.methods='formIdentify pageview reset identify track ready page once off on'.split(' ');a.factory=function(c){return function(){var b=Array.prototype.slice.call(arguments);b.unshift(c);a.push(b);return a}};for(var c=0;c<a.methods.length;c++){var d=a.methods[c];a[d]=a.factory(d)}a.load=function(c){var b=document.createElement('script');b.type='text/javascript';b.async=!0;var d=document.getElementsByTagName('script')[0];d.parentNode.insertBefore(b,d);b.onload=function(){a=window.pipz;a.initialize({'eCentrack.io':{apiKey:c}},{plan:{track:{}}});};b.src='//loader.pipz.io/v1/1468.87eacfa7/pipz.min.js'};a.SNIPPET_VERSION='4.0.0';a.load('5b5273889df6fffe146840')}}();</script>
<script>
window.pipzSettings = { enable_chat: true }
</script>

<!-- Hotjar Tracking Code for www.silviosande.com.br -->
<!-- <script>
    (function(h,o,t,j,a,r){
        h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
        h._hjSettings={hjid:870351,hjsv:6};
        a=o.getElementsByTagName('head')[0];
        r=o.createElement('script');r.async=1;
        r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
        a.appendChild(r);
    })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');
</script> -->

<!-- Pushcrew -->
<!-- <script type="text/javascript">
    (function(p,u,s,h){
        p._pcq=p._pcq||[];
        p._pcq.push(['_currentTime',Date.now()]);
        s=u.createElement('script');
        s.type='text/javascript';
        s.async=true;
        s.src='https://cdn.pushcrew.com/js/26fba8f7bceb18dc48dd63e975a9a087.js';
        h=u.getElementsByTagName('script')[0];
        h.parentNode.insertBefore(s,h);
    })(window,document);
</script> -->
<script src="https://app.roletando.com.br/scripts/5a9d57be3658038772309d063cc61cba.js" ></script>
    </head>
    <body ng-controller="AtitudeController">

        <div id="fb-root"></div>
        <script>
        </script>

        <!-- header -->
        <!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KX48Z3"
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->

<script type="application/ld+json">{"@context":"http://schema.org","@type":"Blog","url":"https://www.silviosande.com.br/blog"}</script><script type="application/ld+json">{"@context":"http://schema.org","@type":"Organization","name":"Portal Silvio Sande","url":"http://www.silviosande.com.br","sameAs":["https://www.facebook.com/silvio.sande/"]}</script>

<div id="header">
    <!-- HEADER ALUNO -->
    <div class="top-bar" ng-hide="!logado" ng-cloak>
      <div class="container">
          <div class="row">

            <a href="https://www.silviosande.com.br/area-do-aluno/mensagens-e-alertas" class="btn-mensagens"><span class="icon-png mensagens"></span> <!--<span class="badge" ng-show="mensagens.length">{{ mensagens.length }}</span> --></a>

            <a href="https://www.silviosande.com.br/area-do-aluno/logoff" class="categoria">Sair</a>
            <a href="https://www.silviosande.com.br/area-do-aluno/meus-cursos" class="aluno"><div class="profile-circle" style="background-color:rgba(0,0,0,.2); background-image:url(https://www.silviosande.com.br/uploads/Alunos/200/{{ usuario.foto }})"></div> {{ usuario.nome_completo }}</a>

            <div class="top-search-aluno">
              <form class="searchbox" data-search-form action="https://www.silviosande.com.br/cursos" method="get">
                  <input type="search" placeholder="Buscar cursos..." name="busca" class="searchbox-input" required>
                  <input type="submit" class="searchbox-submit">
                  <span class="searchbox-icon glyphicon glyphicon-search" aria-hidden="true"></span>
              </form>
            </div>
         </div>
      </div>
    </div>

    <!-- HEADER NAO ALUNO -->
    <div class="top-bar" ng-hide="logado">
        <div class="container">
            <div class="row">
                <nav class="navbar navbar-top">
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse-top" aria-expanded="false">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        </button>
                    </div>

                    <!-- Collect the nav links, forms, and other content for toggling -->
                    <div class="collapse navbar-collapse" id="navbar-collapse-top">
                        <ul class="nav navbar-nav">
                            <li class="active"><a href="https://www.silviosande.com.br/sobre/como-funciona">COMO FUNCIONA</a></li>
                            <li><a href="https://www.silviosande.com.br/sobre/descontos">DESCONTOS</a></li>
                            <li><a href="https://www.silviosande.com.br/sobre/perguntas-frequentes">PERGUNTAS FREQUENTES</a></li>
                            <li><a href="https://www.silviosande.com.br/contato">CONTATO</a></li>
                        </ul>
                    </div>
                    <!-- /.navbar-collapse -->
                </nav>
                <a href="https://www.silviosande.com.br/area-do-aluno/cadastro" class="btn btn-registrar" role="button">CADASTRAR</a>
                <div class="btn-group login">
                    <button type="button" class="btn btn-area-aluno dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                    ÁREA DO ALUNO
                    </button>
                    <div class="dropdown-menu dropdown-menu-right">
                        <div class="arrow-up-outline">
                            <div class="in"></div>
                            <div class="out"></div>
                        </div>
                        <h4 class="ttl-login">LOGIN</h4>
                        <form name="login" novalidate class="css-form navbar-form">
                            <div class="form-group login">
                                <input type="text" ng-model="usuario_login" class="form-control" placeholder="Email" required>
                                <input type="password" ng-model="senha_login" class="form-control" placeholder="Senha" required>
                                <button type="button" ng-disabled="!login.$valid" ng-click="efetua_login()" class="btn btn-login">ENTRAR</button>
                            </div>
                            <a ng-click="recupera_senha()">Esqueci minha senha</a><br>
                            Não é cadastrado? <a href="https://www.silviosande.com.br/area-do-aluno/cadastro">Clique aqui</a>
                        </form>
                    </div>
                </div>

                <div class="top-search hidden-md hidden-lg hidden-sm">
                    <form class="searchbox" action="https://www.silviosande.com.br/cursos" method="get">
                      <input type="search" placeholder="Buscar cursos..." name="busca" class="searchbox-input" required>
                      <input type="submit" class="searchbox-submit" ng-click="track()">
                      <span class="searchbox-icon icon-md glyphicon glyphicon-search hidden-xs" aria-hidden="true"></span>
                      <span class="searchbox-icon glyphicon glyphicon-search hidden-md hidden-sm hidden-lg" aria-hidden="true"></span>
                  </form>
                </div>

                <a href="https://wa.me/5571999437655" target="_blank" class="btn btn-whatsapp hidden-xs" style="" role="button">
                    WHATSAPP
                    <img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43NDcsMC0xNS4wMjUtMS45OC0yMS4zNTctNS40NTVMMCw5MGw3Ljk3NS0yMy41MjIgICBjLTQuMDIzLTYuNjA2LTYuMzQtMTQuMzU0LTYuMzQtMjIuNjM3QzEuNjM1LDE5LjYyOCwyMS40MTYsMCw0NS44MTgsMEM3MC4yMjMsMCw5MCwxOS42MjgsOTAsNDMuODQxeiBNNDUuODE4LDYuOTgyICAgYy0yMC40ODQsMC0zNy4xNDYsMTYuNTM1LTM3LjE0NiwzNi44NTljMCw4LjA2NSwyLjYyOSwxNS41MzQsNy4wNzYsMjEuNjFMMTEuMTA3LDc5LjE0bDE0LjI3NS00LjUzNyAgIGM1Ljg2NSwzLjg1MSwxMi44OTEsNi4wOTcsMjAuNDM3LDYuMDk3YzIwLjQ4MSwwLDM3LjE0Ni0xNi41MzMsMzcuMTQ2LTM2Ljg1N1M2Ni4zMDEsNi45ODIsNDUuODE4LDYuOTgyeiBNNjguMTI5LDUzLjkzOCAgIGMtMC4yNzMtMC40NDctMC45OTQtMC43MTctMi4wNzYtMS4yNTRjLTEuMDg0LTAuNTM3LTYuNDEtMy4xMzgtNy40LTMuNDk1Yy0wLjk5My0wLjM1OC0xLjcxNy0wLjUzOC0yLjQzOCwwLjUzNyAgIGMtMC43MjEsMS4wNzYtMi43OTcsMy40OTUtMy40Myw0LjIxMmMtMC42MzIsMC43MTktMS4yNjMsMC44MDktMi4zNDcsMC4yNzFjLTEuMDgyLTAuNTM3LTQuNTcxLTEuNjczLTguNzA4LTUuMzMzICAgYy0zLjIxOS0yLjg0OC01LjM5My02LjM2NC02LjAyNS03LjQ0MWMtMC42MzEtMS4wNzUtMC4wNjYtMS42NTYsMC40NzUtMi4xOTFjMC40ODgtMC40ODIsMS4wODQtMS4yNTUsMS42MjUtMS44ODIgICBjMC41NDMtMC42MjgsMC43MjMtMS4wNzUsMS4wODItMS43OTNjMC4zNjMtMC43MTcsMC4xODItMS4zNDQtMC4wOS0xLjg4M2MtMC4yNy0wLjUzNy0yLjQzOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" />
                </a>
                <a href="https://wa.me/5571999437655" target="_blank" class="btn btn-whatsapp hidden-sm hidden-md hidden-lg" style="" role="button">
                    <img src="data:image/svg+xml;utf8;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pgo8IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMTYuMC4wLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAgLS0+CjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+CjxzdmcgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4PSIwcHgiIHk9IjBweCIgd2lkdGg9IjUxMnB4IiBoZWlnaHQ9IjUxMnB4IiB2aWV3Qm94PSIwIDAgOTAgOTAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDkwIDkwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxnPgoJPHBhdGggaWQ9IldoYXRzQXBwIiBkPSJNOTAsNDMuODQxYzAsMjQuMjEzLTE5Ljc3OSw0My44NDEtNDQuMTgyLDQzLjg0MWMtNy43NDcsMC0xNS4wMjUtMS45OC0yMS4zNTctNS40NTVMMCw5MGw3Ljk3NS0yMy41MjIgICBjLTQuMDIzLTYuNjA2LTYuMzQtMTQuMzU0LTYuMzQtMjIuNjM3QzEuNjM1LDE5LjYyOCwyMS40MTYsMCw0NS44MTgsMEM3MC4yMjMsMCw5MCwxOS42MjgsOTAsNDMuODQxeiBNNDUuODE4LDYuOTgyICAgYy0yMC40ODQsMC0zNy4xNDYsMTYuNTM1LTM3LjE0NiwzNi44NTljMCw4LjA2NSwyLjYyOSwxNS41MzQsNy4wNzYsMjEuNjFMMTEuMTA3LDc5LjE0bDE0LjI3NS00LjUzNyAgIGM1Ljg2NSwzLjg1MSwxMi44OTEsNi4wOTcsMjAuNDM3LDYuMDk3YzIwLjQ4MSwwLDM3LjE0Ni0xNi41MzMsMzcuMTQ2LTM2Ljg1N1M2Ni4zMDEsNi45ODIsNDUuODE4LDYuOTgyeiBNNjguMTI5LDUzLjkzOCAgIGMtMC4yNzMtMC40NDctMC45OTQtMC43MTctMi4wNzYtMS4yNTRjLTEuMDg0LTAuNTM3LTYuNDEtMy4xMzgtNy40LTMuNDk1Yy0wLjk5My0wLjM1OC0xLjcxNy0wLjUzOC0yLjQzOCwwLjUzNyAgIGMtMC43MjEsMS4wNzYtMi43OTcsMy40OTUtMy40Myw0LjIxMmMtMC42MzIsMC43MTktMS4yNjMsMC44MDktMi4zNDcsMC4yNzFjLTEuMDgyLTAuNTM3LTQuNTcxLTEuNjczLTguNzA4LTUuMzMzICAgYy0zLjIxOS0yLjg0OC01LjM5My02LjM2NC02LjAyNS03LjQ0MWMtMC42MzEtMS4wNzUtMC4wNjYtMS42NTYsMC40NzUtMi4xOTFjMC40ODgtMC40ODIsMS4wODQtMS4yNTUsMS42MjUtMS44ODIgICBjMC41NDMtMC42MjgsMC43MjMtMS4wNzUsMS4wODItMS43OTNjMC4zNjMtMC43MTcsMC4xODItMS4zNDQtMC4wOS0xLjg4M2MtMC4yNy0wLjUzNy0yLjQzOC01LjgyNS0zLjM0LTcuOTc3ICAgYy0wLjkwMi0yLjE1LTEuODAzLTEuNzkyLTIuNDM2LTEuNzkyYy0wLjYzMSwwLTEuMzU0LTAuMDktMi4wNzYtMC4wOWMtMC43MjIsMC0xLjg5NiwwLjI2OS0yLjg4OSwxLjM0NCAgIGMtMC45OTIsMS4wNzYtMy43ODksMy42NzYtMy43ODksOC45NjNjMCw1LjI4OCwzLjg3OSwxMC4zOTcsNC40MjIsMTEuMTEzYzAuNTQxLDAuNzE2LDcuNDksMTEuOTIsMTguNSwxNi4yMjMgICBDNTguMiw2NS43NzEsNTguMiw2NC4zMzYsNjAuMTg2LDY0LjE1NmMxLjk4NC0wLjE3OSw2LjQwNi0yLjU5OSw3LjMxMi01LjEwN0M2OC4zOTgsNTYuNTM3LDY4LjM5OCw1NC4zODYsNjguMTI5LDUzLjkzOHoiIGZpbGw9IiNGRkZGRkYiLz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8Zz4KPC9nPgo8L3N2Zz4K" />
                </a>
            </div>
        </div>
    </div>

    <div class="container">
        <div class="row">
            <!-- Logo normal -->
            <div class="col-md-12">
                <div class="header-flex">
                    <h1 class="logo"><a href="https://www.silviosande.com.br/">Logo</a></h1>

                    <form class="hidden-xs" method="get" action="https://www.silviosande.com.br/cursos" style="position: relative;">
                        <div class="search-box-container">
                            <input placeholder="Busque seu curso aqui..." name="busca" class="form-control" type="text" required>
                            <i class="fa fa-search" aria-hidden="true" style=""></i>
                        </div>
                        <input style="margin: 0px;" type="submit" class="btn" value="Buscar">

                    </form>
                    <div class="right-wing hidden-xs">
                        <a href="/carrinho" class="text-right">
                            <i class="glyphicon glyphicon-shopping-cart" style="position: relative;" aria-hidden="true">

                                <span class="badge badge-warning" ng-cloak>
                                    {{ carrinho.itens.length }}</span>
                            </i>

                            <span style="font-size: 12px;">cursos no carrinho</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
        <!-- /header -->
        <!-- navbar -->
        <nav class="navbar navbar-menu" role="navigation">
    <div class="container">
        <div class="row">
            <!-- <div class="col-md-12"> -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar-collapse-main"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
                </div>
                <div class="collapse navbar-collapse" id="navbar-collapse-main">
                    <ul class="nav navbar-nav navbar-left">
                        <li><a href="https://www.silviosande.com.br/" class="menu-home"><span class="show-hide">Home</span></a></li>
                        <li class="dropdown">
                            <a href="javascript:void(0);" class="dropdown-toggle menu-cursos" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Cursos Em Vídeo</a>
                            <ul class="dropdown-menu">
                                <li><a href="https://www.silviosande.com.br/cursos/concurso">Cursos por concurso</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/materia">Cursos por matéria</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/professor">Cursos por professor</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/area">Cursos por área</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/todos">Todos os cursos</a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="javascript:void(0);" class="dropdown-toggle menu-cursos-pdf" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Cursos Em PDF</a>
                            <ul class="dropdown-menu">
                                <li><a href="https://www.silviosande.com.br/cursos/concurso?filtro=pdf">Cursos por concurso</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/materia?filtro=pdf">Cursos por matéria</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/professor?filtro=pdf">Cursos por professor</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/area?filtro=pdf">Cursos por área</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/cursos/todos?filtro=pdf">Todos os cursos</a></li>
                            </ul>
                        </li>
												<li class="dropdown">
                            <a href="javascript:void(0);" class="dropdown-toggle menu-depoimentos" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Simulados</a>
                            <ul class="dropdown-menu">
                                <li><a href="https://www.silviosande.com.br/simulados/concurso">Simulados por concurso</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/simulados/area">Simulados por área</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/simulados/todos">Todos os Simulados</a></li>
                            </ul>
                        </li>
                        <li class="dropdown">
                            <a href="javascript:void(0);" class="dropdown-toggle menu-coaching" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Coaching</a>
                            <ul class="dropdown-menu">
                                <li><a href="https://www.silviosande.com.br/coaching">O que é?</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/coaching/ssupercoaching">SSUPERCOACHING</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/coaching/coaching-para-fiscal">COACHING FISCAL</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/coaching/coaching-para-area-de-controle">COACHING CONTROLE</a></li>
                                <!-- <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/coaching/coaching-para-tribunal">COACHING TRIBUNAL</a></li> -->
                                <li role="separator" class="divider"></li>
                                <li><a href="https://www.silviosande.com.br/coaching/coaching-para-policial">COACHING POLICIAL</a></li>
                            </ul>
                        </li>
                        <li><a href="https://www.silviosande.com.br/professores" class="menu-professores">Professores</a></li>
                        <li><a href="https://www.silviosande.com.br/materiais-gratuitos" class="menu-gratis">Conteúdos Gratuitos</a></li>
                        <li><a href="https://www.silviosande.com.br/blog" class="menu-blog">Blog</a></li>
                        <li><a href="https://www.silviosande.com.br/aulas-ao-vivo" class="menu-trabalhe-conosco">Aulas Ao Vivo</a></li>
                    </ul>
                </div>

                <div class="menu-cart hidden-md hidden-lg hidden-sm"><a href="https://www.silviosande.com.br/carrinho"><span ng-show="carrinho.itens.length" class="badge" ng-cloak>{{ carrinho.itens.length }}</span></a></div>
                <!-- <div class="menu-mail"><a href="https://www.silviosande.com.br/contato"></a></div> -->
            <!-- </div> -->
        </div>
    </div>
</nav>
        <!-- /navbar -->
        <!-- Body Content -->
        <div id="content">
            <div class="container">
                <!-- Home Carousel -->
                <div id="homeCarousel" class="carousel slide" data-ride="carousel">
                    <!-- Indicators -->
                    <ol class="carousel-indicators">
                                            </ol>
                    <!-- Images -->
                    <div class="carousel-inner lazyFeaturedSlider" role="listbox">
                                            </div>
                    <!-- Left and right controls -->
                    <a class="left carousel-control" href="#homeCarousel" role="button" data-slide="prev">
                    <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
                    <span class="sr-only">Previous</span>
                    </a>
                    <a class="right carousel-control" href="#homeCarousel" role="button" data-slide="next">
                    <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
                    <span class="sr-only">Next</span>
                    </a>
                </div>
                <!-- /Home Carousel -->
            </div>
            <!-- Slider Cursos -->
            <div id="slider-course" class="container">
                <div class="row">
                    <div class="col-md-12">
                        <div style="width: 100%;display: flex;">
                            <div style="background-position: left center; background-image: url('assets/site/img/div-separator.png');flex-grow: 1;background-repeat: no-repeat; -moz-transform: scaleX(-1);-o-transform: scaleX(-1);-webkit-transform: scaleX(-1);transform: scaleX(-1);filter: FlipH;-ms-filter: 'FlipH';">&nbsp;</div>
                            <div style="margin: 0px 10px;text-transform: uppercase;font-weight: bold;min-width:140px;">
                                <span style="font-weight: bold;color: #00a9a3;font-size: 20px;">Cursos em Destaque</span>
                            </div>
                            <div style="background-position: left center;background-image: url('assets/site/img/div-separator.png');flex-grow: 1;background-repeat: no-repeat;">&nbsp;</div>
                        </div>
                    </div>
                </div>
                <div class="row" style="margin: 25px;">
                    <div class="col-md-12 text-center">
                        <span style="color: #989a99;">Todo dia nós selecionamos os melhores cursos para ajudar você na sua aprovação.</span>
                    </div>
                </div>
                <div class="row">
                                                        <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="TCU" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Concursos/551bc6d1af610ab073c2ad54777a2acc.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        TCU 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">A partir de 54,00</span>
                                <a href="/cursos/concurso/tcu-1" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="RECEITA FEDERAL" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Concursos/94ebe4437a57b0972f22a5ac409b5b69.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        RECEITA FEDERAL 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">A partir de 50,00</span>
                                <a href="/cursos/concurso/receita-federal-1" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="TCDF" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Concursos/5b589736c106b7710d7d15fdd0bdc395.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        TCDF 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">A partir de 54,00</span>
                                <a href="/cursos/concurso/tcdf" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="CPC Esquematizado - Curso Regular 2019" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/marcacfc.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        CPC Esquematizado - Curso Regular 2019 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 400,00</span>
                                <a href="/cursos/todos/cpc-esquematizado-curso-regular-2019" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="Contabilidade A a Z - Curso Regular" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/12-CONTABILIDADE.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        Contabilidade A a Z - Curso Regular 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 880,00</span>
                                <a href="/cursos/todos/contabilidade-a-a-z-curso-regular" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="Estatística - Curso Regular" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/estatistica2.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        Estatística - Curso Regular 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 360,00</span>
                                <a href="/cursos/todos/estatistica-curso-regular" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="Licitações e Contratos - Curso Regular" onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/licitacoesmarca.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        Licitações e Contratos - Curso Regular 
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 135,00</span>
                                <a href="/cursos/todos/licitacoes-e-contratos-curso-regular" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="Contabilidade Geral -  PF " onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/pf3.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        Contabilidade Geral -  PF  
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 450,00</span>
                                <a href="/cursos/todos/contabilidade-geral-pf" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                                            <div class="col-md-4">
                        <div style="width: 100%;margin-bottom: 20px;">
                            <div class="featured-image" style="width: 100%;position: relative;">
                                <img alt="Informática  - PF " onError="this.onerror=null;this.src='/assets/site/img/placeholder-destaque.png';" class="lazy" data-src="uploads/Cursos/pf10.jpg" style="width: 100%;max-height: 169px;" />
                                <div style="width: 100%; height: 100%; display: flex; top: 0px; left: 0px;position: absolute;justify-content: center; align-items: center;">
                                    <span style="text-align: center; max-width: 80%;background-color: #00a9a3a1;padding: 10px;color: #FFFFFF;text-transform: uppercase;font-size: 26px; font-weight: bold;">
                                        Informática  - PF  
                                    </span>
                                </div>
                            </div>
                            <div class="featured-text" style="align-items: center;background-color: #00a9a3;width: 100%;display: flex;padding: 15px;">
                                <span style="flex-grow: 1;color: #FFFFFF;font-size: 16px;text-transform:  uppercase;">Por R$ 390,00</span>
                                <a href="/cursos/todos/informatica-pf" style="border-radius: 5px;flex-grow: 0;padding: 5px 8px;background-color: #FFFFFF;color: #00a9a3 ;">SAIBA MAIS</a>
                            </div>
                        </div>
                    </div>
                                    </div>
            </div>

            <!-- BLOG -->
            <div class="blog-container container">
                <div style="width: 100%; background-color: red;margin: 0px;">
                    <div class="block-blog">
                        <div class="container-fluid" style="background-color: #F0F0F0;padding: 20px;min-height: 315px;">
                            <div class="row">
                                <div class="col-md-12 text-center" style="margin-top: 30px;">
                                    <div style="width: 100%;display: flex;">
                                        <div style="background-position: left center; background-image: url('assets/site/img/div-separator.png');flex-grow: 1;background-repeat: no-repeat; -moz-transform: scaleX(-1);-o-transform: scaleX(-1);-webkit-transform: scaleX(-1);transform: scaleX(-1);filter: FlipH;-ms-filter: 'FlipH';">&nbsp;</div>
                                        <div style="margin: 0px 10px;text-transform: uppercase;font-weight: bold;min-width:140px;">
                                            <span style="font-weight: bold;color: #7e7e7e;font-size: 20px;">Blog</span>
                                        </div>
                                        <div style="background-position: left center;background-image: url('assets/site/img/div-separator.png');flex-grow: 1;background-repeat: no-repeat;">&nbsp;</div>
                                    </div>
                                </div>
                            </div>

                            <div class="row">
                                <div class="col-md-12 text-center" style="margin: 30px 0px;">
                                    <span>Informações atualizadas, dicas, tudo sobre o mundo dos concursos.</span>
                                </div>
                            </div>

                            <div class="row">
                                <div style="padding: 0px 30px;">
                                
                                                                    <div class="col-md-12" style="margin-bottom: 25px;">
                                        <div>
                                            <div style="display: flex;">
                                                <div style="min-width: 22px;max-width: 22px;">
                                                    <img alt="Ícone decorativo simbolizando uma flâmula."  style="width: 100%;" src="https://www.silviosande.com.br/assets/site/img/ic_pennant.png" />
                                                </div>
                                                <div style="flex: item;flex-grow: 1;padding-left: 8px;line-height:1em;">
                                                    <span style="text-transform: uppercase;font-size: 14px;font-weight: bold;">
                                                        Edital do concurso para o TCE SC é previsto para                                                     </span><br />
                                                    <span style="text-transform: uppercase;font-size: 12px;">Postado em 20/12/2019</span>
                                                    <p style="font-size: 14px;margin-top: 10px;line-height:15px;margin-bottom:14px;">O presidente do Tribunal de Contas do Estado de Santa
Catarina (TCE SC) anunciou que o próximo concurso do órgão vai ofertar 40 vagas
para Auditor de Controle Externo. A previsão é de que o edita... <a href="/blog/edital-do-concurso-para-o-tce-sc-e-previsto-para-2020">LEIA MAIS</a></p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                                                </div>
                            </div>
                        </div>
                    </div>

                    <div class="block-video">
                        <iframe width="100%" height="315" style="margin: 0px;" class="lazy" data-src="https://www.youtube.com/embed/C3i66CLdH8E?rel=0" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
                    </div>

                </div>
            </div>

            <!-- DIFERENCIAIS -->
            <div id="home-diferenciais" class="container" style="margin-top: 55px;">
                <div class="row">
                    <div class="col-md-12 text-center">
                        <ul class="list-inline">
                            <li>
                                <a href="https://www.silviosande.com.br/cursos/todos">
                                    <img alt="Ícone simbolizando botão de play." class="lazy" data-src="assets/site/img/icons/ic_play.png" /><br />
                                    <span>Videoaulas</span>
                                </a>
                            </li>
                            <li>
                                <a href="https://www.silviosande.com.br/simulados">
                                    <img alt="Ícone simbolizando simulados." class="lazy" data-src="assets/site/img/icons/ic_simulado.png" /><br />
                                    <span>Simulados</span>
                                </a>
                            </li>
                            <li>
                                <a href="https://www.silviosande.com.br/cursos/todos?filtro=pdf">
                                    <img alt="Ícone simbolizando cursos em PDF." class="lazy" data-src="assets/site/img/icons/ic_pdf.png" /><br />
                                    <span>Cursos em PDF</span>
                                </a>
                            </li>
                            <li>
                                <a href="https://www.silviosande.com.br/cursos/todos">
                                    <img alt="Ícone simbolizando um alvo." class="lazy" data-src="assets/site/img/icons/ic_alvo.png" /><br />
                                    <span>Foco no Edital</span>
                                </a>
                            </li>
                            <li>
                                <a href="https://www.silviosande.com.br/coaching/ssupercoaching">
                                    <img alt="Ícone simbolizando a análise de resultados." class="lazy" data-src="assets/site/img/icons/ic_analytics.png" /><br />
                                    <span>Coaching</span>
                                </a>
                            </li>
                        </ul>
                        
                    </div>
                </div>
            </div>

            <!-- CURSO -->
            <div class="container">
                <div class="row">
                </div>
                <!-- /row -->
                <div class="spacer"></div>
                <div class="row m-bot-10">
                    <h2 class="text-center m-bot-6">NÃO ENCONTROU O CURSO QUE GOSTARIA DE FAZER?</h2>
                    <p class="text-center">Informe abaixo para que possamos mantê-lo(a) informado(a).</p>
                </div>
                <form role="form" name="TagFormDesejado" form-curso-desejado>
                <div class="row">
                  <div class="col-md-3 form-group"><input required ng-model="formDesejado.nome" name="nome" type="text" class="form-control" placeholder="Informe seu nome"></div>
                  <div class="col-md-3 form-group"><input required ng-model="formDesejado.email" name="email" type="email" class="form-control" placeholder="Informe seu email"></div>
                  <div class="col-md-3 form-group"><input required ng-model="formDesejado.curso" name="curso" type="text" class="form-control" placeholder="Informe o curso/concurso"></div>
                  <div class="col-md-3 form-group"><button type="submit" class="btn" >ENVIAR</button></div>
                </div>
                <div class="row">
                  <div class="col-md-offset-9 col-md-3 text-center campo-req">
                    *Todos os campos são obrigatórios.
                  </div>
                </div>
                </form>
            </div>

            <!-- FACEBOOK -->
            <div class="container">
                <!-- /row -->
                <div class="row">
                    <div class="col-md-4 facebookContainer">
                        <h2>SILVIO SANDE NO FACEBOOK</h2>
                        <div class="fb-page" data-href="https://www.facebook.com/silviosande" data-tabs="timeline" data-height="350px" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true">
                            <div class="fb-xfbml-parse-ignore">
                                <blockquote cite="https://www.facebook.com/silviosande"><a href="https://www.facebook.com/silviosande">Facebook</a></blockquote>
                            </div>
                        </div>
                    </div>
                    <div class="col-md-8 ">
                        <h2 class="text-center">COMO OS ALUNOS AVALIAM NOSSOS CURSOS</h2>
                        <div class="carousel slide" data-ride="carousel" id="quote-carousel">
                            <!-- Bottom Carousel Indicators -->
                            <ol class="carousel-indicators">
                                <li data-target="#quote-carousel" data-slide-to="0" class="active"></li>
                                <li data-target="#quote-carousel" data-slide-to="1"></li>
                                <li data-target="#quote-carousel" data-slide-to="2"></li>
                                <li data-target="#quote-carousel" data-slide-to="3"></li>
                            </ol>
                            <!-- Carousel Slides / Quotes -->
                            <div class="carousel-inner">
                                                                                                <!-- Quote 1 -->
                                <div class="item  active ">
                                    <div class="row">
                                        <div class="col-sm-12">
                                                                                        <div class="profile-circle" style="background-image: url(https://www.silviosande.com.br/uploads/Depoimentos/depoimentos_51498778_PyiOi.jpg);"></div>
                                            <p class="nome">Jefferson de Souza Correia</p>
                                            <p class="txt">
                                                &Eacute; ineg&aacute;vel a import&acirc;ncia da disciplina de Contabilidade nos concursos para a &aacute;rea fiscal e a &aacute;rea de controle. Nessa disciplina o mestre Silvio Sande &eacute; a refer&ecirc;ncia para todos, iniciando a caminhada ou j&aacute; na reta final. Aproveitando o gancho, os ...                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                                                                <!-- Quote 1 -->
                                <div class="item ">
                                    <div class="row">
                                        <div class="col-sm-12">
                                                                                        <div class="profile-circle" style="background-image: url(https://www.silviosande.com.br/uploads/Depoimentos/10_11_41_35_ss.jpg);"></div>
                                            <p class="nome">Hélio Lima Estevão, Ribeirão Preto SP</p>
                                            <p class="txt">
                                                Fala, Galera! &Eacute; com bastante alegria que deixo aqui registrado o meu reconhecimento quanto a excel&ecirc;ncia dos materiais de contabilidade do Silvio Sande. Eu comecei a estudar em meados de 2014, tendo como objetivo a &aacute;rea de auditoria fiscal. No in&iacute;cio eu estudava todas as di...                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                                                                <!-- Quote 1 -->
                                <div class="item ">
                                    <div class="row">
                                        <div class="col-sm-12">
                                                                                        <div class="profile-circle" style="background-image: url(https://www.silviosande.com.br/uploads/Depoimentos/10-11-38-24-img-20160502-090129147.jpg);"></div>
                                            <p class="nome">Paulla Suylane, Maceió Alagoas</p>
                                            <p class="txt">
                                                Inicio meu depoimento dizendo: Deus no c&eacute;u e Silvio Sande na terra..rsrsrsr E a partir das pr&oacute;ximas linhas voc&ecirc;s saber&atilde;o o porqu&ecirc;! Sou Nutricionista de forma&ccedil;&atilde;o e tamb&eacute;m acabei fazendo uma Resid&ecirc;ncia na &aacute;rea durante dois anos. Por&ea...                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                                                                <!-- Quote 1 -->
                                <div class="item ">
                                    <div class="row">
                                        <div class="col-sm-12">
                                                                                        <div class="profile-circle" style="background-image: url(https://www.silviosande.com.br/uploads/Depoimentos/05-04-07-10-20150125-012225-1.jpg);"></div>
                                            <p class="nome">Thiago Castro</p>
                                            <p class="txt">
                                                Ol&aacute; pessoal, Meu nome &eacute; Thiago Castro, sou formado em Ci&ecirc;ncias Navais pela Escola Naval e servi &agrave; Marinha do Brasil por 11 anos. Embora tivesse estudado contabilidade na faculdade, eu n&atilde;o me sentia nem um pouco seguro quando vi o n&iacute;vel das quest&otilde;es cob...                                            </p>
                                        </div>
                                    </div>
                                </div>
                                                                                            </div>
                            <!-- /.carousel-inner -->
                        </div>
                        <!-- /#quote-carousel -->
                        <a href="https://www.silviosande.com.br/depoimentos" class="text-center text-uppercase center-block">ver todos os depoimentos</a>
                    </div>
                </div>
                <!-- /row -->
            </div>
            <!-- /container -->
        </div>

        <div id="divRecaptcha" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="Recaptcha">
          <div class="modal-dialog">
            <div class="modal-content">
              <div class="modal-header">
                  <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                  <h4 class="modal-title text-center" id="myModalLabel">VERIFICAÇÂO DE SEGURANÇA</h4>
              </div>
              <div class="model-body m-top-15">
                <div id="recaptcha"></div>
              </div>
            </div>
          </div>
        </div>

        <!-- /Body Content -->
        <!-- footer -->
        <footer>
    <div class="container">
        <div class="row">
            <div class="col-md-3 text-center">
                <div class="logo">
                    <a href="https://www.silviosande.com.br/"><img class="retina" src="/assets/site/img/logo-footer.png" alt="logo do portal"/></a>
                </div>
                <p class="endereco">
                    Av. Tancredo Neves, 2915 - Sala 603-604<br/>
                    Stiep, Salvador - Bahia<br/>
                    CEP: 41.820-021
                </p>
                <div id="footer-social-wrap">
                    <ul class="share-buttons">
                        <li><a href="https://www.facebook.com/silvio.sande/" target="_blank" title="Silvio Sande no Facebook"><span class="icon-png icon-facebook"></span></a></li>
<li><a href="https://www.instagram.com/silviosande/" target="_blank" title="Silvio Sande no Instagram"><span class="icon-png icon-instagram"></span></a></li>
<li><a href="https://www.youtube.com/user/silviosandenatelinha" target="_blank" title="Silvio Sande no YouTube"><span class="icon-png icon-youtube"></span></a></li>                    </ul>
                </div>
            </div>
            <div class="col-md-3 list">
                <h4>Portal Silvio Sande</h4>
                <ul class="nav">
                    <li role="presentation" class="active"><a href="/sobre/como-funciona">Saiba por que estudar no Silvio Sande</a></li>
                    <li role="presentation"><a href="/blog">Blog</a></li>
                    <li role="presentation"><a href="/sobre/programa-de-afiliados">Seja um Afiliado</a></li>
                    <li role="presentation"><a href="/sobre/descontos">Descontos e vantagens</a></li>
                    <li role="presentation"><a href="/sobre/como-adquirir">Como adquirir / Formas de pagamento</a></li>
                    <li role="presentation"><a href="/sobre/termos-de-uso">Termos de uso</a></li>
                    <li role="presentation"><a href="/trabalhe-conosco">Trabalhe Conosco</a></li>
                </ul>
            </div>
            <div class="col-md-3 list">
                <h4>Nossos Cursos</h4>
                <ul class="nav">
                    <li role="presentation" class="active"><a href="/cursos/concurso">Cursos por concurso</a></li>
                    <li role="presentation"><a href="/professores">Professores</a></li>
                    <li role="presentation"><a href="/depoimentos">Depoimentos</a></li>
                    <li role="presentation"><a href="/sobre/certificados">Certificados</a></li>
                </ul>
            </div>
            <div class="col-md-3 atendimento">
                <h4>Contato</h4>
                <p>Whatsapp: (71) 99943-7655</p>
                <p class="email">E-mail: contato@silviosande.com.br</p>
                <a href="/contato" class="btn btn-fale-conosco">FALE CONOSCO <br>ENVIE UMA MENSAGEM</a>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 text-center">
                <img class="pagseguro retina lazy" data-src="/assets/site/img/rodape-pagarme.png" alt="Logotipos de meios de pagamento do PagSeguro" title="Este site aceita pagamentos com Visa, MasterCard, Diners, American Express, Hipercard, Aura, Bradesco, Itaú, Banco Real, Banco do Brasil, saldo em conta PagSeguro e boleto.">
            </div>
        </div>
    </div>
    <div class="bottom-footer">
        <div class="container">
            <div class="row">
                <div class="col-md-12 text-center">
                    <p>© 2019. Portal Silvio Sande. Todos os direitos reservados. CNPJ: 15.732.856/0001-29</p>
                </div>
            </div>
        </div>
    </div>
</footer>
        <!-- /footer -->
        <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
        <!--<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>-->
        <!-- Include all compiled plugins (below), or include individual files as needed -->
        <!--<script src="https://www.silviosande.com.br/assets/site/js/bootstrap.min.js"></script>-->
        <!-- custom js -->

        
<!-- <script type="text/javascript" src=
"https://stc.sandbox.pagseguro.uol.com.br/pagseguro/api/v2/checkout/pagseguro.directpayment.js">
</script> -->

<script src='https://www.google.com/recaptcha/api.js?onload=onloadCallbackRepk&render=explicit&hl=pt-BR' async defer></script>

<!-- Lazyload -->
<script>
	var lazyLoadInstances = [];

	window.lazyLoadOptions = [{
		elements_selector: ".lazyFeatured",
		skip_invisible: false
	}, {
		elements_selector: ".lazy"
	}, {
		elements_selector: ".facebookContainer",
			// When the .horzContainer div enters the viewport...
			callback_set: function(el) {
				(function(d, s, id) {
					var js, fjs = d.getElementsByTagName(s)[0];
					if (d.getElementById(id)) return;
					js = d.createElement(s); js.id = id;
					js.src = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.5";
					fjs.parentNode.insertBefore(js, fjs);
				}(document, 'script', 'facebook-jssdk'));
			}
	}];
</script>

<script async src="https://cdnjs.cloudflare.com/ajax/libs/vanilla-lazyload/8.9.0/lazyload.min.js"></script>

<!-- Vendor = bibliotecas de terceiros -->
<script src="https://www.silviosande.com.br/assets/site/js/vendor.js?v=2018062805"></script>

<!-- <script src="https://www.silviosande.com.br/dist/main.js"></script> -->

<style type="text/css">
  .css-form input.ng-invalid.ng-touched {
    border: 1px solid #FA787E !important;
  }

  .css-form input.ng-valid.ng-touched {
    border: 1px solid #ccc !important;
  }
</style>

<input type="file" onchange="upload('foto', 'Alunos')" name="foto" id="foto" style="position: absolute; top: -9999px; left: -9999px;" />

  <!-- Modal -->
<div class="modal fade" id="crop-imagem" tabindex="-1" role="dialog" aria-labelledby="CORTAR IMAGEM">

<div class="modal-dialog" role="document">
    <div class="modal-content">


        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title text-center" id="myModalLabel">CORTAR IMAGEM</h4>
        </div>
        <div class="modal-body m-top-15">
            <div class="crop"></div>

			<input class="display-none" type="text" id="upload_imagem" />
            <button id="button_cadastro" onclick="cortar()" type="button" class="btn">CORTAR</button>

        </div>
    </div>
</div>

</div>
<!-- /Modal -->

<script type="text/javascript">

	var base_url = 'https://www.silviosande.com.br/';

	function setFiltroAjax(parametro, value){
		$.ajax({
            url: base_url+'blog/setFiltro', method: 'POST',
            data: parametro+'='+value,
            success: function(){
              window.location = base_url + "blog";
            }
        })
	}

	function TestaCPF(strCPF) {

		var pattern = new RegExp('\\d+', 'g');
		var CPF = strCPF.match(pattern).join('');

		var Soma = 0;
		var Resto;

		var invalidos = _.range(0, 10).map(function(x) {
			var fictional = _.range(0, 11).fill(x).join('');
			return fictional;
		});

		if ( _.indexOf(invalidos, CPF) !== -1 ) {
			return false;
		}

		for (i=1; i<=9; i++) Soma = Soma + parseInt(CPF.substring(i-1, i)) * (11 - i);
		Resto = (Soma * 10) % 11;

			if ((Resto == 10) || (Resto == 11))  Resto = 0;
			if (Resto != parseInt(CPF.substring(9, 10)) ) return false;

		Soma = 0;
			for (i = 1; i <= 10; i++) Soma = Soma + parseInt(CPF.substring(i-1, i)) * (12 - i);
			Resto = (Soma * 10) % 11;

			if ((Resto == 10) || (Resto == 11))  Resto = 0;
			if (Resto != parseInt(CPF.substring(10, 11) ) ) return false;
			return true;
	}

	$(document).ready(function(){
		if($('input.cep').size()>0){ $('.cep').mask('99999-999'); }
		if($('input.cpf').size()>0){ $('.cpf').mask('999.999.999-99'); }
		if($('input.data').size()>0){ $('.data').mask('99/99/9999'); }
		if($('input.hora').size()>0){ $('.hora').mask('99:99'); }
		if($('input.telefone').size()>0){ $('.telefone').mask('(99) 9999-99999'); }
		if($('input.ddd').size()>0){ $('.ddd').mask('999'); }
		if($('input.telefone_contato').size()>0){ $('.telefone_contato').mask('9999-99999'); }

		$('.filtro').change(function(){
      var params = [];

      
      
      
      
      
      var key = $(this).attr('id');
      var value = $(this).val();

      if (params.length == 0) {
        params.push({name: key, value: value});
      } else {
        $(params).each(function(i) {
          if(params[i].name == key) {
            params[i].value = value;
          } else {
            if ((params.length - 1) == i) {
              params.push({name: key, value: value});
            }
          }
        });
      }

      $params = jQuery.param(params);
      window.location = 'https://www.silviosande.com.br/blog?' + $params;
		});

    $('.link-artigos').on('click', function(e) {
      e.preventDefault();
      e.stopPropagation();

      var data = $(this).data();

      setFiltroAjax('usuarios_id', data.id);
    });

		// $('.crop').croppie({
		//     viewport: {
		//         width: 200,
		//         height: 200,
		//         type: 'circle'
		//     },
		//     boundary: {
		//         width: 200,
		//         height: 200
		//     }
		// });
	});

    var app = angular.module('AtitudeApp', []);

		app.directive('validaCpf', function() {
			return {
				restrict: 'A',
				require: 'ngModel',
				link: function(scope, el, attr, ngModel) {
					ngModel.$parsers.unshift(function(value) {
						ngModel.$setValidity('cpf', TestaCPF(value));
						return value;
          });
				}
			}
		});

    app.directive('formCursoDesejado', function($http, $timeout) {
      return {
        restrict: 'A',
        link: function(scope, elem, attrs) {
          elem.find('button[type=submit]').on('click', function(e) {
            e.preventDefault();
            e.stopPropagation();

						if (
							scope.formDesejado.nome != "" &&
							scope.formDesejado.email != "" &&
							scope.formDesejado.curso != ""
						) {
							pipz.track('solicitou curso não cadastrado', {
								name: scope.formDesejado.nome,
								email: scope.formDesejado.email,
								curso: scope.formDesejado.curso
							});

							alert('Obrigado! Solicitação cadastrada com sucesso!')
						}
          });
        }
      }
    })

    app.directive('formContato', function($http) {
      return {
        restrict: 'A',
        link: function(scope, elem, attrs) {
          elem.find('button').on('click', function(e) {
            scope.formContato.feedback = false;

            var request = $http({
    						url: base_url+'welcome/formContato', method: 'POST',
    						data: $.param(scope.formContato),
    						headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
						});

            request.then(function(res) {
							scope.formContato.nome = null;
							scope.formContato.email = null;
							scope.formContato.ddd = null;
							scope.formContato.celular = null;
							scope.formContato.assunto = null;
							scope.formContato.mensagem = null;

              scope.formContato.feedback = "MENSAGEM ENVIADA COM SUCESSO!";
            }, function(err) {
              console.log(err)
            });
          });
        }
      }
    })

    app.directive('formTrabalheConosco', function($http) {
      return {
        restrict: 'A',
        link: function(scope, elem, attrs) {
					var file = null;

					elem.find('#file').bind('change', function(e) {
						scope.formTrabalheConosco.file = e.target.files[0];
						scope.formTrabalheConosco.filename = e.target.files[0].name;
						scope.$apply();
					})

					elem.find('button').on('click', function(e) {
						var formData = new FormData();

						angular.forEach(scope.formTrabalheConosco, function(value, key) {
								formData.append(key, value);
						});

						var request = $http({
							url: base_url+'welcome/formTrabalheConosco',
							method: 'POST',
							data: formData,
							transformRequest: angular.identity,
							headers: { 'Content-Type': undefined }
						});

						request.then(function(res) {
							scope.formTrabalheConosco.feedback = "CURRICULO ENVIADO COM SUCESSO!";
						}, function(err) {
							scope.formTrabalheConosco.feedback = "FALHA AO PROCESSAR ENVIO. TENTE NOVAMENTE.";
						});
          });
        }
      }
    })

    app.directive('back', ['$window', function($window) {
        return {
            restrict: 'A',
            link: function (scope, elem, attrs) {
                elem.bind('click', function () {
                    $window.history.back();
                });
            }
        };
    }]);

    app.directive('ngEnter', function() {
        return function(scope, element, attrs) {
            element.bind("keydown keypress", function(event) {
                if(event.which === 13) {
                    scope.$apply(function(){
                        scope.$eval(attrs.ngEnter, {'event': event});
                    });

                    event.preventDefault();
                }
            });
        };
    });

    app.filter('falta_categoria', function() {
	return function (item) {
	 	if(item < 50){
	  		return 50-item;
	  	} else if(item >= 50 && item < 500){
	  		return 500-item;

	  	} else if(item >= 500 && item < 1500){
	  		return 1500-item;

	  	} else if(item >= 1500 && item < 5000){
	  		return 5000-item;

	  	} else if(item >= 5000 && item < 15000){
	  		return 15000-item;

	  	} else if (item >= 15000){
	  		return 0;
	  	}
	};
	});

	app.filter('categoria', function() {
	return function (item) {
	 	if(item < 50){
	  		return "ATITUDE BASIC";
	  	} else if(item >= 50 && item < 500){
	  		return "ATITUDE SUPER";

	  	} else if(item >= 500 && item < 1500){
	  		return "ATITUDE HIPER";

	  	} else if(item >= 1500 && item < 5000){
	  		return "ATITUDE MEGA";

	  	} else if(item >= 5000 && item < 15000){
	  		return "ATITUDE ULTRA";

	  	} else if (item >= 15000){
	  		return "ATITUDE POWER";
	  	}
	};
	});

	app.filter("trust", ['$sce', function($sce) {
		return function(htmlCode){
			return $sce.trustAsHtml(htmlCode);
		}
	}]);

	app.filter('multiplicador', function() {
	return function (item) {
	  	if(item < 7){
	  		return "0"

	  	} else if(item >= 7 && item < 30){
	  		return "1,25"

	  	} else if(item >= 30 && item < 60){
	  		return "1,50"

	  	} else if(item >= 60 && item < 100){
	  		return "1,75"

	  	} else if(item >= 100 && item < 150){
	  		return "2"

	  	} else if(item >= 150 && item < 200){
	  		return "2,25"

	  	} else if(item >= 200){
	  		return "2,5"
	  	}
	};
	});

	app.filter('percentDias', function() {
	return function (item) {

	  	if(item < 7){
	  		return (item*18)/7

	  	} else if(item >= 7 && item < 30){
	  		return ((item*100)/200)+16

	  	} else if(item >= 30 && item < 60){
	  		return ((item*100)/200)+16

	  	} else if(item >= 60 && item < 100){
	  		return ((item*100)/200)+16

	  	} else if(item >= 100 && item < 150){
	  		return ((item*100)/200)+10

	  	} else if(item >= 150 && item < 200){
	  		return (((item*100)/200)+8 > 100 ? 100 : ((item*100)/200)+8)

	  	} else if(item >= 200){
	  		return 100
	  	}
	};
	});

	  app.filter('status_do_pagamento', function() {
	    return function (item) {

				switch (item) {
					case 1:
						return 'Processando Pagamento';
						break;
					
					case 2:
						return 'Aguardando pagamento';
						break;
					
					case 3:
						return 'Pagamento Confirmado';
						break;
				
					default:
						return 'Cancelado';
						break;
				}

	    };
	  });

		app.directive('productSuggestions', function($http, $timeout) {
			return {
        restrict: 'E',
        link: function(scope, elem, attrs) {

					var track = function(params) {
						var req = $http.post(`https://rs.conbuss.com/track`, JSON.stringify(params));
						return req;
					};

					var request = $http({
						url: `https://rs.conbuss.com/suggestions/${attrs.productId}`,
						method: 'GET'
					});

					var el = angular.element()

					request.then(function(res) {
						var html = '<hr /><div class="row product-suggestions"><div class="col-md-12"><h3>Estes produtos também podem te interessar:</h3></div>';
						html = html + '<div class="col-md-12">';

						res.data.forEach(function(product) {
							html = html + `<div class="product-suggestion">
								<a class="product-title" href="${product.permalink}"><span>${product.name}</span></a><br />
								<span class="badge">${product.category}</span><br />
								<a class="product-price" href="${product.permalink}"><span>Por: ${product.price}</span></a>
							</div>`;
						});

						html = html + '</div></div>';

						if ( res.data.length > 0 ) {
							elem.append(html);

							elem.find("a.product-title").on("click", function(e) {
								e.preventDefault();
								
								var element = e.currentTarget;
								var options = {
									event: 'target-clicked',
									target: element.href
								};
								
								track(options).then(function(res) {
									window.location  = element.href;
								}, function(err) {
									window.location  = element.href;
								});

								// $timeout(function() {
								// 	window.location  = element.href;
								// }, 300);
							});
						}
					}, function(err) {
						console.log(err);
					})

        //   elem.find('button').on('click', function(e) {
        //     scope.formContato.feedback = false;

        //     var request = $http({
    		// 				url: base_url+'welcome/formContato', method: 'POST',
    		// 				data: $.param(scope.formContato),
    		// 				headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
    		// 		});

        //     request.then(function(res) {
				// 			scope.formContato.nome = null;
				// 			scope.formContato.email = null;
				// 			scope.formContato.ddd = null;
				// 			scope.formContato.celular = null;
				// 			scope.formContato.assunto = null;
				// 			scope.formContato.mensagem = null;

        //       scope.formContato.feedback = "MENSAGEM ENVIADA COM SUCESSO!";
        //     }, function(err) {
        //       console.log(err)
        //     });
        //   });
        // }
      	}
      }
    });

    app.controller('AtitudeController', function($scope, $http, $filter, $timeout) {

			$scope.formTrabalheConosco = {};

    	$scope.duvidas = [];

    	$scope.carrinho = {"itens":[],"descontos":[],"valor_final":0,"valor_total":0,"valor_pago":0};

    	$scope.usuario = false;

      $scope.descontos = [];

      $scope.mensagem = function (id, internal) {

        $http({
          url: base_url+'areadoaluno/send_mensagem', method: 'POST',
          data: $.param({ id: id, topico: $('.Editor-editor').html(), internal: internal }),
          headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
        }).then(function (result){
          var retorno = result.data;
          if(retorno.salvou){
            window.location.reload();
          }
        });

        return;
      }

      $scope.editar_mensagem = function (id) {

        var html = $('#txtEditor' + id).Editor("getText");

        $http({
          url: base_url+'areadoaluno/editar_mensagem', method: 'POST',
          data: $.param({ id: id, topico: html }),
          headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
        }).then(function (result){
          var retorno = result.data;
          if(retorno.salvou){
            window.location.reload();
          }
        });

        return;
      }

      $scope.delete_mensagem = function (id) {

        $http({
          url: base_url+'areadoaluno/delete_mensagem', method: 'POST',
          data: $.param({ id: id }),
          headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
        }).then(function (result){
          var retorno = result.data;
          if(retorno.salvou){
            window.location.reload();
          }
        });

        return;
      }

			$scope.paymentMethod = null;
			$scope.paymentMethods = [
				{ name: "Cartão de Crédito", index: 0, state: false },
				{ name: "Cartão de Débito", index: 1, state: false },
				{ name: "Cartão de Boleto Bancário", index: 2, state: false },
			]

			$scope.setPaymentMethod = function($index) {
				$scope.paymentMethods.forEach(function(v) {
					v.state = false
				})
				$scope.paymentMethods[$index].state = true;		
				$scope.paymentMethod = $scope.paymentMethods[$index];
			}

			$scope.getStylePayment = function($index) {
				if ($scope.paymentMethods[$index].state) {
					return 'sprite-sprite-radio-1';
				} else {
					return 'sprite-sprite-radio-2';
				}
      }

      $scope.addParceria = function($index) {
        var new_value = !$scope.descontos[$index].state;
        // Desmarca Todos
        angular.forEach($scope.descontos, function(value, key) {
          $scope.descontos[key].state = false;
          $scope.carrinho.valor_final = 0;
        })

        $scope.descontos[$index].state = new_value;

        if (new_value == true) {
          var call_obj = {
            type: $scope.descontos[$index].type,
            id: $scope.descontos[$index].id
          };

          $http({
            url: base_url+'comprar/getDescontoParceiro', method: 'POST',
            data: $.param(call_obj),
            headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
          }).then(function (result){
            var retorno = result.data;
            $scope.carrinho.descontoParceria = retorno;
            $scope.carrinho.valor_final = $scope.carrinho.valor_final - retorno.valor;
          });
        } else {
          $scope.carrinho.descontoParceria = null;
          $scope.carrinho.valor_final = 0;
        }
			}			
			
			$scope.selectedDiscount = {
				type: null,
				id: null
			};

			$scope.selectDiscount = function(type, id) {
				if ($scope.selectedDiscount.type == type &&
						$scope.selectedDiscount.id == id) {

					$scope.resetDiscounts();

					$scope.selectedDiscount = {
						type: null,
						id: null 
					};
				} else {
					$scope.selectedDiscount = {
						type: type,
						id: id 
					};

					if(type == 1) {
						$scope.setDescontoLS();
					} else {
						$scope.resetDiscounts();
					}
				}
			}

			$scope.resetDiscounts = function() {
				$scope.carrinho.total_carrinho = $scope.carrinho.valor_pago;

				$scope.carrinho.cupom_message = null;
				$scope.cupom = null;
				$scope.carrinho.discount = {
					code: null
				};
			}

			$scope.setDescontoLS = function() {
				$scope.resetDiscounts();
				
				var valor_final = $scope.carrinho.valor_pago;
				$scope.carrinho.total_carrinho = valor_final * 0.70;
			}
			
      $scope.getStyle = function(type, id) {
				if ( $scope.selectedDiscount != null ) {
					if ($scope.selectedDiscount.type == type &&
						$scope.selectedDiscount.id == id) {
							return 'sprite-sprite-radio-1';
						} else {
							return 'sprite-sprite-radio-2';
						}
				} else {
					return 'sprite-sprite-radio-2';
				}
      }

    	if($scope.usuario.data_de_nascimento!=undefined){
    		$scope.usuario.data_de_nascimento = $filter('date')($scope.usuario.data_de_nascimento, 'dd/MM/yyyy');
    	}

    	$scope.indica = new Array();
    	$scope.indica[0] = false;
    	$scope.indica[1] = false;
    	$scope.indica[2] = false;

      $scope.descontoFidelidade = [];

    	$scope.verifica_aluno = function(c){

    		if($scope.emails_indica[c].length==0){
    			$scope.indica[c] = false;

    			if($scope.indica[c]){
			    	$('.success_'+c).removeClass('hide');
			    } else {
			    	$('.success_'+c).addClass('hide');
			    }

    		} else {

	    		$http({
	                url: base_url+'areadoaluno/verifica', method: 'POST',
	                data: $.param({ email : $scope.emails_indica[c] }),
	                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
	            }).then(function (result){
				    var retorno = result.data;

				    $scope.indica[c] = retorno.aluno;

				    if($scope.indica[c]){
				    	$('.success_'+c).removeClass('hide');
				    } else {
				    	$('.success_'+c).addClass('hide');
				    }
				});

        	}
    	};

    	$scope.solicitar_certificado = function(curso){
			$http({
                url: base_url+'areadoaluno/new_cert', method: 'POST',
                data: $.param({ cursos_id : curso }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){
			    var retorno = result.data;

			    if(retorno.salvou){
			    	window.location = 'https://www.silviosande.com.br/areadoaluno/certificados';
			    } else {
			    	alert(retorno.msg);
			    }

			});
		}

		$scope.setFiltro = function(parametro, value){
			$http({
                url: base_url+'blog/setFiltro', method: 'POST',
                data: eval('$.param({ '+parametro+': \''+value+'\' })'),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){
			    window.location = base_url + "blog";
			});
		}

    function setUrlEncoded() {

    }

		$scope.filter_text = function(texto){
      var params = [];

      params.push({name: 'texto', value: $('#texto').val()});

      
      
      
      $params = jQuery.param(params);
      window.location = 'https://www.silviosande.com.br/blog?' + $params;
		}

    $scope.setTag = function(tag){
      var params = [];

      params.push({name: 'tag', value: tag});

      
      
      
      
      $params = jQuery.param(params);
      window.location = 'https://www.silviosande.com.br/blog?' + $params;
		}

		$scope.filter_tag = function(tag){
			$scope.setFiltro('tag', tag);
		}

        $scope.logado = false;

        $scope.troca_senha = function(){

        	if($scope.nova_senha != $scope.nova_senha_repete){
        		alert('As senhas devem ser iguais!');
        		return
        	}

        	$http({
                url: base_url+'areadoaluno/troca_senha', method: 'POST',
                data: $.param({ senha: $scope.nova_senha, token: $scope.token_senha }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;
			    if(retorno.trocou){
			    	alert('Senha alterada com sucesso! Faça o login novamente!')

            window.location = base_url;
			    } else {
			    	alert('Token Inválido! Por favor entre em contato!')
			    }

			});

        }

        $scope.recupera_senha = function(id){
        	if($scope.usuario_login==undefined || $scope.usuario_login.length == 0){
        		alert('Para recuperar a senha digite o seu email!');
        		return
        	}

        	$http({
                url: base_url+'areadoaluno/recupera_senha', method: 'POST',
                data: $.param({ email: $scope.usuario_login }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;
			    if(retorno.enviou){
			    	alert('Verifique o seu email e siga as intruções para a troca de senha!')
			    }

			});
        }

        $scope.salva_avaliacao = function(curso){
        	$http({
                url: base_url+'areadoaluno/avaliacao_dos_cursos', method: 'POST',
                data: $.param({ cursos_id: curso, qualidade: $scope.qualidade, atendimento: $scope.qualidade, professor: $scope.professor, comentario: $scope.comentario }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;
			    if(retorno.avaliou){
			    	window.location.reload();
			    }

			});
        }

        $scope.coaching_deleta = function(pagina, id){
        	$http({
                url: base_url+'areadoaluno/delete_coaching/'+pagina, method: 'POST',
                data: $.param({ id: id }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;
			    if(retorno.excluiu){
			    	$('#id_'+id).remove()
			    }

			});
        }

        $scope.pergunta = function(id){
          $http({
            url: base_url+'areadoaluno/pergunta', method: 'POST',
            data: $.param({ id: id, topico: $('.Editor-editor').html() }),
            headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
          }).then(function (result){
            var retorno = result.data;
            if(retorno.salvou){
              window.location.reload();
            }
          });
        }

				$scope.recurso = function($prova){
          $http({
            url: base_url+'areadoaluno/recurso', method: 'POST',
            data: $.param({ id: $prova, recurso: $('.Editor-editor').html() }),
            headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
          }).then(function (result){
						if ( result.data == 1) {
							alert('Recurso enviado com sucesso!');
							$('#enviar-duvida').modal('hide');
						} else {
							alert('Falha ao enviar recurso.');
						}
            // var retorno = result.data;
						
            // if(retorno.salvou){
            //   alert('Recurso enviado com sucesso!');
            // }
          });
        }

        $scope.pagamento = function(){

          $scope.carregandoPagamento = true;

        	$http({
                url: base_url+'comprar/getUrlPagamento', method: 'POST',
                data: $.param({ }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){
			    var retorno = result.data;
			    if(retorno.sucesso){
			    	window.location = retorno.url;
			    } else {
            $scope.carregandoPagamento = false;
			    	alert(retorno.url);
			    }
			});
        };

				$scope.certificado = {
					loading: false,
					status: null,
					data: null,
					codigo: null
				}

				$scope.efetua_verificaoCertificado = function() {
					console.log($scope.certificado.codigo);

					$scope.certificado.loading = true;

					$http({
            url: base_url+'welcome/validar_certificado', method: 'POST',
            data: $.param({ codigo: $scope.certificado.codigo }),
            headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
          }).then(function (result){
						$scope.certificado.status = result.data.status;
						$scope.certificado.loading = false;
						$scope.certificado.data = result.data.data;
          });
				};


      //  TODO: Alterar para envio de mensagem no coaching
      //   $scope.pergunta = function(id){
      //   	$http({
      //           url: base_url+'areadoaluno/mensagem', method: 'POST',
      //           data: $.param({ mensagem: $('.Editor-editor').html() }),
      //           headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
      //       }).then(function (result){
      //
			//     var retorno = result.data;
			//     if(retorno.salvou){
			//     	window.location.reload();
			//     }
      //
			// });
      //   }

        $scope.addCarrinho = function(tipo, id, desconto_especial, desconto_item_id){
        	$http({
						url: base_url+'comprar/addCarrinho', method: 'POST',
						data: $.param({ tipo_item: tipo, id: id, desconto_especial: desconto_especial, desconto_item_id: desconto_item_id }),
						headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
					}).then(function (result){
						var retorno = result.data;
						var product = result.data.product;
						pipz.track('Product Added', product);

						$timeout(function() {
							if(retorno.adicionou){
								$scope.carrinho = retorno.carrinho;
								window.location = base_url + 'comprar/carrinho';
							}
						}, 1000);
					});
        }

        $scope.removeCarrinho = function(id){
        	$http({
                url: base_url+'comprar/removeCarrinho', method: 'POST',
                data: $.param({ id: id }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

						var retorno = result.data;
						var product = result.data.product;
						pipz.track('Product Removed', product);

						$timeout(function() {
							if(retorno.removeu){
								$scope.carrinho = retorno.carrinho;
							}
						}, 1000);
					});
        }

        $scope.novo = function(model){
        	$('.modal-title').html('Cadastrar '+model)
        	$('#button_cadastro').html('CADASTRAR')
        	if(model == 'Eventos'){
  		    	$('#cadastro-eventos').modal('show');
  		    } else if(model == 'Metas') {
            $('#cadastro-metas').modal('show');
          } else {
  		    	$('#cadastro-documentos').modal('show');
  		    }
        }

        $scope.editar = function(model, form, id){

        	$http({
                url: base_url+'areadoaluno/getObject/'+model, method: 'POST',
                data: $.param({ id: id }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){
			    var retorno = result.data;

			    $('.modal-title').html('Editar '+model)
			    $('#button_cadastro').html('SALVAR')

			    if(model == 'Eventos'){
			    	$scope.obj_evento = retorno.obj;

			    	$scope.obj_evento.data = $filter('date')($scope.obj_evento.data, 'dd/MM/yyyy');
			    	$scope.obj_evento.data_final = $filter('date')($scope.obj_evento.data_final, 'dd/MM/yyyy');

			    	$('#cadastro-eventos').modal('show');

			    } else if(model == 'Metas') {
            $scope.obj_meta = retorno.obj;

            $scope.obj_meta.data = $filter('date')($scope.obj_meta.data, 'dd/MM/yyyy');
            $scope.obj_meta.data_final = $filter('date')($scope.obj_meta.data_final, 'dd/MM/yyyy');

            if (form == "frm_metas") {
              $('#cadastro-metas').modal('show');
            } else if (form == "frm_avaliar_metas") {
              $('#cadastro-avaliacao-metas').modal('show');
              $('.modal-title').html('Avaliar Meta')
            } else {
              $('#cadastro-responder-metas').modal('show');
              $('.modal-title').html('Responder Meta')
            }
          } else {
			    	$scope.obj_documento = retorno.obj;

			    	$scope.obj_documento.data = $filter('date')($scope.obj_documento.data, 'dd/MM/yyyy');

			    	$('#cadastro-documentos').modal('show');
			    }


			});

        }

        $scope.salvar_documento = function(model, form){

        	if(form=='frm_documentos' || form=='frm_metas' || form=='frm_responder_metas'){
            if (form=='frm_responder_metas') {
              uploadArquivoResponder('uploadBtn2', model);
            } else {
              uploadArquivo('uploadBtn', model);
            }
        	} else {

	        	$http({
	                url: base_url+'areadoaluno/cadastrar_editar/'+model, method: 'POST',
	                data: $.param({ dados: $('#'+form).serialize() }),
	                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
	            }).then(function (result){

				    var retorno = result.data;
				    if(retorno.salvou){
				    	window.location.reload();
				    }


				});

	        }

        }

        $scope.efetua_cadastro = function(){

          var el = angular.element('btnEfetuaCadastro');

          if ($scope.sendingCadastro) {
            return false;
          }

          $scope.sendingCadastro = true;
          $scope.buttonCadastroLabel = 'PROCESSANDO...';

        	$http({
                url: base_url+'areadoaluno/salvar', method: 'POST',
                data: $.param({ dados: $('#cadastro').serialize() }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;

					
			    if(retorno.salvou){
						var usuario = retorno.usuario;

						pipz.identify(usuario.id, {
							name: usuario.nome_completo,
							email: usuario.email,
							cpf: usuario.cpf
						});

						$timeout(function() {
							window.location = "https://www.silviosande.com.br/areadoaluno/meus_cursos"
						}, 1000);
			    } else {
						alert(result.data.mensagem);
						$scope.sendingCadastro = false;
						$scope.buttonCadastroLabel = 'CONCLUIR CADASTRO';
			    }

			    if($('#id').size()>0){
			    	$scope.usuario = retorno.usuario;
			    	$scope.usuario.data_de_nascimento = $filter('date')($scope.usuario.data_de_nascimento, 'dd/MM/yyyy');
			    }


			});

        }

        $scope.efetua_login = function(){

        	$http({
                url: base_url+'areadoaluno/login', method: 'POST',
                data: $.param({ email: $scope.usuario_login, senha: $scope.senha_login }),
                headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
            }).then(function (result){

			    var retorno = result.data;
			    $scope.logado = retorno.logado_site;
			    $scope.usuario = retorno.usuario;

					pipz.identify($scope.usuario.id, {
						name: $scope.usuario.nome_completo,
						email: $scope.usuario.email,
						cpf: $scope.usuario.cpf
					});

						$timeout(function() {
							if(!$scope.logado){
								alert('Usuário ou senha Inválidos!')
								return
							} else {
								window.location = base_url+'areadoaluno/meus_cursos';
							}

							$scope.usuario.data_de_nascimento = $filter('date')($scope.usuario.data_de_nascimento, 'dd/MM/yyyy');

							
															
						}, 1000);
					});

				}
				
				$scope.getCepTouch = function($e) {
					if($e.keyCode == 13) {
						$scope.getCep();
					}
				}

        $scope.getCep = function(){
        	var cep = $('.cep').val();

					if ( cep.length != 9 ) {
						alert("Número de CEP inválido.");
						$scope.searching = false;
						$scope.buttonLabel = 'Buscar';						
						return false;
					}

          if ($scope.searching) {
            return false;
          }

          $scope.searching = true;
          $scope.buttonLabel = 'Buscando...';

        	$http.get('https://viacep.com.br/ws/'+cep.replace('.', '').replace('-', '')+'/json').then(function (result){
            var dados = result.data;

            $scope.searching = false;
						$scope.buttonLabel = 'Buscar';
						
            if (angular.isUndefined(dados.localidade)) {
							alert('CEP não encontrado. Digite o endereço manualmente.');					
            } else {
              $scope.usuario.estado = $("#estado option").filter(function() { return this.text == dados.estado;  }).attr('value');

              $("#estado option").filter(function() {
                return this.text == dados.uf;
							}).attr('selected', true);
							
							var estado = $("#estado option").filter(function() {
                return this.text == dados.uf;
							}).val();
							
              $scope.usuario.cidade = dados.localidade;
              $scope.usuario.estado = estado;
              $scope.usuario.bairro = dados.bairro;
              $scope.usuario.endereco = dados.logradouro;

              $("#cidade").val( dados.localidade );
							$("#bairro").val( dados.bairro );
							$("#endereco").val( dados.logradouro );							
							
							$('#endereco').focus();
            }
          });
				}

				$scope.cartLoading = false;
				
				$scope.sendPagamento = function($event, method, bank) {
						$event.stopPropagation();
						$event.preventDefault();

						$scope.cartLoading = true;

						var payment = new MyPayment();
								payment.setMethod(method);

								if ( payment.params.method == 'debit' ) {
									payment.setBank(bank);
								}

								if ( payment.params.method == 'creditCard' ) {
									payment.setCreditCard(
										$scope.cart.card, function() { payment.process() }
									);
								} else {
									payment.process();
								}
				};

				class MyPayment {
					constructor() {
						this.params = {}
						this.params.hash = PagSeguroDirectPayment.getSenderHash();
					}

					setMethod(type) {
						this.params.method = type
					}

					setBank(bank) {
						this.params.bank = bank
					}

					setCreditCard(card, cb) {
						this.params.card = card;

						var cb = cb;
						var parent = this;

						PagSeguroDirectPayment.createCardToken({
								cardNumber: $scope.cart.card.cardNumber,
								brand: $scope.cart.card.brand,
								cvv: $scope.cart.card.cvv,
								expirationMonth: $scope.cart.card.expirationMonth,
								expirationYear: $scope.cart.card.expirationYear,
								success: function(res) {
									parent.params.card.token = res.card.token;
									cb();
								},
								error: function(err) {
									alert('ERRO AO PROCESSAR');
								},
								complete: function(res) {
								}
						});
					}

					process() {
						
						$http({url: base_url+'comprar/processar/'+pedido_id, method: 'POST',
								data: $.param(this.params),
								headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
						}).then(function(res) {
							var code  = res.data;

							if (typeof code.uid !== 'undefined') {
								window.location = "/comprar/obrigado/?uid=" + code.uid;
							} else {
								$scope.cartLoading = false;

								alert('Falha ao processar o pagamento. Tente novamente.');
							}
						});
					}
				}

				/** SCOPO PARA O CARRINHO */

				$('input[name=billing_zipcode]').mask('99999-999');
				$("input[name=billing_phone]").mask("(99) 9999-99999")
				$("input[name=billing_cpf]").mask("999.999.999-99")
				$("input[name=numero_cartao]").mask("9999999999999999")

				$scope.cart = {};
				$scope.cart.installment_selected = null;

				$scope.cart.card = {
					cardNumber: null,
					expirationMonth: null,
					expirationYear: null,
					cvv: null,
					installment: null,
					brand: null,
					billing: {
						birthdate: null,
						name: null,
						phone: null,
						cpf: null,
						street: null,
						number: null,
						neighborhood: null,
						zipcode: null,
						city: null,
						state: null,
						complement: null
					}
				};

								
				$scope.cart.installments = new Array();

				$scope.$watch('cart.card.cardNumber', function(newv, oldv) {
					
					if ( newv !== null ) {
						if ( newv.length >= 6 )  { // Busca a marca
							PagSeguroDirectPayment.getBrand({
								cardBin: newv,
								success: function(res) {
									$scope.cart.card.brand = res.brand.name;
									$scope.$apply();

									

										
										

										
								},
								error: function(err) {
									console.log(err);
								},
								complete: function(res) {
									console.log(res);
								}
							});
						}
					}
				}, true);

				$scope.$watch('cart.installment_selected', function(newv, oldv) {
					var installment = $scope.cart.installments[newv];
					$scope.cart.card.installment = installment;
				}, true);

				/**
				 * Funções do player das aulas.
				 */
				// $scope.flowplayer = flowplayer("#fp-speedmenu", {
				// 		share: false,
				// 		splash: true,
				// 		embed: false,
				// 		debug: true,
				// 		autoplay: false,
				// 		rtmp: "rtmps://stream03.localmidia.com.br/silviosande",
				// 		conf: {
				// 				hlsjs: {
				// 						debug: true
				// 				}
				// 		},
				// 		clip: {
				// 				sources: []
				// 		}
				// });

				$scope.currentPlayingFlowplayer = null;

				$scope.getClassVideo = function(pid) {
					$http({url: base_url + 'areadoaluno/get_video_data/' + pid, 
							method: 'GET',
							headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
					}).then(function(res) {
						var code  = res.data;
						$scope.currentPlayingFlowplayer = code;
						$scope.playClass($scope.currentPlayingFlowplayer.url,
								$scope.currentPlayingFlowplayer.format);
					});
				};

				$scope.playClass = function(url, format) {
					if ( format == 'flv' ) {
						var source = { 
							type: "video/flash",
							src:  url
						};
					} else {
						var source = { 
							type: "application/x-mpegurl",
							src:  url,
							engine: 'hlsjs' 
						};
					}

					// flowplayer("#fp-speedmenu").load({
					// 	sources: [source],
					// }, function (e, api, video) {;
					// 	// api.pause();
					// });
				}

				$scope.classSelected = null;
				$scope.classSelectedBlocos = null;

				$scope.setClassSelected = function(id, endpoint, $event) {
					$event.preventDefault();
					$event.stopPropagation();

					$scope.classSelectedBlocos = null;
					$scope.classSelectedLoading = false;

					if ( $scope.classSelected == id ) {
						$scope.classSelected = null;
						$scope.classSelectedBlocos = null;
					} else {

						$scope.classSelectedLoading = true;

						$http({url: base_url + endpoint + id})
							.then(function(res) {
								$scope.classSelectedLoading = false;

								$scope.classSelectedBlocos = res.data;
							});

						$scope.classSelected = id;
					}
				}

				$scope.track = function() {
					mixpanel.track("Video play");
				}

				$scope.enviar_contato = function() {
					$scope.formContato.feedback = false;

					var request = $http({
							url: base_url+'welcome/formContato', method: 'POST',
							data: $.param($scope.formContato),
							headers : {'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}
					});

					request.then(function(res) {
						$scope.formContato.nome = null;
						$scope.formContato.email = null;
						$scope.formContato.ddd = null;
						$scope.formContato.celular = null;
						$scope.formContato.assunto = null;
						$scope.formContato.mensagem = null;

						$scope.formContato.feedback = "MENSAGEM ENVIADA COM SUCESSO!";
					}, function(err) {
						console.log(err)
					});
				}

				$scope.carrinho.total_carrinho = $scope.carrinho.valor_pago;

				$scope.validarCupom = function() {
					$http({url: base_url + 'comprar/getCupomDesconto', 
							data: { 'codigo': $scope.cupom },
							method: 'POST'
					}).then(function(res) {
						$scope.carrinho.cupom_message = res.data.message;
						$scope.carrinho.total_carrinho = res.data.valor_final;

						$scope.carrinho.discount = {
							code: res.data.codigo,
						};

					}).catch(function(err) {
						$scope.carrinho.discount = {
							code: null
						};


						$scope.carrinho.total_carrinho = $scope.carrinho.total_carrinho;
						$scope.carrinho.cupom_message = "Cupom de desconto não localizado.";
					});
				}

				$scope.validaCPF = function(cpf) {
						var Soma;
						var Resto;
						Soma = 0;

						if (strCPF == "00000000000") return false;
						
						for (i=1; i<=9; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (11 - i);
						Resto = (Soma * 10) % 11;
					
						if ((Resto == 10) || (Resto == 11))  Resto = 0;
						if (Resto != parseInt(strCPF.substring(9, 10)) ) return false;
					
						Soma = 0;
						for (i = 1; i <= 10; i++) Soma = Soma + parseInt(strCPF.substring(i-1, i)) * (12 - i);
						Resto = (Soma * 10) % 11;
					
						if ((Resto == 10) || (Resto == 11))  Resto = 0;
						if (Resto != parseInt(strCPF.substring(10, 11) ) ) return false;

						return true;
				}

				$scope.setVideo = function(bloco) {
					// console.log(window.clappr);
					window.myClappr.load(bloco.path, bloco.mime, true);
				}
		}).directive('demoVideo', function() {
			return {
				restrict: 'EA',
				scope: {
					videoPath: '@'
				},
				link: function(scope, el, attrs) {
					var url = "https://silviosande.localmidia.com.br/silviosande/_definst_/silviosande/" + scope.videoPath + "/playlist.m3u8?localmAuthstarttime=1515164512&localmAuthendtime=1515207712&localmAuthcpf=&localmAuthip=0.0.0.0&localmAuthhash=eMR9REp0XepYipdWwGEmEHe8Q41va2BSb0hFVxyOC5o=";

					// flowplayer("#fp-speedmenu").load({
					// 	sources: [
					// 		{ 
					// 				type: "application/x-mpegurl",
					// 				src:  url,
					// 				engine: 'hlsjs' 
					// 		}],
					// }, function (e, api, video) {;
					// 	api.pause();
					// });
				}
			}
		});

</script>

<link rel="stylesheet" href="https://www.silviosande.com.br/assets/site/vendor/font-awesome-4.7.0/css/font-awesome.min.css">
        <!-- testimonial js -->
        <script type="text/javascript">
            $(document).ready(function() {
              // $(document).mask();

              //carousel options
              $('#quote-carousel').carousel({
                pause: true, interval: 10000,
              });
            });
        </script>
    </body>
</html>