Mercurial > hg > extraction-interface
comparison js/taggingtext.js @ 65:f9ae94a9b041 extractapp
New: adding topic names: name_en, name_ch, name_pinyin
| author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
|---|---|
| date | Thu, 02 Apr 2015 11:45:09 +0200 |
| parents | ca6bf3532830 |
| children | e71a437ae49f |
comparison
equal
deleted
inserted
replaced
| 64:ca6bf3532830 | 65:f9ae94a9b041 |
|---|---|
| 206 saveUndoText(); | 206 saveUndoText(); |
| 207 var newdiv = document.createElement("div"); | 207 var newdiv = document.createElement("div"); |
| 208 newdiv.id = "questionMarkId"; | 208 newdiv.id = "questionMarkId"; |
| 209 newdiv.setAttribute("class", "questionMarkClass"); | 209 newdiv.setAttribute("class", "questionMarkClass"); |
| 210 | 210 |
| 211 // set z-index to 4 to bring popup tag windwo to front | 211 // set z-index to 3 to bring popup tag windwo to front |
| 212 newdiv.style.cssText = 'top:'+eventObject.pageY+'; left:'+eventObject.pageX+'; position:absolute; background-color: white; border:1px solid black; padding: 5px; z-index:4'; | 212 newdiv.style.cssText = 'top:'+eventObject.pageY+'; left:'+eventObject.pageX+'; position:absolute; background-color: white; border:1px solid black; padding: 5px; z-index:3'; |
| 213 newdiv.innerHTML = "Tag: "+tagName+"<br>Value: "+tagObject.text()+"<br>"; | 213 newdiv.innerHTML = "Tag: "+tagName+"<br>Value: "+tagObject.text()+"<br>"; |
| 214 | 214 |
| 215 var newbutton = $('<button>Remove this</button>').mouseup(function (e2) { | 215 var newbutton = $('<button>Remove this</button>').mouseup(function (e2) { |
| 216 var textKeep = $(this).parent().parent().html(); | 216 var textKeep = $(this).parent().parent().html(); |
| 217 var regexText=/<div(.*?)<\/div>/g; | 217 var regexText=/<div(.*?)<\/div>/g; |
