Skip to content

Instantly share code, notes, and snippets.

@philbar
Created February 2, 2015 18:50
Show Gist options
  • Select an option

  • Save philbar/f160a32e6f4d6e47f9b9 to your computer and use it in GitHub Desktop.

Select an option

Save philbar/f160a32e6f4d6e47f9b9 to your computer and use it in GitHub Desktop.

Revisions

  1. philbar created this gist Feb 2, 2015.
    15 changes: 15 additions & 0 deletions gistfile1.html
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    <script>
    $(document).ready(function() {
    var params = window.location.search.replace(/ /g,'%20');

    var textLink = $('.lp-pom-text a').each( function(i) {

    if(this.href.indexOf('?') !== -1){
    this.href = this.href + params.replace("?", "");;
    }
    else {
    this.href = this.href + params;
    }
    });
    });
    </script>