Jump to content

Ishana

Member
  • Content count

    2,548
  • Joined

  • Last visited

About Ishana

  • Rank
    Dragon Member
  • Birthday 09/29/1992

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. [code] $(document).ready(function () { for ( var i = 0; i < 4; i++ ) { $("#panel-heading-"+i).click(function(){ $("#panel-body-"+i).slideToggle("slow"); }); } }); [/code] [code] <div id="panel-heading-1"></div> <div id="panel-body-1"> <p>Text</p> </div> [/code] If I change i < 4 to i < 2 only the second panel would work (panel-heading-2) and so on... What the hell is going on :/ Edit : I tried changing var i = 1, but with same results Edit 2 : I tried .each() but only the first one worked >.< [code] $("#panel-heading").each(function() { $(this).click(function(){ $("#panel-body").each(function() { $(this).slideToggle("slow"); })})}); } [/code]
  2. Stackoverflow, I barely understand what they are talking about... but after searching for a looong time now, I have found moment.js and now I am using this instead [code] document.write(moment().zone("+00:00").format("dddd, MMMM Do YYYY, h:mm:ss a")); [/code] Makes everything easier :)
  3. Now I have this [CODE] var d = new Date(); var Day = d.getUTCDate(); var Hours = d.getUTCHours(); var month=new Array(12); month[0]="January"; month[1]="February"; month[2]="March"; month[3]="April"; month[4]="May"; month[5]="June"; month[6]="July"; month[7]="August"; month[8]="September"; month[9]="October"; month[10]="November"; month[11]="December"; var Month = month[d.getUTCMonth()]; var Minutes = d.getUTCMinutes(); if (Minutes < 11){ Minutes = "0"+Minutes; } document.write("Game time : " + Day + "/" +Month+ " " +Hours+": "+Minutes+" .<br/>"); [/CODE] It will print as : Game time : 29/January 16: 18 . (24 hour) I want instead : Game time : 29/January 6: 18 . (12 hours) I am new to JS, so please explain like I am 5
  4. Ishana

    smileys

    There is a pretty good smiley set on Deviantart here : [url]http://kissbomb.deviantart.com/art/Smiley-set-162068634[/url] Example : [IMG]http://i.imgur.com/hbtmiTh.gif[/IMG]
  5. Thanks, I totally agree with you on that! Sadly, I need a way to inform users that there is an event soon and I can't figure out any other way.
  6. I am working on a website design for my RS clan and I was wondering if you guys could help me out :) It is obviously Bootstrap I was thinking about adding image slider for in-game screenshots, and I also need suggestions for a location for the social area including teamspeak and such [IMG]http://i.imgur.com/uuJl4jX.png[/IMG]
  7. Less than 24 hours left! I am so excited ^_^
  8. Server is online! We added so many updates!!
  9. Ishana

    RS2 Beta

    Staff update: [url]http://legit-x.com/forums/showgroups.php[/url] [B]Scotticus[/B] Owner [B]Toby[/B] (Mish) Developer/Co. owner [B]Ishana[/B] Developer/Co. owner [B]Fatmess[/B] Website Developer [B]Marieloup[/B] Community Manager [B]Ruppich[/B] [B]Luckylove3[/B] Super moderators [B]Website[/B] [url]http://www.legit-x.com[/url]
  10. No... There is no way you can even open .class files and see what is inside them. Also what you did was changing the default program to open .class files with which does not change if the client should run or not.
  11. Ishana

    RS2 Beta

    Tree slaughter! muhahaha!! :D [IMG]http://img854.imageshack.us/img854/9701/b5271a10b100468dbd51fbd.png[/IMG]
  12. Ishana

    Synchroized??

    [quote name='Hash']If you have a piece of code [code] array[index] = 5; index++; [/code] and you don't want 2 threads to access it at the same time because it could cause errors, you make it synchronized so 1 thread accesses it, does what it has to do and unblocks the piece of code so other threads can access it.[/QUOTE] Thank you!! that makes sense :D
  13. It is not the same error :p [code] [MENTION=7458]echo[/MENTION] off title Server compiler "C:\Program Files\Java\jdk1.7.0_21\bin\javac.exe" -d bin src\com\rs\*.java src\com\rs\utils\*.java src\com\rs\tools\*.java src\com\rs\net\*.java src\com\rs\io\*.java src\com\rs\game\*.java src\com\rs\game\player\*.java src\com\rs\cache\*.java src\com\rs\game\item\*.java src\com\rs\game\tasks\*.java src\com\rs\game\player\dialogues\*.java pause [/code]
  14. [code] [MENTION=7458]echo[/MENTION] off title Server compiler "C:\Program Files\Java\jdk1.7.0_21\bin\javac.exe" -d bin src\com\rs\*.java src\com\rs\utils\*.java src\com\rs\tools\*.java src\com\rs\net\*.java src\com\rs\io\*.java src\com\rs\game\*.java src\com\rs\game\player\*.java src\com\rs\cache\*.java src\com\rs\game\item\*.java pause [/code] Edit : This is what is new I added [code] src\com\rs\game\*.java src\com\rs\game\player\*.java src\com\rs\cache\*.java src\com\rs\game\item\*.java [/code]
×