if (key === 'ENTER') {
let el = $(':focus').find('[aria-keyshortcuts]')
if(!el) {
- $('input:focus').click()
+ $(':focus').click(function (e){ return false; })
}
if ($this.quiz.utils.isEnabled(el)) {
- el.get(0).click();
+ el.get(0).click((e) => { return false; });
return true;
}
}
<div class="explaination">
<div class="explaination-wrapper">
<p class="explaination-text"></p>
- <a class="close-explaination" href="javascript:void(0)">
+ <a class="close-explaination" href="#">
<span data-icon="wrong"></span>
</a>
</div>
<footer class="footer-question footer">
@isset($reset)
- <a class="btn secondary reset" aria-keyshortcuts="R" href="javascript:void(0)">
+ <a class="btn secondary reset" aria-keyshortcuts="R" href="#">
<span class="text">{{$__('Reset')}}</span>
<span class="access">R</span>
</a>
@endisset
@if(isset($info) && trim($info))
- <a class="btn secondary none moreinfo" aria-keyshortcuts="M" href="javascript:void(0)">
+ <a class="btn secondary none moreinfo" aria-keyshortcuts="M" href="#">
<span class="text">{{$__('More infos')}}</span>
<span class="access infos">M</span>
</a>
@endif
<a class="btn primary {{ isset($matchMaking) ? "confirmMatch" : "action validate" }} {{ $countdown ? ' countdown' : '' }}"
- aria-keyshortcuts="Space" href="javascript:void(0)">
+ aria-keyshortcuts="Space" href="#">
<span class="text">
@if(isset($matchMaking))
{{ $__('Confirm the match') }}
</a>
@if($data['instantReview'])
- <a class="btn primary action none continue" aria-keyshortcuts="Space" href="javascript:void(0)">
+ <a class="btn primary action none continue" aria-keyshortcuts="Space" href="#">
<span class="text">{{$__('Continue')}}</span>
<span class="access space">{{$__('space')}}</span>
</a>
$key='ARROWRIGHT';
}
@endphp
-<a href="javascript:void(0)">
+<a href="#">
<div class="controls {{$side}} {{$action}}" aria-keyshortcuts="{{$key}}">
<p>{{$text}}</p>
<div class="access">
<div class="markdown only-mobile">{!! $markdownToHTML($data->intro_text_mobile?:$data->intro_text) !!}</div>
</div>
<footer class="footer">
- <a id="start" aria-keyshortcuts="Space" class="btn primary" href="javascript:void(0)">
+ <a id="start" aria-keyshortcuts="Space" class="btn primary" href="#">
{{$data->intro_button?:$__('Let\'s start')}}<span class="access space">{{$__('space')}}</span>
</a>
</footer>
</div>
@if($data->restart_button)
<div class="restart-sentence-mobile">{{$__('Want to improve your score?')}}</div>
- <a class="btn secondary restart restart-mobile" href="javascript:void(0)">
+ <a class="btn secondary restart restart-mobile" href="#">
<span data-icon="reset"></span>
{{$__('Restart')}}
</a>
@endif
<div class="score-controls">
@if($data->restart_button)
- <a class="btn secondary restart" aria-keyshortcuts="r" href="javascript:void(0)">
+ <a class="btn secondary restart" aria-keyshortcuts="r" href="#">
<span class="text">{{$__('Restart')}}</span>
<span class="access">R</span>
</a>