« first day (2052 days earlier)      last day (2897 days later) » 

9:13 PM
Hi !
 
@KarelG Then they get angry that imgur's servers can't take the load
Of course they can't, they need to process your 1000+ worthless wallpapers
 
!!work or play
 
And then serve them to millions of people
 
@Abhishrek play
 
Civ5 for cultural victory with greece / venice is a cakewalk
 
9:26 PM
tbh, getting anything except cultural victory is really hard
.. unless you disable it
 
9:40 PM
@tereško diplo with greece and venice is just as easy
takes 10 - 12 more turns
 
10:29 PM
@Josiah only has one cord. here 220 has a different plug
 
11:02 PM
here's an instance. two upvotes on completely wrong comment
 
you are in the wrong room
nobody here cares about asm
 
he's just complaining that people vote on SO questions, answers and comments
 
ugh voting.
 
and, being the internet, many people vote stupid.
 
Who would ever trust humans to do that.
 
11:14 PM
is there a way to attach events in bulk?
 
Humans suck
 
Your mom sucks
 
@JanDvorak or maybe it's all propaganda
(generated by humans who suck)
You're right. Humans suck
 
and are hypocrites
 
Everything sucks, unless it is designed to, then it probably doesn't.
 
11:16 PM
except M$ Roomba
 
@tereško hmm, no, I think you'll have to loop over the elements and attach listeners; you can pick an element up the tree and capture events as they bubble up if you don't want to attach a lot of listeners
 
other way around
one element, multiple events
 
well, you can use Object.defineProperties(target, {onclick: () => {}}) to register listeners, but it lacks all the nice features of target.addEventListener()
 
['click', 'event2', 'event3'].forEach(eventName => element.addEventListener(eventName, handler)); //@tereško
 
hmm
 
11:31 PM
all problems are solved with .map or .reduce (.forEach() is just .map() that doesn't return a result)
 
You would use forEach since it's a side effect
forEach isn't a map
 
you're right, technically.
man, flexbox is so nice.. makes me pants tight.
 
Hi everyone
 
@vade Welcome to the JavaScript chat! Please review the room rules. Please don't ask if you can ask or if anyone's around; just ask your question, and if anyone's free and interested they'll help.
 
o/
 
11:40 PM
Can I copy and paste a javascript library's code inside an HTML file instread of referencing it?
 
you can put it inside a <script> tag, yes.
 
Thanks Luggage
I'll try that, I hope it works for angularjs
 
but probably don't
 
if you are using angular, you don't want that
separate files are better for everything but the simplest of 'hello world's.
 
ohhh
I have no choice, due to restrictions at work, I cant make any reference to any javascript libraries, over the internet or intranet
 
11:43 PM
and special cases like loading animations if you want the to appear really fast, but ignore that
That make no sense. You need to be able to refer to other files for any non-trivial page.
 
I see.
 
quit your job
 
the script you need should be hosted the same place as your html
not somewhere else on your intranet.
that's not unreasonable to serve more than one file.
 
I know right hahahha...they want me to make a scorecard like app but doesnt want to give me at least privilege to reference to the library
 
there must be some miscommunication.
 
11:46 PM
I tried arguing with them, that I atleast need to have a copy of the library save next to the html...but they said no
 
quit your job.
 
that's like a carpenter that isn't allowed to use a saw.
useless.
 
I think of that too...but right now I dont have the luxury of being unemployed
well technically, my job involves excel spreadsheets all day doing reports...
my mistake I guess is that I made a simple scorecard serving 300 people, but when the higher ups saw it they want it deployed for 3 sites/center
 
Ah, so a programming opportunity, then they they restrict you from being able to deploy files to a web server like you need.
 
11:49 PM
thats right
 
go to the higher ups and explain why you need to be able to do this thing
go around the people who control the privileges
 
use terms like "preposterous" and "fuck-tard"
well, maybe just the first one
 
screenshot this chat and say "the internet said so"
 
I did, I even made a presentation and documentation for it...but they said I cant
 
Luggage said so.
 
11:51 PM
quit your job.
 
^
 
So I though of pasting the whole library code inside the HTML file itself
*thought
 
or.. learn build tools so that you can work on separate files, then "build" it into one giant html to deploy
 
that will work, but it's super shitty
 
you can, possibly, make some lemonade.
 
11:52 PM
ahahahaha
I'll try to be as organize as possible
 
If you must deploy one file, then the only way to have ANY organization is a build tool to combine all your separate .html and .js and .css files
let's hope you don't need images
 
I was planning to use excel's vba to come up with that kind of tool...
 
dear god, no
 
ahahahah, even if its just for combining the parts?
 
11:54 PM
js has lots of tools for that already. see gulp, webpack, many others
if you are in a Microsofty environment, Visual Studio Express + gulp might be a way to start.. but it'll be a learning curve
i mean the build tools..
 
ohhh
 
@phenomnomnominal jobs are for slaves
 
well I may be on the long route, I only have google chrome's dev tools and excel vba at my disposal
 
ok, well, forget about excel vba for web dev.
 
capitalism is dead
 
11:56 PM
let me think about what a good starter tool is that can inline js into html...
 
thanks
will the angularjs suffice? and do I need to use the uncompressed one?
 
gulpjs.com A very popular tool for 'building' javascript projects. It has plugins to inline scripts that should meet your needs.
 
I'll check that
 
is this your first angularjs project?
 
yes
 
11:59 PM
Bernie is just another puppet
 
hm.. that'll be a whole other thing to learn..
@Shmiddty of course, be he's not trump
 
The lua in civ5, wow!
 

« first day (2052 days earlier)      last day (2897 days later) »