Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
...
  • 3 commits
  • 3 files changed
  • 0 commit comments
  • 1 contributor
Showing with 10 additions and 1 deletion.
  1. +2 −0 README.md
  2. +5 −0 css/style.css
  3. +3 −1 js/script.js
View
2 README.md
@@ -36,6 +36,8 @@ I've listed issues I can think of here - some are in **bold**, meaning they shou
* Social sharing buttons (twitter, g+, ?facebook?)
+ * Learn from Tobias' prior works. Tobias Nurmiranta (https://github.com/tnlogy) beat me to this project and put together a simmilar, but less complete demo. It would be great, if nothing else, to peruse his source code and learn from it. The project is live [here](http://tnlogy.github.com/tnlogy/) and the code is [here](https://github.com/tnlogy/live-coding)
+
* HTML5 Build Script breaks. At the moment, the uncompressed, unoptimised version is running on the server - this is because the html5 build script breaks on some of the codemirror javascript. It'd be neat to be able to run all the optimisations etc over things before putting them on the server.
* More samples. It'd be neat to see more (/cooler) samples in the preset drop down. Or perhaps things should head a different direction, where any user on the live site can create and save public / private presets (like jsfiddle, dabblet etc)? I'm keen to keep as much functionality client-side as possible, but am not opposed to setting up a light Node.js / other server component. Thoughts?
View
5 css/style.css
@@ -206,6 +206,11 @@ td { vertical-align: top; }
Author:
========================================================================== */
+html, body {
+ height: 100%;
+ overflow: hidden;
+}
+
#main {
position: relative;
top: -20px;
View
4 js/script.js
@@ -59,7 +59,9 @@
});
// Try and set the initial text
- editor.setValue(getLocalStorageValue("editorText", editor.getValue()));
+ var val = getLocalStorageValue("editorText", editor.getValue());
+ if(val == "") val = editor.getValue();
+ editor.setValue(val);
// Configure the drop down
$("#preset_opt").change(function() {

No commit comments for this range

Something went wrong with that request. Please try again.