Skip to content

Instantly share code, notes, and snippets.

@nitishn
Last active August 29, 2015 13:56
Show Gist options
  • Select an option

  • Save nitishn/9283137 to your computer and use it in GitHub Desktop.

Select an option

Save nitishn/9283137 to your computer and use it in GitHub Desktop.

Revisions

  1. @nnarala nnarala revised this gist Mar 4, 2014. 2 changed files with 10 additions and 0 deletions.
    8 changes: 8 additions & 0 deletions app.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    $(document).on('didRefreshWidgetContent', function () {

    // referral url is canvas_url + reverral_id
    var the_referral_id = $('.ref-id').data('id');

    var the_referral_url = "{{ canvas_url }}" + "?wfrs=" + the_referral_id;

    });
    2 changes: 2 additions & 0 deletions default.liquid
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    <!-- This would go within the {% if sweeps_settings.completed %} section -->
    <div class="ref-id" data-id="{{ sweeps_settings.referral_id }}"></div>
  2. @nnarala nnarala revised this gist Mar 4, 2014. 1 changed file with 0 additions and 7 deletions.
    7 changes: 0 additions & 7 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1,7 +0,0 @@
    $(document).on('didRefreshWidgetContent', function () {

    // referral url is canvas_url + reverral_id
    the_referral_url = '';
    the_referral_url = "{{ canvas_url }}" + "?app_{{ sweeps_settings.referral_id }}”;

    });
  3. nitishn created this gist Mar 1, 2014.
    7 changes: 7 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    $(document).on('didRefreshWidgetContent', function () {

    // referral url is canvas_url + reverral_id
    the_referral_url = '';
    the_referral_url = "{{ canvas_url }}" + "?app_{{ sweeps_settings.referral_id }}”;

    });