@innovastudio/contentbox 1.2.14 → 1.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1011,7 +1011,7 @@ class SideBar {
|
|
|
1011
1011
|
getTemplatesHtml() {
|
|
1012
1012
|
const designUrl1 = this.builder.designUrl1;
|
|
1013
1013
|
const designUrl2 = this.builder.designUrl2;
|
|
1014
|
-
|
|
1014
|
+
let html = `
|
|
1015
1015
|
<!DOCTYPE HTML>
|
|
1016
1016
|
<html>
|
|
1017
1017
|
<head>
|
|
@@ -1116,7 +1116,8 @@ class SideBar {
|
|
|
1116
1116
|
margin: 0 15px 8px 0;
|
|
1117
1117
|
text-decoration: none;
|
|
1118
1118
|
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
|
|
1119
|
-
}
|
|
1119
|
+
}`;
|
|
1120
|
+
html += `
|
|
1120
1121
|
.is-category-list > div > a:hover {
|
|
1121
1122
|
/* background: #fafafa;
|
|
1122
1123
|
color: #000; */
|
|
@@ -1219,8 +1220,8 @@ class SideBar {
|
|
|
1219
1220
|
}
|
|
1220
1221
|
|
|
1221
1222
|
</style>
|
|
1222
|
-
</head
|
|
1223
|
-
|
|
1223
|
+
</head>`;
|
|
1224
|
+
html += `<body>
|
|
1224
1225
|
|
|
1225
1226
|
<div class="is-category-list">
|
|
1226
1227
|
<!--<a href="" data-cat="0">Default</a>-->
|
|
@@ -1324,7 +1325,8 @@ class SideBar {
|
|
|
1324
1325
|
}
|
|
1325
1326
|
_addClass(element, classname);
|
|
1326
1327
|
|
|
1327
|
-
}
|
|
1328
|
+
}`;
|
|
1329
|
+
html += `
|
|
1328
1330
|
function _addClass(element, classname) {
|
|
1329
1331
|
if(!element) return;
|
|
1330
1332
|
if(element.length) {
|
|
@@ -1436,8 +1438,8 @@ class SideBar {
|
|
|
1436
1438
|
}
|
|
1437
1439
|
|
|
1438
1440
|
nIndex++;
|
|
1439
|
-
})
|
|
1440
|
-
|
|
1441
|
+
});`;
|
|
1442
|
+
html += `
|
|
1441
1443
|
data_examples.designs.forEach(function(item){
|
|
1442
1444
|
|
|
1443
1445
|
var isdefault = false;
|
|
@@ -1544,8 +1546,8 @@ class SideBar {
|
|
|
1544
1546
|
removeClass(elms,'active');
|
|
1545
1547
|
removeClass(btn1,'active');
|
|
1546
1548
|
removeClass(btn2,'active');
|
|
1547
|
-
})
|
|
1548
|
-
|
|
1549
|
+
});`;
|
|
1550
|
+
html += `
|
|
1549
1551
|
parent.document.addEventListener("click", function(e) {
|
|
1550
1552
|
var btn1 = document.querySelector('.more-basic');
|
|
1551
1553
|
var btn2 = document.querySelector('.more-examples');
|
|
@@ -1641,8 +1643,8 @@ class SideBar {
|
|
|
1641
1643
|
|
|
1642
1644
|
_elms = document.querySelectorAll('.is-more-categories');
|
|
1643
1645
|
removeClass(_elms,'active');
|
|
1644
|
-
}
|
|
1645
|
-
|
|
1646
|
+
}`;
|
|
1647
|
+
html += `
|
|
1646
1648
|
function addDesign(designid) {
|
|
1647
1649
|
|
|
1648
1650
|
var wrapper = parent.document.querySelector('.is-wrapper');
|
|
@@ -1749,7 +1751,8 @@ class SideBar {
|
|
|
1749
1751
|
html = html.replace(new RegExp('column two-sixth', 'g'), 'mdl-cell mdl-cell--10-col');
|
|
1750
1752
|
html = html.replace(new RegExp('btn btn-primary', 'g'), 'mdl-button mdl-js-button mdl-button--raised mdl-button--accent');
|
|
1751
1753
|
html = html.replace(new RegExp('btn btn-default', 'g'), 'mdl-button mdl-js-button mdl-button--raised');
|
|
1752
|
-
}
|
|
1754
|
+
}`;
|
|
1755
|
+
html += `
|
|
1753
1756
|
|
|
1754
1757
|
html = html.replace(/{id}/g, makeid());
|
|
1755
1758
|
|
|
@@ -1848,7 +1851,8 @@ class SideBar {
|
|
|
1848
1851
|
'.colored *::-webkit-scrollbar-thumb {' +
|
|
1849
1852
|
'background-color: rgba(0, 0, 0, 0.4);' +
|
|
1850
1853
|
'}' +
|
|
1851
|
-
|
|
1854
|
+
`;
|
|
1855
|
+
html += `
|
|
1852
1856
|
'.light * {' +
|
|
1853
1857
|
'scrollbar-width: thin;' +
|
|
1854
1858
|
'scrollbar-color: rgba(0, 0, 0, 0.4) auto;' +
|