[Solved] Calender is hiding , only background css is working

You didn’t added JQUERY in your fiddle Add Jquery.1.8.3 and Css Like .calendar { position: absolute; width: 430px; left: 50%; top: 50%; margin: -145px 0px 0px -140px; background: #fff; border-radius: 4px; overflow: hidden; } #datepicker div{ width:420px; } Working Demo Edit : To make date picker in german language add this code $.datepicker.setDefaults($.datepicker.regional[‘de’]); $( “#datepicker” … Read more

[Solved] moving the caption of a tooltip

Here is an updated FIDDLE. The relevant line is this one: .css(‘top’, -h.toString() + ‘px’); It positions the div for the text, and to change the position above the image, I just placed a negative sign in front of h.toString(). You could finely adjust the position by multiplying the h.toString() by a coefficient like -.8 … Read more

[Solved] Javascript check time difference

I’m not sure to understand what you want, but if you want to find out how long the button was pressed, there is how to do it. var btn = document.getElementById(‘btn’); var timeStamp = Date.now(); btn.addEventListener(‘mousedown’, function(){ timeStamp = Date.now(); }); btn.addEventListener(‘click’, function(){ var t = Date.now() – timeStamp; /*You could add a condition to … Read more

[Solved] How do I align this?

Place your two child divs inside a container div then give both child divs float:left; property will display both child divs side by side. Here is the code: CSS .container { height:auto; width:auto; } .image{ float: left; padding-left: 25%; padding-top: 20px; } .side-menu{ float: left; } HTML <div class=”container”> <div class=”image”> <img src=”https://stackoverflow.com/questions/42244525/egg.jpg” width=”400″ height=”400″> … Read more

[Solved] Dynamically fetch content inside accordion from database in php [closed]

You need to use something unique in your accordion id E.G. <div class=”accordion” id=”accordionExample”> <?php $i = 1; $user = $_SESSION[‘auth_user’][‘user_id’]; $query = “SELECT * FROM task WHERE user_id = ‘$user’ ORDER BY datetime DESC”; $query_run = mysqli_query($con, $query); while ($res = mysqli_fetch_array($query_run)) { ?> <div class=”card”> <div class=”card-header” id=”headingOne<?php echo $i ?>”> <h4 class=”mb-0″> … Read more

[Solved] How to convert video(mp4) file into audio(mp3) file while uploading video [closed]

You can use ffmpeg to do this on all platforms. https://ffmpeg.org/ ffmpeg -i input_video.mp4 -vn output_audio.mp3 Note that this reencodes the audiostream and is therefore slower than directly extracting it with a more specific command, depending on codecs used. solved How to convert video(mp4) file into audio(mp3) file while uploading video [closed]

[Solved] 3 checkboxes different names and only select one

Based on this answer by D.A.V.O.O.D, you can use jQuery for this. Just add a class (for example “abc”) to your checkboxes like: <label><input type=”radio” name=”selling” value=”1″ class=”abc” />Parduodu</label><br> <label><input type=”radio” name=”trade” value=”1″ class=”abc” />Keičiu</label><br> <label><input type=”radio” name=”gift” value=”1″ class=”abc” />Dovanoju</label> and use the following jQuery: $(“.abc”).each(function() { $(this).change(function() { $(“.abc”).prop(‘checked’,false); $(this).prop(‘checked’,true); }); }); 13 … Read more

[Solved] Is there a type of password protection that works on local files? [closed]

Well, how about function gamma(text, key) { let res=””, i = 0; for (let c of text) res += String.fromCharCode( c.charCodeAt(0) ^ key.charCodeAt(i++ % key.length)) return res } site = “Z\t\u001d\u0005\u0012O\u0011\u0004\n\u0000\u0000VA\f\u000b\n\bHL\u0003\u000fO\u0006\u0003\u0003\u001d\u0017WI\t\u001d\u0005\u0012Q” onload = function() { document.body.innerHTML = gamma(site, prompt(‘password?’)) } Unless you enter a valid password (which happens to be “fork”), you’ll get rubbish instead … Read more

[Solved] How to edit HTML with CSS? [closed]

Short Answer: CSS isn’t really designed for that sort of thing, you should probably look into a different solution. It is technically possible though. You can actually set the content of CSS elements, but only :before and :after elements that are applied to the element. Therefore, if you have an element like <td id=”HelloText”>Hello</td> You … Read more

[Solved] regular expression to replace div [closed]

This solution uses 2 Replace calls which might be OK if the code is not executed too frequently: string input = @”<div class=””tr-summaryinfo””>’ <p class=””tr-summaryitem””>test </> </div>”; string result = Regex.Replace(input, “<div class=\”tr-summaryinfo\”>(.*?)</div>”, “<ul class=\”tr-summaryinfo\”>$1</ul>”, RegexOptions.Singleline); result = Regex.Replace(result, “<p class=\”tr-summaryitem\”>(.*?)</p>”, “<li class=\”tr-summaryitem\”>$1</li>”, RegexOptions.Singleline); Note that you need ? in the patterns to avoid the … Read more

[Solved] Div is not centered properly, why?

Change width: 100%; to width: 90%; so you aren’t extending the page by adding margin-right/left:5% and set padding:15px; to padding: 15px 0; so only top and bottom gets padding: #contentholder { background-color: #eeeeee; margin-left: 5%; margin-right: 5%; min-height: calc(100vh – 210px); width: 90%; } Then: Get rid of float:left on the class .step. Boom it … Read more

[Solved] $_FILES[“file”][“name”] is returning empty value [closed]

In your case the problem is the following line: header(‘Location: ‘.$redirect); When you first run move_uploaded_file and then make redirection using header function, $_FILES array gets empty, so in next line simple you cannot check $_FILES anymore. In addition I don’t see any point making this redirectrion. When you move_uploaded_file it simple return true on … Read more

[Solved] Javascript; nested for-loop not working

Arrays are 0-indexed, This means that the last element of an array is not at array.length but at array.length – 1. You’ll have to create a new array (sub-array) and then start adding elements to it. Your code should be like this: var divs = []; for (var x = 0; x < nodeArray.length; x++) … Read more