start working on fb-share
This commit is contained in:
@ -1021,6 +1021,13 @@ iframe.iphone {
|
|||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.code-editor-announcement {
|
||||||
|
font-size: 44px;
|
||||||
|
font-family: "Ubuntu Mono" !important;
|
||||||
|
font-weight: 300;
|
||||||
|
line-height: 11.2px;
|
||||||
|
}
|
||||||
|
|
||||||
hr {
|
hr {
|
||||||
-moz-border-bottom-colors: none;
|
-moz-border-bottom-colors: none;
|
||||||
-moz-border-image: none;
|
-moz-border-image: none;
|
||||||
|
@ -1,5 +1,38 @@
|
|||||||
extends ../layout
|
extends ../layout
|
||||||
block content
|
block content
|
||||||
|
.jumbotron
|
||||||
|
h1.text-center Help us spread the word
|
||||||
|
.spacer
|
||||||
|
.col-xs-12.col-sm-10.col-sm-offset-1.col-md-8.col-md-offset-2
|
||||||
|
.code-editor-announcement
|
||||||
|
textarea#codeEditor
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/lib/codemirror.js')
|
||||||
|
link(rel='stylesheet', href='/js/lib/codemirror/lib/codemirror.css')
|
||||||
|
link(rel="stylesheet", href="//fonts.googleapis.com/css?family=Ubuntu+Mono")
|
||||||
|
link(rel='stylesheet', href='/js/lib/codemirror/theme/monokai.css')
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/addon/edit/closebrackets.js')
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/addon/edit/matchbrackets.js')
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/addon/lint/lint.js')
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/addon/lint/javascript-lint.js')
|
||||||
|
script(type='text/javascript', src='/js/lib/codemirror/mode/javascript/javascript.js')
|
||||||
|
script.
|
||||||
|
var editor = CodeMirror.fromTextArea(document.getElementById('codeEditor'), {
|
||||||
|
lineNumbers: false,
|
||||||
|
theme: 'monokai',
|
||||||
|
runnable: true,
|
||||||
|
matchBrackets: true,
|
||||||
|
autoCloseBrackets: true,
|
||||||
|
scrollbarStyle: 'null',
|
||||||
|
lineWrapping: true,
|
||||||
|
gutters: ['CodeMirror-lint-markers'],
|
||||||
|
mode: "javascript"
|
||||||
|
});
|
||||||
|
editor.setValue("addCampers = function() {\n\teventsInYourCity++;\n\thelpfulCampersInChat++;\n\topenSourceContributors++;\n}");
|
||||||
|
var resetEditor = function resetEditor() {};
|
||||||
|
.spacer
|
||||||
|
.row
|
||||||
|
.col-xs-12
|
||||||
|
a.btn.btn-cta.signup-btn.btn-block(href="https://www.facebook.com/sharer/sharer.php?u=http://freecodecamp.com" target='_blank') Share us on Facebook (only takes 2 clicks)
|
||||||
.panel.panel-info
|
.panel.panel-info
|
||||||
.panel-heading.text-center
|
.panel-heading.text-center
|
||||||
h1 Challenge Map
|
h1 Challenge Map
|
||||||
|
Reference in New Issue
Block a user