ultimix

- Main Page
- Data Structures
- Files
- Examples

- File List
- Globals

core.js
Go to the documentation of this file.
1
6 if( !ultimix )
7 {
8 ultimix = {};
9 }
10
16 if( !ultimix.core )
17 {
18 ultimix.core = {};
19 }
20
21
27 function in_array( Element , Arr )
28 {
29 for( var i = 0 ; i < Arr.length ; i++ )
30 {
31 if( Element == Arr[ i ] )
32 {
33 return( true );
34 }
35 }
36 return( false );
37 }
38
44 function nop()
45 {
46 }
47
53 ultimix.DeleteParentItem = function( Selector )
54 {
55 jQuery( Selector ).parent().remove();
56 }
57
69 ultimix.GetRandomInt = function( Min , Max )
70 {
71 if( !Min )Min = 0;
72 if( !Max )Max = 1000000000;
73
74 return( Math.floor( Math.random() * ( Max - Min + 1 ) ) + Min );
75 }
76
86 ultimix.core.GetCurrentMilliseconds = function()
87 {
88 var d = new Date();
89 return( d.getTime() );
90 }