Published
November 24, 2022
Updated
Number.between
Number.between (a, b, inclusive);
e.g. this returns true if the number is between 1 and 10, inclusive.
if (Number.between (1, 10, true);
outerHTML
Append to any jQuery element to get the outer HTML;
$("#elem").outerHTML();
isMobile
Returns true if the current device is recognized as a mobile device;
if (isMobile()) alert ("mobile user.");
Uses the browser's userAgent string as a means to determine this.
Resources
To use these functions in your Webflow site, paste this script reference into your page or site custom code.
<script src="https://cdn.jsdelivr.net/gh/sygnaltech/webflow-util@3.26/src/util.js"></script>
Repo;
https://github.com/sygnaltech/webflow-util/blob/master/src/util.js
FAQs
Answers to frequently asked questions.