Profile

Cover photo
Vuthy Sok
396 followers|14,770 views
AboutPostsPhotosVideos

Stream

Vuthy Sok

Shared publicly  - 
 
PHP: Date Difference for PHP 5.2
function days_diff($d1, $d2) {

    $x1 = days($d1);
    $x2 = days($d2); 

    if ($x1 && $x2) {
        return abs($x1 - $x2);
    }

}

function days($x) {

    if (get_class($x) != 'DateTime') {

        return false;

    } 

    $y = $x->format('Y')...
1
Add a comment...

Vuthy Sok

Shared publicly  - 
 
Exclude weekends on jQuery datepicker
$ ( 'yourSelector' ). datepicker ({ minDate : 0 , // your min date maxDate : '+1w' , // one week will always be 5 business day - not sure if you are including current day beforeShowDay : $ . datepicker . noWeekends // disable weekends });
1
Add a comment...

Vuthy Sok

Shared publicly  - 
 
Disable all Sundays in jQuery UI Calendar (datepicker)
$ ( "#datepicker" ). datepicker ({ beforeShowDay : function ( date ) { var day = date . getDay (); return [( day != 0 ), '' ]; } });
1
Add a comment...
In his circles
25 people
Have him in circles
396 people
sambath chum's profile photo
Jennifer Ben's profile photo
Chomreang Khmer's profile photo
MissBoy Channel's profile photo
Bunthet Ngov's profile photo
Vichet Sen's profile photo
LINDEN SOK's profile photo
Rachel Sean's profile photo
Good Song Khmer's profile photo

Vuthy Sok

Shared publicly  - 
 
Bootstrap 3: Equal Height Columns with jQuery
When you want height of each have the same height using coloumn of Bootstrap my recommend you should Javascript calculate height of each row if you using css maybe not support all browser. 1. Html Code <div class="row eq-heights">
      <div class="eq-col-s...
1
Add a comment...

Vuthy Sok

Shared publicly  - 
 
jQuery to hide a DIV when the user clicks outside of container
- Html code <a href="#" class="select-link">Select List</a>
<ul class="dropdown-menu-list">
    <li><a href="#">My item name 1</a></li>
    <li><a href="#">My item name 2</a></li>
    <li><a href="#">My item name 3</a></li>
    <li><a href="#">My item name ...
1
Add a comment...

Vuthy Sok

Shared publicly  - 
 
jQuery split long ul list to multiple UL
1. HTML code <ul id="bigList">
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<li>Elem</li>
<l...
1
Add a comment...

Vuthy Sok

Shared publicly  - 
 
Scroll to bottom of image when mouse over
1. Css Code <style type="text/css">

            .image-bg {

                margin:0;
                padding:0;
                background-image: url("landingpage_07.jpg");
                background-repeat: no-repeat;
                display: inline-blo...
1
Add a comment...
People
In his circles
25 people
Have him in circles
396 people
sambath chum's profile photo
Jennifer Ben's profile photo
Chomreang Khmer's profile photo
MissBoy Channel's profile photo
Bunthet Ngov's profile photo
Vichet Sen's profile photo
LINDEN SOK's profile photo
Rachel Sean's profile photo
Good Song Khmer's profile photo
Links
Basic Information
Gender
Male
Apps with Google+ Sign-in
  • Tree Planet 3
  • Project 9
  • Clash of Clans
  • Trials Frontier
  • Google Play Android Developer