« first day (1300 days earlier)      last day (3654 days later) » 

10:00 AM
and the rule before it
 
the content should be that url to the img
or could i not follow your ideas @DrogoNevets
 
o/ people
 
@DrogoNevets -> it works
but add gaps between li tags
 
@Fisherman Welcome to the JavaScript chat! Please review the room pseudo-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.
 
10:09 AM
@MRS1367 what do you mean with "gaps" ?
 
@KarelG and @DrogoNevets
@KarelG -> do u have any Idea?
 
@Ć’ernandoValle Welcome to the JavaScript chat! Please review the room pseudo-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.
 
Guys, say I have a functions tied to a certain UL with li's(added through php echo's) and then I add another li in the same UL but with a class name. Is it then possible to make the li with the class name ignore the functions tied to the UL?
 
Hello All
 
@DavidH It will ignore it anyway
 
10:22 AM
It's not actually
 
If you assign events to all li nodes, then you add more, they aren't automatically accounted for
We talking about css styling or javascript events?
 
Regardless of the fact that the li I added manually has it's own class it still executes the functions
Javascript events
 
css stylings may very well apply to all of them
 
Let me explain like this
 
That's impossible unless you hook the events after you've created the new li tag
 
10:23 AM
I am trying to change the coloring of a character present inside a string,I locate the character using JS chartAt function.
 
Can any one tell me how to initiate a JQM poup inside a java script
 
Can I change the color of the character without wrapping it in a span or any other element?
 
Ul(Filter events attached to li's)>li with class name/li's with events
 
@Neil Not if the event is tied to the UL
 
@monners True
 
10:24 AM
^ That
That's what currently is going on
 
@DavidH You could check for a class within the function and prevent execution if the target has the class you're trying to exclude
 
Well you can add a check before you do anything with a li tag to ensure that it in fact doesn't have that class
 
Ah right! Thanks guys!
 
np
 
I couldn't really get my head around it
 
10:26 AM
Isn't JavaScript wonderful? :cough:
Kidding. I love it.
 
though if all li nodes you add later are going to have this class, it might be simpler to put it in its own ul
 
@Neil It's a menu with levels, it kind of screws up the css if I do that
 
@DavidH Ah ok, nvm
 
Yea that's the tricky part, i'd done it too otherwise
 
I still think it's possible, though it definitely wouldn't be simpler at that point
 
10:29 AM
Wow I just realized something, not sure though. If I wrap another ul around the li with class, would it then ignore the parent ul with functions?
 
@DavidH Nope, because anything within the parent UL is still technically part of that UL
 
Right
 
<ul>
    <li>
        <ul>
            <li>I'm still going to trigger event bound to the uppermost ul</li>
        </ul>
    </li>
</ul>
 
Hehe yep, so a check is my only way out
 
I take it you're trying to do something along the lines of a sub-category menu?
 
10:32 AM
Bingo.
 
I would try to do that with a nested ul
 
<ul class="level-0>
    <li class="sub-parent">
        <ul class="level-1">
            <li>I'm still going to trigger event bound to the uppermost ul</li>
        </ul>
    </li>
</ul>
 
You can test for that just as easily as you could for a class
 
That'll make your JavaScript a lot more managable
 
At the moment i'm in 'level 1' as well as that level 1 has the php function included(shows the filters)
 
10:33 AM
Sorry, forgot the sub-parent class
 
Then under it my Li is there
No that's exactly what I have @monners
 
Lemme guess, if a menu item has a sub-list then it should open like an accordion, whereas anything that doesn't should follow a clicked link?
 
As accurate as can be, yes.
 
there was once a simple progress bar that updated itself to give a "feel" to a user that something was happening starred here
Anybody happen to remember it?
 
@DavidH I built one of these the other day. Gimme a sec
 
10:35 AM
Thin blue line at the top of the page? Didn't use jQuery?
 
Would you like to see it monners?
By the way @Neil, are those your pets?
 
@DavidH Heh, no
 
It's regardless awesome to see the two being friends ;p
 
Ah ha, found it: ricostacruz.com/nprogress
 
Oh that looks good
 
10:37 AM
Love this library
 
@Neil I also am quite fond of your avatar
 
Set it to work during ajax request, and it increments itself
 
Yea for sure
 
@monners Thank you, I'm quite fond of it as well :)
 
fuck, I don't have access to my office codebase. Staging must be down...
 
10:38 AM
There's just one dog race that makes me love em more than cats in general
But Monner would you like to see my menu?
 
@DavidH dusa.org.au - Like that menu?
^^ Shameless plug. I built that site :D
 
It looks very good ;o
 
@Neil nice. But that bar should have a bit more height
 
Oh, a push menu. Same concept, different CSS
 
Yessir.
 
10:40 AM
@Valentin Welcome to the JavaScript chat! Please review the room pseudo-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.
 
function (target, activeClass) {
	$(target).find('a').eq(0).on('click', function(e) {
		e.preventDefault();
		$(this).parent('li').toggleClass(activeClass);
	});
}
Pass in the class of the item you wish to trigger the accordion.  All other links will behave as expected
 
@KarelG Nah, I like it thin and out of the way
 
it's for visibility
 
Ah Monners the essence of my issue is that, the entire menu and the filter all work perfectly.
 
I think it's noticeable enough, though I suppose you could modify the css stylings if you really preferred it thicker
 
10:42 AM
Though I want this Li I added to reset the list that is filtered by the filter menu
 
@DavidH Oh. No dice.
 
Mhm
Though of course the reset button is going to get the functions the UL has around it
So i'm trying to figure out how to make the Li stay in the UL (for looks of course as it belongs there) as well as ignoring the functions the UL has
 
tnx @DrogoNevets and @KarelG
I finally solved it with ur solutions and help :)
 
@DavidH Then yeah, just add a test at the start of your UL function that checks the target element for a class to exclude.
 
@Neil : yes, fe height: 5px; seems better
@MRS1367 : drogo did the most work. Give him some beer
 
10:45 AM
Do you mean start off like:
$('#mobilenav ul.filters li.classNameofThatLi').each(function(){
 
$('ul').on('click', 'li', function() {
    if (this.hasClass('do-not-execute') === true) {
        return false;
    }
    // otherwise do something
});
 
Ah yea that makes sense, i'm going try it out
Hmm
 
@Neil Thicker is always better
 
In the do something, would I need to paste the }); closure at the very bottom of all functions?
 
I still like it 2px
 
10:47 AM
@Neil Oh, you were talking about pixels. My mistake.
@DavidH I don't follow. you'll have to adapt your code so that everything's properly closed, sure.
 
Hm no I mean if the if is true would it then need to execute all the other functions below it? As in adding the closure of that function under the last function I need to have?
 
y u no return !$(this).hasClass('do-not-execute');
 
@jAndy :facepalm:
 
  $('ul.filters').on('click', 'li.reset', function() {
    if (this.hasClass('do-not-execute') === true) {
        return false;
    }
   		//All other functions here
  });
 
@monners I'm pretty sure I've just been dissed, but I'm not sure I understand
 
10:50 AM
ahh ye, forget about what I said :p
 
@Neil No, I was just being crude
 
@KarelG i didnt put a url in
 
!!forgive or forget
 
@monners forget
 
Forget? Forget what?
 
10:52 AM
isnt it forgive AND forget?
 
I like to have choices
 
Nevermind I made the dumbest mistake.
I know how to solve my issues now geez, that was stupid..
 
Happens. I once spent three hours trying to find a single character typo.
In a class name!
 
@monners +1, been therem done thatm got the coffee cups
 
We're all in this together..
 
10:54 AM
JavaScript be a cruel mistress
 
@monners *syntax
 
Yea of any language I know, JS sure is the trickiest. The symbols you need to add to write a function, geez..
 
The worst is when you think the typo's in your JavaScript but it's actually in your markup.
 
@DrogoNevets That didn't make much sense. Use the !!/help command to learn more.
 
I also earlier spent 15 minutes because I didn't realize my function wasn't closed with );
 
10:55 AM
a good IDE would point that easily ...
 
At least that throws an error
 
@DavidH thats your code formatting that is
 
or that
 
@KarelG What do you use?
 
That's true.
 
10:56 AM
PHPStorm <.<
 
@monners Sublime Text
 
because it has a built in subversion
 
I'm also on the Sublime wagon, but looking to switch to Atom once it has a more mature plugin base
 
+1
 
Yep Sublime is the way for me too, though at work i'm forced to use Coda 2..
 
10:57 AM
They force you?
Like, like with a gun?
 
No not like that xd
 
eh, the code work is really independent of the IDE's ...
 
Basically they're used to Coda 2 and would rather want me to use it because of the comfort when they sit next to me to help or to try sometihng out
 
maybe some indentations or syntax but ...
 
@DavidH You should go in one day and start rocking Vim. You'll appear a god amongst men.
 
10:58 AM
heh, at my work, they don't use vim to view files on their ubuntu server
 
Never heard of Vim ;o
2
 
:gasp:
 
!!wiki Vim
 
Vimeo () is a U.S.-based video-sharing website on which users can upload, share and view videos. Vimeo was founded in November 2004 by Jake Lodwick and Zach Klein. Overview Vimeo was founded in November 2005 by Jake Lodwick and Zach Klein, who left the company in 2007 and 2008 respectively. The name Vimeo was created by Lodwick, as a play on the words video and me. Vimeo is also an anagram of the word movie. IAC/InterActiveCorp purchased Vimeo in August 2006, as part of its acquisition of Connected Ventures. In January 2009, Dae Mellencamp joined IAC as General Manager of Vimeo. She s...
 
NOOOO
 
10:59 AM
LOL
 
FU
 
HA
vim.org Right?
 
!!wiki cli vim
 
@monners The Wikipedia contains no knowledge of such a thing
 
Vim (; a contraction of Vi IMproved) is a text editor written by Bram Moolenaar and first released publicly in 1991. Based on the vi editor common to Unix-like systems, Vim is designed for use both from a command line interface and as a standalone application in a graphical user interface. Vim is free and open source software and is released under a license that includes some charityware clauses, encouraging users who enjoy the software to consider donating to children in Uganda. The license is compatible with the GNU General Public License. Although Vim was originally released for the A...
 
10:59 AM
@monners +1
@KarelG has been a long time since i used vim! i miss it....kinda
 
This is still being updated?
 
I never put the time into it. I probably should one day
 
i've used vim to write a shell script a month ago.
 
I learnt how to make basic edits and quit the app without having to pull the plug out of the wall. That was a good Vim day.
 
It of course is veeery impressive to make that since the the release date was 22 years ago.
 
11:01 AM
@monners you should, especially if your at that awkward stage where hair has started falling out, but not quickly enough to do something with it
 
the company is using manual subversion and deploys ... i 'm lazy to write all of these url's in the pull / push requests
 
the next step @KarelG is vi
 
@DrogoNevets I could do with less hair.
 
why should i go for vi ?
 
@DrogoNevets And then EMACs
 
11:02 AM
Down side of being a '95 kid, my first editor was Dreamweaver if that's even an editor..Besides that if I had to do game related coding i'd use notepad.exe(when I was younger and had no knowledge of editing comforts)
 
vim is fine, ok
 
@monners me too! 2x bald patches, hair line seriously receeding, but still too much to be bald or even look like i have a dodgy comb over
 
Dreamweaver... :shudders:
 
i used that once
 
@DrogoNevets lol, what I meant was I have to get my hair cut every four weeks. It grows up and out. Sucks.
 
11:03 AM
and once only
@monners ah thats what a fiancée is for! she does it for me when ever she deems its too long!
 
Dreamweaver does everything!... badly.
 
and i usually get given a beer with a straw whilst shes doing it
 
Livin' the dream
 
Lol yea the first year of my actual webdev time at school was with dreamweaver, the year after 95% started using either notepad++ or sublime text
 
!!afk lunch
uhm
 
11:05 AM
ditto! laterz!
!!afk
 
Of the 95% i'd guess 55% used sublime text of which I am one
 
I found Sublime Text pretty early
Been with it ever since
But Atom's got some serious promise
 
Funny fact, the remaining 5% using dreamweaver still, didn't pass the 2nd year of school.
 
Yeah that sounds about right
 
I see, since the time i'm using Coda 2 at work, I don't mind it at all actually
 
11:06 AM
sounds like the first year design students using Gimp
 
It doesn't have what sublime offers in particular but it's quite simple
Oh god Gimp..
At the very least Gimp>Paint
 
@dennis Welcome to the JavaScript chat! Please review the room pseudo-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.
 
My problem was I started with photoshop. I honestly tried to understand the appeal of Gimp, but even it being free wasn't justification enough to use it over photoshop
Ah well. Ya get what you pay for.
 
That I completely agree with, I still don't get why one would use Gimp I really don't..
 
Cheap bastards
 
11:08 AM
It's just a harder way to accomplish what you can with PS
 
Ok, I'm off. Ciao
!!afk slaying dragons
 
Bye!
 
any node.js-ists?
 
@DrogoNevets -> it doesn't work in IE
 
@MRS1367 DrogoNevets is afk.
@jastkand Welcome to the JavaScript chat! Please review the room pseudo-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.
 
11:20 AM
in a node server.js file, why would you do the following?
   var app = module.exports = express();                 http.createServer(app).listen(app.get('port'), function(){
        console.log("Express server listening on port " + app.get('port'));
    });
 
this part of css doesn't apply in IE:
.topMenuOptions a:before {
    content: '';
    display: inline-block;
    width: 0.9em;
}
@KarelG -> do u have any solution?
 
@MRS1367 KarelG is afk: lunch
 
I'm not sure of the point of doing module.exports =
 
@user3433459 Welcome to the JavaScript chat! Please review the room pseudo-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.
@Loknar Welcome to the JavaScript chat! Please review the room pseudo-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.
 
11:40 AM
@FutuToad How else would you export a module?
 
@Connor module['export'] :P
 
That wouldn't work
 
Your face wouldn't work!
Ahem. Sorry. got a bit carried away there.
 
Your fanny wouldn't work
 
YOUTAKETHATBACK!
 
11:41 AM
!!urban fanny
 
@Connor [Fanny](http://fanny.urbanup.com/104245) UK, Australia, NZ. Fanny= pussy
Silly yanks, fanny= bum
They do seem to have a lot arse about. Even funnier when a girl says "i'll stick that in my fanny pack" which does make for a lot of shocked faces.
 
ha
 
!!urban thong
 
@monners Thong a small sexy piece of underwear that girls wear and it attracts men. When a girl bends over, it tends to show out from under her jeans or hipsters. Men love them.
 
@monners are you religious?
 
11:42 AM
@Connor Not in the least
 
@Connor Ok... So?
 
@monners video, it is, click, it watch
 
@Connor I did. I got the gist in a few seconds.
what one religious group does to the dead of another religious group really doesn't concern me
 
Alrightythen
Maybe if it was your mothers grave you'de have a different opinion
 
11:47 AM
@Connor Well yeah, because I know her. It's disrespectful either way, but I guarantee you no one'd be knocking over her tombstone because they thought she was a christian
All I see is a bunch of silly people doing silly things for silly reasons
 
Cool, just wanted some opinions, time to code now
@Richa What?
 
When I die I wanna be cremated and have my ashes spread over an expensive golf course so that every time someone misses a difficult putt by less than an inch, in some small way, I was responsible :P
 
is there a command to remove myself from the afk list ?
!!help
 
@KarelG Information on interacting with me can be found at this page
 
!!bak
 
11:50 AM
@Connor That didn't make much sense. Maybe you meant: bak
@Connor This command is bad and you should feel bad
 
!!back
 
@KarelG That didn't make much sense. Maybe you meant: bak
 
the github list of commands is incomplete :|
 
@Connor I'm not sure why he needs to do that in the root server.js file
 
@Sander Welcome to the JavaScript chat! Please review the room pseudo-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.
 
11:54 AM
why a:before doesn't work in IE 10?
 
its not bring used anywhere else, 2 secs I'll show you the git file
 
only vista users may experience issues with :before. But that's not important because it's only for that white bullet. It doesn't have influence on the runtime
 
in Lounge<C++>, 32 mins ago, by FredOverflow
13:15 < xQuasar> HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF FUCKIN PUSSIES
13:15 < xQuasar> JAVASCRIPT FOR LIFE FAGS
 
@KarelG -> I'm in Windows 8
 

« first day (1300 days earlier)      last day (3654 days later) »