r/JavaScriptHelp • • Mar 16 '21

❔ Unanswered ❔ Using particle.js to create a "rolling fog" effect.

1 Upvotes

Hello! I've used basic particle effects in my web designs before, but I have a client that wants a "rolling fog" effect. I think it can be done using particle.js, but I have been struggling hard to make it happen. My first problem is I can't get particle.js to recognize my image file (I've tried SVG & PNG), which is a cloud on a transparent background.

I know there's a trick to it that my novice brain doesn't understand. Can anyone please tell me what I'm supposed to put in the image.src section to bring in my image?

Thank you!


r/JavaScriptHelp • • Mar 14 '21

❔ Unanswered ❔ Canvas and mouse position difference

1 Upvotes

So I have this little project and code,

https://jsfiddle.net/Urrby/bhdx6o3L/

The problem is I can't get the line to match the tip of the mouse, there is always space between the cursor and the line drawn. I know this has been asked 100 times, but I don't understand how to resize the canvas and window and mouse position to match. I'm not looking for just a solution, It would be nice if someone can dumb it down and explain why this doesn't work, and what is it that I have to fix. I'm really lost.

Thank you in advance for your help.


r/JavaScriptHelp • • Mar 09 '21

❔ Unanswered ❔ sprite.getFrames()

1 Upvotes

so i'm making a game on code.org and theres a part where i want to play an animation (so it would cycle through the frames of a gif). my problem, though, is that i want the animation to, you know, end at some point, but i can't really do that because the sprite.getFrame() function doesn't exist anymore. does anyone know a workaround for this? i can attach my code if necessary.


r/JavaScriptHelp • • Mar 08 '21

❔ Unanswered ❔ Unity Content Error, Cannot read property ‘1’ of null message.

1 Upvotes

Hello, I have a MacBook and I try to play this game called justfall.lol and I get the cannot read property ‘1’ of null message, how do I fix this? I am a complete beginner so I might need a step by step.


r/JavaScriptHelp • • Mar 08 '21

💡 Advice 💡 show placeholder until image is loaded (getuikit)

1 Upvotes

Trying to make a carousel that would only load the images when they are to be displayed. So anything off-screen is not loaded yet. However, sometimes this is slow, so you end up seeing white where the image should be until it's loaded. I want to use a placeholder instead, can't get it to work though. Something like…

<div class="uk-slider-container">
    <ul class="uk-slider-items uk-grid-small>
    <?php foreach ($images as $image) : ?>
        <li>
        <img data-src="<?=$image->url;?>" background="images/placeholder.svg" uk-img>
        </li>
    <?php endforeach; ?>
    </ul>
</div>

or do I use datasrcset? datascrc? None of that stuff seems to do what I want.

Here's the documentation: https://getuikit.com/docs/image#target

thanks for input


r/JavaScriptHelp • • Mar 03 '21

❔ Unanswered ❔ Looking for little direction/guidance re: iterating arrays.

1 Upvotes

New to JS. I'm doing a project where We created a "widgetPlan" which contains 4 arrays, one parent then children in one .js file. In another .js file I've been instructed to create a function which will accept that plan as a parameter and iterate through all of the arrays. I've been looking through the different array iteration methods and was just looking for some guidance on which method would be most helpful to my task before I just started trying all of them and seeing what stuck to the wall. (Hope that made sense)


r/JavaScriptHelp • • Mar 02 '21

❔ Unanswered ❔ Detect if there is a new item in the news (google search)

1 Upvotes

Hi,

So I'm planning to build a bot, that will automatically search in the google news for a certain topic everyday. And if there is a new item in the news, The bot will automatically send a message to the user.
Is it possible to detect if there is a new item on the news? If yes, can you give me some advice how to do it, I will truly appreciate your help, thank you.


r/JavaScriptHelp • • Mar 01 '21

❔ Unanswered ❔ How to stop this from happening?

1 Upvotes

Hi, I am very new to Javascript and Node.js. I am trying to take a user input however every time I type a character the question keeps on printing into the console. How do I fix this?

const prompt = require('prompt-sync')();

const name = prompt('What is your name?\n');console.log(`Hey there ${name}`);

This is the output:

What is your name?

What is your name?

What is your name?

What is your name?

kai

Hey there kai


r/JavaScriptHelp • • Mar 01 '21

❔ Unanswered ❔ Help me understand this javascript code

1 Upvotes

Actually i am a complete beginner in javascript and was trying to make a javascript calculator and after seeing this js code i got totally confused.

Javascript code ->

(function(){

let screen = document.querySelector('.screen');

let buttons = document.querySelectorAll('.btn');

let clear = document.querySelector('.btn-clear');

let equal = document.querySelector('.btn-equal');

//retrieve data from numbers that are clicked

buttons.forEach(function(button){

button.addEventListener('click', function(e){

  let value = e.target.dataset.num;

  screen.value += value;
})

});

equal.addEventListener('click', function(e){

if(screen.value === ''){

  screen.value = 'Please Enter a Value';

} else {

  let answer = eval(screen.value);

  screen.value = answer;

}

})

clear.addEventListener('click', function(e){

screen.value = '';

})

})();

And this is the Html part ->

<!DOCTYPE html>

<html lang="en">

<head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="X-UA-Compatible" content="ie=edge"> <title>Recording</title> </head>

<body>

<section class="calculator">

<form>

<input type="text" name="" id="" class="screen">

</form>

<div class="buttons">

<!-- yellow -->

<button type="button" class="btn btn-yellow" data-num="*">*</button>

<button type="button" class="btn btn-yellow" data-num="/">/</button>

<button type="button" class="btn btn-yellow" data-num="-">-</button>

<button type="button" class="btn btn-yellow" data-num="+">+</button>

<!-- grey buttons -->

<button type="button" class="btn btn-grey" data-num=".">.</button>

<button type="button" class="btn btn-grey" data-num="9">9</button>

<button type="button" class="btn btn-grey" data-num="8">8</button>

<button type="button" class="btn btn-grey" data-num="7">7</button>

<button type="button" class="btn btn-grey" data-num="6">6</button>

<button type="button" class="btn btn-grey" data-num="5">5</button>

<button type="button" class="btn btn-grey" data-num="4">4</button>

<button type="button" class="btn btn-grey" data-num="3">3</button>

<button type="button" class="btn btn-grey" data-num="2">2</button>

<button type="button" class="btn btn-grey" data-num="1">1</button>

<button type="button" class="btn btn-grey" data-num="0">0</button>

<button type="button" class="btn-equal btn-grey">=</button>

<button type="button" class="btn-clear btn-grey">C</button>

</div>

</section>

</body>

</html>


r/JavaScriptHelp • • Feb 27 '21

💡 Advice 💡 What’s the best standalone client side router?

Thumbnail self.frontend
1 Upvotes

r/JavaScriptHelp • • Feb 06 '21

💡 Advice 💡 Check if the date is in between two dates or equal to the date

1 Upvotes

I have the basic code working, but I am not sure this is the best way to do it and would love some help in finding a way to make the code more manageable.

What I am looking to do:

I would like to set variables for data's and inside of this if statement I will change other variables. But right now, I am only doing a console.log to check if it's working. Seeing that there could end up being tons of days, I am hoping that there is a better way to do this.

var TodaysDateIS = moment().format('MMDD');
// var TodaysDateIS = "0314"; // For Testing Dates
console.log(TodaysDateIS);
var StartOfYear = "0101";
var HollieBirthday = "0130";
var ValentinesDay = "0214";
var AlonsoBirthday = "0314";
var StPatricksDay = "0317";

if (TodaysDateIS > StartOfYear && TodaysDateIS < HollieBirthday || TodaysDateIS == HollieBirthday ){ // Hollie Birthday
console.log("Hollie Birthday");
}else if (TodaysDateIS > HollieBirthday && TodaysDateIS < ValentinesDay || TodaysDateIS == ValentinesDay ){ // VD
console.log("VD");
} else if (TodaysDateIS > ValentinesDay && TodaysDateIS < AlonsoBirthday || TodaysDateIS == AlonsoBirthday ){ // Alonso Birthday
console.log("Alonso Birthday");
}else if (TodaysDateIS > AlonsoBirthday && TodaysDateIS < StPatricksDay || TodaysDateIS == StPatricksDay){ // St. Patrick's Day
console.log("St. Patrick's Day");
}


r/JavaScriptHelp • • Feb 04 '21

❔ Unanswered ❔ Countup script: how to change separator and decimal parameters

1 Upvotes

Hello, this is my first post. I hope it doesn't get deleted.

I'm completely new to js, so I apologise in advance for my ignorance.

I am working on a website, with a counter in javascript.

It seems to me that the count up counter is coded with "," as separator in the thousands place and "." for decimals.

I'd like to change these separators to just an empty space " " and a "," for decimals.

It looks like I can do that in the code where it specifies separator and decimal parameters.

Will it work to use

separator: ' '

decimal: ','

as parameters?

I've modified the js file, but it appears to not be changing the separator or decimal parameters...

I did give the site a .js.txt file to read because the cms won't take a .js file... The site seems to have rejected the file but instead used the previous file for some reason. I think it's the CMS that does this.

I guess I just want to know normally, if I change these parameters if the script display them as I want?

Thanks in advance!


r/JavaScriptHelp • • Feb 03 '21

❔ Unanswered ❔ Javascript code question

1 Upvotes

Hello, i am not good at javascript and am looking for help so i came here. i have a code where i need to check whether the selected year is leap or not and if yes and it is selected and also february month is selected then to show 29 days, havent been able to solve this problem. hopefully some nice people here will https://gist.github.com/danieltheuser/7bd81647ae980d1d9d6aa58ab46abba8


r/JavaScriptHelp • • Jan 23 '21

❔ Unanswered ❔ Is anyone able to change the stroke-dasharray using the DOM and console?

1 Upvotes

Hello everyone,

I am trying to change the ring percentage from https://oamstudios.com/default-user/lilapowell/?profiletab=main

document.querySelector("circle.circle-chart__circle").strokeDasharray = "50,100";

I would like that it changes based on the % under Current Progress.

Any help would be very appreciated.


r/JavaScriptHelp • • Jan 18 '21

❔ Unanswered ❔ I can do TCP/IP client<>server, but how do I do Peer to Peer

1 Upvotes

Hello,

I am finalizing a social media sute. I'm able to do tcp/ip, but now I want to do Peer to Peer supplemented so it is hader to shutdown. IS P2P possible with javascript or would a partner program be needed?

Thank you,

Jim


r/JavaScriptHelp • • Jan 16 '21

❔ Unanswered ❔ Help displaying this pattern on screen

1 Upvotes

Hi All

I'm trying to get this pattern to display without the button disappearing. i can get it to display on a new screen, but i need the button to remain.

All help is really appreciated.

<!DOCTYPE html>
<html>
 <head>
 <title>JavaScript Number Patterns</title>
 <script>
 function generatePattern() {
 var num = 16;
var m, n;
 for (m = 1; m < num; m++) {
 for (n = 1; n <= m; n++)
 if (n % 2 === 0) {
 document.getElementById("pattern").innerHTML = "O";
      } else {
 document.getElementById("pattern").innerHTML = "X";
      }
 document.getElementById("pattern").innerHTML = "<br/>";
  }
 for (m = num; m >= 0; m--) {
 for (n = 1; n <= m; n++)
 if (n % 2 === 0) {
 document.getElementById("pattern").innerHTML = "O";
      } else {
 document.getElementById("pattern").innerHTML = "X";
      }
 document.getElementById("pattern").innerHTML = "<br/>";
  }
}
 </script>
 <style>
 

 div {
 display: flex;
 justify-content: center;
}
 </style>
 </head>
 <body>
 <br>
 
 <div>
 <input id="button" type = "button" onclick = "generatePattern()" value = "Generate Pattern"> 
 </div>

 <span id="pattern">
 </span>
 </body>
</html>

r/JavaScriptHelp • • Jan 15 '21

❔ Unanswered ❔ JavaScript Test

1 Upvotes

Hi Guys,

I gave up on trying to solve this test, can you guys help me so I can learn something with this test I did not pass through?

Please complete the following test and send me the code as soon as it's ready.

/* PRINT OUT TO THE CONSOLE,
AN ORDERED LIST OF "ACTIVE" USERS,
BY INCREASING SURNAME (ie A, B, C),
WITH A STRING SHOWING USERS FULL NAME AND AGE TO WHOLE NUMBER
ie

"TOM CAT is 80 years old."
"MICKEY MOUSE is 92 years old."
"JERRY THEMOUSE is 80 years old."
*/

const USERS = [
{ name: 'Troy Barnes', dob: '1989-12-04', active: false },
{ name: 'Abed Nadir', dob: '1979-03-24', active: true },
{ name: 'Jeff Winger', dob: '1974-11-20', active: true },
{ name: 'Pierce Hawthorne', dob: '1944-11-27', active: false },
{ name: 'Annie Edison', dob: '1990-12-19', active: true },
{ name: 'Britta Perry', dob: '1980-10-19', active: true },
{ name: 'Shirley Bennett', dob: '1971-08-12', active: false },
{ name: 'Professor Professorson', dob: '1969-03-27', active: false },
{ name: 'Craig Pelton', dob: '1971-07-15', active: true }
]


r/JavaScriptHelp • • Jan 07 '21

✔️ answered ✔️ Need help showing/viewing the contents of a list in a <div>

1 Upvotes

Allow me to bring some context.

I am creating a small barebones website for a school project that allows you to create and view Notes. The html website has already been built and im currently busy writing javascript to make the websites functionalities work. functions i have already implemented is a function that saves the contents of a note in the local storage and a function that loads said Data.

The problem im currently facing is making the function that shows all that data in a <div> (''noteOverview) that I have created within the .html file.

The structure of the app: noteSite.html <- Notes.js <- note.js.

noteSite.html

<body>

<div id = "header">

<div id = "name">Original_projectName</div>

</div>

<div id = "container">

<div id = "write">

<label for="noteTitle">title of the note</label>

<input type="text" id = "noteTitle"/>

<label for="noteBody">body of the note</label>

<textarea id="noteBody"></textarea>

<button id="saveButton">Save</button>

</div>

<div id = "read">

<select size="10" id="noteList"></select>

<div id="noteOverview"></div>

</div>

</div>

<script src="notities.js"></script>

<script src="notitie.js"></script>

</body>

notes.js

let out = ""; //output

//Save functione

document.getElementById( 'saveButton').addEventListener('click', function() {

const noteDate = new Date();

const noteTitle = document.getElementById('notitieTitel').value;

const noteBody = document.getElementById('notitieSchrijfVlak').value;

const theNote = {date: noteDate, title: noteTitle, body: noteBody}

noteSave(theNote);

});

function noteSave(theNote) {

let noteList= JSON.parse(localStorage.getItem('noteData'));

if (noteList== null) {

noteList= new Array();

}

noteList.push(theNote);

localStorage.setItem('noteData', JSON.stringify(noteList));

}

function loadNote() {

//getting notes from lé localStorage

if(noteList!= null && noteList!="") {

noteList= JSON.parse(localStorage.getItem('noteData'));

for(let x = 0; x < noteList.length; x++) {

out += "<option value=" +x + ">";

out += noteList[x].title;

out += "</option>";

document.getElementById('noteList').innerHTML = out;

}

}

}

Now here were getting to the meat of things. i figured i should show all my code since this would probably make it the easiest to understand it without any misunderstandings about its porpose/how its supposed to work. Just note that this right here is the part im having trouble with:

function showNote() {

//showing the notes withing the 'noteOverview' <div>

noteList= JSON.parse(localStorage.getItem('noteData'));

out += "<h2>" + noteList.title + "</h2>";

out += "<p>" + noteList.body + "</p>";

document.getElementById('noteOverview').innerHTML = out;

}

Note.js

function Note(date, title, body) {

this.date = date;

this.title = title;

this.body = body;

}

I dont actually know much javascript since i dont focus on the webdevelopment side of programming much during my studies. I have been stuck at this part for quite some time now, so any aid would be much appreciated.

TLDR: i want to show all the notes that are saved within the local storage in the 'noteOverview' <div>. and be able to select them using the 'noteList' <select> statement.


r/JavaScriptHelp • • Jan 06 '21

✔️ answered ✔️ I need some help about js

1 Upvotes

Hello im just started to learning javascript and i was doing an example. This is a simple driver's license query algorithm but somethings went wrong idk what is wrong. Btw, I can do this using "if/else" but i want to know what is the problem and how can i do it with using "switch" please help me.

var Birthday = prompt("What is your birthday : ");
var Year = 2021;
var Age = Year - Birthday;
var remtime = 18 - Year; //remaining time

switch(Age){
    case (Age<18):
        console.log("It is "+remtime+" years before you can qualify for a driver's license.");
    break;
    case (Age>=18):
        console.log("You have the right to get a driver's license.");
    break;
    default:
        console.log("Wrong value.");
}

r/JavaScriptHelp • • Dec 26 '20

❔ Unanswered ❔ Question about JS versions.

1 Upvotes

I thought to start learning Javascript and found this book in Amazon. Judging by the reviews this is a good book.

[HTML, CSS, and JavaScript All in One: Covering HTML5, CSS3, and ES6, Sams Teach Yourself 3rd Edition, November 30, 2018] (https://www.amazon.com/HTML-JavaScript-Sams-Teach-Yourself/dp/0672338084/ref=mp_s_a_1_1?dchild=1&keywords=HTML%2C+CSS%2C+and+JavaScript+All+in+One%3A+Covering+HTML5%2C+CSS3%2C+and+ES6%2C+Sams+Teach+Yourself+3rd&qid=1608950850&sr=8-1)

But ES6 it seems outdated or I'm wrong? Latest is 11, as wiki says.

My question is should I learn ES6? What is your recommendations? Maybe you know something the similar like this book? I need html and css too. But I worry to learn something outdated cos of lack of time.

Thank you!


r/JavaScriptHelp • • Dec 23 '20

✔️ answered ✔️ Question about fetch( )

1 Upvotes

I just learned about fetch() and was experimenting with a made-up JSON file when I noticed that a while loop in my code is executing out of place. My JSON file looks like this:

{
  "ZIP_CODE": "12345",
  "CITY": "Helloville",
  "STATE": "OR",
  "COUNTRY": "US",
  "EMAIL": "[email protected]",
  "PHONE": "+12345678901",
  "GENDER": "male"
}

And my JavaScript file looks like this:

const request = new Request('data.json');

fetch(request)
	.then(response => response.json())
	.then(myInfo => {
		
		const b = document.querySelector('body');
		for (const prop in myInfo) {
			let br = document.createElement('br');
			let tn = document.createTextNode(myInfo[prop]);
			
			b.appendChild(tn);
			b.appendChild(br);
		}
		
		let i = 1; // why does this load before the for in loop?
		while (i <= 200) {
			let span = document.createElement('span');
			let br = document.createElement('br');
			let tn = document.createTextNode(myInfo.CITY);
			span.appendChild(tn);
			
			document.getElementById('content').appendChild(span);
			document.getElementById('content').appendChild(br);
			
			i++;
			
		}
		
	});

And finally, the output:

Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville
Helloville

12345
Helloville
OR
US
[email protected]
+ 12345678901
male

My question is, why is the while loop executing before the for loop that precedes it? Thanks in advance.


r/JavaScriptHelp • • Dec 16 '20

❔ Unanswered ❔ I want to show pop up based on months. Like if it's january then i need to show jolly january , February then fantastic feb and so on based on system date i need to show user this popups. Based on months.

1 Upvotes

What's the best way to implement the above functionality ?


r/JavaScriptHelp • • Dec 15 '20

❔ Unanswered ❔ Trying to figure how what this replace () is doing

1 Upvotes

I'm looking into some code and I can't figure out what this replace function is actually replacing:

replace(/\=+$/, '');

If anyone could help I'd be so thankful!


r/JavaScriptHelp • • Dec 14 '20

❔ Unanswered ❔ & Breaking Output

1 Upvotes

I've got a script to capture user input and place it into a variable, however if the user puts in a "&" sign it breaks the whole thing. Thank you in advance for any advice on handling the '&' sign in the "companyName" variable you can give me. See below...

var cCCAddr = "";

var cSubLine = "Bill To - Form Submission";

var companyName = this.getField("Company").value;

var cBody = "ADD \n"

+ "Company: \t \t \t"

+ companyName

+ "\n"

+ "Requestor: \t \t \t"

+ this.getField("Requestor").value

+ "\n" + "Date: \t \t \t \t"

+ this.getField("Date").value

+ "\n"

+ "Bill to Name: \t \t \t"

+ this.getField("Bill to Name").value

+ "\n"

+ "Address: \t \t \t"

+ this.getField("Address").value

+ "\n"

+ "City: \t \t \t \t"

+ this.getField("City").value

+ "\n"

+ "State: \t \t \t \t"

+ this.getField("State").value

+ "\n"

+ "Zip Code: \t \t \t"

+ this.getField("Zip Code").value

+ "\n"

+ "Country: \t \t \t"

+ this.getField("Country").value

+ "\n"

+ "Payment Terms: \t \t"

+ this.getField("Payment Terms").value

+ "\n"

+ "Address Type: \t \t \t"

+ this.getField("Address Type").value

+ "\n"

+ "Payment Terms: \t \t"

+ "7"

+ "\n"

+ "Customer Price Group \t \t"

+ this.getField("Customer Price Group").value

+ "\n"

+ "Print Prices on Packing List: \t"

+ this.getField("Print Prices on Packing List").value

+ "\n"

+ "Freight Handling Code: \t \t"

+ this.getField("Freight Code").value

+ "\n"

+ "Zone Number: \t \t \t"

+ this.getField("Zone Number").value

+ "\n"

+ "Carrier Number: \t \t"

+ this.getField("Carrier Number").value

+ "\n"

+ "Route Code: \t \t \t"

+ this.getField("Route Code").value

+ "\n"

+ "Stop Code: \t \t \t"

+ this.getField("Stop Code").value

+ "\n"

+ "Sales Person: \t \t \t"

+ this.getField("Sales Person").value

+ "\n"

+ "Phone: \t \t \t \t"

+ this.getField("Phone").value

+ "\n"

+ "Contact: \t \t \t"

+ this.getField("Contact").value

+ "\n"

+ "Email Invoices: \t \t \t"

+ this.getField("Email Invoices").value

+ "\n"

+ "Email Address: \t \t \t"

+ this.getField("Email Address").value

+ "\n"

+ "Notes: \t \t \t \t"

+ this.getField("Notes").value;

var cEmailURL = "mailto:[email protected]?cc=" + cCCAddr + "&subject=" + cSubLine + "&body=" + cBody;

this.submitForm({cURL: encodeURI(cEmailURL), cSubmitAs:"PDF", cCharSet:"utf-8"});


r/JavaScriptHelp • • Dec 09 '20

❔ Unanswered ❔ How to Build a PWA in Vanilla JS?

1 Upvotes

I was scrolling through the internet for help to build a PWA in Vanilla JS and found this tutorial.

Sharing it here because I believe it might be useful for others too. Also, let me know if you know more such tutorials. It would be a great help :)

https://www.loginradius.com/blog/async/build-pwa-using-vanilla-javascript/