Skip to content

Commit d762b95

Browse files
authored
Merge pull request #6 from Saranya13/master
move the sample browser changes to github javascript sample browser
2 parents c8e8274 + b6e1b04 commit d762b95

File tree

1,490 files changed

+43193
-25847
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,490 files changed

+43193
-25847
lines changed

index.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,15 +74,15 @@
7474
<div id="controlTree" class='e-view'></div>
7575
<div id="controlSamples">
7676
<div id="sb-left-back" class="back" role="button" tabindex="0">
77-
<div class="e-icons back-icon"></div>
77+
<div class="sb-icons sb-icon-Back"></div>
7878
<div class='control-name'>All Controls</div>
7979
</div>
8080
<div id="controlList" class='e-view sb-control-list-top'></div>
8181
</div>
8282
</div>
8383
<div class='sb-left-footer'>
8484
<div class="sb-mobile-header-buttons">
85-
<a href='https://www.syncfusion.com/products/javascript' target="_blank">
85+
<a href='https://www.syncfusion.com/javascript-ui-controls' target="_blank">
8686
<div class="sb-mobile-header-about">
8787
About</div>
8888
</a>
@@ -197,9 +197,13 @@
197197
<span class='sb-icons sb-theme-select sb-icon-icon-selection'></span>
198198
<span class="switch-text">Bootstrap</span>
199199
</li>
200+
<li class="e-list" id="bootstrap4" role="listitem">
201+
<span class='sb-icons sb-theme-select sb-icon-icon-selection'></span>
202+
<span class="switch-text">Bootstrap v4</span>
203+
</li>
200204
<li class="e-list" id="highcontrast">
201-
<span class='sb-icons sb-theme-select sb-icon-icon-selection'></span>
202-
<span class="switch-text">High Contrast</span>
205+
<span class='sb-icons sb-theme-select sb-icon-icon-selection'></span>
206+
<span class="switch-text">High Contrast</span>
203207
</li>
204208
</ul>
205209
</div>
@@ -219,6 +223,7 @@
219223
<option value="material">Material</option>
220224
<option value="fabric">Fabric</option>
221225
<option value="bootstrap">Bootstrap</option>
226+
<option value="bootstrap4">Bootstrap v4</option>
222227
<option value="highcontrast">High Contrast</option>
223228
</select>
224229
</div>

src/accordion/ajax-stack.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"index.html":"<html><head><script src=\"//npmci.syncfusion.com/development/demos/accordion/ajax/datasource.js\" type=\"text/javascript\"></script>\n<script src=\"//npmci.syncfusion.com/packages/development/dist/ej2.min.js\" type=\"text/javascript\"></script>\n<link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\">\n<link href=\"https://cdn.syncfusion.com/ej2/material.css\" rel=\"stylesheet\"><style>\n body{\n touch-action:none;\n }\n </style></head><body><div class=\"stackblitz-container {{theme}}\"><div class=\"control-section\">\n <div class=\"control_wrapper accordion-control-section\">\n <div class=\"product_title\"> iPhone X Product Specification </div>\n <div id=\"Accordion_Nested\"></div>\n </div>\n <div id=\"Sensor_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <td class=\"e-bold\">Proximity sensor</td>\n <td>Yes</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Face ID</td>\n <td>Yes</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Accelerometer</td>\n <td>Yes</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Hard_Soft_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th rowspan=\"3\"> Hardware</th>\n <td class=\"e-bold\" rowspan=\"2 \">Chip</td>\n <td>Apple A11 Bionic chip with 64-bit architecture</td>\n </tr>\n <tr>\n <td>Embedded M11 motion coprocessor</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Capacity</td>\n <td>64GB/256GB</td>\n </tr>\n <tr>\n <th> Software</th>\n <td class=\"e-bold\" rowspan=\"2 \">Operating System</td>\n <td>iOS 11</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Video_Rec_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th class=\"e-bold\" rowspan=\"9\">Video Recording</th>\n </tr>\n <tr>\n <td class=\"e-bold\">4K video recording</td>\n </tr>\n <tr>\n <td class=\"e-bold\">1080p &amp; 720p HD video recording</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Optical zoom, 6x digital zoom</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Slow motion video support</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Take 8MP still photos while recording 4K video</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Noise reduction</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Camera_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th class=\"e-bold\" rowspan=\"3\">Camera</th>\n <td class=\"e-bold\"> 12MP wide-angle</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Live Photos with stabilization</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Body and face detection</td>\n </tr>\n <tr>\n <th class=\"e-bold\" rowspan=\"4\">TrueDepth Camera</th>\n <td class=\"e-bold\"> 7MP camera</td>\n </tr>\n <tr>\n <td class=\"e-bold\"> Animoji</td>\n </tr>\n <tr>\n <td class=\"e-bold\"> Face detection</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"source_link\">Source: &#xA0;\n <a href=\"https://www.apple.com/iphone-x/specs/\" target=\"_blank\">www.apple.com/iphone-x/specs/</a>\n </div>\n</div>\n\n\n<style>\n @-moz-document url-prefix() {\n .e-accordion .e-content table {\n border-collapse: initial;\n }\n }\n \n .e-accordion table {\n border-collapse: collapse;\n border-spacing: 0;\n width: 100%;\n }\n \n .e-accordion table th,\n .e-accordion table td {\n font-weight: normal;\n padding: 5px;\n text-align: left;\n border: 1px solid #ddd\n }\n \n .product_title {\n text-align: center;\n margin: 20px 0;\n padding: 10px 0;\n text-overflow: ellipsis;\n font-weight: bold;\n font-size: 16px;\n }\n \n .accordion-control-section {\n margin: 0 10% 0 10%;\n padding-bottom: 25px;\n }\n \n #source_link {\n float: right;\n margin-right: 10px;\n }\n \n @media screen and (max-width: 768px) {\n .accordion-control-section {\n margin: 0;\n margin-bottom: 20px;\n }\n #source_link {\n margin-top: -25px;\n margin-right: 0px;\n }\n }\n</style></div></body></html>","index.js":"{{ripple}}/**\n * Accordion Ajax Sample\n */\nvar acrdnObj,nestAcrdn;\n\n var ajax = new ej.base.Ajax('//npmci.syncfusion.com/development/demos/src/accordion/ajax-content.html', 'GET', true);\n ajax.send().then();\n ajax.onSuccess = function (data) {\n //Initialize Accordion component\n acrdnObj = new ej.navigations.Accordion({\n expandMode: 'Single',\n expanding: expand,\n items: [\n { header: 'Network & Connectivity', content: data, expanded: true },\n { header: 'Feature', content: '<div id=\"nested_Acc\"></div>' },\n { header: 'Hardware & Software', content: '#Hard_Soft_features' }\n ]\n });\n //Render initialized Accordion component\n acrdnObj.appendTo('#Accordion_Nested');\n };\n\n//Expanding Event function for Accordion component.\nfunction expand(e) {\n if (e.isExpanded && [].indexOf.call(this.items, e.item) === 1) {\n if (e.element.querySelectorAll('.e-accordion').length > 0) {\n return;\n }\n //Initialize Nested Accordion component\n nestAcrdn = new ej.navigations.Accordion({\n expandMode: 'Single',\n items: [\n { header: 'Sensor', content: '#Sensor_features' },\n { header: 'Camera', content: '#Camera_features' },\n { header: 'Video Recording', content: '#Video_Rec_features' },\n ]\n });\n //Render initialized Nested Accordion component\n nestAcrdn.appendTo('#nested_Acc');\n }\n}\n\n\n "}
1+
{"index.html":"<html><head><script src=\"//ej2.syncfusion.com/javascript/demos/accordion/ajax/datasource.js\" type=\"text/javascript\"></script>\n<script src=\"https://cdn.syncfusion.com/ej2/dist/ej2.min.js\" type=\"text/javascript\"></script>\n <link href=\"https://cdn.syncfusion.com/ej2/material.css\" rel=\"stylesheet\">\n\n <link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\">\n\n <style>\n body{\n touch-action:none;\n }\n </style></head><body><div class=\"stackblitz-container {{theme}}\"><div class=\"control-section\">\n <div class=\"control_wrapper accordion-control-section\">\n <div class=\"product_title\"> iPhone X Product Specification </div>\n <div id=\"Accordion_Nested\"></div>\n </div>\n <div id=\"Sensor_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <td class=\"e-bold\">Proximity sensor</td>\n <td>Yes</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Face ID</td>\n <td>Yes</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Accelerometer</td>\n <td>Yes</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Hard_Soft_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th rowspan=\"3\"> Hardware</th>\n <td class=\"e-bold\" rowspan=\"2 \">Chip</td>\n <td>Apple A11 Bionic chip with 64-bit architecture</td>\n </tr>\n <tr>\n <td>Embedded M11 motion coprocessor</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Capacity</td>\n <td>64GB/256GB</td>\n </tr>\n <tr>\n <th> Software</th>\n <td class=\"e-bold\" rowspan=\"2 \">Operating System</td>\n <td>iOS 11</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Video_Rec_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th class=\"e-bold\" rowspan=\"9\">Video Recording</th>\n </tr>\n <tr>\n <td class=\"e-bold\">4K video recording</td>\n </tr>\n <tr>\n <td class=\"e-bold\">1080p &amp; 720p HD video recording</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Optical zoom, 6x digital zoom</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Slow motion video support</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Take 8MP still photos while recording 4K video</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Noise reduction</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"Camera_features\" style=\"display:none\">\n <table>\n <tbody><tr>\n <th class=\"e-bold\" rowspan=\"3\">Camera</th>\n <td class=\"e-bold\"> 12MP wide-angle</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Live Photos with stabilization</td>\n </tr>\n <tr>\n <td class=\"e-bold\">Body and face detection</td>\n </tr>\n <tr>\n <th class=\"e-bold\" rowspan=\"4\">TrueDepth Camera</th>\n <td class=\"e-bold\"> 7MP camera</td>\n </tr>\n <tr>\n <td class=\"e-bold\"> Animoji</td>\n </tr>\n <tr>\n <td class=\"e-bold\"> Face detection</td>\n </tr>\n </tbody></table>\n </div>\n <div id=\"source_link\">Source: &#xA0;\n <a href=\"https://www.apple.com/iphone-x/specs/\" target=\"_blank\">www.apple.com/iphone-x/specs/</a>\n </div>\n</div>\n\n\n<style>\n @-moz-document url-prefix() {\n .e-accordion .e-content table {\n border-collapse: initial;\n }\n }\n \n .e-accordion table {\n border-collapse: collapse;\n border-spacing: 0;\n width: 100%;\n }\n \n .e-accordion table th,\n .e-accordion table td {\n font-weight: normal;\n padding: 5px;\n text-align: left;\n border: 1px solid #ddd\n }\n \n .product_title {\n text-align: center;\n margin: 20px 0;\n padding: 10px 0;\n text-overflow: ellipsis;\n font-weight: bold;\n font-size: 16px;\n }\n \n .accordion-control-section {\n margin: 0 10% 0 10%;\n padding-bottom: 25px;\n }\n\n</style></div></body></html>","index.js":"{{ripple}}/**\n * Accordion Ajax Sample\n */\nvar acrdnObj,nestAcrdn;\n\n var ajax = new ej.base.Ajax('//ej2.syncfusion.com/javascript/demos/src/accordion/ajax-content.html', 'GET', true);\n ajax.send().then();\n ajax.onSuccess = function (data) {\n //Initialize Accordion component\n acrdnObj = new ej.navigations.Accordion({\n expandMode: 'Single',\n expanding: expand,\n items: [\n { header: 'Network & Connectivity', content: data, expanded: true },\n { header: 'Feature', content: '<div id=\"nested_Acc\"></div>' },\n { header: 'Hardware & Software', content: '#Hard_Soft_features' }\n ]\n });\n //Render initialized Accordion component\n acrdnObj.appendTo('#Accordion_Nested');\n };\n\n//Expanding Event function for Accordion component.\nfunction expand(e) {\n if (e.isExpanded && [].indexOf.call(this.items, e.item) === 1) {\n if (e.element.querySelectorAll('.e-accordion').length > 0) {\n return;\n }\n //Initialize Nested Accordion component\n nestAcrdn = new ej.navigations.Accordion({\n expandMode: 'Single',\n items: [\n { header: 'Sensor', content: '#Sensor_features' },\n { header: 'Camera', content: '#Camera_features' },\n { header: 'Video Recording', content: '#Video_Rec_features' },\n ]\n });\n //Render initialized Nested Accordion component\n nestAcrdn.appendTo('#nested_Acc');\n }\n}\n\n\n "}

src/accordion/ajax.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@
141141
margin: 0 10% 0 10%;
142142
padding-bottom: 25px;
143143
}
144-
144+
/* custom code start*/
145145
#source_link {
146146
float: right;
147147
margin-right: 10px;
@@ -157,4 +157,5 @@
157157
margin-right: 0px;
158158
}
159159
}
160+
/* custom code end*/
160161
</style>

0 commit comments

Comments
 (0)