FitMix Developer Documentation

Basic

Example

HTML Code

<div id="tryOnArea"></div>
<button data-skunumber="259262" class="TryOn">259262</button>
<button data-skunumber="223065" class="TryOn">223065</button>
<button data-skunumber="177280" class="TryOn">177280</button>

Javascript Code

window.onload = function()
{
    var vFitMix = new Fb.FitMix(
        {
            container: '#tryOnArea',
            skunumber: '259262',
            customerid: 'showroom'
        }
    );
    
    var vElements = (document.querySelectorAll) ? 
        document.querySelectorAll('.TryOn') : 
        document.getElementsByClassName('TryOn') ;
    
    if(vElements)
    {
        for(i = 0;i < vElements.length;i++)
        {
            vElements[i].onclick = function()
            {
                vFitMix.SetFrame(this.getAttribute('data-skunumber'));
            }
        }
    }
}

CSS Code

#fittingbox-fitmix.fittingbox-fitmix #fitlive-container .actions > button,
#fittingbox-fitmix.fittingbox-fitmix #fitlive-container .actions > div,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container .actions > button,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container .actions > div,
#fittingbox-fitmix.fittingbox-fitmix #fitviewer-container .actions > button,
#fittingbox-fitmix.fittingbox-fitmix #fitviewer-container .actions > div,
#fittingbox-fitmix.fittingbox-fitmix button,
#fittingbox-fitmix.fittingbox-fitmix div.button,
#fittingbox-fitmix.fittingbox-fitmix #fittingbox-message > button,
#fittingbox-fitmix.fittingbox-fitmix #fittingbox-share > a
{
    background-color: #007aa2 !important;
}

#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container .actions hr,
#fittingbox-fitmix.fittingbox-fitmix #fitlive-container .actions hr,
#fittingbox-fitmix.fittingbox-fitmix #fitviewer-container .actions hr,
#fittingbox-fitmix.fittingbox-fitmix button,
#fittingbox-fitmix.fittingbox-fitmix div.button
{
    border-top: 1px solid #007aa2 !important;
}

#fittingbox-fitmix.fittingbox-fitmix #fittingbox-main,
#fittingbox-fitmix.fittingbox-fitmix #fittingbox-message,
#fittingbox-fitmix.fittingbox-fitmix #fitlive-container,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container,
#fittingbox-fitmix.fittingbox-fitmix #fitviewer-container,
#fittingbox-fitmix.fittingbox-fitmix #fitlive,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto,
#fittingbox-fitmix.fittingbox-fitmix #fitviewer,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container #webcam-container,
#fittingbox-fitmix.fittingbox-fitmix #fitphoto-container #webcam-container #flow,
#fittingbox-fitmix.fittingbox-fitmix #fittingbox-share
{
    height: 300px !important;
}