Skip to content

Commit

Permalink
Correction dans l'utilisation de GeoGebra dans l'API.
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyost committed Dec 28, 2023
1 parent f81f6ab commit 03481db
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api-v2-generator/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ export const formatHtml = (resolver: Resolver, contentDirectoryPath: string, les
const representations = root.querySelectorAll('.representation')
for (let i = 0; i < representations.length; i++) {
const representation = representations[i]
const id = representation.getAttribute('geogebra-id')
const id = representation.getAttribute('data-geogebra-id')
representation.replaceWith(`<div id="representation-${i + 1}" class="plot" data-api-v2-geogebra-id="${id}" data-api-v2-geogebra-image="${site.host}/img/lessons/${lesson.level}/${lesson.id}/${id}.png"></div>`)
}

Expand Down

0 comments on commit 03481db

Please sign in to comment.