mirror of
https://github.com/neocities/neocities.git
synced 2025-07-21 10:06:00 +02:00
implement initial code for tutorial
This commit is contained in:
parent
6fcc43297b
commit
d018e9df2d
11 changed files with 162 additions and 28 deletions
|
@ -1,15 +1,26 @@
|
|||
<div class="comic" style="height: 600px; background-image: url(/img/tutorial/ch1pg4.png);">
|
||||
<div class="dialogue">
|
||||
Now let's add a paragraph of text below the heading. Perhaps "Welcome to my website" or your favorite quote.
|
||||
Now let's add a paragraph of text below the heading (h1). Perhaps "Welcome to my website" or your favorite quote.
|
||||
</div>
|
||||
<div class="dialogue" style="left: 300px; top: 0px">
|
||||
To make a paragraph, surround your text with the [p] tag. So it should look something like
|
||||
[p]Hello![/p]
|
||||
To make a paragraph, surround your text with the <strong><p></strong> tag. So it should look something like
|
||||
<strong><p>Hello!<p></strong>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
function checkHomework(editor) {
|
||||
alert('check homework here')
|
||||
var html = editor.val()
|
||||
|
||||
var match = '<html>.+<body>.+<h1>.+</h1>.+<p>.+</p>.+</body>.+</html>'
|
||||
var re = new XRegExp(match, 'gis')
|
||||
|
||||
if(html.match(re) === null) {
|
||||
alert("That's not right! Try again.")
|
||||
} else {
|
||||
alert('Great, you did it!')
|
||||
sessionStorage.setItem('tutorialHtml', html)
|
||||
window.location.href = '/tutorial/html/5'
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue