Jump to content
MakeWebGames

~Rob0t

Members
  • Posts

    118
  • Joined

  • Last visited

  • Days Won

    2

~Rob0t last won the day on September 20 2015

~Rob0t had the most liked content!

Personal Information

  • Location
    👻
  • Interests
    👻
  • Occupation
    👻

Recent Profile Visitors

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

~Rob0t's Achievements

Newbie

Newbie (1/14)

5

Reputation

  1. If you want, I can do this tonight for 100$usd. Hit me up if you're interested.
  2. ~Rob0t

    V2

    What does the error log say? What debugging steps have you taken?
  3. Go play cupid! I'll gift you $1,500USD if you get George Clooney a "nice ending christmas holiday" ( ͡° ͜ʖ ͡°)
  4. This makes no sense. Broaden your scope with sprints and you're good. Learn a new framework, a new algorithm. You're implying language x has a infinite amount of algorithms that can't be implemented into PHP. Also, PHP 7 has been released, which has a major changelog, so it's not "the same".   Calm down JCVenom
  5. Pretty simple concept. My version supports multiple timers on a single page, also. Probably not the nicest way, as it's writing to the DOM in 2 places (to update the data attribute and to display the time left), but hey. Free code is free code.   Grab the timestamp Format the data attributes (the date difference as a string) Create the div Javascript calculations   <?php $intCurrentTime = time(); $arrTimes = array( 1449652661, //45 seconds ago 1449652106, //10 minutes ago 1449649106 //1 hour ago ); $objCurrentTime = new \DateTime(null, new \DateTimeZone("Europe/London")); $objCurrentTime->setTimestamp($intCurrentTime); foreach($arrTimes as $intTimestamp) { $objOldTime = new \DateTime(null, new \DateTimeZone("Europe/London")); $objOldTime->setTimestamp($intTimestamp); $objDifference = $objCurrentTime->diff($objOldTime); echo "<div class=\"time_diff\" data-timestamp=\"". $intTimestamp ."\" data-time_str=\"". $objDifference->format("%yy %mm %dd %hh %im %ss") . "\"></div> <br />"; } ?>   <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> <script type="text/javascript"> $(document).ready( function() { setInterval( function() { $(".time_diff").each( function() { var strTime = $(this).data('time_str'); var intTimestamp = $(this).data('timestamp'); var arrLabel = []; var arrDateDiff = strTime.match(/^(\d{1,2})\w\s(\d{1,2})\w\s(\d{1,2})\w\s(\d{1,2})\w\s(\d{1,2})\w\s(\d{1,2})\w$/); var intYear = arrDateDiff[1]; var intMonth = arrDateDiff[2]; var intDays = arrDateDiff[3]; var intHours = arrDateDiff[4] var intMinutes = arrDateDiff[5]; var intSeconds = arrDateDiff[6]; intSeconds = intSeconds - 1; if( intSeconds <= 0 ) { intSeconds = 0; if( intMinutes > 0) { intSeconds = 60; --intMinutes; } } if( intMinutes <= 0 ) { intMinutes = 0; if( intHours > 0 ) { intMinutes = 59; --intHours; } } if( intHours <= 0 ) { intHours = 0; if( intDays > 0 ) { intHours = 60; --intDays; } } if( intDays <= 0 ) { intDays = 0; if( intMonth > 0 ) { intDays = 30; //roughly. shhhh --intMonth; } } if( intMonth <= 0 ) { intMonth = 0; if( intYear > 0 ) { intYear = 1; } } if( intSeconds > 0 ) { arrLabel.push(intSeconds + " seconds "); } if( intMinutes > 0 ) { arrLabel.push(intMinutes + " minutes"); } if( intHours > 0 ) { arrLabel.push(intHours + " hours"); } if( intDays > 0 ) { arrLabel.push(intDays + " days"); } if( intMonth > 0 ) { arrLabel.push(intMonth + " months"); } if( intYear > 0 ) { arrLabel.push(intYear + " years"); } arrLabel.reverse(); $(this).html(arrLabel.join(" ")); $(this).data("time_str", intYear + 'y ' + intMonth + 'm ' + intDays + 'd ' + intHours + 'h ' + intMinutes + 'm ' + intSeconds + 's'); }) }, 1000); }); </script>
  6. Re-explain the problems/issues you're having in detail. What do you need? What have you done? What doesn't work?
  7. I was watching [MENTION=69823]jcvenom[/MENTION] try to debug some of his ****ty code today. FTFY
  8. PHP thinks you're boring.
  9. Have fun.
  10.   FREE Real-time chat using Pusher - author: [MENTION=65371]sniko[/MENTION] BlueImp chat - author: [MENTION=53425]Magictallguy[/MENTION] and [MENTION=69001]Zettieee[/MENTION] Ps: Look into server-push rather than polling for the chat.
  11. A couple iPhone apps accompanied by web apps - it's pretty fun, tiring, profitable, and stressful. The infamous mix of a web developer. What about yourself [MENTION=64687]Dominion[/MENTION]?
  12. Interesting stuff. Still hard to comprehend your posts though, [MENTION=70101]_donnie_[/MENTION]
  13. [MENTION=70991]realhosters[/MENTION] Cool on the domains, but please answer this.  
  14. Heh. Great deflection bro, but seriously, scrub up on the way you type. A wall of text with grammar and punctuation carelessness makes you seem immature, kid.
  15. I have this. I'll upload later. Currently away from my old laptop.
×
×
  • Create New...