scratch

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 41  →  ?path2? @ 42
/quickload/index.html
@@ -49,6 +49,12 @@
<li><a href="files.html">Files</a></li>
<li><a href="text.html">Text</a></li>
</ul>
<div class="content">
<h2>Welcome</h2>
sdf
</div>
 
</div> <!-- /container -->
/quickload/text.html
@@ -80,7 +80,7 @@
</span>
<span class="input-group-btn">
<button id="reset" class="btn btn-default" type="button" data-toggle="tooltip" data-placement="auto" title="Reset document.">
<i class="glyphicon glyphicon-home"></i>
<i id="home-icon" class="glyphicon glyphicon-home"></i>
</button>
</span>
<input id="nick" type="text" class="form-control" pattern="^[A-Za-z0-9]{32}$" maxlength="32">
@@ -141,6 +141,11 @@
$('#nick').val(result);
new Clipboard('#copy-nick');
if(fingerprint == nick)
$('#home-icon').addClass("text-success");
else
$('#home-icon').addClass("text-danger");
// Load the editor.
$('#trumbowyg').trumbowyg({
autogrow: true,
@@ -200,7 +205,6 @@
$('#URL').val(data);
$('#trumbowyg').trumbowyg('enable');
}).fail(() => {
alert('failed');
$('#trumbowyg').trumbowyg('enable');
});
});
@@ -213,6 +217,11 @@
Cookies.set('nick', nick, { path: '' });
result = nick;
if(fingerprint == nick)
$('#home-icon').addClass("text-success").removeClass("text-danger");
else
$('#home-icon').addClass("text-danger").removeClass("text-success");
// Retrieve the contents of the shared file.
$.post('share-text.php',
{
@@ -224,6 +233,12 @@
.trumbowyg('html', data);
$('#trumbowyg').trumbowyg('enable');
$('#trumbowyg').show();
if(fingerprint == nick)
$('#home-icon').addClass("text-success");
else
$('#home-icon').addClass("text-danger");
}).fail(() => {
$('#trumbowyg').trumbowyg('enable');
$('#trumbowyg').show();
@@ -240,6 +255,11 @@
Cookies.set('nick', nick, { path: '' });
result = nick;
if(fingerprint == nick)
$('#home-icon').addClass("text-success");
else
$('#home-icon').addClass("text-danger");
// Retrieve the contents of the shared file.
$.post('share-text.php',
{
@@ -251,6 +271,12 @@
.trumbowyg('html', data);
$('#trumbowyg').trumbowyg('enable');
$('#trumbowyg').show();
if(fingerprint == nick)
$('#home-icon').addClass("text-success").removeClass("text-danger");
else
$('#home-icon').addClass("text-danger").removeClass("text-success");
}).fail(() => {
$('#trumbowyg').trumbowyg('enable');
$('#trumbowyg').show();
@@ -265,6 +291,11 @@
Cookies.set('nick', nick, { path: '' });
result = nick;
if(fingerprint == nick)
$('#home-icon').addClass("text-success").removeClass("text-danger");
else
$('#home-icon').addClass("text-danger").removeClass("text-success");
// Retrieve the contents of the shared file.
$.post('share-text.php',
{
@@ -287,7 +318,13 @@
Cookies.set('nick', fingerprint, { path: '' });
$('#nick').val(fingerprint);
result = fingerprint;
nick = fingerprint;
if(fingerprint == nick)
$('#home-icon').addClass("text-success").removeClass("text-danger");
else
$('#home-icon').addClass("text-danger").removeClass("text-success");
// Retrieve the contents of the shared file.
$.post('share-text.php',
{