{"id":1550,"date":"2019-02-21T22:21:59","date_gmt":"2019-02-21T22:21:59","guid":{"rendered":"http:\/\/sites.la.utexas.edu\/kb\/?p=1550"},"modified":"2020-08-17T18:19:07","modified_gmt":"2020-08-17T18:19:07","slug":"advanced-cascade-site-tutorial-for-sta-web","status":"publish","type":"post","link":"http:\/\/sites.la.utexas.edu\/kb\/2019\/02\/21\/advanced-cascade-site-tutorial-for-sta-web\/","title":{"rendered":"Basic Training: How to Build a Test Site in Cascade &#8211; Part Two"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3515\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/06\/Basic-Training-Tag-V3.png\" alt=\"\" width=\"110\" height=\"25\" \/>\u00a0\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3519\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2020\/06\/html-V2.png\" alt=\"\" width=\"91\" height=\"25\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3807\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Cascade-Site-Banner-2.png\" alt=\"\" width=\"3000\" height=\"1221\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Cascade-Site-Banner-2.png 3000w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Cascade-Site-Banner-2-300x122.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Cascade-Site-Banner-2-768x313.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Cascade-Site-Banner-2-1024x417.png 1024w\" sizes=\"auto, (max-width: 3000px) 100vw, 3000px\" \/><\/p>\n<p>STAs, use the HTML editor in the body of your Cascade site editing page to create\u00a0<strong>advanced\u00a0<\/strong>features, such as displaying information within a table.<\/p>\n<p>This exercise is designed to prepare you teach a client how to make 3 different kinds of tables or grids, for specific information to display on a Cascade page. Make a table displaying information or content, relative to the theme of your own site.<\/p>\n<p>Have fun with the table you design for your Cascade test site! <em><strong>Please create a new page where you will insert your practice tables. Do not place it on your homepage!<\/strong><\/em><\/p>\n<p><span style=\"color: #ff0000\"><em><strong>All tables must have at least 3 columns and 2 rows minimum! Make sure to give each table a title as well.<\/strong><\/em><\/span><\/p>\n<h1><strong>Accessing the HTML Editor:<\/strong><\/h1>\n<p>To create a table in Cascade you have to use the HTML Editor rather than the wysiwyg editor. To access this, click on the &lt;&gt; in the content editor.<\/p>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.37-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1584\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.37-PM-300x246.png\" alt=\"\" width=\"586\" height=\"481\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.37-PM-300x246.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.37-PM-768x629.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.37-PM.png 788w\" sizes=\"auto, (max-width: 586px) 100vw, 586px\" \/><\/a><\/p>\n<p>Once you click on this, the source code editor will pop up. This is where you will enter in all of your code.<\/p>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.46-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1585\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.46-PM-300x294.png\" alt=\"\" width=\"587\" height=\"575\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.46-PM-300x294.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2019-02-26-at-5.08.46-PM.png 669w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/a><\/p>\n<h1><strong>Creating a Table:<\/strong><\/h1>\n<p>Below is an image explaining what each of the elements of the code does to create the table and an example of the basic structure of a table:<\/p>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3940\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM.png\" alt=\"\" width=\"1258\" height=\"480\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM.png 1258w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM-300x114.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM-768x293.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.06-AM-1024x391.png 1024w\" sizes=\"auto, (max-width: 1258px) 100vw, 1258px\" \/><\/a> <a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3941\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM.png\" alt=\"\" width=\"774\" height=\"1186\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM.png 774w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM-196x300.png 196w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM-768x1177.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-07-28-at-11.52.28-AM-668x1024.png 668w\" sizes=\"auto, (max-width: 774px) 100vw, 774px\" \/><\/a><\/p>\n<p>If you need more details, refer to the following page:<a href=\"https:\/\/liberalarts.utexas.edu\/web-admin-help\/how-to-use-cascade\/advanced-topics\/addedit-a-table.php\">\u00a0https:\/\/liberalarts.utexas.edu\/web-admin-help\/how-to-use-cascade\/advanced-topics\/addedit-a-table.php<\/a><\/p>\n<p>&nbsp;<\/p>\n<h2><strong>Style I:<\/strong> Displaying content through cells in a table. These cells contain external links.<\/h2>\n<h3><strong>Example:\u00a0<\/strong><\/h3>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/languages.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1578\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/languages-253x300.png\" alt=\"\" width=\"253\" height=\"300\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/languages-253x300.png 253w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/languages.png 506w\" sizes=\"auto, (max-width: 253px) 100vw, 253px\" \/><\/a><\/p>\n<h3><strong>Code:\u00a0<\/strong>Begin your html code with:<\/h3>\n<pre>&lt;style type=\"text\/css\"&gt;&lt;!--\r\np.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica}\r\nspan.s1 {font-kerning: none}\r\n--&gt;&lt;\/style&gt;<\/pre>\n<p>To create a table, begin by declaring:<\/p>\n<pre>&lt;table border=\"0\"&gt;\r\n&lt;tbody&gt;\r\n&lt;tr&gt;\r\n&lt;td&gt;<\/pre>\n<p>To have a table with a word\/sentence with an external link, copy the following code:<\/p>\n<pre>&lt;tr&gt;\r\n&lt;td&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;a href=\"https:\/\/www.youtube.com\/watch?v=C3af0cEMfXY\"&gt;In \r\nthis episode, second year Acting Major Miles Agee describes being a \r\nperson of color in Hollywood.&lt;\/a&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;\/td&gt;\r\n&lt;td&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;a href=\"https:\/\/www.youtube.com\/watch?v=IiIv0ytINxc\"&gt;In \r\nthis episode second, year AADS Major Octavian Moten talks about his \r\nfocus on Community Programs, Public Policy and the School to Prison \r\nPipeline.&lt;\/a&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;\/td&gt;\r\n&lt;\/tr&gt;<\/pre>\n<p>To make this output look closer to the example, you may shorten the length of the text to just a single world. Additionally, to change the hyperlink, just change the link in the href attribute!<\/p>\n<h2><strong>Style II:<\/strong> Displaying content through cells in a table. These cells either contain embedded images\/video.<\/h2>\n<h3><strong>Example:\u00a0<\/strong><\/h3>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/aadsmediaexample.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1579\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/aadsmediaexample-266x300.png\" alt=\"\" width=\"266\" height=\"300\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/aadsmediaexample-266x300.png 266w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/aadsmediaexample.png 532w\" sizes=\"auto, (max-width: 266px) 100vw, 266px\" \/><\/a><\/p>\n<h3><strong>Code:\u00a0<\/strong>Begin your html code with:<\/h3>\n<pre>&lt;style type=\"text\/css\"&gt;&lt;!--\r\np.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Helvetica}\r\nspan.s1 {font-kerning: none}\r\n--&gt;&lt;\/style&gt;<\/pre>\n<p>To create a table, begin by declaring:<\/p>\n<pre>&lt;table border=\"0\"&gt;\r\n&lt;tbody&gt;\r\n&lt;tr&gt;\r\n&lt;td&gt;<\/pre>\n<p>This will allow you to begin to fill in content for two side by side cells in one row. As an example, copy the previous &amp; following content to code two side by side cells with embedded video, as after the model of the AADS website.<\/p>\n<p>The code below creates two divs in the table row. To adapt the following code to your own content, change the src code to your own link. Within the &lt;div&gt;&lt;span&gt;, change the text to your caption for the media.<\/p>\n<pre>&lt;div&gt;&lt;iframe width=\"360\" height=\"198\" allowfullscreen=\"allowfullscre\r\nen\"src=\"\/\/www.youtube.com\/embed\/C3af0cEMfXY\"&gt;&lt;\/iframe&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;In this episode, second year Acting Major Miles Agee \r\ndescribes being a person of color in Hollywood.&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;\/td&gt;\r\n&lt;td&gt;\r\n&lt;div&gt;&lt;iframe width=\"360\" height=\"198\" allowfullscreen=\"allowfullscre\r\nen\" src=\"\/\/www.youtube.com\/embed\/IiIv0ytINxc\"&gt;&lt;\/iframe&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;In this episode second, year AADS Major Octavian Moten \r\ntalks about his focus on Community Programs, Public Policy and the \r\nSchool to Prison Pipeline.&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;div&gt;&lt;span&gt;&lt;\/span&gt;&lt;\/div&gt;\r\n&lt;\/td&gt;\r\n&lt;\/tr&gt;<\/pre>\n<p>To create another row with content, simply create another &lt;tr&gt;&lt;\/tr&gt; with the same code as before.<\/p>\n<h2><strong>Style III:<\/strong> Displaying content through cells in a table. This table acts as a menu that links you to pages not included in Cascade.<\/h2>\n<h3><strong>Example:\u00a0<\/strong><\/h3>\n<h3><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/caas.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-1580\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/caas-226x300.png\" alt=\"\" width=\"226\" height=\"300\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/caas-226x300.png 226w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/caas.png 618w\" sizes=\"auto, (max-width: 226px) 100vw, 226px\" \/><\/a><\/h3>\n<p><strong>Code:\u00a0<\/strong>Begin your html code with:<\/p>\n<pre>&lt;p&gt;\u00a0&lt;\/p&gt;\r\n&lt;table align=\"center\" cellpadding=\"5\" cellspacing=\"5\" height=\"325\" \r\nvalign=\"top\" width=\"100%\"&gt;\r\n&lt;tbody&gt;<\/pre>\n<p>The example features four books per row, so the following code features four &lt;td&gt; cell tags. Feel free to modify this depending on your need for cells.<\/p>\n<pre>&lt;tr&gt;\r\n&lt;td width=\"25%\"&gt;&lt;a href=\"http:\/\/tupress.temple.edu\/book\/1311\" \r\nrel=\"noopener\" target=\"_blank\"&gt;&lt;img alt=\"Ortiz\" caption=\"false\" \r\nheight=\"714\" src=\"\/render\/file.act?path=\/caaas\/_files\/images\/\r\ncollageimages\/ortizonmusic.jpg\" \/&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n&lt;td width=\"25%\"&gt;&lt;a href=\"https:\/\/utpress.utexas.edu\/books\/\r\ntinsley-beyonce-in-formation\" rel=\"noopener\" target=\"_blank\"&gt;\r\n&lt;img alt=\"Beyonce In Formation\" caption=\"false\" height=\"356\" \r\nsrc=\"\/render\/file.act?path=\/caaas\/_files\/images\/collageimages\/beyonce\r\ninformation.jpg\" \/&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n&lt;td width=\"25%\"&gt;&lt;a href=\"https:\/\/cap-press.com\/books\/isbn\/97816116359\r\n11\/The-Yoruba-in-Brazil-Brazilians-in-Yorubaland\"&gt;&lt;img alt=\"Yoruba\" \r\nsrc=\"\/render\/file.act?path=\/caaas\/_files\/images\/collageimages\/\r\nyoruba.jpg\" \/&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n&lt;td width=\"25%\"&gt;&lt;a href=\"https:\/\/www.dukeupress.edu\/erotic-islands\" \r\nrel=\"noopener\" target=\"_blank\"&gt;&lt;img alt=\"Erotic Islands\" \r\ncaption=\"false\" height=\"356\" src=\"\/render\/file.act?path=\/caaas\/_files\r\n\/images\/collageimages\/eroticislands.jpg\" \/&gt;&lt;\/a&gt;&lt;\/td&gt;\r\n&lt;\/tr&gt;<\/pre>\n<p>Here, the &lt;td width&gt; tag specifies the standard amount for each cell. The &lt;a href&gt; (used before to include a link) performs the same function. This time, when you click <em>anywhere<\/em>\u00a0on the cell, you&#8217;re transported to the external link. Substitute in references to your image sources and websites and you&#8217;re good to go!<\/p>\n<h1><a name=\"accordion\"><\/a>Creating an Accordion<\/h1>\n<p>Sometimes, when the text content is too long, you might want to organize them into an accordion format. With these set of instructions you will be creating an interactive accordion that the user can interact with in Cascade.<\/p>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.07-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4262\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.07-PM-1024x553.png\" alt=\"\" width=\"640\" height=\"346\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.07-PM-1024x553.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.07-PM-300x162.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.07-PM-768x415.png 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a> <a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.18-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4263\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.18-PM-1024x552.png\" alt=\"\" width=\"640\" height=\"345\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.18-PM-1024x552.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.18-PM-300x162.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.47.18-PM-768x414.png 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/p>\n<p>The example you will be creating can be accessed\u00a0<a href=\"https:\/\/liberalarts.utexas.edu\/sta-11\/accordion-example.php\">here<\/a>.<\/p>\n<ol>\n<li>Create a new page within your Cascade folder. Give it Navigation Title and a Page Headline.<a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.52.54-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4264\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.52.54-PM-1024x552.png\" alt=\"\" width=\"640\" height=\"345\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.52.54-PM-1024x552.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.52.54-PM-300x162.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-1.52.54-PM-768x414.png 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<li>\u00a0In the main content, type in your text content. You will follow this format:<\/li>\n<li>\n<pre>Some clickable text.\r\nSome hidden text. When clicked on the clickable text above, \r\nthis text will appear.\r\n\r\nSome more clickable text.\r\nSome more hidden text. When clicked on the clickable text \r\nabove, this text will appear.\r\n\r\n. . .<\/pre>\n<\/li>\n<li>Your text should look something like this.<a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4265\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM-1024x589.png\" alt=\"\" width=\"640\" height=\"368\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM-1024x589.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM-300x173.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM-768x442.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-13-at-2.04.56-PM.png 1381w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<li>Navigate to the page&#8217;s Source Code view.<\/li>\n<li>Next, paste this CSS code below <strong>at<\/strong><strong>\u00a0the top<\/strong> of the HTML.<\/li>\n<li>\n<pre>&lt;style&gt;\r\n.question {\r\n\u00a0 \u00a0 color: #bf5700; \/* burnt orange *\/\r\n\u00a0 \u00a0 transition: 0.4s;\r\n\u00a0 \u00a0 margin-bottom: 0px;\r\n}\r\n.question:before {\r\n\u00a0 \u00a0 content: '\\02795';\r\n\u00a0 \u00a0 font-size: 10px;\r\n\u00a0 \u00a0 float: left;\r\n\u00a0 \u00a0 margin-right: 5px;\r\n\u00a0 \u00a0 margin-top: 5px;\r\n}\r\n.question:hover {\r\n\u00a0 \u00a0 opacity: 0.7;\r\n}\r\n.active-accordion:before {\r\n\u00a0 \u00a0 content: \"\\2796\";\r\n}\r\n.answer {\r\n\u00a0 \u00a0 margin-top: 5px;\r\n\u00a0 \u00a0 margin-bottom: 5px;\r\n\u00a0 \u00a0 max-height: 0;\r\n\u00a0 \u00a0 overflow: hidden;\r\n\u00a0 \u00a0 transition: max-height 0.2s ease-out;\r\n}\r\n&lt;\/style&gt;<\/pre>\n<\/li>\n<li>Here are some explanations on the code above:\n<ul>\n<li>.question: elements that are clickable (and will reveal the answer) will be given this class.\n<ul>\n<li>color: we want to give it the burnt orange color to indicate that this item is clickable. You may change it to another color of your choice.<\/li>\n<li>transition: this indicates the speed of the &#8220;sliding&#8221; animation to reveal the answer.<\/li>\n<li>margin-bottom: by default, Cascade gives a padding to each paragraph. We want to get rid of this to make the question not too far off from the answer.<\/li>\n<\/ul>\n<\/li>\n<li>.question:before: this means &#8220;anything in here will be rendered and appended before any thing that has a class of &#8216;question&#8217;.&#8221;\n<ul>\n<li>content: this is where we add the plus (+). &#8216;\\02795&#8217; is the unicode for the plus sign, which is the default.<\/li>\n<li>font-size: indicate the font of this sign.<\/li>\n<li>float: aligns the sign left.<\/li>\n<li>margin-right: gives it a little bit of breathing room between itself and the text.<\/li>\n<li>margin-top: offsetting it a little so that it aligns with the text on a straight line.<\/li>\n<\/ul>\n<\/li>\n<li>.question:hover: stylings in this will only apply to elements with the class &#8220;question&#8221; on the condition that it is hovered on.\n<ul>\n<li>opacity: slightly lower the opacity of the question, further indicating that it is clickable.<\/li>\n<\/ul>\n<\/li>\n<li>.active-accordion:before: this means &#8220;anything in here will be rendered and appended before any thing that has a class of &#8216;active-accordion&#8217;.&#8221;\n<ul>\n<li>content:\u00a0this is where we add the minus (-). &#8216;\\02796&#8217; is the unicode for the minus sign, which only appears when the answer paragraph is &#8220;active,&#8221; meaning that it is shown.<\/li>\n<\/ul>\n<\/li>\n<li>.answer: items that are hidden and will be revealed on click of &#8220;question&#8221; will be given this class.\n<ul>\n<li>margin-top: give if a little bit of breathing room between itself and the question (since we got rid of the margin at the bottom of the question).<\/li>\n<li>margin-bottom: give it a little bit of breathing room between itself and the next question.<\/li>\n<li>max-height: when first rendered, it is hidden, so this max-height defaults to 0.<\/li>\n<li>overflow: hide this element&#8217;s part that overflows out of the max-height, since it&#8217;s height will exceed the max-height of 0.<\/li>\n<li>transition: indicates that the animation will affect the max-height as well as identifying the speed.<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>Your Source Code view will look something like this.<br \/>\n<a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.16.58-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4324\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.16.58-PM-1024x448.png\" alt=\"\" width=\"640\" height=\"280\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.16.58-PM-1024x448.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.16.58-PM-300x131.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.16.58-PM-768x336.png 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<li>Next, paste this JavaScript below <strong>at the end<\/strong> of the HTML.<\/li>\n<li>\n<pre>&lt;script&gt;\r\nvar questions = document.getElementsByClassName(\"question\");\r\nvar i = 0;\r\nwhile (i != questions.length) {\r\n\u00a0 \u00a0 questions[i].addEventListener(\"click\", function() {\r\n\u00a0 \u00a0 \u00a0 \u00a0 this.classList.toggle(\"active-accordion\");\r\n\u00a0 \u00a0 \u00a0 \u00a0 var ans = this.nextElementSibling;\r\n\u00a0 \u00a0 \u00a0 \u00a0 if (ans.style.maxHeight) {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ans.style.maxHeight = null;\r\n\u00a0 \u00a0 \u00a0 \u00a0 } else {\r\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 ans.style.maxHeight = ans.scrollHeight + \"px\";\r\n\u00a0 \u00a0 \u00a0 \u00a0 }\r\n\u00a0 \u00a0 });\r\n\u00a0 \u00a0 i++\r\n}\r\n&lt;\/script&gt;<\/pre>\n<\/li>\n<li>Here&#8217;s the explanation of the code.\n<ul>\n<li>First, we identify all elements that has the class name of &#8220;question.<\/li>\n<li>Then, we enter a while loop, looping through all of these elements we&#8217;ve identified.<\/li>\n<li>With each element, we add an event listener that is triggered when the user &#8220;click&#8221; on the element. If clicked, the element is toggled another class called &#8220;active-accordion&#8221; (which triggers \/ un-triggers the .active-accordion stylings we&#8217;ve identified in the CSS, thus changing the plus sign to minus). Then, it&#8217;s sibling (which is the answer, in this case) is identified, and this sibling element&#8217;s maxHeight will be altered based on whether it is currently active or not. If it is currently active, then make the maxHeight null (hiding it), otherwise gives it the appropriate height it needs.<\/li>\n<\/ul>\n<\/li>\n<li>Your Source Code view will look like this.<br \/>\n<a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.18.03-PM.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-4325\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.18.03-PM-1024x567.png\" alt=\"\" width=\"640\" height=\"354\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.18.03-PM-1024x567.png 1024w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.18.03-PM-300x166.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/Screen-Shot-2020-08-17-at-1.18.03-PM-768x425.png 768w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/a><\/li>\n<li>Lastly, add the appropriate class names to the text elements. Add these class names to all of your questions and answers. Follow the syntax class=&#8221;question&#8221; or class=&#8221;answer&#8221;. For example:<\/li>\n<li>\n<pre>&lt;p class=\"question\"&gt;What does &lt;em&gt;Kreisleriana&lt;\/em&gt; mean?&lt;\/p&gt;\r\n&lt;p class=\"answer\"&gt;&lt;em&gt;Kreisleriana\u00a0&lt;\/em&gt;derives from \r\nKreisler, or Kapellmeister Kreisler, the fictious, eccentric, \r\nwild, and witty conductor created by E. T. A. Hoffmann. \r\nSchumann composes this eight-movement work as an attempt \r\nto create the musical version of Kreisler.&lt;\/p&gt;\r\n\r\n&lt;p class=\"question\"&gt;How is\u00a0&lt;em&gt;Kreisleriana\u00a0&lt;\/em&gt;\r\nrepresenting Kreisler?&lt;\/p&gt;\r\n&lt;p class=\"answer\"&gt;Each movement of the piece has various \r\ncontrapunctal sections, supposedly representing Kreisler's \r\nmanic depression, while reflecting Schumann's own \"Florestan\" \r\nand \"Eusebius,\" the two characters that the composer used to \r\nindicate his contrasting sides. It is also interesting to \r\nnote that Schumann might have had schizophrenia, based on the \r\nsymptoms he exerted, especially towards the end of his \r\nlifetime.&lt;\/p&gt;\r\n\r\n&lt;p class=\"question\"&gt;Which is the most famous movement \r\nof\u00a0&lt;em&gt;Kreisleriana&lt;\/em&gt;?&lt;em&gt;&lt;\/em&gt;&lt;\/p&gt;\r\n&lt;p class=\"answer\"&gt;Movement 6 is often identified as the \r\n\"heart\" of\u00a0&lt;em&gt;Kreisleriana&lt;\/em&gt;.&lt;\/p&gt;<\/pre>\n<\/li>\n<li>Click Ok &gt; Save &amp; Preview &gt; Submit &gt; Publish.<\/li>\n<\/ol>\n<p><a href=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3530\" src=\"https:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps.png\" alt=\"\" width=\"3000\" height=\"1000\" srcset=\"http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps.png 3000w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps-300x100.png 300w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps-768x256.png 768w, http:\/\/sites.la.utexas.edu\/kb\/files\/2019\/02\/basic-training-last-steps-1024x341.png 1024w\" sizes=\"auto, (max-width: 3000px) 100vw, 3000px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u00a0\u00a0 STAs, use the HTML editor in the body of your Cascade site editing page to create\u00a0advanced\u00a0features, such as displaying information within a table. This exercise is designed to prepare you teach a client how to make 3 different kinds &hellip; <a href=\"http:\/\/sites.la.utexas.edu\/kb\/2019\/02\/21\/advanced-cascade-site-tutorial-for-sta-web\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":701,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ngg_post_thumbnail":0,"footnotes":""},"categories":[200711,227824],"tags":[],"class_list":["post-1550","post","type-post","status-publish","format-standard","hentry","category-basic-trainings","category-cascade"],"_links":{"self":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/1550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/users\/701"}],"replies":[{"embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/comments?post=1550"}],"version-history":[{"count":22,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/1550\/revisions"}],"predecessor-version":[{"id":4326,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/posts\/1550\/revisions\/4326"}],"wp:attachment":[{"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/media?parent=1550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/categories?post=1550"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sites.la.utexas.edu\/kb\/wp-json\/wp\/v2\/tags?post=1550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}