mirror of
https://github.com/amark/gun.git
synced 2025-03-30 15:08:33 +00:00
Update think.html
This commit is contained in:
parent
c12de322a4
commit
5a1b5eaad6
@ -73,7 +73,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
<p>Insert the following between the ending <u>ul</u> tag and the ending <u>body</u> tag, replacing the comment line:</p>
|
||||
<textarea style="height: 6em;">
|
||||
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
<script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
<script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
<script>
|
||||
alert("Good job! You'll replace this line in the next step!");
|
||||
</script></textarea>
|
||||
@ -97,7 +97,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
alert("Good job! You'll replace this line in the next step!");
|
||||
</script>
|
||||
@ -137,7 +137,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
$('form').on('submit', function(event){
|
||||
event.preventDefault();
|
||||
@ -169,7 +169,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
var gun = Gun().get('thoughts').set();
|
||||
$('form').on('submit', function(event){
|
||||
@ -201,7 +201,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
var gun = Gun().get('thoughts').set();
|
||||
$('form').on('submit', function(event){
|
||||
@ -249,7 +249,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
var gun = Gun().get('thoughts').set();
|
||||
$('form').on('submit', function(event){
|
||||
@ -295,7 +295,7 @@ var code = $('.edit').load('./editor.html', function(){setTimeout(function(){
|
||||
|
||||
<ul></ul>
|
||||
</script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/develop/gun.js"></script>
|
||||
</script src="https://rawgit.com/amark/gun/master/gun.js"></script>
|
||||
</script>
|
||||
var gun = Gun().get('thoughts').set();
|
||||
$('form').on('submit', function(event){
|
||||
@ -358,7 +358,7 @@ next.step = [null, null, function(){
|
||||
code.contents().filter(function(){ return this.nodeType == 8 }).remove();
|
||||
var ul = code.find('ul');
|
||||
if(ctx.alert){ ul.after($('<script>').text('\n\t\t\talert("Good job! Our code will go in this script tag!");\n\t\t')) }
|
||||
if(ctx.gun){ ul.after($('<script>').attr('src', 'https://rawgit.com/amark/gun/develop/gun.js')) }
|
||||
if(ctx.gun){ ul.after($('<script>').attr('src', 'https://rawgit.com/amark/gun/master/gun.js')) }
|
||||
if(ctx.$){ ul.after($('<script>').attr('src','https://code.jquery.com/jquery-1.11.3.min.js')) }
|
||||
if(ctx.alert || ctx.gun || ctx.$){ next.mir.setValue(next.wrap($.trim(code.html().replace(/<script/ig, '\n\t\t<script')))) }
|
||||
}, function(){
|
||||
@ -403,4 +403,4 @@ next.step = [null, null, function(){
|
||||
}]
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
Loading…
x
Reference in New Issue
Block a user