diff --git a/views/tutorial/html/10.erb b/views/tutorial/html/10.erb
index 66cc01fb..8f1c2e04 100644
--- a/views/tutorial/html/10.erb
+++ b/views/tutorial/html/10.erb
@@ -17,10 +17,3 @@
To continue working on your site, head to the dashboard !
You can also check out all the cool sites on Neocities and follow them via your news feed .
-
-
-
diff --git a/views/tutorial/html/9.erb b/views/tutorial/html/9.erb
index 7d0d7fcd..eb511b71 100644
--- a/views/tutorial/html/9.erb
+++ b/views/tutorial/html/9.erb
@@ -4,7 +4,7 @@
It'll be saved as index.html , which is the first web page people see when they visit your site.
@@ -12,7 +12,32 @@
diff --git a/views/tutorial/layout.erb b/views/tutorial/layout.erb
index bdaf4153..9a73376d 100644
--- a/views/tutorial/layout.erb
+++ b/views/tutorial/layout.erb
@@ -16,7 +16,7 @@
<% if request.path =~ /\/html\/9/ %>
-
Save to <%= current_site.username %>.neocities.org
+
Save new index.html to <%= current_site.username %>.neocities.org
Don't Save
<% else %>
@@ -26,46 +26,44 @@
<%== encoding_fix default_tutorial_html %>
-
+
-
- // Disable autocomplete
- editor.setBehavioursEnabled(false)
+
- editor.on('change', function(obj) {
- $('.error').css('display', 'none')
- refreshIframe()
- })
-
- editor.commands.addCommand({
- name: 'saveCommand',
- bindKey: {win: 'Ctrl-S', mac: 'Command-S'},
- exec: function(editor) {
- $('#submit').click()
- }
- })
- })
-
-
-
- Try again: make sure you change Hello World to something else.
-
-
-
Site Preview
-
+
Site Preview
+
@@ -128,7 +126,8 @@
$('#editor').text(tutorialHtml)
function refreshIframe() {
- $('.tutorial iframe').contents().find('html').html(editor.getValue())
+ if(typeof editor !== 'undefined')
+ $('.tutorial iframe').contents().find('html').html(editor.getValue())
}
$(function() {