jQuery UI – Single Selectable

Here, we will make the selectable component for jQuery UI “single selectable”

First of all, we may disable dragging mouse:

Delete the following part in your jquery-ui.js for “selectable” part;

_mouseDrag:function(d){var f=this;this.dragged=true;if(!this.options.disabled){var c=this.options,
b=this.opos[0],g=this.opos[1],h=d.pageX,i=d.pageY;if(b>h){var j=h;h=b;b=j}if(g>i){j=i;i=g;g=j}this.helper.css({left:b,top:g,width:h-b,height:i-g});this.selectees.each(function(){var a=e.data(this,"selectable-item");if(!(!a||a.element==f.element[0])){var k=false;if(c.tolerance=="touch")k=!(a.left>h||a.right<b ||a.top>i||a.bottom<g );else if(c.tolerance=="fit")k=a.left>b&&a.right<h &&a.top>g&&a.bottom<i ;if(k){if(a.selected){a.$element.removeClass("ui-selected");a.selected=false}if(a.unselecting){a.$element.removeClass("ui-unselecting");
a.unselecting=false}if(!a.selecting){a.$element.addClass("ui-selecting");a.selecting=true;f._trigger("selecting",d,{selecting:a.element})}}else{if(a.selecting)if(d.metaKey&&a.startselected){a.$element.removeClass("ui-selecting");a.selecting=false;a.$element.addClass("ui-selected");a.selected=true}else{a.$element.removeClass("ui-selecting");a.selecting=false;if(a.startselected){a.$element.addClass("ui-unselecting");a.unselecting=true}f._trigger("unselecting",d,{unselecting:a.element})}if(a.selected)if(!d.metaKey&&
!a.startselected){a.$element.removeClass("ui-selected");a.selected=false;a.$element.addClass("ui-unselecting");a.unselecting=true;f._trigger("unselecting",d,{unselecting:a.element})}}}});return false}},
 

New one will be like that for “selectable” part:
Read more

Share

Project: “YerelBilgi” for “Turkey Internal Affairs”

What is project “YerelBilgi”?

The project is designed for Turkey Internal Affairs to gather any information from governorships, towns, city halls, villages etc…

The project’s headsman is Turksat , main and most part of it is coded by me.

About the Project
Editors can create a dataset and add any question with types into it and forward to any unit which is created by the editors.
System is ultra portable.
Editors create/edit/delete units (4 layer unit system), datasets, questions, users, etc…

You can add some types of question which are defined by the system, integer, float, text, limited text, web address, e-mail, phone number etc., and these fields automatically validating with javascript.
When a dataset opened, these question is listed as how defined with colors and text decoration options.
Read more

Share

Digital Roar releases first playable demo

(Post is copied from The Creative Coast Alliance to support them)

Digital Roar, a game development company TCCa and SEDA have been working with (while virtual, they list their location as “Savannah, GA”) has just let us in on a little secret: They have just released the first playable demo for their inaugural title, “Ascension War: Triumvirate” (AWT) and they are inviting community feedback.
Read more

Share

Unity3D Car Tutorial

Dear Unity3D developers,
Unity3D is published a car tutorial in their official page.
Here, I will make some changes on scripts to make this game more fun.

This post will be updated when any new idea comes up, please follow Farkow.com on Twitter or Facebook.

First, here some screenshots from the tutorial.

Wathc the changes video here;

You can play the latest web version as high quality or medium quality or low quality.
PLEASE MAKE SURE YOUR RAM AND VIDEO CARD IS POWERFUL ENOUGH !
If you have advices, please write it as comment please.

Download versions as high quality for Windows, Mac (Universal), Mac (PPC), Mac (Intel).


Read more

Share

LIBOR Market Model

LIBOR Market Model executables are published…
You can download for Windows and Linux ;)
Download links are below…

What is LIBOR Market Model?

The LIBOR Market Model (LMM) is the industry standard model for pricing interest rate derivatives. Based on the Heath-Jarrow-Morton (HJM) forward rate approach, it builds a process for LIBOR interest rates, assuming a conditional lognormal process for LIBOR.
(Information is copied from http://www.libormarketmodel.com/)

Read more

Share