forked from coala/projects
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add anchor to the application template
This anchor navigates users to the actual application template when they click on the word "application template" under the section "writing a great proposal". Closes coala#239
- Loading branch information
Showing
2 changed files
with
16 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,26 @@ | ||
<div class="main-content-faq container-fluid"> | ||
<ul class="collapsible" data-collapsible="accordion"> | ||
<ul class="collapsible" data-collapsible="accordion" id="{{index+1}}"> | ||
<li ng-repeat="(ques,ans) in toc.faqs"> | ||
<div class="collapsible-header"><i class="fa fa-question" aria-hidden="true"></i><p btf-markdown="ques"></p></div> | ||
<div class="collapsible-body"><p btf-markdown ng-include="'data/faq/' + ans"></p> | ||
<div class="collapsible-body" ><p btf-markdown ng-include="'data/faq/' + ans"></p> | ||
</div> | ||
</li> | ||
</ul> | ||
</div> | ||
|
||
<script type="text/javascript"> | ||
$(document).ready(function(){ | ||
$(document).ready(function() { | ||
$('.collapsible').collapsible(); | ||
$("a[href^='/#/faq'").click(function() { | ||
$("p[btf-markdown=ques]")[11].click(); | ||
$("p[btf-markdown=ques]").each(function(k,v) { | ||
if(k==11) { | ||
$('html,body').animate({ | ||
scrollTop: $(this).offset().top-350}, | ||
'slow'); | ||
} | ||
}); | ||
}); | ||
}); | ||
</script> | ||
|