PageSourceSearch

https://liu.se/dist/global/component-graduatecourses-graduatecourses-js.js?v=1790061783566

js liu.se collected 2026-10-01 07:50:28 UTC 2,131 bytes, 1 lines download raw bytes

1(self.webpackChunknodejs_dependencies=self.webpackChunknodejs_dependencies||[]).push([[6260,9146],{4671(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(4692)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__=function($){var GraduateCourses=function(element){this.el=element,this.$el=$(element),this.$form=this.$el.find("form"),this.$resultSection=this.$el.find(".exchange-search-result"),this.$facultySelect=this.$el.find('select[name="faculty"]'),this.$departmentSelect=this.$el.find('select[name="department"]'),this.lang=this.$el.data("lang"),this.apiUrl="/"+this.lang+"/api/graduatecourses/search",this.loadingMessage=this.$el.data("loadingMessage"),this.bindEvents();let params=new URL(document.location).searchParams,facultyId=params.get("facultyId")||this.$facultySelect.val(),departmentId=params.get("departmentId")||this.$departmentSelect.val();null==facultyId&&null==departmentId||(this.fetchCourses(facultyId,departmentId),this.$facultySelect.val(facultyId),this.$departmentSelect.val(departmentId))};return GraduateCourses.prototype.fetchCourses=function(selectedFaculty,selectedDepartment){var self=this;this.$resultSection.empty(),(selectedFaculty||selectedDepartment)&&(this.$resultSection.html(this.loadingMessage),$.ajax({type:"GET",data:{facultyId:selectedFaculty,departmentId:selectedDepartment},url:this.apiUrl,success:function(resultData){self.$resultSection.html(resultData)},error:function(jqXhr,textStatus,errorThrown){self.$resultSection.html("<div>Error</div>"),console.log("error",jqXhr,textStatus,errorThrown)}}))},GraduateCourses.prototype.bindEvents=function(){var self=this;this.$facultySelect.change(()=>{let facultyId=self.$facultySelect.val(),departmentId=self.$departmentSelect.val();this.fetchCourses(facultyId,departmentId)}),this.$departmentSelect.change(()=>{let facultyId=self.$facultySelect.val(),departmentId=self.$departmentSelect.val();this.fetchCourses(facultyId,departmentId)})},GraduateCourses}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__))||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.