From: Benjamin Auder Date: Mon, 12 Feb 2018 19:03:06 +0000 (+0100) Subject: reorder scripts inclusion (should use Webpack instead...) X-Git-Url: https://git.auder.net/variants/img/pieces/scripts/getGraph_%22%20%20%20this.image%20%20%20%22.php?a=commitdiff_plain;h=9872823d38894604662dc60d92480a1e062b815d;p=qomet.git reorder scripts inclusion (should use Webpack instead...) --- diff --git a/views/course-list.pug b/views/course-list.pug index 5ab2dcf..718b246 100644 --- a/views/course-list.pug +++ b/views/course-list.pug @@ -40,9 +40,9 @@ block content td(v-html="course.description") block javascripts - script(src="/javascripts/courseList.js") - script(src="/javascripts/utils/validation.js") script. let courseArray = !{JSON.stringify(courseArray)}; const initials = "#{initials}"; const admin = #{teacher}; + script(src="/javascripts/utils/validation.js") + script(src="/javascripts/courseList.js") diff --git a/views/course.pug b/views/course.pug index 9de3570..8d2dce4 100644 --- a/views/course.pug +++ b/views/course.pug @@ -186,11 +186,11 @@ block content block append javascripts script(src="//cdnjs.cloudflare.com/ajax/libs/PapaParse/4.3.6/papaparse.min.js") - script(src="/javascripts/utils/sha1.js") - script(src="/javascripts/utils/validation.js") script. let assessmentArray = !{JSON.stringify(assessmentArray)}; const course = !{JSON.stringify(course)}; const initials = "#{initials}"; const admin = #{teacher}; + script(src="/javascripts/utils/sha1.js") + script(src="/javascripts/utils/validation.js") script(src="/javascripts/course.js")