Pomodoro Timer User Input [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 days ago.
Improve this question
im creating this side project that is a pomodoro study timer. one of the features i want to include is 3 do tasks the user can type in and check them off:
i managed to create the tasks but now I need to make the user able to edit the tasks
How can I do this?
i used this to create the tasks:
<div class="todo-list">
<h3>To-Do List:</h3>
<ul>
<li><input type="checkbox"> Task 1</li>
<li><input type="checkbox"> Task 2</li>
<li><input type="checkbox"> Task 3</li>
</ul>
</div>
the full code is here: https://www.w3schools.com/html/tryit.asp?filename=tryhtml_default
I first tried researching but what I found either was not helpful or I didn't understand. I am pretty new to html and javascript. I then tried asking chatgpt but it didn't load my answer due to high usability. I expected to find a command or function that allows me to do that.

Related

Relation between dropdown structure and proccessing it's data in forms [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I've known three ways for creating dropdowns which I can use in forms till now:
1) using HTML "form-dedicated":select and option value=""
2) using Bootstrap framework: div class="dropdown" Button class="btn btn-secondary dropdown-toggle" and div class="dropdown-menu having a class="dropdown-item"
3) using HTML UL-list: ul li a href="x" and so on
Could anyone tell me if there are any differences in treating data from this three types of dropdowns by server? Which one I should use to obtain not only good looking but also efficient form ?
Only CSS and JS differences, But all of it are HTML, Frameworks are a ready CSS-JavaScript codes, A drop-down inside a form is connected to the form, That all.

Custom order list of links [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have a list of links that are by default sorted alphabetically. For example
<ul>
<li>Aeroplanes</li>
<li>Books</li>
<li>Cars</li>
<li>Diggers</li>
</ul>
This list is auto generated and in real life about has about 30 links, how can I easily order these with little overhead using javascript/jquery. The order will be changing often to boost categories depending on season/popularity a number of other deciding factors.
TinySort is a small script that sorts HTMLElements. It sorts by text- or attribute value, or by that of one of it's children. The examples below should help getting you on your way.
This doesn't use jQuery and it is fast in performance.
TinySort used to be a jQuery plugin but was rewritten to remove the jQuery dependency. It is now smaller and faster (and has no dependencies). Functionality is the same but changes have been made to the parameters and options.
Just use this way:
tinysort (NodeList);
<script src="https://cdnjs.cloudflare.com/ajax/libs/tinysort/2.1.1/tinysort.min.js"></script>
<ul>
<li>Aeroplanes</li>
<li>Cars</li>
<li>Books</li>
<li>Diggers</li>
</ul>
<script>
tinysort('ul>li');
</script>

dropdown login menu using only html/css/javascript [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Improve this question
Hi i'm looking for a dropdown login/menu without the use of any bootstrap-like css or jQuery (due to school not allowing this..).
It has to be relatively small and ideally it would come down when clicking or hovering above the login button on the nav bar.
Much thanks in advance.
Here's a drop-down menu which uses HTML/CSS incorporating a hover effect.
Here's an example of it working: http://jsfiddle.net/rhxxyky8/10/
It uses lists in the form of:
<div id='dropdown'>
<ul>
<li class='detail'><a href='#'><span>Test 1</span></a>
<ul>
<li><input type="text" placeholder="Username"></input></li>
<li><input type="password" placeholder="Password"></input></li>
<li><input type="submit"></input><input type="reset"></input></li>
</ul>
</li>
</ul>
</div>
Without any workings or diagram to follow, what you require is quite difficult to replicate.
This is probably one of the most non-complicated methods, but does not include javascript, thus some would argue that it is more efficient if you require these results.
As for how you'd login without SQL or PHP etc, is beyond me at this point.

Javascript grab div and place it in between different divs [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
<div id='layer1'></div>
<div id='layer2'></div>
<div id='layer3'></div>
I have 3 divs, I want those div can be draggable and adjust the layer like photoshop changing layers.
ex. When user grab layer1 and place between layer3 & layer2 (mouse up).
Anyone know how to achieve this?
Try using Sortable from jQuery UI.
Basically you need to have a structure like this:
<ul class="sortable-list">
...
<li>...</li>
...
</ul>
And then in your jQuery code, just call:
$('.sortable-list').sortable();

Hiding li element using sub-element's information [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I load a web page from the internet (say www.google.com or whatever). This page is written in HTML. Suppose in this code there is this fragment.
<ul class="CLASS">
<li>
<div class="DIV1"></div>
</li> //Hide this li
<li>
<div class="DIV2"></div>
</li>
<li>
<div class="DIV3"></div>
</li>
</ul>
I want to know if there is a way to hide the section (the li section) that I mention in the previous code ("Hide this li") as soon as I load the page. In my screen, I don't want to execute the section li that I mention.
I did some research and I think that the Firefox extension Greasemonkey does it. What will be the script to add to do this ? Or, there is a different way (without Greasemonkey).
It's not possible using only html and css. I would do it using javascript and a library (I use jQuery):
$(document).ready(function() {
$('li a[href=SOMETHING1]').parent().hide();
});

Categories