Include script
<script type="text/javascript" src="https://s3.eu-central-1.amazonaws.com/hoteldatafeeds.com/sdk/client.js"  data-elem-id="hoteldatafeeds-renderer" data-hdf-id="58ea99cb893a14257423bac2" data-hdf-curiso='EUR' 
 data-hdf-cursymbol='€' data-hdf-reviews="reviewpro" data-hdf-closable="1"></script>

Register the following global functions



function hoteldatafeeds_templateloaded(hoteldatafeedsProxy){

}
function hoteldatafeeds_beforeinit(hoteldatafeedsProxy){
    //call .getTemplate
    hoteldatafeedsProxy.getTemplate('58ea99cb893a14257423bac2');
}

function hoteldatafeeds_preinit(hoteldatafeedsProxy){}

function hoteldatefeeds_construct(hoteldatafeedsProxy){
   //when visitor arrives at booking engine better hide some UI
   hoteldatafeedsProxy.hideBookDirect();
   hoteldatafeedsProxy.hideSearch(); 

   //if mobile hide even more to take less space
   var helper = hoteldatafeedsProxy.getHelper();
   if(helper.mobile){
      hoteldatafeedsProxy.hideBenefits();
      hoteldatafeedsProxy.hideReviews();
   }
}

function hoteldatafeeds_init(hoteldatafeedsProxy){
//safely call methods
hoteldatafeedsProxy.setCheckin('yyyy-mm-dd');
hoteldatafeedsProxy.setCheckout('yyyy-mm-dd');
hoteldatafeedsProxy.search();
}

function hoteldatafeeds_done(hoteldatafeedsProxy){
}



Available Methods



hoteldatafeedsProxy.setCheckin('yyyy-mm-dd');
hoteldatafeedsProxy.setCheckout('yyyy-mm-dd');

hoteldatafeedsProxy.search();


 
hoteldatafeedsProxy.hide();
hoteldatafeedsProxy.show();

 
hoteldatafeedsProxy.hideSearch();
hoteldatafeedsProxy.showSearch();

 
hoteldatafeedsProxy.hideBenefits();
hoteldatafeedsProxy.showBenefits();

 
hoteldatafeedsProxy.hideBookDirect();
hoteldatafeedsProxy.showBookDirect();

 
hoteldatafeedsProxy.minimize();
hoteldatafeedsProxy.maximize();
Available after hoteldatafeeds_templateloaded called

hoteldatafeedsProxy.getHelper();
TOP