"; return stars; }; var convertTime = function (UNIX_timestamp) { var a = new Date(UNIX_timestamp * 1000); var months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']; var time = months[a.getMonth()] + ' ' + a.getDate() + ', ' + a.getFullYear(); return time; }; var addSchemaMarkup = function (element, placeData) { var reviews = placeData.reviews; var lastIndex = reviews.length - 1; var reviewPointTotal = 0; var schema = plugin.settings.schema; for (var i = lastIndex; i >= 0; i--) { reviewPointTotal += reviews[i].rating; } // Set totals and averages - may be used later. var averageReview = reviewPointTotal / (reviews.length); if (element instanceof jQuery) { element.append('' + '' + schema.beforeText + ' ' + placeData.name + ' ' + '' + '' + averageReview.toFixed(2) + '/5 ' + schema.middleText + ' ' + reviews.length + ' ' + schema.afterText + '' + ''); } }; plugin.init(); }; $.fn.googlePlaces = function (options) { return this.each(function () { if (undefined === $(this).data(namespace)) { var plugin = new $.googlePlaces(this, options); $(this).data(namespace, plugin); } }); } })(jQuery); jQuery(document).ready(function ($) { $('#applyNowModal').on('shown.bs.modal', function () { $('#applyNowModal').trigger('focus') }); $("#input-fas").fileinput({ theme: "fas", 'showUpload': false, required: true, layoutTemplates: { btnDefault: '