HTML and JS Demo

Learn how to use HTML, CSS, and JavaScript with LoginRadius for building interactive and engaging web applications.

HTML and JS Demo

HTML is the standard markup language for documents designed to be displayed in a web browser. It can be assisted by technologies such as Cascading Style Sheets (CSS) and scripting languages such as JavaScript. JavaScript is a programming language, it enables interactive web pages and is an essential part of web applications.

This demo will help you with a quick implementation of the LoginRadius platform with HTML and JS demo.

Prerequisites:

  • The web server needs to be set up. Refer the guides here to set up web server locally. You can also set up a small GitHub webserver here.
  • Basic knowledge of HTML and JS.

Getting Started

  • Download our HTML and JS demo project from Github here, and put it in the root directory of your server.
  • Open the option.js file and add LoginRadius API Key, [Sitename], and SOTT in it. Also, if you want to generate a dynamic SOTT refer to the guide here.
var commonOptions = {};
commonOptions.apiKey = "<LoginRadius API Key>";
commonOptions.appName = "<LoginRadius tenant name>";
commonOptions.hashTemplate= true;
commonOptions.sott ="<Sott>";
commonOptions.verificationUrl = window.location;//Change as per requirement

var LRObject= new LoginRadiusV2(commonOptions);
  • After configuring the above options, go to your web browser and type in the root directory URL that your server is hosting.
  • Now, you can start the demo and play with the available features in it.

Note: You can edit the registration schema from LoginRadius Console and you can also configure social logins from here.

On this page