mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-14 18:46:19 +02:00
minor traking n style fixes
This commit is contained in:
@ -523,7 +523,6 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
}
|
}
|
||||||
function updateJsMode(value) {
|
function updateJsMode(value) {
|
||||||
jsMode = value;
|
jsMode = value;
|
||||||
console.log('mode set', value)
|
|
||||||
jsModelLabel.textContent = modes[value].label;
|
jsModelLabel.textContent = modes[value].label;
|
||||||
scope.cm.js.setOption('mode', modes[value].cmMode);
|
scope.cm.js.setOption('mode', modes[value].cmMode);
|
||||||
CodeMirror.autoLoadMode(scope.cm.js, modes[value].cmPath || modes[value].cmMode);
|
CodeMirror.autoLoadMode(scope.cm.js, modes[value].cmPath || modes[value].cmMode);
|
||||||
@ -775,11 +774,6 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
trackEvent('fn', 'hasCode');
|
trackEvent('fn', 'hasCode');
|
||||||
trackEvent.hasTrackedCode = true;
|
trackEvent.hasTrackedCode = true;
|
||||||
}
|
}
|
||||||
// Track when people actually are working.
|
|
||||||
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;
|
|
||||||
if (trackEvent.previewCount === 4) {
|
|
||||||
trackEvent('fn', 'usingPreview');
|
|
||||||
}
|
|
||||||
|
|
||||||
// we need to store user script in external JS file to prevent inline-script
|
// we need to store user script in external JS file to prevent inline-script
|
||||||
// CSP from affecting it.
|
// CSP from affecting it.
|
||||||
@ -789,8 +783,6 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
+ chrome.i18n.getMessage('@@extension_id') + '/temporary/' + 'preview.html';
|
+ chrome.i18n.getMessage('@@extension_id') + '/temporary/' + 'preview.html';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
scope.setPreviewContent = function (isForced) {
|
scope.setPreviewContent = function (isForced) {
|
||||||
@ -904,7 +896,6 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
updateTimer = setTimeout(function () {
|
updateTimer = setTimeout(function () {
|
||||||
scope.setPreviewContent();
|
scope.setPreviewContent();
|
||||||
// If this isn a user triggered change, handle unsaved changes count.
|
// If this isn a user triggered change, handle unsaved changes count.
|
||||||
console.log(change.origin)
|
|
||||||
if (change.origin === '+input' || change.origin === '+delete') {
|
if (change.origin === '+input' || change.origin === '+delete') {
|
||||||
saveBtn.classList.add('is-marked');
|
saveBtn.classList.add('is-marked');
|
||||||
unsavedEditCount += 1;
|
unsavedEditCount += 1;
|
||||||
@ -916,6 +907,12 @@ onboardDontShowInTabOptionBtn, TextareaAutoComplete */
|
|||||||
saveBtn.classList.remove('wobble');
|
saveBtn.classList.remove('wobble');
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Track when people actually are working.
|
||||||
|
trackEvent.previewCount = (trackEvent.previewCount || 0) + 1;
|
||||||
|
if (trackEvent.previewCount === 4) {
|
||||||
|
trackEvent('fn', 'usingPreview');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}, updateDelay);
|
}, updateDelay);
|
||||||
});
|
});
|
||||||
|
@ -46,6 +46,8 @@ label {
|
|||||||
}
|
}
|
||||||
[class*="hint--"]:after {
|
[class*="hint--"]:after {
|
||||||
text-transform: none;
|
text-transform: none;
|
||||||
|
font-weight: normal;
|
||||||
|
letter-spacing: 0.5px;
|
||||||
}
|
}
|
||||||
.line {
|
.line {
|
||||||
display: block;
|
display: block;
|
||||||
|
Reference in New Issue
Block a user