Comments (9)
Thank you, now it's fixed. I'm going to check my other note types to make sure they don't have this problem.
from fsrs4anki.
Could you show me the value of deck_name
? Use the inspector and run the code to line 32, then the value of deck_name will show in the scope.
from fsrs4anki.
from fsrs4anki.
Yes. It's weird. It seems like the front didn't contain the deck name.
from fsrs4anki.
Can you switch to the element
tab of the inspector? I want to check the div
element in the front.
from fsrs4anki.
I checked some other decks and it seems like they are fine, so something is wrong either with this deck or with the cards in it.
Here's the screenshot, deck_name
in Elements
is correct, but when I get to line 32 and check code in the Sources
tab it still says deck_name=null
.
from fsrs4anki.
I find that an another element also has id=deck.
from fsrs4anki.
Ah, I guess there might be a problem with the card template.
Here's the code from the front of the card:
<div id="items">
<div id="path"></div>
<div id="deck">{{Deck}}</div>
<div id="front">{{Front}}</div>
</div>
<script>
deck = document.getElementById("deck");
dName = deck.innerText.split("::")
deck.innerHTML = dName[dName.length-1];
document.getElementById("path").innerHTML = dName.join(" > ")
function addTitle(id=false, title="") {
let el = document.getElementById(id);
if (el.innerText) {
let t = document.createElement("div");
t.classList.add("title");
t.innerHTML = title;
let b = document.createElement("div");
b.classList.add("body");
b.innerHTML = el.innerHTML;
while(el.firstChild) {
el.removeChild(el.firstChild);
}
el.append(t, b);
}
}
addTitle("front", "Q. ");
</script>
<div id=deck deck_name="{{Deck}}"></div>
from fsrs4anki.
Remove the line 3 of the template. It will solve the problem.
Edit: or move the end line to the first line.
from fsrs4anki.
Related Issues (20)
- [Feature Request] new card limit in optimizer.find_optimal_retention HOT 10
- [Feature Request] Make it easier to disable SM2 ("anki") simulation in Simulator HOT 1
- [BUG] Give Simulator's graphs titles to distinguish them HOT 4
- [Question] What is the best practice for reschedule cards and update parameters button? HOT 6
- [Feature Request] Improve Learning/Relearning Scheduling HOT 10
- [BUG] Hard interval is longer than Good interval, and longer than Max interval HOT 1
- [BUG] optimizer.find_optimal_retention: ValueError: Axis limits cannot be NaN or Inf HOT 4
- FSRS Simulator File Not a Zip File [BUG] HOT 7
- [Question]only use "Again" or "Hard" HOT 17
- [Feature Request] Change scheduling based on the type of card used HOT 8
- [BUG] List of compatible add-ons (update)
- [Question] Does review records affecte the parameters when I reset old cards to new cards HOT 2
- [Feature Request] Change to difficulty on new cards HOT 3
- [Question] Not graduating cards the same day affects scheduling? HOT 3
- [Question] Who should NOT use fsrs4anki / the limits to generalization are in the training set HOT 3
- [Question] I haven't used Anki for a while HOT 1
- [Question] Date change HOT 6
- [Question] Does fsrs deals well with cramming HOT 1
- [Question] HOT 21
- Optimiser Stops Working After a Single Review HOT 23
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fsrs4anki.