PageSourceSearch

https://www.dianaferrari.com.au/static/version1789563269/frontend/…/js/customFormatStoreTime.js

js dianaferrari.com.au collected 2026-09-26 15:38:53 UTC 1,239 bytes, 26 lines download raw bytes

1require(['jquery', 'handlebars', 'moment'], function ($, Handlebars, moment) {
2    $(document).ready(function () {
3        Handlebars.registerHelper('formatStoreTime', function (inputTime) {
4            return moment(inputTime, ["h:mm A"]).format("hh:mm A");
5        });
6        Handlebars.registerHelper('checkForClosedHours', function (openingHours, closingHours, options) {
7            if (openingHours && openingHours.toLowerCase() == 'closed') {
8                return options.fn(this);
9            }
10            if (closingHours && closingHours.toLowerCase() == 'closed') {
11                return options.fn(this);
12            }
13            return options.inverse(this);
14        });
15        Handlebars.registerHelper('checkInvalidEntry', function (openingHours, closingHours, options) {
16            let dateValue1 = moment(openingHours, ["h:mm A"]).isValid();
17            let dateValue2 = moment(closingHours, ["h:mm A"]).isValid();
18            if ((dateValue1 === true && dateValue2 === true)
19                || openingHours.toLowerCase() == 'closed'
20                || closingHours.toLowerCase() == 'closed') {
21                return options.fn(this);
22            }
23            return options.inverse(this);
24        });
25    });
26});

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.