| OLD | NEW |
| 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> | 1 <link rel="import" href="../../../../packages/polymer/polymer.html"> |
| 2 <link rel="import" href="instance_ref.html"> | 2 <link rel="import" href="instance_ref.html"> |
| 3 <link rel="import" href="error_ref.html"> | 3 <link rel="import" href="error_ref.html"> |
| 4 <link rel="import" href="observatory_element.html"> | 4 <link rel="import" href="observatory_element.html"> |
| 5 | 5 |
| 6 <polymer-element name="eval-box" extends="observatory-element"> | 6 <polymer-element name="eval-box" extends="observatory-element"> |
| 7 <template> | 7 <template> |
| 8 <style> | 8 <style> |
| 9 .textbox { | 9 .textbox { |
| 10 flex-grow: 1; | 10 flex-grow: 1; |
| 11 font: 400 16px 'Montserrat', sans-serif; | 11 font: 400 16px 'Montserrat', sans-serif; |
| 12 } | 12 } |
| 13 .bigtextbox { | 13 .bigtextbox { |
| 14 flex-grow: 1; |
| 14 font: 400 16px 'Montserrat', sans-serif; | 15 font: 400 16px 'Montserrat', sans-serif; |
| 15 } | 16 } |
| 16 .button { | 17 .button { |
| 17 font: 400 16px 'Montserrat', sans-serif; | 18 font: 400 16px 'Montserrat', sans-serif; |
| 19 margin-left: 0.5em; |
| 20 margin-right: 0.5em; |
| 18 } | 21 } |
| 19 .radios { | 22 .radios { |
| 20 display: inline; | 23 display: inline; |
| 21 padding-right: 30px; | 24 padding-right: 30px; |
| 22 } | 25 } |
| 23 .radios label{ | 26 .radios label{ |
| 24 padding-left: 10px; | 27 padding-left: 10px; |
| 25 } | 28 } |
| 26 .historyExpr, .historyValue { | 29 .historyExpr, .historyValue { |
| 27 vertical-align: text-top; | 30 vertical-align: text-top; |
| (...skipping 29 matching lines...) Expand all Loading... |
| 57 } | 60 } |
| 58 a.boxclose:hover { | 61 a.boxclose:hover { |
| 59 background: lightgray; | 62 background: lightgray; |
| 60 } | 63 } |
| 61 </style> | 64 </style> |
| 62 <form style="display:flex; flex-direction:row; align-items:flex-end"> | 65 <form style="display:flex; flex-direction:row; align-items:flex-end"> |
| 63 <template if="{{ lineMode == '1-line' }}"> | 66 <template if="{{ lineMode == '1-line' }}"> |
| 64 <input class="textbox" type="text" value="{{ text }}"> | 67 <input class="textbox" type="text" value="{{ text }}"> |
| 65 </template> | 68 </template> |
| 66 <template if="{{ lineMode == 'N-line' }}"> | 69 <template if="{{ lineMode == 'N-line' }}"> |
| 67 <textarea class="bigtextbox" rows="5" cols="80" | 70 <textarea class="bigtextbox" |
| 68 value="{{ text }}"></textarea> | 71 value="{{ text }}"></textarea> |
| 69 </template> | 72 </template> |
| 70 | 73 |
| 71 <input class="button" type="submit" value="Evaluate" on-click="{{ evaluate
}}"> | 74 <input class="button" type="submit" value="Evaluate" on-click="{{ evaluate
}}"> |
| 72 <div class="radios" on-change="{{ updateLineMode }}"> | 75 <div class="radios" on-change="{{ updateLineMode }}"> |
| 73 <label for="1-line"> | 76 <label for="1-line"> |
| 74 <input type="radio" name="lineMode" value="1-line" checked> | 77 <input type="radio" name="lineMode" value="1-line" checked> |
| 75 1-line | 78 1-line |
| 76 </label> | 79 </label> |
| 77 <label for="N-line"> | 80 <label for="N-line"> |
| (...skipping 28 matching lines...) Expand all Loading... |
| 106 <a class="boxclose" on-click="{{ closeItem }}" | 109 <a class="boxclose" on-click="{{ closeItem }}" |
| 107 closeId="{{ result['id'] }}">×</a> | 110 closeId="{{ result['id'] }}">×</a> |
| 108 </td> | 111 </td> |
| 109 </tr> | 112 </tr> |
| 110 </table> | 113 </table> |
| 111 </template> | 114 </template> |
| 112 </template> | 115 </template> |
| 113 </polymer-element> | 116 </polymer-element> |
| 114 | 117 |
| 115 <script type="application/dart" src="eval_box.dart"></script> | 118 <script type="application/dart" src="eval_box.dart"></script> |
| OLD | NEW |