AddEvent in table

0

I have the script below:

<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js"asyncdefer></script><divtitle="Add to Calendar" class="addeventatc">
    Add to Calendar
    <span class="start">05/30/2017 16:00</span>
    <span class="end">05/30/2017 18:00</span>
    <span class="timezone">America/Caracas</span>
    <span class="title">Summary of the event</span>
    <span class="description">Description of the event</span>
    <span class="location">Location of the event</span>
    <span class="date_format">MM/DD/YYYY</span>
    <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
</div>

I would like to put it in an html table, but when I put it in it only the button does not work

    <table>
     <tr>
        <td>
           <div title="Add to Calendar" class="addeventatc">
              Add to Calendar
              <span class="start">05/30/2017 16:00</span>
              <span class="end">05/30/2017 18:00</span>
              <span class="timezone">America/Caracas</span>
              <span class="title">Summary of the event</span>
              <span class="description">Description of the event</span>
              <span class="location">Location of the event</span>
              <span class="date_format">MM/DD/YYYY</span>
              <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
            </div>
        </td>
     </tr> 
     <tr>
        <td>
           <div title="Add to Calendar" class="addeventatc">
              Add to Calendar
              <span class="start">05/30/2017 16:00</span>
              <span class="end">05/30/2017 18:00</span>
              <span class="timezone">America/Caracas</span>
              <span class="title">Summary of the event</span>
              <span class="description">Description of the event</span>
              <span class="location">Location of the event</span>
              <span class="date_format">MM/DD/YYYY</span>
              <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
            </div>
        </td>
     </tr> 
    </table>

I'm trying to put a button in each row of the table, if you have more than one

I just want to get it from php

 echo  "<tr>
            <td>
               <div title=\"Add to Calendar\" class=\"addeventatc\">
                  Add to Calendar
                  <span class=\"start\">05/30/2017 16:00</span>
                  <span class=\"end\">05/30/2017 18:00</span>
                  <span class=\"timezone\">America/Caracas</span>
                  <span class=\"title\">Summary of the event</span>
                  <span class=\"description\">Description of the event</span>
                  <span class=\"location\">Location of the event</span>
                  <span class=\"date_format\">MM/DD/YYYY</span>
                  <span class=\"client\">apjeYlqFLzfsSVnNdmRH28418</span>
                </div>
            </td>
         </tr> ";

Reference: link

    
asked by anonymous 16.05.2017 / 17:44

1 answer

0

With script import working correctly below:

<script type="text/javascript" src="https://addevent.com/libs/atc/1.6.1/atc.min.js"asyncdefer></script><table><tbody><tr><td><divtitle="Add to Calendar" class="addeventatc">
          Add to Calendar
          <span class="start">05/30/2017 16:00</span>
          <span class="end">05/30/2017 18:00</span>
          <span class="timezone">America/Caracas</span>
          <span class="title">Summary of the event</span>
          <span class="description">Description of the event</span>
          <span class="location">Location of the event</span>
          <span class="date_format">MM/DD/YYYY</span>
          <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
        </div>
      </td>
    </tr>
    <tr>
      <td>
        <div title="Add to Calendar" class="addeventatc">
          Add to Calendar
          <span class="start">05/30/2017 16:00</span>
          <span class="end">05/30/2017 18:00</span>
          <span class="timezone">America/Caracas</span>
          <span class="title">Summary of the event</span>
          <span class="description">Description of the event</span>
          <span class="location">Location of the event</span>
          <span class="date_format">MM/DD/YYYY</span>
          <span class="client">apjeYlqFLzfsSVnNdmRH28418</span>
        </div>
      </td>
    </tr>
  </tbody>
</table>
    
17.05.2017 / 00:31