Lažem sve
Propalo je sve
Kada dolaziš
Kajem se
Udri brigu na veselje
Sunce moje
Stare rane
Rap Star
Pub (Đorđe Balaševič)
Mrdaj
Kao da letim
Kajem se (Disco version)
Jutro za kraj
Jebite se
Igraj
Dal Još ima ljubavi
Tema: Classic
Tema: Tech
Tema: Rock
Tina
Teslino

Ulična titula

Vidiš
Hip-Hop brigada
Gengstazi
Jedna misao
Dii manes & Nemir feat. THC La Familia - U klubu
Dii Manes feat. Lust - Ljubavi jedina
Two Skillz feat. Bladde(Generali) - Kad Srce Zaplače
Modricha
Boogie MC feat. Dii Manes - Loodilo
Two Skillz - Rech-Dve
Sanja Jukić - Svaki dan
Ivo Project - Ružna slika
Che Bo - Malena
- useAddOns := string | array (default: all)
- Addons this ContentFlow should use (all, none, [AddOn1, ... , AddOnN])
- loadingTimeout := int (default: 30000)
- Grace time in milliseconds for images to load.
- circularFlow := bool (default: true)
- Should the Flow wrap around?
- verticalFlow := bool (default: false)
- Will turn the ContentFlow 90 degree counterclockwise.
This will automatically swap calculated positions and sizes where needed. You do not have to adjust any calculations or sizes. Should work with any AddOn outof the box. - visibleItems := int (default: 0)
- Number of items to show on either side of the active Item. If set to '0' it will be set to the square root of the number of items in the flow.
- endOpacity := float (default: 1)
- The opacity of the last visible item on either side. The opacity of each item will be calculated by the 'calcOpacity' function.
- startItem := string | int (default: center)
- Active Content item to start with. Can be either a position keyword or an integer.
- scrollInFrom := string | int (default: pre)
- Flow will start scrolling on load from this item. Can be either a position keyword, "none" or an integer. If set to "none" the flow will not scroll in.
- flowSpeedFactor := float (default: 1.0)
- A flowSpeedFactor > 1 will speedup the scrollspeed, while a factor between 0 and 1 will slow it down
- flowDragFriction := float (default: 1.0)
- Determines how hard it is to drag the flow.
If set to '0' dragging of the flow is deactivated. - scrollWheelSpeed := float (default: 1.0)
- Scales by how many items the flow will be moved with one usage of the mousewheel.
Negative values will reverse the scroll direction.
If set to '0' scrolling with the mouse wheel is deactivated. - keys := object (default: see below)
- Defines the keyCodes and the functions, which are triggerd on a keydown event within the ContentFlow. All defined functions are bound to the ContentFlow object.
Default setting:{ 13: function () { this._onclickActiveItem(this._activeItem) }, // return/enter key 37: function () { this.moveTo('pre') }, // left arrow 38: function () { this.moveTo('visibleNext') }, // up arrow 39: function () { this.moveTo('next') }, // right arrow 40: function () { this.moveTo('visiblePre') } // down arrow }
- reflectionHeight := float (default: 0.5)
- Set the size of the reflection image relative to the original image
- reflectionGap := float (default: 0.0)
- Set the size of the gap between the image and the reflection image relative to the original image size
- reflectionColor := string (default: transparent)
- Set the "surface"-color of the reflection. Can be "none", "transparent", or #RRGGBB (hex RGB values)
If set to 'overlay' the image given by the option 'reflectionOverlaySrc' will be lain over the reflection. - scaleFactor := float (default: 1.0)
- Factor by which the item will be scaled.
- scaleFactorLandscape := float | string (default: 1.0)
- float := Factor to scale content images in landscape format by.
string := if set to 'max' the height of an landscape image content will be set to the height of the item. - scaleFactorPortrait := float | string (default: 1.0)
- float := Factor to scale content images in portrait format by.
string := if set to 'max' the width of an portait image content will be set to the width of the item. - fixItemSize := bool (default: false)
- Fixes the item size, to the calculated size. No adjustments will be done. Images will be croped if bigger.
- maxItemHeight := int (default: 0)
- Maximum item height in px. If set to a value greater than '0' the item size will be calculated from this value instead relative to the width of the ContentFlow.
- relativeItemPosition := string (deafult: top center)
- Position of item relative to it's coordinate.
It can contain the keywords top/above, bottom/below, left, right and center.
So by default the item will be placed above the coordinate point and centered horizontally.
If set this option overrides the calcRelativeItemPosition option!
- onclickInactiveItem := function(obj item)
- called if an inactive item is clicked.
- onclickActiveItem := function(obj item)
- called if the active item is clicked.
- onMakeInactive := function(obj item)
- called if the active item becomes an inactive item.
- onMakeActive := function(obj item)
- called if an item becomes the active item.
- onMoveTo := function(obj item)
- called each time a new target is set i.e by calling the moveTo method.
- onReachTarget := function(obj item)
- called if the target item becomes the active item.
- onclickPreButton := function(event event)
- called if the 'pre' button item is clicked.
- onclickNextButton := function(event event)
- called if the 'next' button item is clicked.
- onDrawItem := function(obj item)
- called when ever an item is redrawn. Use with caution, because this method is easily called many thousend times !
- calcStepWidth := function(float diff)
- called to set the calculation function of the width of each step to get the next position of the flow.
The function will be bound to the ContenFlow object, so 'this' refers to the ContentFlow!
float 'diff' := targetItemPosition - currentPosition returns: float - calcSize :=function(obj item)
- called to set the calculation function of the size of a visible item
returns an object of type size := {width: w, height: h}
- calcCoordinates := function(obj item)
- called to calculate the position of an item element within the flow
returns an object of type position := {x: x, y: y}
- calcRelativeItemPosition := function(obj item)
- called to calculate the position of an item relative to it's coordinates
Beware: this function will be overridden by the 'relativeItemPosition' option!
returns an object of type position := {x: x, y: y}
- calcZIndex := function(obj item)
- called to set the calculation function of the z-index of each item. The z-index is only valid within the flow itself.
returns: int z (-32768 ≤ z ≤ 32768) - calcFontSize := function(obj item)
- called to set the calculation function of the relative font-size of an item
returns: float fs (0.0 ≤ fs) - calcOpacity := function(obj item)
- called to calculate the opacity of each item.
returns: float o (0.0 ≤ opacity ≤ 1.0)
The following object methods are public.
- setConfig(obj OPTIONS)
- called to set options after object creation
- getItem(int index)
- returns the 'item' object at given index
- getActiveItem()
- called to get the currently active item. returns the 'item' object of the active item.
- getNumberOfItems()
- called to get the number of items currently in the flow
- moveTo(int index | float pos | string keyword | obj item)
- called to scroll to item.
'index' := scroll to item with index 'index'
'pos' := scroll to position 'pos'
'keyword' := scroll to position given by position keyword 'item' := scroll to item - resize()
- called to reinitialize the size of the flow items, after the size of the flow has changed.
Is called if window is resized. - addItem(DOMnode element, int|string index)
- called to add a new item 'element' to the flow at the position index. The element has to be a valid item element. So it must have at least this structure:
<div class="item"><img class="content" src="url/to/image"/></div>
The index has to be an integer or one of the strings 'first', 'start', 'last' or 'end'.
returns: int index (index position of added item) - rmItem([int index])
- called to remove an item from the flow. If the parameter index is given the element at the index position 'index' will be removed, else the currently active item will be removed. returns: DOMnode el (cleaned item node)
- 'start', 'first'
- first item
- 'end', 'last'
- last item
- 'middle', 'center'
- item in the middle
- 'pre', 'previous', 'left'
- previous item
- 'next', 'right'
- next item
- 'visible', 'visiblePre' 'visibleLeft'
- leftmost visible item
- 'visibleNext', 'visibleRight'
- rightmost visible item
Where ever you can use a position keyword you can also use an integer for an exact position. A sanity check will be done automatically.
ContentFlowGlobal is a globaly accessible object.
{
Flows := [
ContentFlowObj_0,
ContentFlowObj_1,
...
],
AddOns := {
AddOnName: AddOnObj,
...
},
Browser := {
Opera := bool,
IE := bool,
IE6 := bool,
IE7 := bool,
IE8 := bool,
WebKit := bool,
iPhone := bool,
Chrome := bool,
Safari := bool,
Konqueror := bool,
Konqueror4 := bool,
Gecko := bool,
Gecko19 := bool
},
getAddOnConf := function (AddOnName),
setAddOnConf := function (AddOnName, confObj)
}
This is the basic structure of a ContentFlow object.
{
Container := DOM-Element // DOM element of the '.ContentFlow' element
Flow := DOM-Element // DOM element of the '.flow' element
Scrollbar := DOM-Element // DOM element of the '.scrollbar' element
Slider := DOM-Element // DOM element of the '.slider' element
items := Array // [ item0, item1, ... , itemN ]
conf := conf obj // object containing the configuration options
Browser := obj // ContentFlowGlobal.Browser
}
The options can be passed to the ContentFlow on creation, by the setConfig method or by an AddOn in the form of a data object.
{
option1: value,
option2: value,
.
.
.
lastOption: value // beware: last option must not end with a comma !
}
An 'item' object represents an item within the ContentFlow and has the following structure.
{
element := DOM-ELEMENT // DOM element of the item
pre := item obj // the previous item
next := item obj // the next item
content := DOM-ELEMENT // DOM element of the item content
caption := DOM-ELEMENT // DOM element of the item caption
label := DOM-ELEMENT // DOM element of the item label
index := int // index of item
position := float // position on the internel position axis
relativePosition := float // relative position of item
// (-visibleItems ≤ relativePosition ≤ visibleItems)
relativePositionNormed := float // normed relative position of item
// (-1 ≤ relativePosition ≤ 1)
side := int // left,center,right (-1,0,1)
size := size obj // size object as returned by calcSize
// {width: float, height: float} (0 ≤ width, height ≤ 1)
}
designed by: m media&design 2010

