onboarding
2 weeks ago
preview
2 weeks ago
screens
2 weeks ago
sections
2 weeks ago
builder.php
2 weeks ago
form-data-examples.html
2 weeks ago
index.php
2 weeks ago
oembed-examples.html
2 weeks ago
oembed.php
2 weeks ago
wizard.php
2 weeks ago
oembed-examples.html
30 lines
| 1 | <!-- |
| 2 | Tool to help understand how sending and retrieving feed related info from the database works. |
| 3 | --> |
| 4 | <div style="clear: left;"> |
| 5 | <p>oEmbeds</p> |
| 6 | <a href="" id="cff_oembed_link">Retrieve oEmbed Token</a><br> |
| 7 | <a href="javascript:void(0);" id="cff-oembed-disable">Disable</a><br> |
| 8 | <button id="cff_activate_instagram">Install or Activate Instagram Feed</button> |
| 9 | </div> |
| 10 | <script> |
| 11 | jQuery(document).ready(function($) { |
| 12 | $('#cff_oembed_link').attr('href',cff_builder.connectionURL); |
| 13 | |
| 14 | $('#cff_activate_instagram').click(function(event) { |
| 15 | event.preventDefault(); |
| 16 | var data = { |
| 17 | action: cff_builder.instagram.installer.action, |
| 18 | nonce : cff_builder.nonce, |
| 19 | plugin: cff_builder.instagram.installer.plugin, |
| 20 | type : 'addon' |
| 21 | }; |
| 22 | |
| 23 | $.post( cff_builder.ajax_handler, data, function( res ) { |
| 24 | console.log(res); |
| 25 | }).fail( function( xhr ) { |
| 26 | console.log( xhr.responseText ); |
| 27 | }); |
| 28 | }); |
| 29 | }); |
| 30 | </script> |