Category : html

I’m trying to align a SVG thats coming in from tsparticles to my background inside a section data-background tag/atrib. <section class="home-section bg-dark-alfa-30 parallax-2" data-background="images/full-width-images/TEST.svg" id="home"> <div id="tsparticles"></div> <script src="js/tsparticles.js"></script> <script src="js/app.js"></script> I’m very close but just can’t figure out the exact way to do it. (I’ll deal with responsiveness later) For now I would give ..

Read more

Recently i found a beautiful piece of code that i adapted to my needs and helps me to take informations from the inputs in the userpage to my google sheet. <script> const scriptURL = ‘https://script.google.com/macros/…’ const form = document.forms[‘google-sheet’] form.addEventListener(‘submit’, e => { e.preventDefault() document.getElementById("PRICE").disabled = false; fetch(scriptURL, { method: ‘POST’, body: new FormData(form)}) .then(response ..

Read more

I’m trying to insert different vars into different elements and for some reason only the first var and element get inserted. For some reason only the first paragraph with id "agglika" shows test4 while the other one shows empty but if run the document.getElementById("fysikh").innerHTML = fysikh; in the console it works Any ideas? var agglika ..

Read more

I have a json file with array of objects and properties. Like one property is "html": "<li class="element-item singlechoice">n<p><a href="#"><div><i class="material-icons">question_answer</i>1)</div> <div>What is meant by 5 A? </div></a></p>n<p> </p><div>A)</div><div><span><input id="q_opt_703193" name="q_opt" onclick="checkSingleQus(‘703193′,’1’)" type="radio" value=""/></span> A charge of 5 C flows through a point in 1 second <span class="ansblock"> <i class="material-icons" id="ansright_703193" style="display:block;color:green;font-size: 22px; font-weight: bolder; ..

Read more

I am trying to get the value of the check box to display on we page <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox1" value="JAVA"> <label class="form-check-label" for="inlineCheckbox1">JAVA</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox2" value="HTML"> <label class="form-check-label" for="inlineCheckbox2">HTML</label> </div> <div class="form-check form-check-inline"> <input class="form-check-input skill" type="checkbox" id="inlineCheckbox3" value="CSS" > <label class="form-check-label" for="inlineCheckbox3">CSS</label> ..

Read more