Skip to content

Commit

Permalink
update deck css, html and generate id for model and deck
Browse files Browse the repository at this point in the history
  • Loading branch information
krmanik committed Feb 10, 2024
1 parent 5b453e9 commit 0b5df8c
Show file tree
Hide file tree
Showing 12 changed files with 2,191 additions and 21,923 deletions.
13 changes: 11 additions & 2 deletions card templates/Card 1/back.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
window.addEventListener("load", initSwitchPrefs, false);
}
}

function isInWebView() {
var UA = navigator.userAgent;
if (/iPhone|iPod|iPad/.test(UA)) {
Expand All @@ -172,8 +172,10 @@
<div class="fieldset-item tappable">
<div class="input-stack" style="text-align:center; color: var(--text2);">
<label for="deck-title">
<h3>xie hanzi</h3>
<h3 class="brand-title">写汉字</h3>
<div class="brand-sub-title">xiě hànzì</div>
</label>
<a onclick="closeSidebar('sidebar')" class="close-button"></a>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -240,6 +242,13 @@ <h3>xie hanzi</h3>
</div>

<div id="more-info-sidebar" class="more-info-sidebar">
<a class="fieldset-item tappable">
<div class="more-side-brand">
<div class="brand-title">写汉字</div>
<div class="brand-sub-title">xiě hànzì</div>
</div>
<div onclick="closeSidebar('more-info-sidebar')" class="close-button close2"></div>
</a>
<a class="fieldset-item tappable" id="plecoMobile" href="plecoapi://x-callback-url/df?hw={{Simplified}}">
<img src="_pleco.png"></img>
<small>Pleco</small>
Expand Down
11 changes: 10 additions & 1 deletion card templates/Card 2/back.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@
<div class="fieldset-item tappable">
<div class="input-stack" style="text-align:center; color: var(--text2);">
<label for="deck-title">
<h3>xie hanzi</h3>
<h3 class="brand-title">写汉字</h3>
<div class="brand-sub-title">xiě hànzì</div>
</label>
<a onclick="closeSidebar('sidebar')" class="close-button"></a>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -240,6 +242,13 @@ <h3>xie hanzi</h3>
</div>

<div id="more-info-sidebar" class="more-info-sidebar">
<a class="fieldset-item tappable">
<div class="more-side-brand">
<div class="brand-title">写汉字</div>
<div class="brand-sub-title">xiě hànzì</div>
</div>
<div onclick="closeSidebar('more-info-sidebar')" class="close-button close2"></div>
</a>
<a class="fieldset-item tappable" id="plecoMobile" href="plecoapi://x-callback-url/df?hw={{Simplified}}">
<img src="_pleco.png"></img>
<small>Pleco</small>
Expand Down
11 changes: 10 additions & 1 deletion card templates/Card 3/back.html
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,10 @@
<div class="fieldset-item tappable">
<div class="input-stack" style="text-align:center; color: var(--text2);">
<label for="deck-title">
<h3>xie hanzi</h3>
<h3 class="brand-title">写汉字</h3>
<div class="brand-sub-title">xiě hànzì</div>
</label>
<a onclick="closeSidebar('sidebar')" class="close-button"></a>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -240,6 +242,13 @@ <h3>xie hanzi</h3>
</div>

<div id="more-info-sidebar" class="more-info-sidebar">
<a class="fieldset-item tappable">
<div class="more-side-brand">
<div class="brand-title">写汉字</div>
<div class="brand-sub-title">xiě hànzì</div>
</div>
<div onclick="closeSidebar('more-info-sidebar')" class="close-button close2"></div>
</a>
<a class="fieldset-item tappable" id="plecoMobile" href="plecoapi://x-callback-url/df?hw={{Simplified}}">
<img src="_pleco.png"></img>
<small>Pleco</small>
Expand Down
13 changes: 11 additions & 2 deletions card templates/Card 4/back.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@
window.addEventListener("load", initSwitchPrefs, false);
}
}

function isInWebView() {
var UA = navigator.userAgent;
if (/iPhone|iPod|iPad/.test(UA)) {
Expand All @@ -172,8 +172,10 @@
<div class="fieldset-item tappable">
<div class="input-stack" style="text-align:center; color: var(--text2);">
<label for="deck-title">
<h3>xie hanzi</h3>
<h3 class="brand-title">写汉字</h3>
<div class="brand-sub-title">xiě hànzì</div>
</label>
<a onclick="closeSidebar('sidebar')" class="close-button"></a>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -240,6 +242,13 @@ <h3>xie hanzi</h3>
</div>

<div id="more-info-sidebar" class="more-info-sidebar">
<a class="fieldset-item tappable">
<div class="more-side-brand">
<div class="brand-title">写汉字</div>
<div class="brand-sub-title">xiě hànzì</div>
</div>
<div onclick="closeSidebar('more-info-sidebar')" class="close-button close2"></div>
</a>
<a class="fieldset-item tappable" id="plecoMobile" href="plecoapi://x-callback-url/df?hw={{Simplified}}">
<img src="_pleco.png"></img>
<small>Pleco</small>
Expand Down
11 changes: 10 additions & 1 deletion card templates/Card 5/front.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,10 @@
<div class="fieldset-item tappable">
<div class="input-stack" style="text-align:center; color: var(--text2);">
<label for="deck-title">
<h3>xie hanzi</h3>
<h3 class="brand-title">写汉字</h3>
<div class="brand-sub-title">xiě hànzì</div>
</label>
<a onclick="closeSidebar('sidebar')" class="close-button"></a>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -206,6 +208,13 @@ <h3>xie hanzi</h3>
</section>
</div>
<div id="more-info-sidebar" class="more-info-sidebar">
<a class="fieldset-item tappable">
<div class="more-side-brand">
<div class="brand-title">写汉字</div>
<div class="brand-sub-title">xiě hànzì</div>
</div>
<div onclick="closeSidebar('more-info-sidebar')" class="close-button close2"></div>
</a>
<a class="fieldset-item tappable" id="plecoMobile" href="plecoapi://x-callback-url/df?hw={{Simplified}}">
<img src="_pleco.png"></img>
<small>Pleco</small>
Expand Down
Loading

0 comments on commit 0b5df8c

Please sign in to comment.