Skip to content

Commit

Permalink
testing material io components
Browse files Browse the repository at this point in the history
  • Loading branch information
pan261 committed Oct 7, 2021
1 parent 36c513f commit a3568af
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions Autodesk_Setup_BIDC/setup-sheet.cps
Original file line number Diff line number Diff line change
Expand Up @@ -349,6 +349,9 @@ function onOpen() {
" \"http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd\">\n"
);
write("<html>");

write("<script src=https://unpkg.com/material-components-web@latest/dist/material-components-web.min.js></script>");
write("<link rel=\"StyleSheet\" href=\"https://unpkg.com/material-components-web@latest/dist/material-components-web.min.css\" type=\"text/css\">");
// header
var c = "<head>";
c += "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\">";
Expand Down Expand Up @@ -412,6 +415,38 @@ function onOpen() {
write("<h1>" + localize("Setup Sheet") + "</h1>");
}

list =
"<ul class=\"mdc-list\">\n" +
"<li class=\"mdc-list-item\" tabindex=\"0\">\n" +
"<span class=\"mdc-list-item__ripple\"></span>\n" +
"<span class=\"mdc-list-item__text\">Single-line item</span>\n" +
"</li>\n" +
"<li class=\"mdc-list-item\">\n" +
"<span class=\"mdc-list-item__ripple\"></span>\n" +
"<span class=\"mdc-list-item__text\">Single-line item</span>\n" +
"</li>\n" +
"<li class=\"mdc-list-item\">\n" +
"<span class=\"mdc-list-item__ripple\"></span>\n" +
"<span class=\"mdc-list-item__text\">Single-line item</span>\n" +
"</li>\n" +
"</ul>\n"

write(list);

card =
"<div class=\"mdc-card--outlined\">" +
"<button class=\"mdc-button mdc-card__action mdc-card__action--button\">" +
"<div class=\"mdc-button__ripple\"></div>" +
"<span class=\"mdc-button__label\">Action 1</span>" +
"</button>" +
"<button class=\"mdc-button mdc-card__action mdc-card__action--button\">" +
"<div class=\"mdc-button__ripple\"></div>" +
"<span class=\"mdc-button__label\">Action 2</span>" +
"</button>" +
"</div>"

write(card);

patternIds = {};
var numberOfSections = getNumberOfSections();
var j = 0;
Expand Down

0 comments on commit a3568af

Please sign in to comment.