Skip to content

Commit c153eda

Browse files
committed
fixed typos and made codemirror readonly
1 parent 8a9fffe commit c153eda

File tree

3 files changed

+15
-9
lines changed

3 files changed

+15
-9
lines changed

app.js

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,24 @@ $(window).load(function () {
1616
$("textarea.html").each(function(idx, textarea) {
1717
CodeMirror.fromTextArea(textarea, {
1818
lineNumbers: true,
19-
mode: "htmlmixed"
19+
mode: "htmlmixed",
20+
readOnly: true
2021
});
2122
});
2223

2324
$("textarea.css").each(function(idx, textarea) {
2425
CodeMirror.fromTextArea(textarea, {
2526
lineNumbers: true,
26-
mode: "css"
27+
mode: "css",
28+
readOnly: true
2729
});
2830
});
2931

3032
$("textarea.javascript").each(function(idx, textarea) {
3133
CodeMirror.fromTextArea(textarea, {
3234
lineNumbers: true,
33-
mode: "javascript"
35+
mode: "javascript",
36+
readOnly: true
3437
});
3538
});
3639
});

build/js/app.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -706,21 +706,24 @@ $(window).load(function () {
706706
$("textarea.html").each(function(idx, textarea) {
707707
CodeMirror.fromTextArea(textarea, {
708708
lineNumbers: true,
709-
mode: "htmlmixed"
709+
mode: "htmlmixed",
710+
readOnly: true
710711
});
711712
});
712713

713714
$("textarea.css").each(function(idx, textarea) {
714715
CodeMirror.fromTextArea(textarea, {
715716
lineNumbers: true,
716-
mode: "css"
717+
mode: "css",
718+
readOnly: true
717719
});
718720
});
719721

720722
$("textarea.javascript").each(function(idx, textarea) {
721723
CodeMirror.fromTextArea(textarea, {
722724
lineNumbers: true,
723-
mode: "javascript"
725+
mode: "javascript",
726+
readOnly: true
724727
});
725728
});
726729
});
@@ -867,7 +870,7 @@ function example5(){
867870
box[0].innerHTML = (++changed) + ' changes. ' + box.parent()[0].clientWidth+'px/'+box.parent()[0].clientHeight+'px';
868871
});
869872
}
870-
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_e11769b6.js","/")
873+
}).call(this,require("g5I+bs"),typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {},require("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_be55e83e.js","/")
871874
},{"./css-element-queries/src/ElementQueries":1,"./css-element-queries/src/ResizeSensor":2,"buffer":5,"codemirror/lib/codemirror":6,"codemirror/mode/css/css":7,"codemirror/mode/htmlmixed/htmlmixed":8,"codemirror/mode/javascript/javascript":9,"codemirror/mode/xml/xml":10,"g5I+bs":14,"hammerjs/hammer":11,"jQuery":13}],4:[function(require,module,exports){
872875
(function (process,global,Buffer,__argument0,__argument1,__argument2,__argument3,__filename,__dirname){
873876
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';

index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,15 +82,15 @@ <h3>NPM</h3>
8282
var ElementQueries = require('css-element-queries/src/ElementQueries');
8383

8484
// attaches to DOMLoadContent
85-
EQ.listen();
85+
ElementQueries.listen();
8686

8787
// or if you want to trigger it yourself:
8888
// 'init' parses all available CSS and attach ResizeSensor to those elements which
8989
// have rules attached (make sure this is called after 'load' event, because
9090
// CSS files are not ready when domReady is fired.
9191
// Use this function if you have dynamically created HTMLElements
9292
// (through ajax calls or something)
93-
EQ.init();</textarea>
93+
ElementQueries.init();</textarea>
9494
</div>
9595

9696

0 commit comments

Comments
 (0)