FORSMILE
JA

Tech Blog

Tech articles on web development & AI (9 articles)

AllAIAMPCSSJavaScriptNUXTSmartySymfonyTwigVUEWordPress開発記事
JavaScript2021/08/31

How to Write Multi-line Strings in JavaScript Variables

When using jQuery's append, you might occasionally need to assign a rather long HTML string to a variable.

Read More →
JavaScript2021/04/01

Executing Functions from External Files: Global Variables, Functions, and Immediately Invoked Functions [JavaScript]

Calling functions defined in separate files is easy in JavaScript.

Read More →
JavaScript2021/03/17

What Does 'fn' in jQuery.fn Mean? How to Use $.fn [jQuery]

You've probably seen `$.fn` in jQuery source code or libraries.

Read More →
JavaScript2020/12/22

Execute Code When an Element Becomes Visible [jQuery]

With jQuery, you can add events that trigger when an element becomes visible within the viewport.

Read More →
JavaScript2020/08/26

[JavaScript] Setting up ESLint in Webpack

This assumes ESLint is already configured. Here's how to run ESLint when bundling with Webpack.

Read More →
JavaScript2020/07/31

[JavaScript] Setting Environment Variables with Webpack and dotenv

dotenv is a Node.js module that allows you to configure variables that change depending on the environment, such as dev/stg/prod.

Read More →
JavaScript2020/07/24

[JavaScript] Detect Window Resize and Update Font Size

This is an implementation to detect window size changes and adjust the ratio of font sizes and image sizes.

Read More →
JavaScript2020/07/20

[JavaScript] How to Check if a Value is a Function

While reviewing code at work, I came across the following snippet where a callback function was being set.

Read More →
JavaScript2020/06/24

[JavaScript] A Summary of Methods for Checking Specific Array Elements

I had an opportunity to teach about arrays in PHP, which made me wonder how it's done in JavaScript, so I've compiled this summary.

Read More →