Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.
Trending Discussions

Trending Articles - Multiphase Flows

; jQuery(".user-experience-select").select2({ data: data, minimumResultsForSearch: -1, escapeMarkup: function(markup) { return markup; }, templateResult: function(data) { return data.html; }, templateSelection: function(data) { return data.text; } , dropdownParent: jQuery(".user-exp-outer") }); jQuery(".user-experience-select").select2("val", "https://innovationspace.ansys.com/ais-experiences/"); var timesClicked = 0; jQuery(".user-exp-outer").click(function(e) { timesClicked++; e.preventDefault(); if (timesClicked%2==0) { //run second function jQuery(".user-experience-select").select2("close"); } else { //run first function jQuery(".user-experience-select").select2("open"); jQuery(".user-exp-outer").addClass("active"); e.stopPropagation() } }) jQuery(document).on("click", function(a) { if (jQuery(a.target).is(".user-exp-outer") === false) { jQuery(".user-exp-outer").removeClass("active"); jQuery(".user-experience-select").select2("close"); timesClicked = 0; } }); jQuery(".user-experience-select").on("select2:select", function (e) { if(e.params.data.ais=="true"){ window.open(e.params.data.id,"_self"); } else{ window.open(e.params.data.id); } }); });