scratch – Diff between revs 91 and 92
?pathlinks?
Rev 91 | Rev 92 | |||
---|---|---|---|---|
Line 61... | Line 61... | |||
61 | <input id="URL" type="text" class="form-control" readonly> |
61 | <input id="URL" type="text" class="form-control" readonly> |
|
62 | <span class="input-group-btn"> |
62 | <span class="input-group-btn"> |
|
63 | <button id="copy-url" class="btn btn-default" type="button" data-clipboard-target="#URL" data-toggle="tooltip" data-placement="auto" title="Copy to clipboard."><i class="glyphicon glyphicon-paperclip"></i></button> |
63 | <button id="copy-url" class="btn btn-default" type="button" data-clipboard-target="#URL" data-toggle="tooltip" data-placement="auto" title="Copy to clipboard."><i class="glyphicon glyphicon-paperclip"></i></button> |
|
64 | </span> |
64 | </span> |
|
65 | </div> |
65 | </div> |
|
- | 66 | <div class="input-group"> |
||
- | 67 | <input id="deleteURL" type="text" class="form-control" readonly> |
||
- | 68 | <span class="input-group-btn"> |
||
- | 69 | <button id="delete-url" class="btn btn-default" type="button" data-clipboard-target="#deleteURL"><i class="glyphicon glyphicon-paperclip"></i></button> |
||
- | 70 | </span> |
||
- | 71 | </div> |
||
66 | </div> |
72 | </div> |
|
67 | </form> |
73 | </form> |
|
68 | </div> |
74 | </div> |
|
Line 69... | Line 75... | |||
69 | |
75 | |
|
Line 130... | Line 136... | |||
130 | .concat("//") |
136 | .concat("//") |
|
131 | .concat(window.location.hostname) |
137 | .concat(window.location.hostname) |
|
132 | .concat("/") |
138 | .concat("/") |
|
133 | .concat(data.hash) |
139 | .concat(data.hash) |
|
134 | ); |
140 | ); |
|
- | 141 | |
||
- | 142 | $('#deleteURL') |
||
- | 143 | .val( |
||
- | 144 | location |
||
- | 145 | .protocol.concat("//") |
||
- | 146 | .concat(window.location.hostname) |
||
- | 147 | .concat("/") |
||
- | 148 | .concat(data.timestamp) |
||
- | 149 | .concat("/") |
||
- | 150 | .concat(data.hash) |
||
- | 151 | ); |
||
135 | }); |
152 | }); |
|
136 | }); |
153 | }); |
|
Line 137... | Line 154... | |||
137 | |
154 | |
|
138 | // Enable the Clipboard button. |
155 | // Enable the Clipboard button. |
|
- | 156 | new Clipboard('#copy-url'); |
||
Line 139... | Line 157... | |||
139 | new Clipboard('#copy-url'); |
157 | new Clipboard('#delete-url'); |
|
140 | |
158 | |
|
141 | // Scroll to the panel. |
159 | // Scroll to the panel. |
|
142 | $('html, body').animate({ |
160 | $('html, body').animate({ |