PageSourceSearch

https://mathclassifieds.org/themes/maa/js/pages/jobs/uploadField.js?1790150477

js mathclassifieds.org collected 2026-09-28 08:36:55 UTC 928 bytes, 1 lines download raw bytes

1"use strict";(function(){var jobsUploadField=function jobsUploadField(model){var fileName=1<arguments.length&&arguments[1]!==void 0?arguments[1]:"";return{fileName:fileName,preview:"",uploadFailed:!1,get hasFile(){return""!==this.fileName||""!==this.preview},pick:function pick(input){var _this=this;this.uploadFailed=!1;var file=input.files[0];if(!file)return this.fileName="",void(this.preview="");if(file.type.startsWith("image/")){this.fileName="";var reader=new FileReader;reader.onload=function(event){return _this.preview=event.target.result},reader.readAsDataURL(file)}else this.preview="",this.fileName=file.name},remove:function remove(){this.$refs.input.value="",this.uploadFailed=!1,this.fileName="",this.preview="",this.$wire.set(model,null)}}},register=function register(){return window.Alpine.data("jobsUploadField",jobsUploadField)};window.Alpine?register():document.addEventListener("alpine:init",register)})();

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.