Difference between revisions of "MobileApps-What does the coloring mean on the list of event?"

From Support Wiki
Jump to navigation Jump to search
(Created page with "<div xmlns="http://www.w3.org/1999/xhtml"> <div style="text-align: left;">Table of Contents | MobileApps-Staff_App_Event_Features_FAQs|Prev...")
 
Line 1: Line 1:
<div xmlns="http://www.w3.org/1999/xhtml">
+
$(".header").click(function () {
  <div style="text-align: left;">[[MobileApps-TableOfContents|Table of Contents]] | [[MobileApps-Staff_App_Event_Features_FAQs|Previous]] | [[MobileApps-Does_the_search_in_events_search_within_the_even|Next]] | [[MobileApps-Index|Index]]</div>
+
 
  <div style="color: #999999; font-family: sans-serif; font-size: 10pt; text-align: left;">
+
    $header = $(this);
     <span>[[MobileApps-Staff_App_Event_Features_FAQs|Staff App Event Features FAQs]]</span> : What does the coloring mean on the list of events?</div>
+
    //getting the next element
  <hr />
+
    $content = $header.next();
  <div style="color: #808080; font-family: Cambria; font-size: 14pt; margin-bottom: 0pt; margin-left: 18pt;"><span id="wwpID0E0ZB0FA">What does the coloring mean on the list of events?</span></div>
+
    //open up the content needed - toggle the slide- if visible, slide up, if not slidedown.
  <div style="margin-left: 72pt;margin-bottom: 12pt;">
+
     $content.slideToggle(500, function () {
     <table border="0" cellspacing="0" cellpadding="0" width="99%" summary="">
+
        //execute this after slideToggle is done
      <tr valign="baseline">
+
        //change text of header based on visibility of content div
        <td style="width: 18pt"><div style="font-family: &quot;Times New Roman&quot;; font-size: 11pt;">[[Image:MobileApps-rd_bullet.jpg|9px]]</div></td>
+
        $header.text(function () {
        <td><div style="font-family: &quot;Times New Roman&quot;; font-size: 11pt;"><span id="wwpID0E0YB0FA">The dark bar on the left side of the event indicates this event is marked with Members Only visibility.</span></div></td>
+
            //change text based on condition
      </tr>
+
            return $content.is(":visible") ? "Collapse" : "Expand";
     </table>
+
        });
  </div>
+
     });
  <div style="margin-left: 72pt;margin-bottom: 12pt;">
+
 
    <table border="0" cellspacing="0" cellpadding="0" width="99%" summary="">
+
});
      <tr valign="baseline">
+
 
        <td style="width: 18pt"><div style="font-family: &quot;Times New Roman&quot;; font-size: 11pt;">[[Image:MobileApps-rd_bullet.jpg|9px]]</div></td>
+
 
        <td><div style="font-family: &quot;Times New Roman&quot;; font-size: 11pt;"><span id="wwpID0E0XB0FA">When the event is entirely shaded, the event has been marked as a Featured event.</span></div></td>
+
 
      </tr>
+
<div class="container">
    </table>
+
    <div class="header"><span>Expand</span>
  </div>
+
 
  <div style="font-family: &quot;Times New Roman&quot;; font-size: 11pt; margin-bottom: 12pt; margin-left: 36pt;"><span id="wwpID0E0WB0FA">These visibility choices are selected on the event in the backoffice software under Events-&gt;General tab in the Placement Options section.</span></div>
+
     </div>
 +
    <div class="content">
 +
        <ul>
 +
            <li>This is just some random content.</li>
 +
            <li>This is just some random content.</li>
 +
            <li>This is just some random content.</li>
 +
            <li>This is just some random content.</li>
 +
        </ul>
 +
    </div>
 
</div>
 
</div>

Revision as of 15:13, 19 December 2015

$(".header").click(function () {

   $header = $(this);
   //getting the next element
   $content = $header.next();
   //open up the content needed - toggle the slide- if visible, slide up, if not slidedown.
   $content.slideToggle(500, function () {
       //execute this after slideToggle is done
       //change text of header based on visibility of content div
       $header.text(function () {
           //change text based on condition
           return $content.is(":visible") ? "Collapse" : "Expand";
       });
   });

});


Expand
  • This is just some random content.
  • This is just some random content.
  • This is just some random content.
  • This is just some random content.