Skip to content

Instantly share code, notes, and snippets.

@mattiaerre
Last active August 20, 2017 22:45
Show Gist options
  • Select an option

  • Save mattiaerre/e7de3295d9a16b8b69963997e09276d2 to your computer and use it in GitHub Desktop.

Select an option

Save mattiaerre/e7de3295d9a16b8b69963997e09276d2 to your computer and use it in GitHub Desktop.

Revisions

  1. mattiaerre revised this gist Aug 20, 2017. No changes.
  2. mattiaerre revised this gist Feb 28, 2017. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion open-component-renderer.js
    Original file line number Diff line number Diff line change
    @@ -13,4 +13,5 @@
    }
    )(window.oc, window.jQuery);

    // To allow mixed content in Google Chrome: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mixed%20content%20chrome
    // To allow mixed content in Google Chrome:
    // https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mixed%20content%20chrome
  3. mattiaerre revised this gist Feb 28, 2017. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions open-component-renderer.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,9 @@
    ((oc, $) => {
    // see: https://github.com/opentable/oc/wiki/Browser-client#ocbuild-options
    const html = oc.build({
    baseUrl: 'http://localhost:3000',
    baseUrl: 'http://localhost:3030',
    name: 'pi-baltimore-special-offers-promo-banners',
    version: '1.1.1',
    version: '1.X.X',
    parameters: {
    banner: 'purple-pasta'
    }
    @@ -12,3 +12,5 @@
    oc.renderUnloadedComponents();
    }
    )(window.oc, window.jQuery);

    // To allow mixed content in Google Chrome: https://www.google.com/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=mixed%20content%20chrome
  4. mattiaerre renamed this gist Jan 27, 2017. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  5. mattiaerre created this gist Jan 27, 2017.
    14 changes: 14 additions & 0 deletions component-renderer.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,14 @@
    ((oc, $) => {
    // see: https://github.com/opentable/oc/wiki/Browser-client#ocbuild-options
    const html = oc.build({
    baseUrl: 'http://localhost:3000',
    name: 'pi-baltimore-special-offers-promo-banners',
    version: '1.1.1',
    parameters: {
    banner: 'purple-pasta'
    }
    });
    $('body').append(html);
    oc.renderUnloadedComponents();
    }
    )(window.oc, window.jQuery);