PageSourceSearch

https://shoplakewoodcenter.com/wp-content/plugins/eyeonportal/elementor/js/utils.js?v=1788341172&ver=7.1.2

js shoplakewoodcenter.com collected 2026-09-26 04:27:55 UTC 1,339 bytes, 40 lines download raw bytes

1function eyeonFormatTime(timeString) {
2  if (timeString) {
3    const [hours, minutes] = timeString.split(':');
4    const ampm = hours >= 12 ? 'pm' : 'am';
5    const formattedHours = (hours % 12) || 12; // If it's 0, set it to 12
6    const formattedTime = `${formattedHours}:${minutes}${ampm}`;
7    return formattedTime;
8  }
9  return timeString;
10}
11
12function eyeonFormatDate(dateInput = null) {
13  if (dateInput === null || dateInput === undefined || dateInput === '') {
14    return '';
15  }
16  if (typeof dateInput === 'string') {
17    const trimmed = dateInput.trim();
18    if (!trimmed) return '';
19    if (/^\d{4}-\d{2}-\d{2}$/.test(trimmed)) {
20      return moment.utc(trimmed, 'YYYY-MM-DD').format('MMM D, YYYY');
21    }
22  }
23  return moment.utc(dateInput).format('MMM D, YYYY');
24}
25
26function getResponsiveBreakpoints() {
27  var breakpoints = [];
28  if (window.elementorFrontend && window.elementorFrontend.config && window.elementorFrontend.config.breakpoints) {
29    breakpoints = window.elementorFrontend.config.breakpoints;
30  }
31  return breakpoints;
32}
33
34function getDayByDate(dateString, type = 'short') {
35  if (type === null || type === undefined) type = 'long';
36  const dateObj = new Date(dateString);
37  const options = { weekday: type, timeZone: 'UTC' };
38  const dayOfWeek = dateObj.toLocaleDateString('en-US', options);
39  return dayOfWeek;
40}

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.