diff --git a/components/school.riot b/components/school.riot new file mode 100644 index 0000000..498d2b5 --- /dev/null +++ b/components/school.riot @@ -0,0 +1,32 @@ + +
+
+ + + + +
+ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/index.html b/index.html index f7ab4c5..5812cd9 100644 --- a/index.html +++ b/index.html @@ -7,19 +7,12 @@ - - - + diff --git a/javascript/components/school.js b/javascript/components/school.js new file mode 100644 index 0000000..96b6c8e --- /dev/null +++ b/javascript/components/school.js @@ -0,0 +1,12 @@ +var school = { + css: null, + exports: { + onMounted() { + console.log("Test!"); + } + }, + template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
NomVilleDptMoyenneSélectivité
', []), + name: 'school' +}; + +export { school as default }; diff --git a/javascript/school.js b/javascript/school.js new file mode 100644 index 0000000..96b6c8e --- /dev/null +++ b/javascript/school.js @@ -0,0 +1,12 @@ +var school = { + css: null, + exports: { + onMounted() { + console.log("Test!"); + } + }, + template: (template, expressionTypes, bindingTypes, getComponent) => template('
NomVilleDptMoyenneSélectivité
', []), + name: 'school' +}; + +export { school as default }; diff --git a/loader.js b/loader.js index 4406e39..882e6a2 100644 --- a/loader.js +++ b/loader.js @@ -5,11 +5,14 @@ import SchoolInfo from './javascript/school-info.js' import LineGraph from './javascript/line-graph.js' import Search from './javascript/search.js' +import School from './javascript/school.js' riot.register("school-info", SchoolInfo) riot.register("line-graph", LineGraph) riot.register("search", Search) +riot.register("school", School) riot.mount("school-info") riot.mount("line-graph") -riot.mount("search") \ No newline at end of file +riot.mount("search") +riot.mount("school") \ No newline at end of file