-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.js
More file actions
37 lines (31 loc) · 1.19 KB
/
main.js
File metadata and controls
37 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/*jslint vars: true, plusplus: true, devel: true, nomen: true, indent: 4,
maxerr: 50, browser: true */
/*global define, brackets, $, document, Mustache*/
/**
* This extension provides in-editor livepreview through an iframe,
* and leverages the experimental Multi Browser implementation of brackets
* (see https://github.com/adobe/brackets/tree/master/src/LiveDevelopment/MultiBrowserImpl)
*/
define(function (require, exports, module) {
"use strict";
var cameraWidgetHtml = require("text!cameraWidget.html"),
var cameraWidget;
function showCamera(lineNumber) {
var description = document.createElement("div");
description.className = "cameraPanel";
description.innerHTML = cameraWidgetHtml;
var options = {coverGutter: false, noHScroll: false, above: false, showIfHidden: false};
cameraWidget = getCodeMirror().addLineWidget(lineNumber, description, options);
}
function hideCamera() {
if(!cameraWidget) {
return;
}
cameraWidget.clear();
cameraWidget = null;
}
AppInit.appReady(function (){
// Inject option into autocomplete menu
// Attach listener to autocomplete
});
});