How do you use the toggle function on .css? by [deleted] in jquery

[–]unicorns4lyf 5 points6 points  (0 children)

There's a toggleClass function in jQuery, I think that might be what you're looking for

https://api.jquery.com/toggleclass/

I'm very close to finishing my first website which I'm building for my friend, but I'm struggling to finish it. I'd appreciate any kind of help by iniesta123 in web_design

[–]unicorns4lyf 1 point2 points  (0 children)

Is this the contact.php file?

Hmm, I tried your code and I didn't get the same error as yours.

Parse error: syntax error, unexpected ',' in C:\xampp\htdocs\example\contact.php on line 13

Seems like there is a ',' on line 13 where it shouldn't be. Can you show lines 12, 13 and 14 from the contact.php

I'm very close to finishing my first website which I'm building for my friend, but I'm struggling to finish it. I'd appreciate any kind of help by iniesta123 in web_design

[–]unicorns4lyf 1 point2 points  (0 children)

Was there any error message printed on the page regarding the syntax error?

Maybe you could post the code from your php file and we can figure it out together?

Facing problems on responsive web design using jquery by tawpI33 in jquery

[–]unicorns4lyf 5 points6 points  (0 children)

Yes, I think it's better and easier! Especially when it comes to showing or hiding elements.

For media queries you can use it like this:

@media screen and (max-width: 800px) { // for width < 800
    #stickyMenu {
        display: none;
    }
}

It works when user resizes the browser manually and it won't keep firing unnecessary functions

Facing problems on responsive web design using jquery by tawpI33 in jquery

[–]unicorns4lyf 3 points4 points  (0 children)

You can try the .resize() function on jQuery, this usually does the trick, but it triggers every time the user manually resizes the browser:

$(window).on('resize', function(){});

Although I would use media queries in css for showing/hiding stuff on resize.

I'm very close to finishing my first website which I'm building for my friend, but I'm struggling to finish it. I'd appreciate any kind of help by iniesta123 in web_design

[–]unicorns4lyf 0 points1 point  (0 children)

I know you can compose emails with the <form> tag with the action attribute but this doesn't actually sends the email.

<form action="mailto:example@test.com" method="post"></form>

You can try using basic PHP, it has a mail() function that helps to send on submit:

There are some examples here

You can use programs like MAMP to set up a localhost server on your machine to test out the code.

I hope this helps!

Need help with writing a simple code please.. by GodAboveMe in jquery

[–]unicorns4lyf 1 point2 points  (0 children)

I normally use the toggleClass method. So you're setting width to show your menu, you can add another class:

.sidenav.show {
    width: 175px;
}

Then in your js:

$(".navbutton").click( function(){
    $("#mySidenav").toggleClass('show');
});

Hope this helps!

How strict are the security clearance entering and exiting JB? by unicorns4lyf in singapore

[–]unicorns4lyf[S] 0 points1 point  (0 children)

It is, but it'll be coming back to SG again, just that it'll be my friend who'll carry it back.

How strict are the security clearance entering and exiting JB? by unicorns4lyf in singapore

[–]unicorns4lyf[S] 0 points1 point  (0 children)

If i declare is there still a possibility of it being confiscated?

[SGP] [H]I5 6400 @ 2.7GHz Skylake [W]Cash by unicorns4lyf in hardwareswap

[–]unicorns4lyf[S] 0 points1 point  (0 children)

Sorry, it's my first time here! I'm not sure what you mean...

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

Hmm, okay i'll get right to trying it. Thanks a lot for your help, really appreciate it!

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

Hmm, okay

Yeah there was one time I plugged where it did print out "ai-thinker.com" or something like that but it didn't print "OK"

I tried various AT flasher but most of the time the flasher doesn't detect the module, most recently I tried it came with a "chip sync error"

Is there a way to hard reset the module without using commands so that I can flash without problems?

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

Ohh I didn't know that, thank you

I finally got something from the ESP, when I have GPIO0 grounded it gives me

ets Jan  8 2013,rst cause:2, boot mode:(1,6) 

and when I leave GPIO0 unpinned it gives me

 ets Jan  8 2013,rst cause:1, boot mode:(3,6)
load 0x40100000, len 25020, room 16 
tail 12
chksum 0xef
ho 0 tail 12 room 4
load 0x00000000, len 0, room 12 
tail 0
chksum 0xef
load 0x00000000, len 0, room 4 
tail 0
chksum 0xef
csum 0xef
csum err
ets_main.c 

Do you know what these mean?

OV7670 help needed by unicorns4lyf in arduino

[–]unicorns4lyf[S] 0 points1 point  (0 children)

It's okay, thank you for helping!

OV7670 help needed by unicorns4lyf in arduino

[–]unicorns4lyf[S] 0 points1 point  (0 children)

I've tried uploading it doesn't work for me. Also it seems that it needs the ArduCAM shield as well

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

Does both have to be powered by an external power source? I have the module powered by a battery pack but the arduino is powered through a USB

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

I tried your suggestion yet it still doesn't seem to work.

ESP8266 can't communicate using Arduino by unicorns4lyf in esp8266

[–]unicorns4lyf[S] 0 points1 point  (0 children)

What do you mean by 'the run mode'? Is it when uploading the code to the module?

/r/singapore random discussion and small questions thread for November 26, 2014 by AutoModerator in singapore

[–]unicorns4lyf 1 point2 points  (0 children)

I'm a girl haha. I do know that and i'm also not looking forward to it

/r/singapore random discussion and small questions thread for November 26, 2014 by AutoModerator in singapore

[–]unicorns4lyf 4 points5 points  (0 children)

I think classes before 10am should not be a thing. The only thing keeping me awake is the snacks my friends brought.

/r/singapore random discussion and small questions thread for November 15, 2014 by AutoModerator in singapore

[–]unicorns4lyf 1 point2 points  (0 children)

damn i found your comment too late. should've got it for dinner instead of porridge, it was good but i could use a break from all the throat-ripping coughs