Skip to content

Commit

Permalink
Add anchor to the application template
Browse files Browse the repository at this point in the history
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
shrawnz committed Mar 7, 2017
1 parent 54ac737 commit 183e178
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 5 deletions.
4 changes: 2 additions & 2 deletions data/faq/writing_a_great_proposal.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ lot of helpful feedback from us!

#### Writing the proposal

Please follow the **application template** in the faq. All fields are required if not explicitly indicated otherwise. While following the application template you can consider doing an illustration of your proposed solution as it makes the application much more intuitive.
Please follow the [application template](/#/faq) in the faq. All fields are required if not explicitly indicated otherwise. While following the application template you can consider doing an illustration of your proposed solution as it makes the application much more intuitive.

For writing your proposal we recommend using [Google Docs](https://www.google.com/docs/about/) as this will be supported by the Google submission system.

If needed, you can get further information about GSoC at <http://write.flossmanuals.net/gsocstudentguide/what-is-google-summer-of-code/>.
If needed, you can get further information about GSoC [here](http://write.flossmanuals.net/gsocstudentguide/what-is-google-summer-of-code).
17 changes: 14 additions & 3 deletions partials/tabs/faq.html
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>

0 comments on commit 183e178

Please sign in to comment.