Saturday, April 28, 2012

Portal 2 map creator



The idea is that Players will be able to create maps. And other players as you and me will be able to play the created maps in Portal 2.

The "Perpetual Testing Initiative" allows players to easily create, share, and play Portal 2 puzzles. The Initiative comes with a simplified puzzle maker that allows that creation of mind-bending puzzles without ever leaving the game.
"Perpetual Testing Initiative" will be available for the PC and Mac on May 8th.
---
Если вы есть ВКонтакте, то советуем подписаться на страницу Steam.http://vk.com/steam_vk
More information about map editor:

http://pc.gamespy.com/pc/portal-2/1210492p1.html

So lets see what will happen next...

Youtube source:

http://youtu.be/vSilUQg7CZg

Portal 2 official web site: http://www.thinkwithportals.com/




Wednesday, April 25, 2012

New google service - Google drive

So if you haven't heard about it yet. Today launched new google service - google drive. Which provides storage service.

At the moment you will get 5 free gb storage for files, 10 gb for your gmail which you already have and one more gb for picasa images.


Url of the google service google drive:https://drive.google.com .

P.S. I didnt got access at first. All i could do is to request "Notify me" when my google drive will be ready.

Tuesday, April 10, 2012

Count divs in div with jquery

Solution for: We have several elements ( tags ) for example divs, in div or other object which can contain elements inside it with certain class or ID, and we want to count how many there are the certain elements. For example we have several divs:
<div class="div1">
 <div></div>
 <div></div>
 <div></div>
 <div></div>
 <div></div>
</div>
JQuery counter for the divs inside the div is:
$(document).ready(function()
{ 
 var divs_count = $("#div1 > div").size();
 alert(divs_count);
}

Tuesday, April 3, 2012

Disabled input with JQuery

We have in html inputs like text, radio, select and textareas.

In my situation i had radio inputs and i needed to create trigger which should effect other inputs ( disable them ).

My inputs:
<input name="order_type" type="radio" value="2" /><br />
<input name="order_type" type="radio" value="3" /><br />
<input name="order_type" type="radio" value="4" />
Other section which i want to disable:
<input class="viewspereach" name="text" type="text" value="" />

JQuery:
$("input[name=order_type]").change(check_ordertype);
  
  function check_ordertype()
  {
    var order_type = $("input[name=order_type]:checked").attr("value");
    
    if(order_type == 4)
    { 
      $(".viewspereach").prop('disabled', true);

    }
    else
    {
      $(".viewspereach").prop('disabled', false);
    }
  }
Demo: http://igloro.info/demos/disableinput.php