Skip to content

Commit

Permalink
Estimated
Browse files Browse the repository at this point in the history
  • Loading branch information
atriantas committed May 24, 2024
1 parent ac8e7b3 commit 6b7676b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions snippets/estimated-time.liquid
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/datejs/1.0/date.min.js"></script>

Check failure on line 1 in snippets/estimated-time.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/estimated-time.liquid#L1

[ParserBlockingJavaScript] Missing async or defer attribute on script tag

Check warning on line 1 in snippets/estimated-time.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/estimated-time.liquid#L1

[RemoteAsset] Asset should be served by the Shopify CDN for better performance.

{%- liquid
assign delivery_min = 1

Check warning on line 4 in snippets/estimated-time.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/estimated-time.liquid#L4

[UnusedAssign] `delivery_min` is never used
assign delivery_max = 2

Check warning on line 5 in snippets/estimated-time.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/estimated-time.liquid#L5

[UnusedAssign] `delivery_max` is never used
-%}

<div style="background:{{ block.settings.delivery_color}}" class="v-route-cont">

Check notice on line 8 in snippets/estimated-time.liquid

View workflow job for this annotation

GitHub Actions / Theme Check Report

snippets/estimated-time.liquid#L8

[SpaceInsideBraces] Space missing before '}}'
<div class="estimated-title">
<span class="ma2-white">{{ block.settings.estimate }}</span>
Expand Down Expand Up @@ -35,8 +40,8 @@
var today = Date.today();
var fromDate = Date.today().addDays(7);
var toDate = Date.today().addDays(21);
var fromDate = Date.today().addDays(delivery_min);
var toDate = Date.today().addDays(delivery_max);
var processingFromDate = Date.today().addDays(2);
var processingToDate = Date.today().addDays(5);
Expand Down

0 comments on commit 6b7676b

Please sign in to comment.