widget.js
<script src="https://avoid-crowds.dev/js/widget.js"></script>
more than one time.id
. It can be any HTML code inside this block with placeholder values. When widget.js
will start to initialize, placeholdres will be replacing by values. There are two different widget components that can be used inside a HTML block:Y-m-d
(For example, 2019-05-25
)
+
(For example, +6 days
)
-
(For example, -6 days
)
ago
first
(For example, first day of this month
)
next
(For example, next tuesday
)
last
(For example, last day of this month
)
this
(For example,this friday
)
yesterday
today
tomorrow
date
parameter. Using for chart widget. For example: first day of this month,last day of this month
<body>
tag):id
for the chart. widget.js
file and create the HTML block, you have to add a callback function to your webpage:{{text.date}}
- crowd entry date in Y-m-d format;
{{text.title}}
- crowd entry title;
{{text.link}}
- link on this day to avoid-crowds.com landing page;
{{text.avoid_crowds_score}}
- avoid crowds score from 0 to 100;
{{text.total_cruise_passengers}}
- total number of cruise passengers arriving in the selected city on the selected day. Can be empty for some cities, dates and other entries (eg. no cruise traffic for land locked Madrid);
{{text.total_cruise_crew}}
- total cruise crew in this city for this date. Can be empty for some cities, dates and other entries;
{{text.ships_in_port}}
- ships in port in this city for this date. Can be empty for some cities and entries;
{{text.local_public_holiday}}
- local public holiday in this region for this date (yes/no);
{{text.local_school_vacation}}
- local school vacation in this region for this date (yes/no);
{{text.local_events}}
- local events in this region for this date;
{{text.vacations}}
- overview of countries with school vacations for given date;{{chart.average_crowds_score}}
- average crowds score for this time period;{{chart.link}}
- link on this region;<script src="https://avoid-crowds.dev/js/widget.js"></script>
more than one time.