scratch – Diff between revs 39 and 40

Subversion Repositories:
Rev:
Show entire fileIgnore whitespace
Rev 39 Rev 40
Line 209... Line 209...
209 $('#go').click(() => { 209 $('#go').click(() => {
210 nick = $('#nick').val(); 210 nick = $('#nick').val();
211 if(!nick || nick.length != 32) 211 if(!nick || nick.length != 32)
212 return; 212 return;
213 Cookies.set('nick', nick, { path: '' }); 213 Cookies.set('nick', nick, { path: '' });
-   214 result = nick;
Line 214... Line 215...
214 215
215 // Retrieve the contents of the shared file. 216 // Retrieve the contents of the shared file.
216 $.post('share-text.php', 217 $.post('share-text.php',
217 { 218 {
Line 234... Line 235...
234 235
235 nick = $('#nick').val(); 236 nick = $('#nick').val();
236 if(!nick || nick.length != 32) 237 if(!nick || nick.length != 32)
237 return; 238 return;
-   239 Cookies.set('nick', nick, { path: '' });
Line 238... Line 240...
238 Cookies.set('nick', nick, { path: '' }); 240 result = nick;
239 241
240 // Retrieve the contents of the shared file. 242 // Retrieve the contents of the shared file.
241 $.post('share-text.php', 243 $.post('share-text.php',
Line 255... Line 257...
255 }); 257 });
Line 256... Line 258...
256 258
257 $('#reset').click(() => { 259 $('#reset').click(() => {
258 Cookies.set('nick', fingerprint, { path: '' }); 260 Cookies.set('nick', fingerprint, { path: '' });
259 $('#nick').val(fingerprint); 261 $('#nick').val(fingerprint);
Line 260... Line 262...
260 result = nick; 262 result = fingerprint;
261 263
262 // Retrieve the contents of the shared file. 264 // Retrieve the contents of the shared file.
263 $.post('share-text.php', 265 $.post('share-text.php',