Skip to content

Commit

Permalink
Merge pull request #160 from zachlasiuk/main
Browse files Browse the repository at this point in the history
removed console logs for production
  • Loading branch information
zachlasiuk authored Mar 26, 2024
2 parents c1b2a24 + 6f20620 commit 3904b9b
Show file tree
Hide file tree
Showing 11 changed files with 4 additions and 42 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@


// add onclick handler to
console.log('input.group-{{$group_name}}');
let inputs_to_track = document.querySelectorAll('input.group-{{$group_name}}');
for (let input of inputs_to_track) {
input.addEventListener('change', function() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@
}
else {
return "Error in translation type.";
console.log('error in translation type.');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@
}
else {
return "Error in translation type.";
console.log('error in translation type.');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
// Update the facet
var item_name = evt.detail.value;
var group_name = document.querySelector('#dropdown-category').getAttribute('data-group-display-name');
console.log('selectChangeHandler')
updateFacet(group_name,item_name);
};

Expand All @@ -48,7 +47,6 @@


const select = document.getElementById('dropdown-{{$group_name}}');
console.log('select:',select)
select.addEventListener('selectChange', selectChangeHandler);


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
var displayStyle = window.getComputedStyle(element).display;

if (displayStyle !== 'none') {
console.log('Highlighting mobile filters.');


/* do not auto-trigger categories opening, just a stranged forced dynamic. Show them where the filter is, that's enough.
var filter_button = document.getElementById('filter-button');
mobileFilterClickedSearch(filter_button);
Expand Down Expand Up @@ -35,7 +34,6 @@

}
else {
console.log('Highlighting desktop filters.');
var category_element = document.getElementById('desktop-filters');

// force focus to top of element via smoth scroll (100px to account for sticky global nav)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@

<script type="text/javascript" src="js/eco-dashboard/search.js" defer></script>
<script type="text/javascript" src="js/eco-dashboard/table_functionality.js" defer></script>
<script type="text/javascript" src="js/eco-dashboard/stack_logic.js" defer></script>
<script type="text/javascript" src="js/eco-dashboard/filter-and-navigate-mobile-behavior.js" defer></script>
<script type="text/javascript" src="js/anonymous-analytics.js" defer></script>
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,8 @@
<link rel="stylesheet" href="https://cdn.designsystem.arm.com/rel/4.9.0/arm-design-system.css" integrity="sha384-TIxVkbw6g/OlN2t0XSUGTik6Kc0pkpNEcm1bOAGO02jsHholeZipXigdXRDYqCGr" crossorigin="anonymous">
<script type="module" src="https://cdn.designsystem.arm.com/rel/4.9.0/arm-design-system/arm-design-system.esm.js" integrity="sha384-K+IGYCWaqyh5adrYnimAXzUamdfAwRYJGwwrybHfAhmsehOIcexAPoEoEyLRJwkC" crossorigin="anonymous"></script>

<!-- Arm Imports -->
<script type="text/javascript" src="js/app.bd387a82cd4c10836229.devhub.js"></script>

<!-- Arm Header & Footer loading -->
<script type="text/javascript" src="https://www.arm.com/arm-global-web-components/devhub/app.js" ></script>

<!-- Custom CSS sheets (link depends on environment) -->
<link rel="stylesheet" href='{{ $css_file_location }}'>
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,6 @@ function trackSearchInteraction(reason) {
document.getElementById('search-box').value().then((value) => {
let current_search = value || 'none';

console.log('Search')
console.log('Tracking search:',current_search);
console.log('Facets: ',getActiveFacets())
console.log('reason: ',reason)

_satellite.track('ecosystem-search', {
'facet-active-names' : getActiveFacets(),
'search-current-query' : current_search,
Expand All @@ -59,10 +54,6 @@ function trackFacetInteraction(){
document.getElementById('search-box').value().then((value) => {
let current_search = value || 'none';

console.log('FACETS')
console.log('Tracking search:',current_search);
console.log('Facets: ',getActiveFacets())

// Send tracking data
_satellite.track('facet-interaction', {
'facet-active-names' : getActiveFacets(),
Expand All @@ -74,14 +65,6 @@ function trackFacetInteraction(){
function trackGeneralContentInteraction(content_tracking_name,package_name) {
document.getElementById('search-box').value().then((value) => {
let current_search = value || 'none';


console.log('CONTENT');
console.log('datatrack ',content_tracking_name);
console.log('package-name ',package_name)
console.log('facets ',getActiveFacets());
console.log('search ',current_search);


_satellite.track('content-interaction', {
'data-track-name' : content_tracking_name,
Expand Down Expand Up @@ -146,13 +129,6 @@ document.addEventListener("DOMContentLoaded", function() {

document.getElementById('search-box').value().then((value) => {
let current_search = value || 'none';



console.log('ROW CLICKED')
console.log('search_result_name clicked',row.getAttribute('data-title'))
console.log('Tracking search:',current_search);
console.log('Facets: ',getActiveFacets())

// Send tracking data
_satellite.track('eco-sw-result-click', {
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,6 @@ function clearAllFilters() {

// Reset ADS-checkboxes to select 'All'
let checkable_inputs = document.querySelectorAll('input.checkable-input');
console.log(checkable_inputs)
for (let input of checkable_inputs) {
// if has class 'tag-all' should be checked. else, uncheck.
if (input.classList.contains('tag-all')) {
Expand Down Expand Up @@ -474,7 +473,6 @@ function ifNeededMoveFiltersToMobileOrDesktop(state_is_below_breakpoint) {
let filters_to_move = document.getElementById('filters-movable');
const filter_destination = just_moved_below_breakpoint ? document.getElementById('mobile-filters') : document.getElementById('desktop-filters');

console.log('FILTERS MOVING: ', just_moved_below_breakpoint, state_is_below_breakpoint );
// If breakpoint crossed, move filters to their correct location
if (just_moved_below_breakpoint !== state_is_below_breakpoint) {
filter_destination.appendChild(filters_to_move);
Expand Down Expand Up @@ -507,7 +505,7 @@ document.addEventListener("DOMContentLoaded", function () {

// Check at page load if they should be moved to mobile (default in desktop)
if (state_is_below_breakpoint) {
console.log("Mobile detected, placing filters in mobile bucket.");
//console.log("Mobile detected, placing filters in mobile bucket.");
state_is_below_breakpoint = ifNeededMoveFiltersToMobileOrDesktop(false);
}

Expand Down

0 comments on commit 3904b9b

Please sign in to comment.