« first day (1343 days earlier)      last day (3621 days later) » 

 
This is only the shrink logic
But as you can see, no JS is involved.
 
@Feeds I don't get it... is that implying that on Krypton, they thought of the same thing?
 
It's implying people on earth are assholes.
 
@Neil We sent the baby to the exploding planet, they sent it away from it.
 
8:07 AM
@Kippie You don't need xkcd to know that, though :P
 
I get it, but it's not even slightly amusing
I am disappoint
 
@SecondRikudo Sorry, was testing something, I found out that you can use ~ to call second 'animation' in css3
 
Hmm, what's the best way to point to a function/object through a json reply?
Put the object or function in an array and put the index in json?
 
So it will work if you hover the first, but not if you hover the second.
 
@Kippie s/array/hashmap/
 
8:09 AM
@Naruto Problem with ~ is that it only works on elements after, not before.
 
@JanDvorak Yeah okay, but that's still the best (maybe only?) way, right?
 
right
there's also eval, but...
 
yeah, that crossed my mind, and I beat myself severely for even thinking that
 
@ASR $([selector]).show/hide
theres a clue
 
@Kippie object with function names as keys would be easier than an array
 
8:12 AM
@Naruto do you understand what I did there?
 
@SecondRikudo I understand yes, but i'm figuring out where to go from there
 
@Naruto Well, not you need to implement the click logic.
That can be done with JavaScript
 
@SecondRikudo That's what I thought, though not that funny :/
 
Simply add a class "selected" and "not selected" to the ones you need, and change their width with CSS
@Neil No, not really..
 
World on Krypton was about to end anyway, right?
Sending away a baby because it's crying is kind of silly
 
8:14 AM
If i remove the class expandable on click? and in CSS i use a transition to go to full width and when I click other button to ass that class again, good idea or not?
 
@Naruto Would not like to know what assing that class means
 
!!s/ass/add/
I'm guessing?
 
@SecondRikudo @Naruto Would not like to know what adding that class means (source)
 
Or rule 34?
 
adding, sorry, HAHAHAHAHA :D I just read it :p
 
8:20 AM
Well, don't think of classes as a mean to style an element.
A class is supposed to tell us what kind of element is this. What does it mean.
Which is why I also don't like the .expandable name that much. It tells you what it does, but not what it means.
 
yes I understand, but having that class on an element, will always keep trying to do the animation for that element? Thats why I wanted to remove it when .click in jquery
 
@Neil What did I miss? :o
 
@Naruto The transition will happen on change.
If you change the width (even from the dev console), you'll see the transition.
If you set it to 100% with some high specificity rule, you won't get the changing width on hover.
You seem to be misunderstanding transitions.
A transition is just a means to animate style changes.
So instead of jumping directly from 50% to 75%, you get a nice gradual change (in this case, over .3 seconds)
That's all the transition does. It doesn't determine how much width the element gains. That's determined by CSS.
 
@SecondRikudo Well I am a back-end developper being pushed into this crap :(
 
@Naruto I am a back-end developer as well.
That didn't stop me from learning front-end as well :P
 
8:25 AM
I hate it.. :P
 
It's part of the job, I'm having to do it too and I, too, am a back-end developer
 
Same here.
There's hardly a thing called "back-end developer" and "front-end developer", if you want to succeed and push through, you need to be able to do both.
 
True, can't really only do back-end and expect to get anywhere in webdevelopment
Front-end is getting more and more important
Unless if you are only making API sort of stuff
But then life would get boring quickly, I reckon
I enjoy making stuff with Javascript
 
@Magikaas However, I'm seeing a lessening demand for professional front-end web developers
Because nowdays you can just take someone and pay him half the price, he won't be as experienced, but he can do the job with jQuery and Bootstrap.
 
@SecondRikudo Because hybrids cost less than specialised front-enders I reckon, I guess?
 
8:28 AM
@Magikaas Because there are tools today that make it easy for noobs to appear professional.
 
@SecondRikudo Bootstrap, jQuery, anyone can make a website responsive and also do the backend with a CMS
 
Yup
There aren't many companies that realise that the development process of a noob will hit them further down the road, and not now.
 
@SecondRikudo Question: I have never done it like this, could you point me in the direction on how I should approach the click event on those divs?
 
@SecondRikudo Performance, expandability, you'll have to get a more experienced guy on the job to get those things right
 
@Magikaas Yup. For example, the company I work for, has yet to understand that.
We have one of the best front-end developers I got to know
But he doesn't want to develop new features anymore, because he doesn't feel appreciated.
He's like 56 years old, he's been in the business since the time of <html> used for print
I don't think I met anyone who knew about the internal processes of browsers, CSS, JavaScript, etc, more than him.
 
8:33 AM
@SecondRikudo The company I work for is relatively small, so we are basically hybrid devs, I, myself, am guilty of overusing jQuery and letting my vanilla js skills lay behind...
 
@Magikaas Using jQuery is one thing. Using it badly is another.
For example, what's wrong with this?:
 
@Mosho yes interests me. does 'this' points to provider object?
 
if ($("#input").attr("readonly")) { alert("Input is read only!"); }
 
@shortCircuit give me a link to what I wrote
 
waitz
 
8:36 AM
waitzing
 
@SecondRikudo You alert for every element with id "input", so it should only be one, or is that just because it's an example?
 
@Magikaas "readonly" is not an attribute.
It's a property.
This won't catch <input id=input readonly>
 
@SecondRikudo I just found out that transition doesn't work on IE9 :(
 
11 hours ago, by Mosho
@shortCircuit
 
Ahh, well I guess I'm using it badly too, as I didn't know it would not pick that up
 
8:37 AM
@Naruto Ah crap, you're right.
 
I'd have to google to find out how to get that
 
Freaking IE.
@Magikaas The difference is simple.
attr is for attributes in HTML, prop is for properties in the DOM.
The correct implementation would be
!!s/\.attr/\.prop/
 
@SecondRikudo That didn't make much sense. Use the !!/help command to learn more.
@SecondRikudo if ($("#input")\.prop("readonly")) { alert("Input is read only!"); } (source)
 
(Yeah without the `\`)
 
sooo i'm back to square 1 :(
this shit is so tiring and time consuming :p
 
8:39 AM
@SecondRikudo I see, hehe, I'd probably figure it out after a bit of googling, but I would not have known that off the top of my head
@SecondRikudo Is it a property because of the lack of a value or is it laid out somewhere what are properties, so the rest are attributes?
 
What is 'debugger;'
because I not find that is debugger...
$(document).ready(function () {
  debugger;
 
@Magikaas Think of attr as reading directly from the element, and prop as reading it from the JavaScript node.
in the case of <input readonly>, .attr("readonly") would return "", while .prop("readonly") would return true.
 
@MirkoCianfarani it's essentially a breakpoint
 
@shortCircuit in the service definition, you can see that return $injector.instantiate(Class); is called
being a provider means that whenever you call the service, the .$get function will get called
 
8:46 AM
@Loktar @rlemon
 
$injector.instantiate(Class); means it will do new Class
 
@SecondRikudo I found a workaround to my original problem
 
so it creates a new object when you declare the service
 
@Naruto That sounds bad :P
 
it uses Class, which is the function you provide to service as the constructor
 
8:47 AM
fine
 
and whenever you inject that service, it will inject that constructed object
the same one
 
ok, so this points to that constructed object after instantiating the class
 
whereas a factory gives you the constructor instead
so you can do new FactoryName
don't get caught up on the word class though
 
but yes
if you use a function as a constructor, this.attrName will just be an attribute in the returned object
so that's where the this comes from
 
8:49 AM
:) ty
 
in his example,
this.sayHello = function() {
        return "Hello, World!"
    };
would make the object created when you declare the service with the name specified have 1 property, the method sayHello
 
@SecondRikudo I just jsfiddled attr('readonly') and it returned the string 'readonly'. So I guess they changed that in a later jQuery version? Or was that not your point? That you might get an unexpected result from using attr instead of prop
 
and when you inject the service, the object is injected
 
Hmm
!!> $
 
when you inject a factory, the function is injected
 
8:50 AM
@SecondRikudo "ReferenceError: $ is not defined"
 
and you usually use it as a constructor, to produce new objects
hence the name factory
 
indeed it would seem that it has changed in a later jQuery
 
gotit
 
@SecondRikudo But yeah, if you got "" it would be interpreted as FALSE in javascript, but prop returns true, meaning it would work as expected
 
cool thing... javascript frameworks are easier than php ... even with @SecondRikudo in here, i can't deny that.
 
8:53 AM
@Magikaas it changed at jquery 1.8
 
Excuse @JanDvorak it's essentially a breakpoint for the console and "stopping execute function Javascript" or other ?
 
Good morning. Anyone have any idea why this doesn't work?
http://jsfiddle.net/RA36c/
It 'should' input tscript before the script file of #trk
 
@SecondRikudo I've kept my original code, but figured out that the text I put in there was causing the problems I was having...
 
oops, it's jquery 1.6, my bad
 
@Purify have you tried the console
 
8:54 AM
@SecondRikudo So fading out that div 'solved' my problem ;)
 
it has a lot to say about it
 
856
Q: .prop() vs .attr()

NealSo jQuery 1.6 has the new function prop(). $(selector).click(function(){ //instead of: this.getAttribute('style'); //do i use: $(this).prop('style'); //or: $(this).attr('style'); }) or in this case do they do the same thing? And if I do have to switch to using prop(), ...

 
@Mosho yes sir.
 
@Purify you're not saying where to insert it
 
@FlorianMargaine Okay. I see, I want to get out of using jQuery for everything, because my knowledge of vanilla javascript is very limited... But it'd take a while to learn and get used to vanilla javascript and with deadlines, that's not really an option xD
 
8:55 AM
@towc insertbefore inside the #trk element?
 
@Magikaas which browsers do you have to support?
 
@Purify also, you don't see what's inside of a script tag
 
ive just lost the game
 
@FlorianMargaine jQuery at its finest
 
@FlorianMargaine {IE 8,> and Firefox/Chrome/Safari latest version and if agreed upon possibly older version, though that rarely happens
 
8:56 AM
"Oh, that new update required people to think a little, not good, nobody thinks! all websites are broken! Back to the old behavior!"
 
@DrogoNevets Dangit, I lost the game
 
@Purify and you don't need to specify the type of the script, it's js by default
 
@towc the console returns Failed to execute 'insertBefore' on 'Node': The new child element is null.
Although after googling why, it doesn't seem to give me a real reason why.
I thought that
track.insertBefore(tscript,track);
should work but evidently not.
 
document.CreateElement("script");
 
9:01 AM
@dystroy =/==/=== reading is key :P
 
@Purify http://jsfiddle.net/RA36c/2/
document.createElement and not CreateElement
Inside the innerHTML you have to put the code of Javascript and not text "INSERTED" because you adding the <script>
What is the file.js?
 
@SecondRikudo could we not do document.getElementById("id_name").readOnly == true ? alert("readonly") : '';
 
@shortCircuit never do == true
 
@Magikaas if you support IE8, keep using jquery
 
9:02 AM
=== ?
 
@shortCircuit you don't need the ? then, you can also use && then, right?
 
@Purify you are trying to insert a script, and the content of the script is INSERTED!!!!!!!!!!!!!!!!!!!
INSERTED!!!!!!!!!!!!!!!!!!! is not valid javascript
 
in angular this works fine:
 
and i will remember that..
 
9:02 AM
<div id="dialog" ng-controller="Controller" >
    <button ng-click="getCriterian()">get criterian</button>
    <p>{{test}}</p>
</div>
however if I do this none of the stuff works:
$("#dialog").dialog();
 
!!s/INSERTED/SPARTA/g
 
@Neil SPARTA!!!!!!!!!!!!!!!!!!! is not valid javascript (source)
 
@Mosho that's just a test, tscript will actually become a script.
 
@FlorianMargaine For the time being, we do have to support IE 8, mostly because clients that are already with us want it supported. But we may 'move on' to greener pastures :P
 
@Purify you also had a few typos and stuff
my fiddle works
 
9:03 AM
$("#dialog").dialog(); is effecting angulars ablity some how
 
@Purify be that as it may, you will get an error when you try to insert INSERTED!!!!!!!!!!!!!!!!!!! in a script tag
 
@Mosho I'll update it to be more accurate.
 
Excuse @Mosho and @Purify my jsfiddle is not working? chat.stackoverflow.com/transcript/message/17274636#17274636
I am a invisible user inside this room?
 
Home sweet home
Let's get this weekend started!
 
@Purify although it's still inserted
you just won't see INSERTED!!!!!!!!!!!!!!!!!!! in the fiddle output
 
9:05 AM
Hi all, in the past I used php include, does there exist something similar for html/javascript ?
 
10 years ago I used frames, but that is a little bit out of fashion I think
 
@Purify JS doesn't support multiline strings
 
escape the newline or make a string for every line
 
9:07 AM
@Purify look the error of the console!
 
@Purify and read the console output
 
@Mosho oh... o.o
 
@Neil whaat :P ?
php and frames are forbidden words here :D
 
@MirkoCianfarani sorry for missing your reply, I have printed and framed your fiddle, it is now hanging on my wall
 
@Mosho +1
@Kasper no they're not, you just have to use them in respect to negatives
 
9:10 AM
but that was my question, how I can do this with html only or javascript ?
 
@Purify You create the tag <script> and this accept only code of Javascript!!!
And attention for character especially
example:
When you write more """ you have to before of second " the /
result "/"/"
If you print the text on the page html you have to change createElement and put the div, how to say Mosho!
and now I am retired!
 
@MirkoCianfarani Yeah i updated it. I'm not actually printing text on the page, i'm adding JS.
 
ahah quiet @Mosho and I think it is understanding...
Alleluja... Come on with this exercise @Purify
 
oh god.
I had document.CreateElement("script");
facepalm
 
document.createElement("script"); !!!!
 
9:18 AM
yeah.... haha
 
come on!
 
:(
 
u can use the chromeConsole to avoid facepalming ...
 
@Purify I changed that in my fiddle
one of the typos I mentioned
 
@Mosho oh. :|
Well, console doesn't return errors anymore... and it still doesn't work.
http://jsfiddle.net/RA36c/5/
 
9:23 AM
@Purify NOOB
 
@PatsyIssa ikr.
the insert doesn't appear to be working now though. woot.
 
@Purify Been programming in C# lately?
 
@Neil a little yeah, how did you know?
 
@Purify ;)
 
wohoo!! fixed the map not unloading, smooth animation queue and player not updating his position as a level is finished!
lemme git it
 
9:25 AM
do u not need to append the script to the head or body or somwhere
 
I need to append it to the #trk div. before the first script it lists.
man, I hate vanilla JS.
 
@SecondRikudo IT works :) Isnt that good enough, it even works on IE :D
 
@Naruto It works, but what will happne in the future when you need to improve on it?
 
@SecondRikudo you burn it with fire
 
get the id of the div and do the .appendChild simple
 
9:28 AM
Then it should still work? :p
 
@shortCircuit that'll append it to the end of the div. not the start.
 
vanilla JS ? is there like ButterScrotch Strawberry etc
 
@shortCircuit theres eton mess
 
ASR
@DrogoNevets image alignment problem for the last image jsfiddle.net/ZWg3B/2
 
9:30 AM
I only have 1 more bug now
 
then document.getElementsTagName('body')[0].appendChild();
 
How do they do those fire thing, i wish i could do it too
 
@ASR why me?
@towc that you know o
 
ASR
9:32 AM
u helped months back
 
it looks like a CSS problem, just because i was able to help then doesnt mean i can/will now
 
@DrogoNevets you'd help me by telling me any bugs you find
the one I'm trying to fix now is the text not going in and out after 6 seconds
 
@purify I think that the you function of Javascript work if you want the <script> inside the div... Look the result code
<div id="trk">
<script type="text/javascript">
var google_conversion_id = 0;var google_conversion_language = 'en_US';
</script>
<script src="file.js" type="text/javascript">
<noscript> <h1>noscript enabled</h1> </noscript>
</div>
 
it goes instantly in and out (no jokes plz), but should be an easy fix
 
@towc LGTM
 
9:34 AM
@MirkoCianfarani which function sorry? but yes, that's the output i want.
 
!!urban LGTM
 
@towc LGTM An acronym for "Looks Good To Me", often used as a quick response after reviewing someone's essay, code, or design document.
 
@SecondRikudo thx
 
Lemme have a look at the code :P
 
yep, fixed
 
9:36 AM
@MirkoCianfarani you're saying that my function as it stands, outputs that code?
 
@SecondRikudo don't even try
 
ya Mirko is right .. or you can like make another blank div and the top and append it to that.
 
it's a suicidal thing to look at my code SPONTANEOUSLY
 
Yes!... the function that I say is the creation of the script
 
9:37 AM
@MirkoCianfarani my code is the same as JSFiddle on a localhost server - doesn't output the code you got. Although that's what I want it to...
 
@shortCircuit looked at that a thousand times xd
 
Please using the console (Firebug or Inspect element [) for searching errors on you localhost server !!!
On Jsfiddle the output code is correct how you say...
I am not magician
 
@MirkoCianfarani it doesn't output any.
 
and then what happened ... if it doesnot work then i think do something like
<div id="trk">
    <div id="foo"></div>
    <!--rest of code-->
</div>
and then append the script to foo. thereby you have it at the top.
 
9:41 AM
ok, now I need a b10k image/x-icon
suggestions?
 
is html 5 the only way add a music player to a webpage?
 
@towc link/fiddle?
@shortCircuit im going to say yes, but its not the actual answer as the alternative is evil
 
flash?
 
@DrogoNevets github?
 
@shortCircuit yea
 
9:43 AM
 
@towc you want me to test, where do i go to test
 
i better die.
 
@DrogoNevets I'm setting it up on my server
just wait a few minutes
 
!!afk study Android
 
9:44 AM
@DrogoNevets but here is the basic thing 26a9731.www.5minfork.com
 
nice concept
 
@DrogoNevets it's pretty old I guess... so old that noone remembers it's name
 
yestarday i was checking into a freelancer jobs website ... god help those people nearly everyone wants a replica of a specific website. "i want to make a website for connecting people on campus which must be like voicethread.com"
 
@MirkoCianfarani so you appear to be correct. the code seems to be inserted although there's no way I can see the output since it doesn't show in the source.
 
@Purify MirkoCianfarani is afk: study Android
 
9:50 AM
here it is on my site
not constrained by the 5 minutes
@DrogoNevets problem is that I'm really not good at making hard maps
could you help with that?
 
console.log(tscript);
 
why don't you just do tscript.innerHTML='console.log("cheese is the best")'?
that way you can easily test if the script is there or not
 
@towc what do you mean hard maps?
 
@DrogoNevets the levels are way too easy
too straight forward
I'm sure that the 6x6 map (the last one) could be map 10x as hard
 
@towc i see, ill have a think
 
9:58 AM
@DrogoNevets thank you
 
not promising anything
 
@DrogoNevets obviosuly
 
!!afk
 

« first day (1343 days earlier)      last day (3621 days later) »