when trying to learn a bit javascript canvas game tehnology
on the bottom of the code i found something like
when trying to learn a bit javascript canvas game tehnology
on the bottom of the code i found something like
That's used for Google Analytics, which allows the operator of a website to collect generic information about people visiting the site. (How many visits, where they're coming from, what device & operating system they're using, which links they follow, et cetera.)
It will be unique for each website. Any sample code that includes that is sloppy sample code, to be honest. It will only work on the original person's website, and will be wasted effort on anyone else's page. You can safely delete the <script> tag and everything within it, as it has nothing to do with the actual sample.
allright that was very helpfull, Could you say meybe a bit more, : if this is some script that collects some information ehen he is storing it, and how me as a webpage owner can use this information (just for curiosity), also would it slow a canvas game or its page or not at all?
allright,
could I maybe ask here few of some simple javascript related questions?
Im trying to understand some thing if some could answer some question it would be helpfull
Im trying to quickly analyze such code
https://github.com/hunterloftis/playfuljs/blob/master/content/demos/raycaster.html
but my knowledge is little (an i had not to much time to learn it,
but would like to understand it as far much as possible)
one is -
if si got some page with two scripts like here <script> </script> <script> </script>, which one is running first? is one firing the another or what? could someone explain? (if so tnx, )
the second would be
var MOBILE = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
- whats this? its looking very strange (as for m c ground man)
Google search: HTML script tags order of executionif si got some page with two scripts like here <script> </script> <script> </script>, which one is running first? is one firing the another or what? could someone explain? (if so tnx, )
Google search: navigator.userAgentthe second would be
var MOBILE = /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent)
- whats this? its looking very strange (as for m c ground man)
/Android|webOS|iPhone|iPad|iPod|BlackBerry/i
Is a regular expression. Javascript has a special syntax to create them on the fly.
From your responses, it is unclear if you're even trying to research these topics at all.
trying to research it myself is not my methodology today - sometimes it is more effective to talk with somebody who knows that - and im looking for such place here [there are some reasons for that, (if you just call me lazy you may totally miss some point, really, though its probably to long to explain this thing ) ]
that was a bit helpful but as i do not know html/javascript those link do not say me much - navigator i dint understood at all, as to script tags, they say that they are executed sequentially what if there is a game in the first which has a loop so it do not ends, then the second is never called?