Skip to content

Instantly share code, notes, and snippets.

View arueckle's full-sized avatar

Andreas Rücklé arueckle

View GitHub Profile
@arueckle
arueckle / maobi-mobile-fallback.html
Last active January 30, 2020 20:01
Code snippet to insert in the front template of an Anki-Maobi card for mobile support via input box (to be used with the iPhone/Android handwriting keyboard)
<!-- MOBILE FALLBACK -->
<div id="maobi-mobile-fallback" style="display:none">
<input type="text" id="maobi-mobile-fallback-input">
<span id="maobi-mobile-fallback-correct-answer" style="display:none">👍</span>
</div>
<script>
setTimeout(function(){
if(window.HanziWriter == undefined){
document.getElementById('maobi-mobile-fallback').style.display = 'block';
var correctElem = document.getElementById('maobi-mobile-fallback-correct-answer');