e-zhrv
4/12/2018 - 11:29 PM

get_parameters_replace

      var s = $('.title-1').html();
      var occ = s.match(/\{\{(.*?)\}\}/g);
      $.each(occ, function(key, value){
          value = value.replace("{{", "");
          value = value.replace("}}", "");

          var get_parameter = getAllUrlParams()[value];
          var title = $('.title-1').html();
          if(get_parameter != undefined) {
              $('.title-1').html(title.replace("{{"+value+"}}", decodeURIComponent(get_parameter)));
          }else {
              $('.title-1').html(title.replace("{{"+value+"}}", ""));
          }

      });