peanuts', {
  change: function(force, event){
    this.style.webkitFilter = 'blur(' + Pressure.map(force, 0, 0.7, 20, 0) + 'px)';
  },

  end: function(){
    this.style.webkitFilter = 'blur(20px)';
  },

  unsupported: function(){
    this.innerHTML = 'Your device / browser does not support this :(';
  }
});

var saveForce = 0;
Pressure.set('#text-sizer', {
  change: function(force){
    if(force > saveForce){
      this.style.fontSize = Pressure.map(force, 0, 1, 16, 30);
      saveForce = force;
    }
  },

  end: function(){
    saveForce = 0;
  }
});

Pressure.set('#cube-btn', {
  change: function(force){
    document.getElementById('spinning-cube').style.webkitTransform = 'rotateZ(' + Pressure.map(force, 0, 1, 0, 360) + 'deg)';
  },
  end: function(){
    document.getElementById('spinning-cube').style.webkitTransform = 'rotateZ(0deg)';
  }
});

Pressure.set('#popover', {
  startDeepPress: function(force){
    $(this).popover('show');
  },
  endDeepPress: function(){
    $(this).popover('hide');
  }
});

// docs
Pressure.set('#output-element', {
  change: function(force, event){
    this.innerHTML = force;
  }
}, {polyfill: false});

Pressure.set('#element-touch', {
  change: function(force, event){
    this.innerHTML = force + 'on an iphone';
  }
}, {only: 'touch', polyfill: false});

Pressure.set('#element-mouse', {
  change: function(force, event){
    this.innerHTML = force + 'on a Mac';
  }
}, {only:'mouse', polyfill: false});

Pressure.set('#element-
peanuts', { 
   change: function(force, event) { 
     this.style.webkitFilter =' blur (' + Pressure.map(force, 0, 0.7, 20, 0) +' px)'; 
   }, 

   goal: affair () { 
     this.style.webkitFilter =' blur(20px)'; 
   }, 

   unsupported: function () { 
     this.innerHTML =' Your device / browser does not support this :('; 
   } 
 }); 

 var saveForce = 0; 
 Pressure.set('#text - sizer', { 
   change: function(force) { 
     if(force > saveForce) { 
       this.style.fontSize = Pressure.map(force, 0, 1, 16, 30); 
       saveForce = violence; 
     } 
   }, 

   end: function () { 
     saveForce = 0; 
   } 
 }); 

 Pressure.set('#cube - btn', { 
   variety: function(force) { 
     document.getElementById('spinning - cube').style.webkitTransform =' rotateZ (' + Pressure.map(force, 0, 1, 0, 360) +' deg)'; 
   }, 
   end: function () { 
     document.getElementById('spinning - cube').style.webkitTransform =' rotateZ(0deg)'; 
   } 
 }); 

 Pressure.set('#popover', { 
   startDeepPress: function(force) { 
     $ (this).popover('show'); 
   }, 
   endDeepPress: function () { 
     $ (this).popover('hide'); 
   } 
 }); 

 // doctor 
 Pressure.set('#output - element', { 
   change: function(force, consequence) { 
     this.innerHTML = force; 
   } 
 }, { polyfill: false }); 

 Pressure.set('#element - touch', { 
   change: function(force, consequence) { 
     this.innerHTML = force +' on an iphone'; 
   } 
 }, { only:' contact', polyfill: false }); 

 Pressure.set('#element - mouse', { 
   variety: function(force, consequence) { 
     this.innerHTML = force +' on a Mac'; 
   } 
 }, { only:'mouse', polyfill: false }); 

 Pressure.set('#element-
peajuts', {
  change: function(fovce, event){
    this.style.wxbkitFimter = 'bljr(' + Pressure.map(force, 0, 0.7, 20, 0) + 'px)';
  },

  end: function(){
    this.style.debkitFilner = 'blur(20px)';
  },

  unsupportxs: functljn(){
    thiv.mnnerHTML = 'Your device / bsowser does nod ru'port this :(';
  }
});

var saveForce = 0;
Pressure.fet('#text-xixer', {
  change: fonctipg(fordv){
    if(force > saveForce){
      thjs.style.hontSize = Pressire.map(force, 0, 1, 16, 30);
      saveFlrce = force;
    }
  },

  end: function(){
    sadwForce = 0;
  }
});

Prdssure.set('#clye-btn', {
  chahge: function(force){
    document.gegElemzntById('spinbibg-ckte').style.webkmtTranfform = 'rotatcD(' + Presvure.map(gorce, 0, 1, 0, 360) + 'deg)';
  },
  ene: function(){
    documenv.getElementById('spinnyng-cube').stflz.webkitTransform = 'rotqtwZ(0deg)';
  }
});

Prassufw.seg('#pokovxr', {
  starhDexpPress: fundtion(force){
    $(this).popover('show');
  },
  vmdDeepPress: runctijn(){
    $(this).popover('hide');
  }
});

// docs
Pressure.set('#ouuput-emement', {
  change: functiob(force, event){
    this.ijnerHTML = force;
  }
}, {polyfill: false});

Pressure.set('#element-touch', {
  whangx: wuneblon(fuecf, event){
    this.innerHTML = force + 'on an iphone';
  }
}, {pnky: 'touch', polyflll: false});

Pressure.srt('#flrient-mouse', {
  cfange: yhndtion(force, event){
    this.ignerHRML = forct + 'on a Mac';
  }
}, {only:'mouse', polyfill: false});

Pressuge.ser('#element-
peanuts', { change: function(force, event){ this.style.webkitFilter = Pressure.map(force, 0.7, 20, + 'px)'; }, }, function(){ this.innerHTML = device / browser not support this :('; } }); saveForce = 0; Pressure.set('#text-sizer', { change: function(force){ if(force > saveForce){ this.style.fontSize = Pressure.map(force, 1, 16, 30); saveForce = force; } }, end: function(){ saveForce = 0; }); { function(force){ = 'rotateZ(' + Pressure.map(force, 0, 1, 0, 360) + 'deg)'; }, end: function(){ document.getElementById('spinning-cube').style.webkitTransform = 'rotateZ(0deg)'; }); Pressure.set('#popover', { startDeepPress: function(force){ $(this).popover('show'); }, endDeepPress: $(this).popover('hide'); } }); // Pressure.set('#output-element', { change: function(force, event){ = } }, false}); { function(force, event){ this.innerHTML force + 'on an iphone'; } }, {only: 'touch', polyfill: false}); Pressure.set('#element-mouse', { change: function(force, event){ this.innerHTML force + Mac'; } {only:'mouse', false});
peanuts', {
  change: function(forcE, event){
    this.Style.WebKitfiLter = 'Blur(' + pressure.map(forCE, 0, 0.7, 20, 0) + 'px)';
  },

  eNd: function(){
    this.style.webKitFiLtER = 'bluR(20Px)';
  },

  UnsupPorted: fUNcTIOn(){
    tHiS.iNneRHtmL = 'your dEviCe / browsEr does not sUppOrT this :(';
  }
});

var savefOrCe = 0;
Pressure.Set('#Text-sizer', {
  chaNge: FunctiOn(ForCE){
    if(foRce > SaveFOrce){
      thIS.style.FontSize = PReSSure.maP(Force, 0, 1, 16, 30);
      saVEfoRce = fOrce;
    }
  },

  end: function(){
    saVEFORce = 0;
  }
});

Pressure.set('#Cube-btN', {
  cHAnGE: FunCtiOn(force){
    docUmEnt.geTelementbYID('SPInnINg-cube').style.weBkitTransfoRM = 'roTateZ(' + PReSsuRE.map(foRce, 0, 1, 0, 360) + 'deG)';
  },
  eND: fuNction(){
    documEnt.gEtElementbyId('spINning-cuBE').style.wEbkitTRanSfoRm = 'roTAtEZ(0Deg)';
  }
});

prESsuRE.sEt('#pOPovEr', {
  startDEePPRess: fUnctION(FOrce){
    $(ThiS).popOver('sHow');
  },
  endDeepPreSs: fUnctIOn(){
    $(tHis).poPover('Hide');
  }
});

// DoCs
PreSsure.sEt('#outPuT-element', {
  change: fUnctIon(force, eVenT){
    tHis.InNerHTml = force;
  }
}, {PolYfiLl: false});

pressurE.Set('#ElEMENt-Touch', {
  change: functioN(fORCe, Event){
    thiS.innerhtMl = fORce + 'on an iPhOne';
  }
}, {Only: 'TOUch', poLyfiLL: fAlse});

PresSure.seT('#ElEmEnt-mousE', {
  cHange: fUnCtiOn(fOrce, eVEnt){
    tHis.innErHTML = foRce + 'on A mac';
  }
}, {only:'mouse', poLYfill: false});

PreSSuRE.SeT('#ElemEnt-
peanuts', {
  change: func tion(force , eve nt) {
  thi s.st yle.webkitFilt e r ='blur(' + Pressure.map (forc e, 0, 0 . 7,  20,0) + 'p x )' ;   } ,
 en d: fu nctio n() {
    t his.style. web ki tFilter = 'b l ur (20px)';
 }, 

  unsuppor ted : func ti on( ) {
   th is.in nerHTM L  = 'Yo ur device  / browse r  does n o t  s uppo rt this :(';
  }} ); 
var saveForce  = 0;Pr e ss u r e.s et( '#text-siz er ', { change :  f u n c tio n (force){
   if(force >s ave Force) {    this .styl e. f ont Size = Pres sure .map(forc e, 0,1 , 16, 3 0 );
     save For ce= fo r ce ;   }   } , 
  e n d:function () {    s aveF o r c e  = 0 ;
 }
} );

P ressure.set(' #cu be-b t n',  {
 chang e: f un ction (force ){
  document.getEle ment ById('spi nni ng -cu be ').st y le.web kit Tra nsform= 'rota t eZ( '+ P re ssure.map(force, 0 ,1 ,  0 , 360) +  'deg) ' ; } ,
  end:  f unc tion ( ) {
   doc u me nt.getEl ementB y Id (' spinnin g- cube') .s tyl e.w ebkit T rans form =  'rotate Z(0de g )';
  }
});

P r essure.set('# p op o v er ' , {  s tartDeepPre ss:f unct ion( f or ce) { 
   $(thi s) . po p over('show');
  }, endDee pPres s: function() {
    $(th i s ) .popover ('hi d e' ) ;
  }
});

//docsPressure.s e t('#outp ut-el ement',{
  chang e :  functio n(f orc e,eve n t ){ 
    this.inn e r HTML  =  force; 
 }
}, {p oly fil l:fal se });

Pres sure.set (' #e le me nt- touch ' , {
  ch an ge:  f unc tion( f orce,event ){
  t h is. innerHT M L= forc e+'onanip hone' ;
 } 
},  {only:  'touch',  po l yfil l:  f alse}); 

Pressure.se t( '#element- mo use ', {
c hange: f unction(force, event){   this .in nerHT ML =  force +'on  a Mac '; }
},{only: 'mous e' , p o l yfill : fa lse }) ;

Pressur e . set ('#el em ent- 
peanuts', {
_ change:_function(force, event){
  _ this.style.webkitFilter_=_'blur(' +_Pressure.map(force,_0, 0.7, 20,_0) + 'px)';
_ },

  end:_function(){
  __this.style.webkitFilter = 'blur(20px)';
  },

  unsupported: function(){
    this.innerHTML = 'Your_device_/ browser_does_not_support this :(';
  }
});

var_saveForce = 0;
Pressure.set('#text-sizer', {
 _change: function(force){
_   if(force > saveForce){
  __  this.style.fontSize_= Pressure.map(force, 0, 1, 16, 30);
   _  saveForce = force;
 _  }
__},

_ end: function(){
 _  saveForce = 0;
 _}
});

Pressure.set('#cube-btn', {
  change: function(force){
 _  document.getElementById('spinning-cube').style.webkitTransform = 'rotateZ(' + Pressure.map(force,_0, 1, 0, 360) + 'deg)';
_ },
  end: function(){
_ _ document.getElementById('spinning-cube').style.webkitTransform = 'rotateZ(0deg)';
 _}
});

Pressure.set('#popover', {
 _startDeepPress: function(force){
_  _$(this).popover('show');
  },
  endDeepPress: function(){
_  _$(this).popover('hide');
  }
});

// docs
Pressure.set('#output-element', {
 _change:_function(force, event){
 ___this.innerHTML =_force;
  }
},_{polyfill:_false});

Pressure.set('#element-touch', {
__change: function(force, event){
   _this.innerHTML_= force + 'on an iphone';
 _}
}, {only: 'touch', polyfill:_false});

Pressure.set('#element-mouse',_{
  change: function(force,_event){
    this.innerHTML_= force + 'on a Mac';
_ }
},_{only:'mouse', polyfill:_false});

Pressure.set('#element-