Last active
September 20, 2019 21:48
-
-
Save dospuntocero/3a31acd1754c639b5f3880b3d0561aba to your computer and use it in GitHub Desktop.
simplest faq accordion
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="question">Vad gör jag om jag vill låna mer än 2 miljoner?</div> | |
<div class="answer">Vi på Corpia hjälper dagligen företag att nå sina visioner och mål genom att hitta rätt finansiering för rätt behov, både på vår digitala marknadsplats och utanför. I dagsläget har vi ingen möjlighet att hantera lån större än 2 miljoner på marknadsplatsen, behöver ditt företag ett större lån än så kan du höra av dig till David, eller läsa mer på corpiagroup.se.</div> | |
<div class="question">Är det säkert att ansöka om lån hos Corpia?</div> | |
<div class="answer">Er säkerhet är av yttersta vikt för oss. Corpia står under Finansinspektionen tillsyn och behandlar alla uppgifter med full sekretess. Dessutom sker alla betalningsflöden från klientmedelskonton vilket säkerställer att inga likvida medel blandas mellan låntagare, investerare och Corpia.</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.question').click(function(evt){ | |
evt.preventDefault();//only needed if you use it in an anchor | |
if(!$(this).hasClass('open')){ | |
$('.answer').slideUp('normal'); | |
$('.question').removeClass('open'); | |
$(this).addClass('open'); | |
$(this).next().slideDown('slow'); | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.question { | |
font-size : rem-calc(17); | |
padding : rem-calc(26 60 26 0); | |
cursor: pointer; | |
&.open{ | |
font-weight: bold; | |
cursor: default; | |
} | |
} | |
.answer { | |
display : none; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment