$(document).ready(function(){$("#pagespeed").click(function(event){$("#result_pagespeed").removeClass("d-none");$("#My_content").addClass("d-none");var PS_URL=$("#url_id").val();$.getJSON('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='+PS_URL+'&screenshot=true&strategy=desktop&key=AIzaSyDc3GoegdNG8JZvAWVyGCt2o5KdiZd_BN8',function(dd){var my_dt_score=dd.ruleGroups.SPEED.score,dp_my_dt_score=my_dt_score,my_dt_src_shot=dd.screenshot.data;my_dt_src_shot=my_dt_src_shot.replace(/_/g,"/");my_dt_src_shot=my_dt_src_shot.replace(/-/g,"+");if(dp_my_dt_score>="0"&&dp_my_dt_score<="60"){dp_my_dt_score='
Desktop Speed
'+my_dt_score+' /100
';dp_dt_prog_bar='Score '+my_dt_score+'%
';}else if(dp_my_dt_score>="61"&&dp_my_dt_score<="79"){dp_my_dt_score='Desktop Speed
'+my_dt_score+' /100
';dp_dt_prog_bar='Score '+my_dt_score+'%
';}else if(dp_my_dt_score>="80"&&dp_my_dt_score<="100"){dp_my_dt_score='Desktop Speed
'+my_dt_score+' /100
';dp_dt_prog_bar='Score '+my_dt_score+'%
';}
$('#dtspeed').html(dp_my_dt_score);$('#my_dt_scr_shot').html('
');$('#my_dt_prog_bar').html(dp_dt_prog_bar);if(dd.formattedResults.ruleResults.AvoidLandingPageRedirects.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.AvoidLandingPageRedirects.summary.format,hrefval=hrefval.replace(/{{NUM_REDIRECTS}}/g,''+dd.formattedResults.ruleResults.AvoidLandingPageRedirects.summary.args[0].value+''),hrefval1=dd.formattedResults.ruleResults.AvoidLandingPageRedirects.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,'');$('#DP_DT_AvoidLandingPageRedirects').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.AvoidLandingPageRedirects.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_AvoidLandingPageRedirects').html(''+'');}
if(dd.formattedResults.ruleResults.EnableGzipCompression.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.EnableGzipCompression.summary.format,hrefval1=dd.formattedResults.ruleResults.EnableGzipCompression.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.EnableGzipCompression.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.EnableGzipCompression.urlBlocks[0].header.args[2].value+'');$('#DP_DT_EnableGzipCompression').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.EnableGzipCompression.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_EnableGzipCompression').html(''+'');}
if(dd.formattedResults.ruleResults.LeverageBrowserCaching.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.LeverageBrowserCaching.summary.format,hrefval1=dd.formattedResults.ruleResults.LeverageBrowserCaching.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,'');$('#DP_DT_LeverageBrowserCaching').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.LeverageBrowserCaching.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_LeverageBrowserCaching').html(''+'');}
if(dd.formattedResults.ruleResults.MainResourceServerResponseTime.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.MainResourceServerResponseTime.urlBlocks[0].header.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,''),hrefval=hrefval.replace(/{{RESPONSE_TIME}}/g,''+dd.formattedResults.ruleResults.MainResourceServerResponseTime.urlBlocks[0].header.args[0].value+'');$('#DP_DT_MainResourceServerResponseTime').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.MainResourceServerResponseTime.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_MainResourceServerResponseTime').html(''+'');}
if(dd.formattedResults.ruleResults.MinifyCss.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.MinifyCss.summary.format,hrefval1=dd.formattedResults.ruleResults.MinifyCss.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.MinifyCss.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.MinifyCss.urlBlocks[0].header.args[2].value+'');$('#DP_DT_MinifyCss').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.MinifyCss.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_MinifyCss').html(''+'');}
if(dd.formattedResults.ruleResults.MinifyHTML.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.MinifyHTML.summary.format,hrefval1=dd.formattedResults.ruleResults.MinifyHTML.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.MinifyHTML.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.MinifyHTML.urlBlocks[0].header.args[2].value+'');$('#DP_DT_MinifyHTML').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.MinifyHTML.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_MinifyHTML').html(''+'');}
if(dd.formattedResults.ruleResults.MinifyJavaScript.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.MinifyJavaScript.summary.format,hrefval1=dd.formattedResults.ruleResults.MinifyJavaScript.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.MinifyJavaScript.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.MinifyJavaScript.urlBlocks[0].header.args[2].value+'');$('#DP_DT_MinifyJavaScript').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.MinifyJavaScript.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_MinifyJavaScript').html(''+'');}
if(dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.summary.format,hrefval=hrefval.replace(/{{NUM_SCRIPTS}}/g,''+dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.summary.args[0].value+''),hrefval=hrefval.replace(/{{NUM_CSS}}/g,''+dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.summary.args[1].value+''),hrefval1=dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.urlBlocks[0].header.format;$('#DP_DT_MinimizeRenderBlockingResources').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.MinimizeRenderBlockingResources.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_MinimizeRenderBlockingResources').html(''+'');}
if(dd.formattedResults.ruleResults.OptimizeImages.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.OptimizeImages.summary.format,hrefval1=dd.formattedResults.ruleResults.OptimizeImages.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.OptimizeImages.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.OptimizeImages.urlBlocks[0].header.args[2].value+'');$('#DP_DT_OptimizeImages').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.OptimizeImages.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_OptimizeImages').html(''+'');}
if(dd.formattedResults.ruleResults.PrioritizeVisibleContent.ruleImpact!="0.0"){hrefval=dd.formattedResults.ruleResults.PrioritizeVisibleContent.summary.format,hrefval1=dd.formattedResults.ruleResults.PrioritizeVisibleContent.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,''),hrefval1=hrefval1.replace(/{{SIZE_IN_BYTES}}/g,''+dd.formattedResults.ruleResults.PrioritizeVisibleContent.urlBlocks[0].header.args[1].value+''),hrefval1=hrefval1.replace(/{{PERCENTAGE}}/g,''+dd.formattedResults.ruleResults.PrioritizeVisibleContent.urlBlocks[0].header.args[2].value+'');$('#DP_DT_PrioritizeVisibleContent').html(''+'');}else{var
hrefval=dd.formattedResults.ruleResults.PrioritizeVisibleContent.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_DT_PrioritizeVisibleContent').html(''+'');}});$.getJSON('https://www.googleapis.com/pagespeedonline/v2/runPagespeed?url='+PS_URL+'&screenshot=true&strategy=mobile&key=AIzaSyDc3GoegdNG8JZvAWVyGCt2o5KdiZd_BN8',function(jd){var my_mb_score=jd.ruleGroups.SPEED.score,my_mb_frnly=jd.ruleGroups.USABILITY.score,my_url_id=jd.id,my_response_code=jd.responseCode,my_url_title=jd.title,my_mb_score=jd.ruleGroups.SPEED.score,my_mb_frnly=jd.ruleGroups.USABILITY.score,my_numberResources=jd.pageStats.numberResources,my_numberStaticResources=jd.pageStats.numberStaticResources,my_numberJsResources=jd.pageStats.numberJsResources,my_numberCssResources=jd.pageStats.numberCssResources,my_numberHosts=jd.pageStats.numberHosts,my_totalRequestBytes=jd.pageStats.totalRequestBytes,my_htmlResponseBytes=jd.pageStats.htmlResponseBytes,my_cssResponseBytes=jd.pageStats.cssResponseBytes,my_imageResponseBytes=jd.pageStats.imageResponseBytes,my_javascriptResponseBytes=jd.pageStats.javascriptResponseBytes,my_otherResponseBytes=jd.pageStats.otherResponseBytes,my_mb_src_shot=jd.screenshot.data;my_mb_src_shot=my_mb_src_shot.replace(/_/g,"/");my_mb_src_shot=my_mb_src_shot.replace(/-/g,"+");var dp_my_mb_frnly=my_mb_frnly;if(dp_my_mb_frnly>="0"&&dp_my_mb_frnly<="60"){dp_my_mb_frnly='Mobile Friendliness
'+my_mb_frnly+' /100
';dp_mf_prog_bar='Score '+my_mb_frnly+'%
';}else if(dp_my_mb_frnly>="61"&&dp_my_mb_frnly<="79"){dp_my_mb_frnly='Mobile Friendliness
'+my_mb_frnly+' /100
';dp_mf_prog_bar='Score '+my_mb_frnly+'%
';}else if(dp_my_mb_frnly>="80"&&dp_my_mb_frnly<="100"){dp_my_mb_frnly='Mobile Friendliness
'+my_mb_frnly+' /100
';dp_mf_prog_bar='Score '+my_mb_frnly+'%
';}
var dp_my_mb_score=my_mb_score;if(dp_my_mb_score>="0"&&dp_my_mb_score<="60"){dp_my_mb_score='Mobile Speed
'+my_mb_score+' /100
';dp_mb_prog_bar='Score '+my_mb_score+'%
';}else if(dp_my_mb_score>="61"&&dp_my_mb_score<="79"){dp_my_mb_score='Mobile Speed
'+my_mb_score+' /100
';dp_mb_prog_bar='Score '+my_mb_score+'%
';}else if(dp_my_mb_score>="80"&&dp_my_mb_score<="100"){dp_my_mb_score='Mobile Speed
'+my_mb_score+' /100
';dp_mb_prog_bar='Score '+my_mb_score+'%
';}
$('#mbfrnly').html(dp_my_mb_frnly);$('#mbspeed').html(dp_my_mb_score);$('#my_mb_scr_shot').html('
');$('#my_mb_prog_bar').html(dp_mb_prog_bar);if(jd.formattedResults.ruleResults.AvoidPlugins.ruleImpact!="0.0"){hrefval=jd.formattedResults.ruleResults.AvoidPlugins.summary.format,hrefval1=jd.formattedResults.ruleResults.AvoidPlugins.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,'');$('#DP_MB_AvoidPlugins').html(''+'');}else{var
hrefval=jd.formattedResults.ruleResults.AvoidPlugins.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_AvoidPlugins').html(''+'');}
if(jd.formattedResults.ruleResults.ConfigureViewport.ruleImpact!="0.0"){hrefval=jd.formattedResults.ruleResults.ConfigureViewport.summary.format,hrefval1=jd.formattedResults.ruleResults.ConfigureViewport.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,'');$('#DP_MB_ConfigureViewport').html(''+'');}else{var
hrefval=jd.formattedResults.ruleResults.ConfigureViewport.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_ConfigureViewport').html(''+'');}
if(jd.formattedResults.ruleResults.SizeContentToViewport.ruleImpact!="0.0"){hrefval=jd.formattedResults.ruleResults.SizeContentToViewport.summary.format,hrefval1=jd.formattedResults.ruleResults.SizeContentToViewport.urlBlocks[0].header.format,hrefval1=hrefval1.replace(/{{BEGIN_LINK}}/g,''),hrefval1=hrefval1.replace(/{{END_LINK}}/g,'');$('#DP_MB_SizeContentToViewport').html(''+'');}else{var
hrefval=jd.formattedResults.ruleResults.SizeContentToViewport.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_SizeContentToViewport').html(''+'');}
if(jd.formattedResults.ruleResults.SizeTapTargetsAppropriately.ruleImpact!="0.0"){hrefval=jd.formattedResults.ruleResults.SizeTapTargetsAppropriately.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_SizeTapTargetsAppropriately').html(''+'');}else{var
hrefval=jd.formattedResults.ruleResults.SizeTapTargetsAppropriately.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_SizeTapTargetsAppropriately').html(''+'');}
if(jd.formattedResults.ruleResults.UseLegibleFontSizes.ruleImpact!="0.0"){hrefval=jd.formattedResults.ruleResults.UseLegibleFontSizes.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_UseLegibleFontSizes').html(''+'');}else{var
hrefval=jd.formattedResults.ruleResults.UseLegibleFontSizes.summary.format,hrefval=hrefval.replace(/{{BEGIN_LINK}}/g,''),hrefval=hrefval.replace(/{{END_LINK}}/g,'');$('#DP_MB_UseLegibleFontSizes').html(''+'');}
$('#other').html(''+my_numberStaticResources+'
'+my_numberCssResources+'
'+my_imageResponseBytes+'
'+my_javascriptResponseBytes+'
'+my_otherResponseBytes+'
');$('.number').formatNumber();$("#result_pagespeed").addClass("d-none");$("#My_content").removeClass("d-none");});var txtval=$("#url_id").val(),ua=navigator.userAgent,tool_name="Google PageSpeed Tool";$.ajax({type:"get",url:"https://script.google.com/macros/s/AKfycbxQRlLcJLhMvBMRjv7oOANGpP378MyqIqmPNgdUzJXvMi70sMBL/exec",data:{tool_name:tool_name,textbox:txtval,browser:ua},dataType:"json",cache:false,success:function(){}});return false;});});$(document).ready(function(){$('#json_person, #json_product, #json_website').hide();$('#website_name, #website_alt_name, #website_url').keyup(function(){var website_name=$("#website_name").val(),website_alt_name=$("#website_alt_name").val(),website_url=$("#website_url").val();$("#gen_schema_code").val('