Skip to content
This repository was archived by the owner on Mar 16, 2023. It is now read-only.

Commit e5a7924

Browse files
committed
Cleaned up the code.
1 parent ed5ebae commit e5a7924

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

assets/js/app.js

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Parse.initialize("VvmNgHcupWn43L9ThaNDiIldMSjOXiLvd7DR7wTq", "DTAv28KMYt5pYlY3Q1
1919
var Parse_Notes = Parse.Object.extend("Notes");
2020
var Private_Parse_Notes = new Parse_Notes();
2121
var syncing;
22-
var wrap=true;
22+
var wrap = true;
2323
var parsenoteid;
2424

2525
var marked = require('marked');
@@ -108,17 +108,17 @@ marked.setOptions(
108108
highlight: function(code, lang) //use highlight.js for syntax highlighting.
109109
{
110110
if (!lang) return highlight.highlightAuto(code).value;
111-
112-
try
113-
{
114-
content = highlight.highlight(lang, code).value;
115-
}
116-
catch (err)
117-
{
118-
content = highlight.highlightAuto(code).value;
119-
}
120-
return content;
121-
}
111+
112+
try
113+
{
114+
content = highlight.highlight(lang, code).value;
115+
}
116+
catch (err)
117+
{
118+
content = highlight.highlightAuto(code).value;
119+
}
120+
return content;
121+
}
122122
});
123123

124124
$(document).on("click", "list-item", function()
@@ -223,7 +223,7 @@ $(document).on("ready", function()
223223
}
224224
loadNote(current);
225225

226-
$("#list").scrollTop((current-1)*29)
226+
$("#list").scrollTop((current - 1) * 29);
227227
});
228228

229229
Mousetrap.bind('down', function(e)
@@ -235,7 +235,7 @@ $(document).on("ready", function()
235235
}
236236
loadNote(current);
237237

238-
$("#list").scrollTop((current-1)*29)
238+
$("#list").scrollTop((current - 1) * 29);
239239
});
240240

241241
Mousetrap.bind('esc', function()
@@ -302,7 +302,7 @@ $(document).on("ready", function()
302302
login(n.username, n.password);
303303
$("#syncing").prop("checked", true);
304304
}
305-
if (wrap===true)
305+
if (wrap === true)
306306
{
307307
editor.getSession().setUseWrapMode(true);
308308
$("#wrap").prop("checked", true);
@@ -361,14 +361,14 @@ $(document).on("ready", function()
361361
key: 'settings',
362362
username: username,
363363
password: password,
364-
wrap: wrap,
364+
wrap: wrap,
365365
syncing: syncing
366366
});
367367
if (syncing === true)
368368
{
369369
login(username, password);
370370
}
371-
if (wrap===true)
371+
if (wrap === true)
372372
{
373373
editor.getSession().setUseWrapMode(true);
374374
}

0 commit comments

Comments
 (0)