« first day (3276 days earlier)      last day (1666 days later) » 

1:48 AM
var start = document.getElementById("fill");
var seconds = document.getElementById("secs");
var percent = document.getElementById("percent");

function change() {
 start.style.animation = "fill " + seconds.value + "s";
}
function reset() {
 start.style.animation = "";
}

window.main = function() {
 window.requestAnimationFrame(main);
 percent.innerHTML = start.style.width;
};

main();
@KevinB sorry for VERY late reply, the reset and change functions are what set the style
they work fine, I just want the little percentage reader in my HTML to show the percentage of width (0% - 100%) because I want it to show what percentage the progress bar is completed
Full project with HTML and CSS codepen.io/SkylerSpark/pen/eYYYmLE
Edit: I deleted the reset function, and merged it with change to simplify the concept
Edit Again: Sigh I changed it back after some problems
 
 
10 hours later…
12:03 PM
@KevinB Now I send the map boundaries to the server and the DB filters and sends the response back to me
1 problem, if the user zooms out, the entire country shows up and this makes the server to get everything from the DB
 
 
4 hours later…
3:48 PM
Hello!
I have an object that can process other objects, roughly put.
Is it worth having a function for a singular input and for multiple objects? e.g.
CoolObject.processObject(obj) and also CoolObject.processObjects(objectArray)?
 
4:41 PM
I've a page which contain a router-outlet, wrapped inside a div with ngIf. If someone clicks any sub category, the value of ngIf will update and the child route will load (I need it as a route instead of app-* tag because of SEO concerns. Now when they click on the close button in the div, everything will be fine. If they click on the main category link in navbar, the ngIf value doesn't update.
That is when navigating from parent to parent/child, a div will be activated using ngIf but when navigating back to parent, the value isn't updating.
do I have to use navigationEnd and all the things for this simple thing or is there any other workaround
 
 
2 hours later…
6:17 PM
anyone on ?
 
6:35 PM
what is the advantage of loading fonts via webpack
 
6:50 PM
@AlexMitan I think it depends what those functions do. You can always do:
objectArray.forEach(CoolObject.processObject)
 
7:15 PM
No workaround found. used navigationEnd to fix
 
7:44 PM
Any of you happen to know of a good polyfill library? Basicly just to support IE9+ users. I know about polyfill.io, but I rather not have my system rely on an external service being online or not
 
8:02 PM
@icecub core-js
 
8:16 PM
@SagarV Thanks :)
 
8:42 PM
@icecub anytime
 
9:10 PM
is it correct to store the sent messages of a chat app in the local storage?
divided by room and logged in user?
Maybe my encrypting them with the password of the logged in user
 

« first day (3276 days earlier)      last day (1666 days later) »