1; if (typeof window.evotiva === "undefined" || window.evotiva === null) { window.evotiva = {}; }; 2if (typeof window.evotiva.userFiles === "undefined" || window.evotiva.userFiles === null) { window.evotiva.userFiles = {}; }; 3 4evotiva.userFiles.Template = function ($) { 5 "use strict"; 6 7 function hideIf(hideCondition) { 8 if (hideCondition === true) return "display: none;"; 9 return "animation-name: none;"; 10 } 11 12 function hasAvailablePreview(extension) { 13 var supportedTypes = "jpg,jpeg,png,bmp,gif,ico,tif,tiff"; 14 //if (supportedTypes.includes(extension.toLowerCase())) { 15 if (supportedTypes.indexOf(extension.toLowerCase() >= 0)) { 16 return true; 17 } 18 return false; 19 } 20 21 return { 22 hideIf: hideIf, 23 hasAvailablePreview: hasAvailablePreview 24 }; 25 26}(jQuery); 27 28
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.