Skip to content

Commit

Permalink
made changes in builds.js
Browse files Browse the repository at this point in the history
  • Loading branch information
navaneethsnair1 committed May 10, 2024
1 parent 6411f90 commit de5a310
Showing 1 changed file with 13 additions and 14 deletions.
27 changes: 13 additions & 14 deletions src/main/content/_assets/js/builds.js
Original file line number Diff line number Diff line change
Expand Up @@ -1560,6 +1560,19 @@ $(document).ready(function () {
}
})

$.ajax({
url: starter_plugin_url,
type: 'GET',
dataType: 'json',
success: function(data) {
$('#maven_version').text(data.mavenVersion);
$('#gradle_version').text(data.gradleVersion);
},
error: function(error) {
console.error('Error fetching Maven and Gradle plugin versions:', error);
}
});

$(window).on('scroll', function (event) {
// start animation if images are in viewport
if ($('#bottom_images_container').isInViewport()) {
Expand Down Expand Up @@ -1597,17 +1610,3 @@ $(window).on('load', function () {
});
});

$(window).on('load', function () {
$.ajax({
url: starter_plugin_url,
type: 'GET',
dataType: 'json',
success: function(data) {
$('#maven_version').text(data.mavenVersion);
$('#gradle_version').text(data.gradleVersion);
},
error: function(error) {
console.error('Error fetching Maven and Gradle plugin versions:', error);
}
});
});

0 comments on commit de5a310

Please sign in to comment.