cleaning up home page for mobile, adding NUS info below graphic

This commit is contained in:
Calvin Jhunjhnuwala
2020-09-30 09:30:55 -07:00
parent ab8ef5b831
commit 1076f91551
8 changed files with 66 additions and 33 deletions

View File

@@ -158,7 +158,7 @@ $('.tab-link').on('click', function(e){
// Pass the type to the Change Data function
let type = $(this).data("currencytype");
changeDataType(type);
// ga( 'send', 'event', 'Carbon Calculator', 'Toggle Data Type', type );
ga( 'send', 'event', 'Carbon Calculator', 'Toggle Data Type', type );
})
// This is main section that will run the functions once the page is ready
@@ -176,7 +176,7 @@ $(document).ready(function(){
});
highlightNum(val);
doCalculations(val);
// ga( 'send', 'event', 'Carbon Calculator', 'Slider Data Amount', val );
ga( 'send', 'event', 'Carbon Calculator', 'Slider Data Amount', val );
}
// On page load, run default functions
@@ -216,12 +216,12 @@ $(document).ready(function(){
inputs.removeClass('sticky');
inputs_offset.removeClass('offset');
$(this).text('Change Inputs');
// ga( 'send', 'event', 'Carbon Calculator', 'Mobile Toggle', 'Change Inputs' );
ga( 'send', 'event', 'Carbon Calculator', 'Mobile Toggle', 'Change Inputs' );
} else {
inputs.addClass('sticky show');
inputs_offset.addClass('offset');
$(this).text('Hide Inputs');
// ga( 'send', 'event', 'Carbon Calculator', 'Mobile Toggle', 'Hide Inputs' );
ga( 'send', 'event', 'Carbon Calculator', 'Mobile Toggle', 'Hide Inputs' );
}
});