Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

notes to users

  • Loading branch information...
commit df2e49b2c22912a0975a82dc357cfa4173250841 1 parent 8f007b5
@estelle authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.html
View
7 index.html
@@ -815,6 +815,10 @@
},
addNotes: function(){
+ if(document.querySelector('.current textarea.mynotes')) {
+ document.querySelector('.current textarea.mynotes').classList.toggle('temphidden');
+ return;
+ }
var ta = document.createElement('textarea'),
currentSlide = document.querySelector('.current section'),
path = window.location.pathname,
@@ -841,7 +845,8 @@
removeHidingClass: function(){
var paragraphToShow = document.querySelector('.current .temphidden');
- paragraphToShow.classList.remove('temphidden');
+ if(paragraphToShow) {paragraphToShow.classList.remove('temphidden');}
+
},
handleKeys: function(e) {
Please sign in to comment.
Something went wrong with that request. Please try again.