-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move the demo files into their own folder (unfortunately this means copying the front and back templates, rather than including them. See the comment in #54 about both `{{{ ... }}}` triple brackets and `.json` formatting.
- Loading branch information
1 parent
ea4d5a3
commit f9a6aaa
Showing
8 changed files
with
85 additions
and
35 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,32 +1,32 @@ | ||
{{! Simple card ==== | ||
<!-- Simple card ==== | ||
- Type: What's the answer? | ||
- Docs: https://github.com/badlydrawnrob/anki/tree/master/source/docs/simple/index.md | ||
- Key: ★ Required | ||
☆ Optional (recommended) | ||
✎ Optional (notes, markdown) | ||
===== }} | ||
===== --> | ||
|
||
<div id="front" class="anki-Front"> | ||
<section class="simple simple-front"> | ||
<header class="simple-Header"> | ||
<h1 class="simple-Header_Title"> | ||
{{{★ Title}}} | ||
{{★ Title}} | ||
</h1> | ||
{{#☆ Subtitle}} | ||
<h2 class="simple-Header_Subtitle"> | ||
{{{☆ Subtitle}}} | ||
{{☆ Subtitle}} | ||
</h2> | ||
{{/☆ Subtitle}} | ||
{{#☆ Syntax (inline code)}} | ||
<p class="simple-Header_Code"> | ||
<code>{{{☆ Syntax (inline code)}}}</code> | ||
<code>{{☆ Syntax (inline code)}}</code> | ||
</p> | ||
{{/☆ Syntax (inline code)}} | ||
</header> | ||
<div class="simple-Sample"> | ||
{{{★ Sample (code block or image)}}} | ||
{{★ Sample (code block or image)}} | ||
</div> | ||
</section> | ||
</div> |
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<!-- Simple card ==== | ||
Demo version copied from `../../cards/simple/simple-...` files | ||
- requires {{{ ... }}} triple brackets | ||
- `.json` file requires | ||
===== --> | ||
|
||
<div id="front" class="anki-Front"> | ||
<section class="simple simple-front"> | ||
<header class="simple-Header"> | ||
<h1 class="simple-Header_Title"> | ||
{{{★ Title}}} | ||
</h1> | ||
{{#☆ Subtitle}} | ||
<h2 class="simple-Header_Subtitle"> | ||
{{{☆ Subtitle}}} | ||
</h2> | ||
{{/☆ Subtitle}} | ||
{{#☆ Syntax (inline code)}} | ||
<p class="simple-Header_Code"> | ||
<code>{{{☆ Syntax (inline code)}}}</code> | ||
</p> | ||
{{/☆ Syntax (inline code)}} | ||
</header> | ||
<div class="simple-Sample"> | ||
{{{★ Sample (code block or image)}}} | ||
</div> | ||
</section> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<div class="anki-Reverse"> | ||
{{FrontSide}} {{! Anki only }} | ||
|
||
<section id="answer" class="simple simple-reverse"> | ||
<div class="simple-KeyPoint"> | ||
<div class="simple-KeyPoint_Code"> | ||
{{{★ Key point (code block or image)}}} <!-- pre block --> | ||
</div> | ||
<div class="simple-KeyPoint_Notes"> | ||
{{{★ Key point notes}}} | ||
</div> | ||
</div> | ||
{{#✎ Other notes}} | ||
<footer class="simple-Notes"> | ||
{{{✎ Other notes}}} | ||
</footer> | ||
{{/✎ Other notes}} | ||
</section> | ||
</div> |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"★ Title": "What will each residents[<b>‘key’</b>] print out?", | ||
|
||
|
||
"☆ Subtitle": "Dictionaries", | ||
|
||
|
||
"☆ Syntax (inline code)": "d = {<b>‘key’</b>: <i>value</i>}", | ||
|
||
|
||
"★ Sample (code block or image)": "<div class=\"sourceCode\" id=\"cb1\"><pre\r\nclass=\"sourceCode python\"><code class=\"sourceCode python\"><span id=\"cb1-1\"><a href=\"#cb1-1\" aria-hidden=\"true\" tabindex=\"-1\"><\/a>residents <span class=\"op\">=<\/span> {<span class=\"st\">'Puffin'<\/span> : <span class=\"dv\">104<\/span>, <span class=\"st\">'Sloth'<\/span> : <span class=\"dv\">105<\/span>, <span class=\"st\">'Burmese Python'<\/span> : <span class=\"dv\">106<\/span>}<\/span>\r\n<span id=\"cb1-2\"><a href=\"#cb1-2\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><\/span>\r\n<span id=\"cb1-3\"><a href=\"#cb1-3\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"bu\">print<\/span>(residents[<span class=\"st\">'Puffin'<\/span>])<\/span>\r\n<span id=\"cb1-4\"><a href=\"#cb1-4\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"bu\">print<\/span>(residents[<span class=\"st\">'Sloth'<\/span>])<\/span>\r\n<span id=\"cb1-5\"><a href=\"#cb1-5\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"bu\">print<\/span>(residents[<span class=\"st\">'Burmese Python'<\/span>])<\/span><\/code><\/pre><\/div>", | ||
|
||
|
||
"★ Key point (code block or image)": "<div class=\"sourceCode\" id=\"cb1\"><pre\r\nclass=\"sourceCode python\"><code class=\"sourceCode python\"><span id=\"cb1-1\"><a href=\"#cb1-1\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"dv\">104<\/span><\/span>\r\n<span id=\"cb1-2\"><a href=\"#cb1-2\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"dv\">105<\/span><\/span>\r\n<span id=\"cb1-3\"><a href=\"#cb1-3\" aria-hidden=\"true\" tabindex=\"-1\"><\/a><span class=\"dv\">106<\/span><\/span><\/code><\/pre><\/div>", | ||
|
||
|
||
"★ Key point notes": "<p>Access a <strong>dictionary</strong> item with it's <code>key</code>, which returns it's <code>value</code>.</p><p>A dictionary is similar to a list, but you access values by looking up a key instead of an index. A key can be any string or number. Dictionaries are enclosed in curly braces <code>{ }</code>.</p>", | ||
|
||
|
||
"✎ Other notes": "<p><strong>Warning:<\/strong> <a href=\"https:\/\/jeffknupp.com\/blog\/2015\/08\/30\/python-dictionaries\">Never search for a value in a dictionary using a for loop<\/a>!<\/p>", | ||
|
||
|
||
"✎ Markdown": false | ||
} |
File renamed without changes.