[BUILD-390] Add script for updating AnKing note type templates (#2142)

[BUILD-390] Add script for updating AnKing note type templates (#2142)

  • Add script for updating AnKing note type templates

  • Add note types as folders

  • Update script

  • Update css as well

  • Edit docstring

diff --git a/scripts/anking_note_types/AnKingMCAT/AnKing Custom Styling.css b/scripts/anking_note_types/AnKingMCAT/AnKing Custom Styling.css
new file mode 100644
index 0000000..8663b0f
--- /dev/null
+++ b/scripts/anking_note_types/AnKingMCAT/AnKing Custom Styling.css
@@ -0,0 +1,173 @@
+/*#########################################################
+################  USER CUSTOMIZATION START  ##############*/
+/* You can choose colors at www.htmlcolorcodes.com */
+
+/* TIMER ON/OFF */
+.timer {
+	display: block; /* ‘none’ or ‘block’ */
+  }
+
+  /* TAGS ON/OFF DESKTOP & MOBILE*/
+  #tags-container {
+	display: block; /* ‘none’ or ‘block’ */
+  }
+
+  .mobile #tags-container {
+	display: none; /* ‘none’ or ‘block’ */
+  }
+
+  /* MOVE TAGS UP FOR 'NO-DISTRACTIONS' ADD-ON */
+  #tags-container {
+	padding-bottom: 0px; /* 0 normal, 55 to move up */
+  }
+
+  /* MNEMONICS CENTER OR LEFT */
+  .mnemonics {
+	text-align: left;
+  }
+
+/*~~~~~~~~~FONT SIZE~~~~~~~~~*/
+/*NOTE: anything with 'px' will keep a font that size indefinitely,
+'rem' is a fraction of this size above and allows all text to change size with the above setting */
+/* Desktop */
+html {
+  font-size: 28px;
+}
+/* Mobile */
+.mobile {
+  font-size: 28px;
+}
+
+/*IPAD ADJUSTMENTS (currently not applied)
+.ipad .card {
+  font-size: 28px;
+}
+.ipad .hints {
+  font-size: 24px;
+}
+*/
+
+/*Revealed Hints Font Size*/
+.hints {
+  font-size: .85rem;
+}
+
+/*Extra Field Font Sizes*/
+  #pixorize,
+  #additional {
+  font-size: 1rem !important;
+}
+
+/*Extra Field Font Sizes on Mobile*/
+  .mobile #pixorize,
+  .mobile #additional {
+  font-size: 20px!important;
+}
+
+/*~~~~~~~~~FONT STYLE~~~~~~~~~*/
+.card,
+kbd {
+  font-family: Arial Greek, Arial; /*Step exam's font is Arial Greek*/
+}
+
+/*~~~~~~~MAX IMAGE HEIGHT/WIDTH~~~~~~~*/
+img {
+  max-height: 100%;
+}
+
+#extra img,
+#notes img,
+#missed img {
+  max-width: 85%!important;
+}
+
+#pixorize img,
+#additional img {
+  max-width: 60%!important;
+}
+
+
+/*~~~~~~~~~COLORS~~~~~~~~~/
+/* Default Text Color */
+.card {
+  color: black;
+}
+/* Background Color */
+.card {
+  background-color: #D1CFCE;
+}
+/* Cloze Color */
+.cloze {
+  color: blue;
+}
+/* "Extra" Field Color */
+#extra {
+  color: navy;
+}
+/* Hint Reveal Color */
+.hints {
+  color: #4297F9;
+}
+/* Missed Questions Hint Reveal Color */
+#missed {
+  color: red;
+}
+/* Timer Countdown Color */
+.timer {
+  color: transparent;
+}
+
+
+/*~~~~~~~~NIGHT MODE COLORS~~~~~~~~*/
+/* NM Default Text Color */
+.nightMode.card,
+.night_mode .card {
+  color: #FFFAFA !important;
+}
+/* NM Background Color */
+.nightMode.card,
+.night_mode .card {
+  background-color: #272828 !important;
+}
+/* NM Cloze Color */
+.nightMode .cloze,
+.night_mode .cloze {
+  color: #4297F9 !important;
+}
+/* NM One by One Cloze Color */
+.nightMode .cloze.one-by-one,
+.night_mode .cloze.one-by-one {
+    color: #009400 !important;
+}
+/* NM One by One Cloze Hint Color */
+.nightMode .cloze-hint,
+.night_mode .cloze-hint {
+    color: #009400 !important;
+}
+/* NM "Extra" Field Color */
+.nightMode #extra,
+.night_mode #extra {
+  color: magenta;
+}
+/* NM Hint Reveal Color */
+.nightMode .hints,
+.night_mode .hints {
+  color: cyan;
+}
+
+
+/* ~~~~~COLOR ACCENTS FOR BOLD-ITALICS-UNDERLINE~~~~~~*/
+b {
+  color: inherit;
+}
+
+u {
+  color: inherit;
+}
+
+i {
+  color: inherit;
+}
+
+/*################  USER CUSTOMIZATION END  ################
+###########################################################*/
diff --git a/scripts/anking_note_types/AnKingMCAT/AnKingMCAT.json b/scripts/anking_note_types/AnKingMCAT/AnKingMCAT.json
new file mode 100644
index 0000000..9fcbb16
--- /dev/null
+++ b/scripts/anking_note_types/AnKingMCAT/AnKingMCAT.json
@@ -0,0 +1,119 @@
+{
+    "id": 1610414929688,
+    "name": "AnKingMCAT",
+    "type": 1,
+    "mod": 1638144691,
+    "usn": -1,
+    "sortf": 0,
+    "did": 1,
+    "tmpls": [
+        {
+            "name": "Cloze",
+            "ord": 0,
+            "qfmt": "",
+            "afmt": "",
+            "bqfmt": "{{cloze:Text}}",
+            "bafmt": "{{cloze:Text}}",
+            "did": null,
+            "bfont": "Arial",
+            "bsize": 12,
+            "scratchPad": false
+        }
+    ],
+    "flds": [
+        {
+            "name": "Text",
+            "ord": 0,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "meta": null,
+            "collapsibleFieldsCollapseByDefault": false,
+            "media": []
+        },
+        {
+            "name": "Extra",
+            "ord": 1,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "media": [],
+            "meta": null
+        },
+        {
+            "name": "Lecture Notes",
+            "ord": 2,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "media": []
+        },
+        {
+            "name": "Missed Questions",
+            "ord": 3,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "meta": null,
+            "media": []
+        },
+        {
+            "name": "Pixorize",
+            "ord": 4,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "meta": null
+        },
+        {
+            "name": "Sketchy",
+            "ord": 5,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "meta": null
+        },
+        {
+            "name": "Additional Resources",
+            "ord": 6,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 18,
+            "meta": null,
+            "media": []
+        },
+        {
+            "name": "One by one",
+            "ord": 7,
+            "sticky": false,
+            "rtl": false,
+            "font": "Arial",
+            "size": 8,
+            "collapsibleFieldsCollapseByDefault": false,
+            "meta": null
+        }
+    ],
+    "css": "",
+    "latexPre": "\\documentclass[12pt]{article}\n\\special{papersize=3in,5in}\n\\usepackage{amssymb,amsmath}\n\\pagestyle{empty}\n\\setlength{\\parindent}{0in}\n\\begin{document}\n",
+    "latexPost": "\\end{document}",
+    "latexsvg": false,
+    "req": [
+        [
+            0,
+            "any",
+            [
+                0,
+                6
+            ]
+        ]
+    ],
+    "tags": [],
+    "vers": []
+}
diff --git a/scripts/anking_note_types/AnKingMCAT/Back Template.html b/scripts/anking_note_types/AnKingMCAT/Back Template.html
new file mode 100644
index 0000000..9cda170
--- /dev/null
+++ b/scripts/anking_note_types/AnKingMCAT/Back Template.html
@@ -0,0 +1,978 @@
+<!-- version a5983bf -->
+<script>
+// ##############  HINT REVEAL SHORTCUTS  ##############
+// All shortcuts will also open with "H" if using the Hint Hotkeys add-on
+var ButtonShortcuts = {
+    "Lecture Notes" : "Alt + 1",
+    "Missed Questions" : "Alt + 2",
+    "Pixorize" : "Alt + 3",
+    "Sketchy" : "Alt + 4",
+    "Additional Resources" : "Alt + 5",
+}
+var ToggleAllButtonsShortcut = "'" // '
+var ToggleNextButtonShortcut = "H";
+// ##############  SHOW HINTS AUTOMATICALLY  ##############
+var ButtonAutoReveal = {
+    "Lecture Notes": false,
+    "Missed Questions": false,
+    "Pixorize": false,
+    "Sketchy": false,
+    "Additional Resources": false,
+}
+
+var ScrollToButton = true;
+
+// ##############  TAG SHORTCUT  ##############
+var toggleTagsShortcut = "C";
+
+// ENTER THE TAG TERM WHICH, WHEN PRESENT, WILL TRIGGER A RED BACKGROUND
+var tagID = "XXXYYYZZZ"
+
+// WHETHER THE WHOLE TAG OR ONLY THE LAST PART SHOULD BE SHOWN
+
+var numTagLevelsToShow = 0;
+
+

[... diff too long, it was truncated ...]

GitHub
sha: 50820261899f9e67139295880fdf11436ca7d176