Upgrade to Bootstrap 3
This commit is contained in:
parent
6b23f4613c
commit
98c6d5e495
@ -1,5 +1,5 @@
|
|||||||
CACHE MANIFEST
|
CACHE MANIFEST
|
||||||
#Date Tue Sep 03 2013 23:04:10
|
#Date Tue Sep 03 2013 23:30:01
|
||||||
|
|
||||||
CACHE:
|
CACHE:
|
||||||
index.html
|
index.html
|
||||||
|
@ -4532,28 +4532,21 @@ define("config", function() {}), define("settings", [ "underscore", "config" ],
|
|||||||
var t = document.getElementById("wmd-preview-section-" + e.id);
|
var t = document.getElementById("wmd-preview-section-" + e.id);
|
||||||
b.removeChild(t);
|
b.removeChild(t);
|
||||||
});
|
});
|
||||||
var n = document.getElementById("wmd-preview"), i = Array.prototype.slice.call(n.childNodes);
|
var n = document.getElementById("wmd-preview"), i = n.firstChild, o = document.createDocumentFragment();
|
||||||
n.innerHTML = "";
|
|
||||||
var o = document.createDocumentFragment();
|
|
||||||
e.each(p, function(n) {
|
e.each(p, function(n) {
|
||||||
for (var r = t("div", {
|
for (var r = t("div", {
|
||||||
id: "wmd-preview-section-" + n.id,
|
id: "wmd-preview-section-" + n.id,
|
||||||
"class": "wmd-preview-section preview-content"
|
"class": "wmd-preview-section preview-content"
|
||||||
}), a = !0; 0 !== i.length; ) {
|
}), a = !0; i; ) {
|
||||||
var s = i[0];
|
var s = i.nextSibling;
|
||||||
if (a === !1 && /(^| )wmd-title($| )/.test(s.className)) break;
|
if (a === !1 && /(^| )wmd-title($| )/.test(i.className)) break;
|
||||||
if (a = !1, "DIV" == s.tagName && "footnotes" == s.className) e.each(s.querySelectorAll("ol > li"), function(e) {
|
a = !1, "DIV" == i.tagName && "footnotes" == i.className ? e.each(i.querySelectorAll("ol > li"), function(e) {
|
||||||
var t = e.id.substring(3);
|
var t = e.id.substring(3);
|
||||||
y[t] = e;
|
y[t] = e;
|
||||||
}); else try {
|
}) : r.appendChild(i), i = s;
|
||||||
r.appendChild(s);
|
|
||||||
} catch (l) {
|
|
||||||
r.appendChild(document.createTextNode(s.innerText));
|
|
||||||
}
|
|
||||||
i.shift();
|
|
||||||
}
|
}
|
||||||
o.appendChild(r);
|
o.appendChild(r);
|
||||||
});
|
}), n.innerHTML = "";
|
||||||
var r = v;
|
var r = v;
|
||||||
void 0 !== f && (r = document.getElementById("wmd-preview-section-" + f.id)), b.insertBefore(o, r),
|
void 0 !== f && (r = document.getElementById("wmd-preview-section-" + f.id)), b.insertBefore(o, r),
|
||||||
v.innerHTML = "";
|
v.innerHTML = "";
|
||||||
|
@ -114,8 +114,7 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
var wmdPreviewElt = document.getElementById("wmd-preview");
|
var wmdPreviewElt = document.getElementById("wmd-preview");
|
||||||
var markdownEltList = Array.prototype.slice.call(wmdPreviewElt.childNodes);
|
var childNode = wmdPreviewElt.firstChild;
|
||||||
wmdPreviewElt.innerHTML = '';
|
|
||||||
var newSectionEltList = document.createDocumentFragment();
|
var newSectionEltList = document.createDocumentFragment();
|
||||||
_.each(modifiedSections, function(section) {
|
_.each(modifiedSections, function(section) {
|
||||||
var sectionElt = crel('div', {
|
var sectionElt = crel('div', {
|
||||||
@ -123,33 +122,28 @@ define([
|
|||||||
class: 'wmd-preview-section preview-content'
|
class: 'wmd-preview-section preview-content'
|
||||||
});
|
});
|
||||||
var isFirst = true;
|
var isFirst = true;
|
||||||
while(markdownEltList.length !== 0) {
|
while(childNode) {
|
||||||
var elt = markdownEltList[0];
|
var nextNode = childNode.nextSibling;
|
||||||
if(isFirst === false && /(^| )wmd-title($| )/.test(elt.className)) {
|
if(isFirst === false && /(^| )wmd-title($| )/.test(childNode.className)) {
|
||||||
// Stop when encountered the next wmd-title
|
// Stop when encountered the next wmd-title
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
isFirst = false;
|
isFirst = false;
|
||||||
if(elt.tagName == 'DIV' && elt.className == 'footnotes') {
|
if(childNode.tagName == 'DIV' && childNode.className == 'footnotes') {
|
||||||
_.each(elt.querySelectorAll("ol > li"), function(footnoteElt) {
|
_.each(childNode.querySelectorAll("ol > li"), function(footnoteElt) {
|
||||||
// Store each footnote in our footnote map
|
// Store each footnote in our footnote map
|
||||||
var id = footnoteElt.id.substring(3);
|
var id = footnoteElt.id.substring(3);
|
||||||
footnoteMap[id] = footnoteElt;
|
footnoteMap[id] = footnoteElt;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
try {
|
sectionElt.appendChild(childNode);
|
||||||
sectionElt.appendChild(elt);
|
|
||||||
}
|
|
||||||
catch(e) {
|
|
||||||
// IE fails with text nodes
|
|
||||||
sectionElt.appendChild(document.createTextNode(elt.innerText));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
markdownEltList.shift();
|
childNode = nextNode;
|
||||||
};
|
};
|
||||||
newSectionEltList.appendChild(sectionElt);
|
newSectionEltList.appendChild(sectionElt);
|
||||||
});
|
});
|
||||||
|
wmdPreviewElt.innerHTML = '';
|
||||||
var insertBeforeElt = footnoteContainerElt;
|
var insertBeforeElt = footnoteContainerElt;
|
||||||
if(insertBeforeSection !== undefined) {
|
if(insertBeforeSection !== undefined) {
|
||||||
insertBeforeElt = document.getElementById("wmd-preview-section-" + insertBeforeSection.id);
|
insertBeforeElt = document.getElementById("wmd-preview-section-" + insertBeforeSection.id);
|
||||||
|
Loading…
Reference in New Issue
Block a user