projet-clicodrome/js/technologie.js

14 lines
No EOL
317 B
JavaScript

class Technologie{
constructor(json) {
this.props = json
this.cout = this.props.cout
this.boost = this.props.boost
this.nom = this.props.nom
}
appliquerAmeliorationStyle(){
document.getElementById("link-css").setAttribute("href","css/"+this.props.css_id)
}
}