Mercurial > hg > extraction-interface
comparison views/Extractapp/TaggingText.php @ 101:a264460c77ca extractapp
new: auto save and reload page after updating taglist.
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Wed, 04 May 2016 15:22:11 +0200 |
parents | 8a97db7b9108 |
children | 6ba742b712b0 |
comparison
equal
deleted
inserted
replaced
100:8a97db7b9108 | 101:a264460c77ca |
---|---|
117 */ | 117 */ |
118 } | 118 } |
119 } | 119 } |
120 | 120 |
121 | 121 |
122 // ---- use cookie to save text and reload page for the up-to-date taglist | |
123 function updatePage() { | |
124 var text = getCookie(); | |
125 //document.forms['receiver'].elements['message'].value = text; | |
126 console.log(text); | |
127 if (text == "reload") { | |
128 setCookie(""); | |
129 saveTextToLGService(); | |
130 | |
131 } | |
132 setTimeout(updatePage, 500); | |
133 | |
134 } | |
135 updatePage(); | |
136 | |
137 // ------ | |
122 | 138 |
123 function reloadText() { | 139 function reloadText() { |
124 /** | 140 /** |
125 * Reload the text when there is a new version of this branch. | 141 * Reload the text when there is a new version of this branch. |
126 */ | 142 */ |
1446 foreach ( $wordlistArray as $wordlistValue ) { | 1462 foreach ( $wordlistArray as $wordlistValue ) { |
1447 echo "<option value=\"".$wordlistValue[0]."\">".$wordlistValue[1]."</option>\n"; | 1463 echo "<option value=\"".$wordlistValue[0]."\">".$wordlistValue[1]."</option>\n"; |
1448 } | 1464 } |
1449 ?> | 1465 ?> |
1450 </select> | 1466 </select> |
1467 <!-- edit wordlist --> | |
1468 <button onclick="window.open('./EditWordlist')" class="btn btn-default">Edit WordList</button></br> | |
1469 | |
1451 <br> | 1470 <br> |
1452 OR (USE "|" TO SEPARATE WORDS):<br> | 1471 OR (USE "|" TO SEPARATE WORDS):<br> |
1453 <TEXTAREA id="smartRegexPopUpText" COLS=30 ROWS=4></TEXTAREA><br><br> | 1472 <TEXTAREA id="smartRegexPopUpText" COLS=30 ROWS=4></TEXTAREA><br><br> |
1454 Tag: | 1473 Tag: |
1455 <select id="smartRegexPopUpSelectTag"> | 1474 <select id="smartRegexPopUpSelectTag"> |
1544 <button onclick="replaceSmartRunWithBr()" class="btn btn-default">Tag (with line break)</button> | 1563 <button onclick="replaceSmartRunWithBr()" class="btn btn-default">Tag (with line break)</button> |
1545 <!-- <button onclick="replaceSmartRunSpace()" class="btn-lg">Run(Allow space between Group)</button></br> | 1564 <!-- <button onclick="replaceSmartRunSpace()" class="btn-lg">Run(Allow space between Group)</button></br> |
1546 --> | 1565 --> |
1547 <button onclick="replaceSmartRunSpace()" class="btn btn-default btn-block">Tag (Allow space within block)</button></br> | 1566 <button onclick="replaceSmartRunSpace()" class="btn btn-default btn-block">Tag (Allow space within block)</button></br> |
1548 | 1567 |
1549 <button onclick="window.open('./EditWordlist')" class="btn btn-default btn-block">Edit WordList</button></br> | |
1550 | |
1551 <!-- developing...--> | 1568 <!-- developing...--> |
1552 <!-- | 1569 <!-- |
1553 <button onclick="genRegexWindowOpen()" id="gen_regex_window_open_id" class="btn btn-default btn-block btn-xs">Open GenRegex (developing...)</button></br> | 1570 <button onclick="genRegexWindowOpen()" id="gen_regex_window_open_id" class="btn btn-default btn-block btn-xs">Open GenRegex (developing...)</button></br> |
1554 --> | 1571 --> |
1555 </div> | 1572 </div> |