Webflow + Custom Code

Helper Functions

Overview
Do You Remember?
Tracking w/ Cookies & Web Storage
100
Custom Code
HTML Encoding & Decoding
100
Custom Code Character Limit
101
Inline Coding Techniques
4:41
104
Inline CSS
4:41
104
Sygnal Webflow Utilities ( WFU )
Sygnal Webflow Utils ( WFU )
200
Helper Functions
202
No items found.
Published
November 24, 2022
Updated
in lightbox

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.

Videos
No items found.
Table of Contents
Comments
Did we just make your life better?
Passion drives our long hours and late nights supporting the Webflow community. Click the button to show your love.